All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datazone.AmazonDataZoneClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DataZone module holds the client classes that are used for communicating with Amazon DataZone Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.datazone;

import org.w3c.dom.*;

import java.net.*;
import java.util.*;

import javax.annotation.Generated;

import org.apache.commons.logging.*;

import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;

import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;

import com.amazonaws.services.datazone.AmazonDataZoneClientBuilder;

import com.amazonaws.AmazonServiceException;

import com.amazonaws.services.datazone.model.*;

import com.amazonaws.services.datazone.model.transform.*;

/**
 * Client for accessing Amazon DataZone. All service calls made using this client are blocking, and will not return
 * until the service call completes.
 * 

*

* Amazon DataZone is a data management service that enables you to catalog, discover, govern, share, and analyze your * data. With Amazon DataZone, you can share and access your data across accounts and supported regions. Amazon DataZone * simplifies your experience across Amazon Web Services services, including, but not limited to, Amazon Redshift, * Amazon Athena, Amazon Web Services Glue, and Amazon Web Services Lake Formation. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonDataZoneClient extends AmazonWebServiceClient implements AmazonDataZone { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AmazonDataZone.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "datazone"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceQuotaExceededException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.ServiceQuotaExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalServerException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.InternalServerExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("UnauthorizedException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.UnauthorizedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.datazone.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.datazone.model.AmazonDataZoneException.class)); public static AmazonDataZoneClientBuilder builder() { return AmazonDataZoneClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Amazon DataZone using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonDataZoneClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Amazon DataZone using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonDataZoneClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("datazone.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/datazone/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/datazone/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *

* Accepts automatically generated business-friendly metadata for your Amazon DataZone assets. *

* * @param acceptPredictionsRequest * @return Result of the AcceptPredictions operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.AcceptPredictions * @see AWS API * Documentation */ @Override public AcceptPredictionsResult acceptPredictions(AcceptPredictionsRequest request) { request = beforeClientExecution(request); return executeAcceptPredictions(request); } @SdkInternalApi final AcceptPredictionsResult executeAcceptPredictions(AcceptPredictionsRequest acceptPredictionsRequest) { ExecutionContext executionContext = createExecutionContext(acceptPredictionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AcceptPredictionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(acceptPredictionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AcceptPredictions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AcceptPredictionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Accepts a subscription request to a specific asset. *

* * @param acceptSubscriptionRequestRequest * @return Result of the AcceptSubscriptionRequest operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.AcceptSubscriptionRequest * @see AWS API Documentation */ @Override public AcceptSubscriptionRequestResult acceptSubscriptionRequest(AcceptSubscriptionRequestRequest request) { request = beforeClientExecution(request); return executeAcceptSubscriptionRequest(request); } @SdkInternalApi final AcceptSubscriptionRequestResult executeAcceptSubscriptionRequest(AcceptSubscriptionRequestRequest acceptSubscriptionRequestRequest) { ExecutionContext executionContext = createExecutionContext(acceptSubscriptionRequestRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AcceptSubscriptionRequestRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(acceptSubscriptionRequestRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AcceptSubscriptionRequest"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AcceptSubscriptionRequestResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Associates the environment role in Amazon DataZone. *

* * @param associateEnvironmentRoleRequest * @return Result of the AssociateEnvironmentRole operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.AssociateEnvironmentRole * @see AWS API Documentation */ @Override public AssociateEnvironmentRoleResult associateEnvironmentRole(AssociateEnvironmentRoleRequest request) { request = beforeClientExecution(request); return executeAssociateEnvironmentRole(request); } @SdkInternalApi final AssociateEnvironmentRoleResult executeAssociateEnvironmentRole(AssociateEnvironmentRoleRequest associateEnvironmentRoleRequest) { ExecutionContext executionContext = createExecutionContext(associateEnvironmentRoleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateEnvironmentRoleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(associateEnvironmentRoleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateEnvironmentRole"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AssociateEnvironmentRoleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Cancels the metadata generation run. *

* * @param cancelMetadataGenerationRunRequest * @return Result of the CancelMetadataGenerationRun operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CancelMetadataGenerationRun * @see AWS API Documentation */ @Override public CancelMetadataGenerationRunResult cancelMetadataGenerationRun(CancelMetadataGenerationRunRequest request) { request = beforeClientExecution(request); return executeCancelMetadataGenerationRun(request); } @SdkInternalApi final CancelMetadataGenerationRunResult executeCancelMetadataGenerationRun(CancelMetadataGenerationRunRequest cancelMetadataGenerationRunRequest) { ExecutionContext executionContext = createExecutionContext(cancelMetadataGenerationRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CancelMetadataGenerationRunRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(cancelMetadataGenerationRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelMetadataGenerationRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelMetadataGenerationRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Cancels the subscription to the specified asset. *

* * @param cancelSubscriptionRequest * @return Result of the CancelSubscription operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CancelSubscription * @see AWS * API Documentation */ @Override public CancelSubscriptionResult cancelSubscription(CancelSubscriptionRequest request) { request = beforeClientExecution(request); return executeCancelSubscription(request); } @SdkInternalApi final CancelSubscriptionResult executeCancelSubscription(CancelSubscriptionRequest cancelSubscriptionRequest) { ExecutionContext executionContext = createExecutionContext(cancelSubscriptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CancelSubscriptionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cancelSubscriptionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelSubscription"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelSubscriptionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an asset in Amazon DataZone catalog. *

* * @param createAssetRequest * @return Result of the CreateAsset operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateAsset * @see AWS API * Documentation */ @Override public CreateAssetResult createAsset(CreateAssetRequest request) { request = beforeClientExecution(request); return executeCreateAsset(request); } @SdkInternalApi final CreateAssetResult executeCreateAsset(CreateAssetRequest createAssetRequest) { ExecutionContext executionContext = createExecutionContext(createAssetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAssetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAssetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAsset"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAssetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a data asset filter. *

* * @param createAssetFilterRequest * @return Result of the CreateAssetFilter operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateAssetFilter * @see AWS API * Documentation */ @Override public CreateAssetFilterResult createAssetFilter(CreateAssetFilterRequest request) { request = beforeClientExecution(request); return executeCreateAssetFilter(request); } @SdkInternalApi final CreateAssetFilterResult executeCreateAssetFilter(CreateAssetFilterRequest createAssetFilterRequest) { ExecutionContext executionContext = createExecutionContext(createAssetFilterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAssetFilterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAssetFilterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAssetFilter"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAssetFilterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a revision of the asset. *

* * @param createAssetRevisionRequest * @return Result of the CreateAssetRevision operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateAssetRevision * @see AWS * API Documentation */ @Override public CreateAssetRevisionResult createAssetRevision(CreateAssetRevisionRequest request) { request = beforeClientExecution(request); return executeCreateAssetRevision(request); } @SdkInternalApi final CreateAssetRevisionResult executeCreateAssetRevision(CreateAssetRevisionRequest createAssetRevisionRequest) { ExecutionContext executionContext = createExecutionContext(createAssetRevisionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAssetRevisionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAssetRevisionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAssetRevision"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAssetRevisionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a custom asset type. *

* * @param createAssetTypeRequest * @return Result of the CreateAssetType operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateAssetType * @see AWS API * Documentation */ @Override public CreateAssetTypeResult createAssetType(CreateAssetTypeRequest request) { request = beforeClientExecution(request); return executeCreateAssetType(request); } @SdkInternalApi final CreateAssetTypeResult executeCreateAssetType(CreateAssetTypeRequest createAssetTypeRequest) { ExecutionContext executionContext = createExecutionContext(createAssetTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAssetTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAssetTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAssetType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAssetTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon DataZone data source. *

* * @param createDataSourceRequest * @return Result of the CreateDataSource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateDataSource * @see AWS API * Documentation */ @Override public CreateDataSourceResult createDataSource(CreateDataSourceRequest request) { request = beforeClientExecution(request); return executeCreateDataSource(request); } @SdkInternalApi final CreateDataSourceResult executeCreateDataSource(CreateDataSourceRequest createDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(createDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon DataZone domain. *

* * @param createDomainRequest * @return Result of the CreateDomain operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateDomain * @see AWS API * Documentation */ @Override public CreateDomainResult createDomain(CreateDomainRequest request) { request = beforeClientExecution(request); return executeCreateDomain(request); } @SdkInternalApi final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) { ExecutionContext executionContext = createExecutionContext(createDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create an Amazon DataZone environment. *

* * @param createEnvironmentRequest * @return Result of the CreateEnvironment operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateEnvironment * @see AWS API * Documentation */ @Override public CreateEnvironmentResult createEnvironment(CreateEnvironmentRequest request) { request = beforeClientExecution(request); return executeCreateEnvironment(request); } @SdkInternalApi final CreateEnvironmentResult executeCreateEnvironment(CreateEnvironmentRequest createEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(createEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEnvironmentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEnvironmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an action for the environment, for example, creates a console link for an analytics tool that is * available in this environment. *

* * @param createEnvironmentActionRequest * @return Result of the CreateEnvironmentAction operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateEnvironmentAction * @see AWS API Documentation */ @Override public CreateEnvironmentActionResult createEnvironmentAction(CreateEnvironmentActionRequest request) { request = beforeClientExecution(request); return executeCreateEnvironmentAction(request); } @SdkInternalApi final CreateEnvironmentActionResult executeCreateEnvironmentAction(CreateEnvironmentActionRequest createEnvironmentActionRequest) { ExecutionContext executionContext = createExecutionContext(createEnvironmentActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEnvironmentActionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createEnvironmentActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEnvironmentAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEnvironmentActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon DataZone environment profile. *

* * @param createEnvironmentProfileRequest * @return Result of the CreateEnvironmentProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateEnvironmentProfile * @see AWS API Documentation */ @Override public CreateEnvironmentProfileResult createEnvironmentProfile(CreateEnvironmentProfileRequest request) { request = beforeClientExecution(request); return executeCreateEnvironmentProfile(request); } @SdkInternalApi final CreateEnvironmentProfileResult executeCreateEnvironmentProfile(CreateEnvironmentProfileRequest createEnvironmentProfileRequest) { ExecutionContext executionContext = createExecutionContext(createEnvironmentProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEnvironmentProfileRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createEnvironmentProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEnvironmentProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEnvironmentProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a metadata form type. *

* * @param createFormTypeRequest * @return Result of the CreateFormType operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateFormType * @see AWS API * Documentation */ @Override public CreateFormTypeResult createFormType(CreateFormTypeRequest request) { request = beforeClientExecution(request); return executeCreateFormType(request); } @SdkInternalApi final CreateFormTypeResult executeCreateFormType(CreateFormTypeRequest createFormTypeRequest) { ExecutionContext executionContext = createExecutionContext(createFormTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateFormTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createFormTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateFormType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateFormTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon DataZone business glossary. *

* * @param createGlossaryRequest * @return Result of the CreateGlossary operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateGlossary * @see AWS API * Documentation */ @Override public CreateGlossaryResult createGlossary(CreateGlossaryRequest request) { request = beforeClientExecution(request); return executeCreateGlossary(request); } @SdkInternalApi final CreateGlossaryResult executeCreateGlossary(CreateGlossaryRequest createGlossaryRequest) { ExecutionContext executionContext = createExecutionContext(createGlossaryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateGlossaryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createGlossaryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateGlossary"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateGlossaryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a business glossary term. *

* * @param createGlossaryTermRequest * @return Result of the CreateGlossaryTerm operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateGlossaryTerm * @see AWS * API Documentation */ @Override public CreateGlossaryTermResult createGlossaryTerm(CreateGlossaryTermRequest request) { request = beforeClientExecution(request); return executeCreateGlossaryTerm(request); } @SdkInternalApi final CreateGlossaryTermResult executeCreateGlossaryTerm(CreateGlossaryTermRequest createGlossaryTermRequest) { ExecutionContext executionContext = createExecutionContext(createGlossaryTermRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateGlossaryTermRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createGlossaryTermRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateGlossaryTerm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateGlossaryTermResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a group profile in Amazon DataZone. *

* * @param createGroupProfileRequest * @return Result of the CreateGroupProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateGroupProfile * @see AWS * API Documentation */ @Override public CreateGroupProfileResult createGroupProfile(CreateGroupProfileRequest request) { request = beforeClientExecution(request); return executeCreateGroupProfile(request); } @SdkInternalApi final CreateGroupProfileResult executeCreateGroupProfile(CreateGroupProfileRequest createGroupProfileRequest) { ExecutionContext executionContext = createExecutionContext(createGroupProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateGroupProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createGroupProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateGroupProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateGroupProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Publishes a listing (a record of an asset at a given time) or removes a listing from the catalog. *

* * @param createListingChangeSetRequest * @return Result of the CreateListingChangeSet operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateListingChangeSet * @see AWS API Documentation */ @Override public CreateListingChangeSetResult createListingChangeSet(CreateListingChangeSetRequest request) { request = beforeClientExecution(request); return executeCreateListingChangeSet(request); } @SdkInternalApi final CreateListingChangeSetResult executeCreateListingChangeSet(CreateListingChangeSetRequest createListingChangeSetRequest) { ExecutionContext executionContext = createExecutionContext(createListingChangeSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateListingChangeSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createListingChangeSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateListingChangeSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateListingChangeSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon DataZone project. *

* * @param createProjectRequest * @return Result of the CreateProject operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateProject * @see AWS API * Documentation */ @Override public CreateProjectResult createProject(CreateProjectRequest request) { request = beforeClientExecution(request); return executeCreateProject(request); } @SdkInternalApi final CreateProjectResult executeCreateProject(CreateProjectRequest createProjectRequest) { ExecutionContext executionContext = createExecutionContext(createProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a project membership in Amazon DataZone. *

* * @param createProjectMembershipRequest * @return Result of the CreateProjectMembership operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateProjectMembership * @see AWS API Documentation */ @Override public CreateProjectMembershipResult createProjectMembership(CreateProjectMembershipRequest request) { request = beforeClientExecution(request); return executeCreateProjectMembership(request); } @SdkInternalApi final CreateProjectMembershipResult executeCreateProjectMembership(CreateProjectMembershipRequest createProjectMembershipRequest) { ExecutionContext executionContext = createExecutionContext(createProjectMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateProjectMembershipRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createProjectMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProjectMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateProjectMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a subsscription grant in Amazon DataZone. *

* * @param createSubscriptionGrantRequest * @return Result of the CreateSubscriptionGrant operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateSubscriptionGrant * @see AWS API Documentation */ @Override public CreateSubscriptionGrantResult createSubscriptionGrant(CreateSubscriptionGrantRequest request) { request = beforeClientExecution(request); return executeCreateSubscriptionGrant(request); } @SdkInternalApi final CreateSubscriptionGrantResult executeCreateSubscriptionGrant(CreateSubscriptionGrantRequest createSubscriptionGrantRequest) { ExecutionContext executionContext = createExecutionContext(createSubscriptionGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateSubscriptionGrantRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createSubscriptionGrantRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSubscriptionGrant"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateSubscriptionGrantResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a subscription request in Amazon DataZone. *

* * @param createSubscriptionRequestRequest * @return Result of the CreateSubscriptionRequest operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateSubscriptionRequest * @see AWS API Documentation */ @Override public CreateSubscriptionRequestResult createSubscriptionRequest(CreateSubscriptionRequestRequest request) { request = beforeClientExecution(request); return executeCreateSubscriptionRequest(request); } @SdkInternalApi final CreateSubscriptionRequestResult executeCreateSubscriptionRequest(CreateSubscriptionRequestRequest createSubscriptionRequestRequest) { ExecutionContext executionContext = createExecutionContext(createSubscriptionRequestRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateSubscriptionRequestRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createSubscriptionRequestRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSubscriptionRequest"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateSubscriptionRequestResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a subscription target in Amazon DataZone. *

* * @param createSubscriptionTargetRequest * @return Result of the CreateSubscriptionTarget operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateSubscriptionTarget * @see AWS API Documentation */ @Override public CreateSubscriptionTargetResult createSubscriptionTarget(CreateSubscriptionTargetRequest request) { request = beforeClientExecution(request); return executeCreateSubscriptionTarget(request); } @SdkInternalApi final CreateSubscriptionTargetResult executeCreateSubscriptionTarget(CreateSubscriptionTargetRequest createSubscriptionTargetRequest) { ExecutionContext executionContext = createExecutionContext(createSubscriptionTargetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateSubscriptionTargetRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createSubscriptionTargetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSubscriptionTarget"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateSubscriptionTargetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a user profile in Amazon DataZone. *

* * @param createUserProfileRequest * @return Result of the CreateUserProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.CreateUserProfile * @see AWS API * Documentation */ @Override public CreateUserProfileResult createUserProfile(CreateUserProfileRequest request) { request = beforeClientExecution(request); return executeCreateUserProfile(request); } @SdkInternalApi final CreateUserProfileResult executeCreateUserProfile(CreateUserProfileRequest createUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(createUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delets an asset in Amazon DataZone. *

* * @param deleteAssetRequest * @return Result of the DeleteAsset operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteAsset * @see AWS API * Documentation */ @Override public DeleteAssetResult deleteAsset(DeleteAssetRequest request) { request = beforeClientExecution(request); return executeDeleteAsset(request); } @SdkInternalApi final DeleteAssetResult executeDeleteAsset(DeleteAssetRequest deleteAssetRequest) { ExecutionContext executionContext = createExecutionContext(deleteAssetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAssetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAssetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAsset"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAssetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an asset filter. *

* * @param deleteAssetFilterRequest * @return Result of the DeleteAssetFilter operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteAssetFilter * @see AWS API * Documentation */ @Override public DeleteAssetFilterResult deleteAssetFilter(DeleteAssetFilterRequest request) { request = beforeClientExecution(request); return executeDeleteAssetFilter(request); } @SdkInternalApi final DeleteAssetFilterResult executeDeleteAssetFilter(DeleteAssetFilterRequest deleteAssetFilterRequest) { ExecutionContext executionContext = createExecutionContext(deleteAssetFilterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAssetFilterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAssetFilterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAssetFilter"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAssetFilterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an asset type in Amazon DataZone. *

* * @param deleteAssetTypeRequest * @return Result of the DeleteAssetType operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteAssetType * @see AWS API * Documentation */ @Override public DeleteAssetTypeResult deleteAssetType(DeleteAssetTypeRequest request) { request = beforeClientExecution(request); return executeDeleteAssetType(request); } @SdkInternalApi final DeleteAssetTypeResult executeDeleteAssetType(DeleteAssetTypeRequest deleteAssetTypeRequest) { ExecutionContext executionContext = createExecutionContext(deleteAssetTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAssetTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAssetTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAssetType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAssetTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a data source in Amazon DataZone. *

* * @param deleteDataSourceRequest * @return Result of the DeleteDataSource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteDataSource * @see AWS API * Documentation */ @Override public DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest request) { request = beforeClientExecution(request); return executeDeleteDataSource(request); } @SdkInternalApi final DeleteDataSourceResult executeDeleteDataSource(DeleteDataSourceRequest deleteDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(deleteDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a Amazon DataZone domain. *

* * @param deleteDomainRequest * @return Result of the DeleteDomain operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteDomain * @see AWS API * Documentation */ @Override public DeleteDomainResult deleteDomain(DeleteDomainRequest request) { request = beforeClientExecution(request); return executeDeleteDomain(request); } @SdkInternalApi final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) { ExecutionContext executionContext = createExecutionContext(deleteDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an environment in Amazon DataZone. *

* * @param deleteEnvironmentRequest * @return Result of the DeleteEnvironment operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteEnvironment * @see AWS API * Documentation */ @Override public DeleteEnvironmentResult deleteEnvironment(DeleteEnvironmentRequest request) { request = beforeClientExecution(request); return executeDeleteEnvironment(request); } @SdkInternalApi final DeleteEnvironmentResult executeDeleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(deleteEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEnvironmentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEnvironmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an action for the environment, for example, deletes a console link for an analytics tool that is * available in this environment. *

* * @param deleteEnvironmentActionRequest * @return Result of the DeleteEnvironmentAction operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteEnvironmentAction * @see AWS API Documentation */ @Override public DeleteEnvironmentActionResult deleteEnvironmentAction(DeleteEnvironmentActionRequest request) { request = beforeClientExecution(request); return executeDeleteEnvironmentAction(request); } @SdkInternalApi final DeleteEnvironmentActionResult executeDeleteEnvironmentAction(DeleteEnvironmentActionRequest deleteEnvironmentActionRequest) { ExecutionContext executionContext = createExecutionContext(deleteEnvironmentActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEnvironmentActionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteEnvironmentActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironmentAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEnvironmentActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the blueprint configuration in Amazon DataZone. *

* * @param deleteEnvironmentBlueprintConfigurationRequest * @return Result of the DeleteEnvironmentBlueprintConfiguration operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteEnvironmentBlueprintConfiguration * @see AWS API Documentation */ @Override public DeleteEnvironmentBlueprintConfigurationResult deleteEnvironmentBlueprintConfiguration(DeleteEnvironmentBlueprintConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteEnvironmentBlueprintConfiguration(request); } @SdkInternalApi final DeleteEnvironmentBlueprintConfigurationResult executeDeleteEnvironmentBlueprintConfiguration( DeleteEnvironmentBlueprintConfigurationRequest deleteEnvironmentBlueprintConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteEnvironmentBlueprintConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEnvironmentBlueprintConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteEnvironmentBlueprintConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironmentBlueprintConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEnvironmentBlueprintConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an environment profile in Amazon DataZone. *

* * @param deleteEnvironmentProfileRequest * @return Result of the DeleteEnvironmentProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteEnvironmentProfile * @see AWS API Documentation */ @Override public DeleteEnvironmentProfileResult deleteEnvironmentProfile(DeleteEnvironmentProfileRequest request) { request = beforeClientExecution(request); return executeDeleteEnvironmentProfile(request); } @SdkInternalApi final DeleteEnvironmentProfileResult executeDeleteEnvironmentProfile(DeleteEnvironmentProfileRequest deleteEnvironmentProfileRequest) { ExecutionContext executionContext = createExecutionContext(deleteEnvironmentProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEnvironmentProfileRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteEnvironmentProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironmentProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEnvironmentProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delets and metadata form type in Amazon DataZone. *

* * @param deleteFormTypeRequest * @return Result of the DeleteFormType operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteFormType * @see AWS API * Documentation */ @Override public DeleteFormTypeResult deleteFormType(DeleteFormTypeRequest request) { request = beforeClientExecution(request); return executeDeleteFormType(request); } @SdkInternalApi final DeleteFormTypeResult executeDeleteFormType(DeleteFormTypeRequest deleteFormTypeRequest) { ExecutionContext executionContext = createExecutionContext(deleteFormTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteFormTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteFormTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFormType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteFormTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a business glossary in Amazon DataZone. *

* * @param deleteGlossaryRequest * @return Result of the DeleteGlossary operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteGlossary * @see AWS API * Documentation */ @Override public DeleteGlossaryResult deleteGlossary(DeleteGlossaryRequest request) { request = beforeClientExecution(request); return executeDeleteGlossary(request); } @SdkInternalApi final DeleteGlossaryResult executeDeleteGlossary(DeleteGlossaryRequest deleteGlossaryRequest) { ExecutionContext executionContext = createExecutionContext(deleteGlossaryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteGlossaryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteGlossaryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteGlossary"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteGlossaryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a business glossary term in Amazon DataZone. *

* * @param deleteGlossaryTermRequest * @return Result of the DeleteGlossaryTerm operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteGlossaryTerm * @see AWS * API Documentation */ @Override public DeleteGlossaryTermResult deleteGlossaryTerm(DeleteGlossaryTermRequest request) { request = beforeClientExecution(request); return executeDeleteGlossaryTerm(request); } @SdkInternalApi final DeleteGlossaryTermResult executeDeleteGlossaryTerm(DeleteGlossaryTermRequest deleteGlossaryTermRequest) { ExecutionContext executionContext = createExecutionContext(deleteGlossaryTermRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteGlossaryTermRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteGlossaryTermRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteGlossaryTerm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteGlossaryTermResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a listing (a record of an asset at a given time). *

* * @param deleteListingRequest * @return Result of the DeleteListing operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteListing * @see AWS API * Documentation */ @Override public DeleteListingResult deleteListing(DeleteListingRequest request) { request = beforeClientExecution(request); return executeDeleteListing(request); } @SdkInternalApi final DeleteListingResult executeDeleteListing(DeleteListingRequest deleteListingRequest) { ExecutionContext executionContext = createExecutionContext(deleteListingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteListingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteListingRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteListing"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteListingResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a project in Amazon DataZone. *

* * @param deleteProjectRequest * @return Result of the DeleteProject operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteProject * @see AWS API * Documentation */ @Override public DeleteProjectResult deleteProject(DeleteProjectRequest request) { request = beforeClientExecution(request); return executeDeleteProject(request); } @SdkInternalApi final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) { ExecutionContext executionContext = createExecutionContext(deleteProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes project membership in Amazon DataZone. *

* * @param deleteProjectMembershipRequest * @return Result of the DeleteProjectMembership operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteProjectMembership * @see AWS API Documentation */ @Override public DeleteProjectMembershipResult deleteProjectMembership(DeleteProjectMembershipRequest request) { request = beforeClientExecution(request); return executeDeleteProjectMembership(request); } @SdkInternalApi final DeleteProjectMembershipResult executeDeleteProjectMembership(DeleteProjectMembershipRequest deleteProjectMembershipRequest) { ExecutionContext executionContext = createExecutionContext(deleteProjectMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteProjectMembershipRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteProjectMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteProjectMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteProjectMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes and subscription grant in Amazon DataZone. *

* * @param deleteSubscriptionGrantRequest * @return Result of the DeleteSubscriptionGrant operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteSubscriptionGrant * @see AWS API Documentation */ @Override public DeleteSubscriptionGrantResult deleteSubscriptionGrant(DeleteSubscriptionGrantRequest request) { request = beforeClientExecution(request); return executeDeleteSubscriptionGrant(request); } @SdkInternalApi final DeleteSubscriptionGrantResult executeDeleteSubscriptionGrant(DeleteSubscriptionGrantRequest deleteSubscriptionGrantRequest) { ExecutionContext executionContext = createExecutionContext(deleteSubscriptionGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteSubscriptionGrantRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteSubscriptionGrantRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteSubscriptionGrant"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteSubscriptionGrantResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a subscription request in Amazon DataZone. *

* * @param deleteSubscriptionRequestRequest * @return Result of the DeleteSubscriptionRequest operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteSubscriptionRequest * @see AWS API Documentation */ @Override public DeleteSubscriptionRequestResult deleteSubscriptionRequest(DeleteSubscriptionRequestRequest request) { request = beforeClientExecution(request); return executeDeleteSubscriptionRequest(request); } @SdkInternalApi final DeleteSubscriptionRequestResult executeDeleteSubscriptionRequest(DeleteSubscriptionRequestRequest deleteSubscriptionRequestRequest) { ExecutionContext executionContext = createExecutionContext(deleteSubscriptionRequestRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteSubscriptionRequestRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteSubscriptionRequestRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteSubscriptionRequest"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteSubscriptionRequestResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a subscription target in Amazon DataZone. *

* * @param deleteSubscriptionTargetRequest * @return Result of the DeleteSubscriptionTarget operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteSubscriptionTarget * @see AWS API Documentation */ @Override public DeleteSubscriptionTargetResult deleteSubscriptionTarget(DeleteSubscriptionTargetRequest request) { request = beforeClientExecution(request); return executeDeleteSubscriptionTarget(request); } @SdkInternalApi final DeleteSubscriptionTargetResult executeDeleteSubscriptionTarget(DeleteSubscriptionTargetRequest deleteSubscriptionTargetRequest) { ExecutionContext executionContext = createExecutionContext(deleteSubscriptionTargetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteSubscriptionTargetRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteSubscriptionTargetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteSubscriptionTarget"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteSubscriptionTargetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the specified time series form for the specified asset. *

* * @param deleteTimeSeriesDataPointsRequest * @return Result of the DeleteTimeSeriesDataPoints operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DeleteTimeSeriesDataPoints * @see AWS API Documentation */ @Override public DeleteTimeSeriesDataPointsResult deleteTimeSeriesDataPoints(DeleteTimeSeriesDataPointsRequest request) { request = beforeClientExecution(request); return executeDeleteTimeSeriesDataPoints(request); } @SdkInternalApi final DeleteTimeSeriesDataPointsResult executeDeleteTimeSeriesDataPoints(DeleteTimeSeriesDataPointsRequest deleteTimeSeriesDataPointsRequest) { ExecutionContext executionContext = createExecutionContext(deleteTimeSeriesDataPointsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTimeSeriesDataPointsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteTimeSeriesDataPointsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTimeSeriesDataPoints"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTimeSeriesDataPointsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Disassociates the environment role in Amazon DataZone. *

* * @param disassociateEnvironmentRoleRequest * @return Result of the DisassociateEnvironmentRole operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.DisassociateEnvironmentRole * @see AWS API Documentation */ @Override public DisassociateEnvironmentRoleResult disassociateEnvironmentRole(DisassociateEnvironmentRoleRequest request) { request = beforeClientExecution(request); return executeDisassociateEnvironmentRole(request); } @SdkInternalApi final DisassociateEnvironmentRoleResult executeDisassociateEnvironmentRole(DisassociateEnvironmentRoleRequest disassociateEnvironmentRoleRequest) { ExecutionContext executionContext = createExecutionContext(disassociateEnvironmentRoleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateEnvironmentRoleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(disassociateEnvironmentRoleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateEnvironmentRole"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DisassociateEnvironmentRoleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone asset. *

* * @param getAssetRequest * @return Result of the GetAsset operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetAsset * @see AWS API * Documentation */ @Override public GetAssetResult getAsset(GetAssetRequest request) { request = beforeClientExecution(request); return executeGetAsset(request); } @SdkInternalApi final GetAssetResult executeGetAsset(GetAssetRequest getAssetRequest) { ExecutionContext executionContext = createExecutionContext(getAssetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetAssetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAssetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAsset"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAssetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an asset filter. *

* * @param getAssetFilterRequest * @return Result of the GetAssetFilter operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetAssetFilter * @see AWS API * Documentation */ @Override public GetAssetFilterResult getAssetFilter(GetAssetFilterRequest request) { request = beforeClientExecution(request); return executeGetAssetFilter(request); } @SdkInternalApi final GetAssetFilterResult executeGetAssetFilter(GetAssetFilterRequest getAssetFilterRequest) { ExecutionContext executionContext = createExecutionContext(getAssetFilterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetAssetFilterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAssetFilterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAssetFilter"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAssetFilterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone asset type. *

* * @param getAssetTypeRequest * @return Result of the GetAssetType operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetAssetType * @see AWS API * Documentation */ @Override public GetAssetTypeResult getAssetType(GetAssetTypeRequest request) { request = beforeClientExecution(request); return executeGetAssetType(request); } @SdkInternalApi final GetAssetTypeResult executeGetAssetType(GetAssetTypeRequest getAssetTypeRequest) { ExecutionContext executionContext = createExecutionContext(getAssetTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetAssetTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAssetTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAssetType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAssetTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone data source. *

* * @param getDataSourceRequest * @return Result of the GetDataSource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetDataSource * @see AWS API * Documentation */ @Override public GetDataSourceResult getDataSource(GetDataSourceRequest request) { request = beforeClientExecution(request); return executeGetDataSource(request); } @SdkInternalApi final GetDataSourceResult executeGetDataSource(GetDataSourceRequest getDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(getDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone data source run. *

* * @param getDataSourceRunRequest * @return Result of the GetDataSourceRun operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetDataSourceRun * @see AWS API * Documentation */ @Override public GetDataSourceRunResult getDataSourceRun(GetDataSourceRunRequest request) { request = beforeClientExecution(request); return executeGetDataSourceRun(request); } @SdkInternalApi final GetDataSourceRunResult executeGetDataSourceRun(GetDataSourceRunRequest getDataSourceRunRequest) { ExecutionContext executionContext = createExecutionContext(getDataSourceRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetDataSourceRunRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getDataSourceRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDataSourceRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetDataSourceRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone domain. *

* * @param getDomainRequest * @return Result of the GetDomain operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetDomain * @see AWS API * Documentation */ @Override public GetDomainResult getDomain(GetDomainRequest request) { request = beforeClientExecution(request); return executeGetDomain(request); } @SdkInternalApi final GetDomainResult executeGetDomain(GetDomainRequest getDomainRequest) { ExecutionContext executionContext = createExecutionContext(getDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone environment. *

* * @param getEnvironmentRequest * @return Result of the GetEnvironment operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetEnvironment * @see AWS API * Documentation */ @Override public GetEnvironmentResult getEnvironment(GetEnvironmentRequest request) { request = beforeClientExecution(request); return executeGetEnvironment(request); } @SdkInternalApi final GetEnvironmentResult executeGetEnvironment(GetEnvironmentRequest getEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(getEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetEnvironmentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEnvironmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the specified environment action. *

* * @param getEnvironmentActionRequest * @return Result of the GetEnvironmentAction operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetEnvironmentAction * @see AWS * API Documentation */ @Override public GetEnvironmentActionResult getEnvironmentAction(GetEnvironmentActionRequest request) { request = beforeClientExecution(request); return executeGetEnvironmentAction(request); } @SdkInternalApi final GetEnvironmentActionResult executeGetEnvironmentAction(GetEnvironmentActionRequest getEnvironmentActionRequest) { ExecutionContext executionContext = createExecutionContext(getEnvironmentActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetEnvironmentActionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getEnvironmentActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEnvironmentAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEnvironmentActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an Amazon DataZone blueprint. *

* * @param getEnvironmentBlueprintRequest * @return Result of the GetEnvironmentBlueprint operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetEnvironmentBlueprint * @see AWS API Documentation */ @Override public GetEnvironmentBlueprintResult getEnvironmentBlueprint(GetEnvironmentBlueprintRequest request) { request = beforeClientExecution(request); return executeGetEnvironmentBlueprint(request); } @SdkInternalApi final GetEnvironmentBlueprintResult executeGetEnvironmentBlueprint(GetEnvironmentBlueprintRequest getEnvironmentBlueprintRequest) { ExecutionContext executionContext = createExecutionContext(getEnvironmentBlueprintRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetEnvironmentBlueprintRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getEnvironmentBlueprintRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEnvironmentBlueprint"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEnvironmentBlueprintResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the blueprint configuration in Amazon DataZone. *

* * @param getEnvironmentBlueprintConfigurationRequest * @return Result of the GetEnvironmentBlueprintConfiguration operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetEnvironmentBlueprintConfiguration * @see AWS API Documentation */ @Override public GetEnvironmentBlueprintConfigurationResult getEnvironmentBlueprintConfiguration(GetEnvironmentBlueprintConfigurationRequest request) { request = beforeClientExecution(request); return executeGetEnvironmentBlueprintConfiguration(request); } @SdkInternalApi final GetEnvironmentBlueprintConfigurationResult executeGetEnvironmentBlueprintConfiguration( GetEnvironmentBlueprintConfigurationRequest getEnvironmentBlueprintConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(getEnvironmentBlueprintConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetEnvironmentBlueprintConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getEnvironmentBlueprintConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEnvironmentBlueprintConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEnvironmentBlueprintConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the credentials of an environment in Amazon DataZone. *

* * @param getEnvironmentCredentialsRequest * @return Result of the GetEnvironmentCredentials operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetEnvironmentCredentials * @see AWS API Documentation */ @Override public GetEnvironmentCredentialsResult getEnvironmentCredentials(GetEnvironmentCredentialsRequest request) { request = beforeClientExecution(request); return executeGetEnvironmentCredentials(request); } @SdkInternalApi final GetEnvironmentCredentialsResult executeGetEnvironmentCredentials(GetEnvironmentCredentialsRequest getEnvironmentCredentialsRequest) { ExecutionContext executionContext = createExecutionContext(getEnvironmentCredentialsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetEnvironmentCredentialsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getEnvironmentCredentialsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEnvironmentCredentials"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEnvironmentCredentialsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets an evinronment profile in Amazon DataZone. *

* * @param getEnvironmentProfileRequest * @return Result of the GetEnvironmentProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetEnvironmentProfile * @see AWS * API Documentation */ @Override public GetEnvironmentProfileResult getEnvironmentProfile(GetEnvironmentProfileRequest request) { request = beforeClientExecution(request); return executeGetEnvironmentProfile(request); } @SdkInternalApi final GetEnvironmentProfileResult executeGetEnvironmentProfile(GetEnvironmentProfileRequest getEnvironmentProfileRequest) { ExecutionContext executionContext = createExecutionContext(getEnvironmentProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetEnvironmentProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getEnvironmentProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEnvironmentProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEnvironmentProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a metadata form type in Amazon DataZone. *

* * @param getFormTypeRequest * @return Result of the GetFormType operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetFormType * @see AWS API * Documentation */ @Override public GetFormTypeResult getFormType(GetFormTypeRequest request) { request = beforeClientExecution(request); return executeGetFormType(request); } @SdkInternalApi final GetFormTypeResult executeGetFormType(GetFormTypeRequest getFormTypeRequest) { ExecutionContext executionContext = createExecutionContext(getFormTypeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetFormTypeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getFormTypeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetFormType"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetFormTypeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a business glossary in Amazon DataZone. *

* * @param getGlossaryRequest * @return Result of the GetGlossary operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetGlossary * @see AWS API * Documentation */ @Override public GetGlossaryResult getGlossary(GetGlossaryRequest request) { request = beforeClientExecution(request); return executeGetGlossary(request); } @SdkInternalApi final GetGlossaryResult executeGetGlossary(GetGlossaryRequest getGlossaryRequest) { ExecutionContext executionContext = createExecutionContext(getGlossaryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetGlossaryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getGlossaryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetGlossary"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetGlossaryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a business glossary term in Amazon DataZone. *

* * @param getGlossaryTermRequest * @return Result of the GetGlossaryTerm operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetGlossaryTerm * @see AWS API * Documentation */ @Override public GetGlossaryTermResult getGlossaryTerm(GetGlossaryTermRequest request) { request = beforeClientExecution(request); return executeGetGlossaryTerm(request); } @SdkInternalApi final GetGlossaryTermResult executeGetGlossaryTerm(GetGlossaryTermRequest getGlossaryTermRequest) { ExecutionContext executionContext = createExecutionContext(getGlossaryTermRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetGlossaryTermRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getGlossaryTermRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetGlossaryTerm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetGlossaryTermResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a group profile in Amazon DataZone. *

* * @param getGroupProfileRequest * @return Result of the GetGroupProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetGroupProfile * @see AWS API * Documentation */ @Override public GetGroupProfileResult getGroupProfile(GetGroupProfileRequest request) { request = beforeClientExecution(request); return executeGetGroupProfile(request); } @SdkInternalApi final GetGroupProfileResult executeGetGroupProfile(GetGroupProfileRequest getGroupProfileRequest) { ExecutionContext executionContext = createExecutionContext(getGroupProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetGroupProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getGroupProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetGroupProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetGroupProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the data portal URL for the specified Amazon DataZone domain. *

* * @param getIamPortalLoginUrlRequest * @return Result of the GetIamPortalLoginUrl operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetIamPortalLoginUrl * @see AWS * API Documentation */ @Override public GetIamPortalLoginUrlResult getIamPortalLoginUrl(GetIamPortalLoginUrlRequest request) { request = beforeClientExecution(request); return executeGetIamPortalLoginUrl(request); } @SdkInternalApi final GetIamPortalLoginUrlResult executeGetIamPortalLoginUrl(GetIamPortalLoginUrlRequest getIamPortalLoginUrlRequest) { ExecutionContext executionContext = createExecutionContext(getIamPortalLoginUrlRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetIamPortalLoginUrlRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getIamPortalLoginUrlRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetIamPortalLoginUrl"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetIamPortalLoginUrlResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the data lineage node. *

* * @param getLineageNodeRequest * @return Result of the GetLineageNode operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetLineageNode * @see AWS API * Documentation */ @Override public GetLineageNodeResult getLineageNode(GetLineageNodeRequest request) { request = beforeClientExecution(request); return executeGetLineageNode(request); } @SdkInternalApi final GetLineageNodeResult executeGetLineageNode(GetLineageNodeRequest getLineageNodeRequest) { ExecutionContext executionContext = createExecutionContext(getLineageNodeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetLineageNodeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getLineageNodeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetLineageNode"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetLineageNodeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a listing (a record of an asset at a given time). *

* * @param getListingRequest * @return Result of the GetListing operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetListing * @see AWS API * Documentation */ @Override public GetListingResult getListing(GetListingRequest request) { request = beforeClientExecution(request); return executeGetListing(request); } @SdkInternalApi final GetListingResult executeGetListing(GetListingRequest getListingRequest) { ExecutionContext executionContext = createExecutionContext(getListingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetListingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getListingRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetListing"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetListingResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a metadata generation run in Amazon DataZone. *

* * @param getMetadataGenerationRunRequest * @return Result of the GetMetadataGenerationRun operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetMetadataGenerationRun * @see AWS API Documentation */ @Override public GetMetadataGenerationRunResult getMetadataGenerationRun(GetMetadataGenerationRunRequest request) { request = beforeClientExecution(request); return executeGetMetadataGenerationRun(request); } @SdkInternalApi final GetMetadataGenerationRunResult executeGetMetadataGenerationRun(GetMetadataGenerationRunRequest getMetadataGenerationRunRequest) { ExecutionContext executionContext = createExecutionContext(getMetadataGenerationRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetMetadataGenerationRunRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getMetadataGenerationRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetMetadataGenerationRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetMetadataGenerationRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a project in Amazon DataZone. *

* * @param getProjectRequest * @return Result of the GetProject operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetProject * @see AWS API * Documentation */ @Override public GetProjectResult getProject(GetProjectRequest request) { request = beforeClientExecution(request); return executeGetProject(request); } @SdkInternalApi final GetProjectResult executeGetProject(GetProjectRequest getProjectRequest) { ExecutionContext executionContext = createExecutionContext(getProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a subscription in Amazon DataZone. *

* * @param getSubscriptionRequest * @return Result of the GetSubscription operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetSubscription * @see AWS API * Documentation */ @Override public GetSubscriptionResult getSubscription(GetSubscriptionRequest request) { request = beforeClientExecution(request); return executeGetSubscription(request); } @SdkInternalApi final GetSubscriptionResult executeGetSubscription(GetSubscriptionRequest getSubscriptionRequest) { ExecutionContext executionContext = createExecutionContext(getSubscriptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSubscriptionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getSubscriptionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSubscription"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSubscriptionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the subscription grant in Amazon DataZone. *

* * @param getSubscriptionGrantRequest * @return Result of the GetSubscriptionGrant operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetSubscriptionGrant * @see AWS * API Documentation */ @Override public GetSubscriptionGrantResult getSubscriptionGrant(GetSubscriptionGrantRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionGrant(request); } @SdkInternalApi final GetSubscriptionGrantResult executeGetSubscriptionGrant(GetSubscriptionGrantRequest getSubscriptionGrantRequest) { ExecutionContext executionContext = createExecutionContext(getSubscriptionGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSubscriptionGrantRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getSubscriptionGrantRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSubscriptionGrant"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSubscriptionGrantResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the details of the specified subscription request. *

* * @param getSubscriptionRequestDetailsRequest * @return Result of the GetSubscriptionRequestDetails operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetSubscriptionRequestDetails * @see AWS API Documentation */ @Override public GetSubscriptionRequestDetailsResult getSubscriptionRequestDetails(GetSubscriptionRequestDetailsRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionRequestDetails(request); } @SdkInternalApi final GetSubscriptionRequestDetailsResult executeGetSubscriptionRequestDetails(GetSubscriptionRequestDetailsRequest getSubscriptionRequestDetailsRequest) { ExecutionContext executionContext = createExecutionContext(getSubscriptionRequestDetailsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSubscriptionRequestDetailsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getSubscriptionRequestDetailsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSubscriptionRequestDetails"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSubscriptionRequestDetailsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the subscription target in Amazon DataZone. *

* * @param getSubscriptionTargetRequest * @return Result of the GetSubscriptionTarget operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetSubscriptionTarget * @see AWS * API Documentation */ @Override public GetSubscriptionTargetResult getSubscriptionTarget(GetSubscriptionTargetRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionTarget(request); } @SdkInternalApi final GetSubscriptionTargetResult executeGetSubscriptionTarget(GetSubscriptionTargetRequest getSubscriptionTargetRequest) { ExecutionContext executionContext = createExecutionContext(getSubscriptionTargetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSubscriptionTargetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getSubscriptionTargetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSubscriptionTarget"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSubscriptionTargetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the existing data point for the asset. *

* * @param getTimeSeriesDataPointRequest * @return Result of the GetTimeSeriesDataPoint operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetTimeSeriesDataPoint * @see AWS API Documentation */ @Override public GetTimeSeriesDataPointResult getTimeSeriesDataPoint(GetTimeSeriesDataPointRequest request) { request = beforeClientExecution(request); return executeGetTimeSeriesDataPoint(request); } @SdkInternalApi final GetTimeSeriesDataPointResult executeGetTimeSeriesDataPoint(GetTimeSeriesDataPointRequest getTimeSeriesDataPointRequest) { ExecutionContext executionContext = createExecutionContext(getTimeSeriesDataPointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetTimeSeriesDataPointRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getTimeSeriesDataPointRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetTimeSeriesDataPoint"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetTimeSeriesDataPointResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a user profile in Amazon DataZone. *

* * @param getUserProfileRequest * @return Result of the GetUserProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.GetUserProfile * @see AWS API * Documentation */ @Override public GetUserProfileResult getUserProfile(GetUserProfileRequest request) { request = beforeClientExecution(request); return executeGetUserProfile(request); } @SdkInternalApi final GetUserProfileResult executeGetUserProfile(GetUserProfileRequest getUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(getUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists asset filters. *

* * @param listAssetFiltersRequest * @return Result of the ListAssetFilters operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListAssetFilters * @see AWS API * Documentation */ @Override public ListAssetFiltersResult listAssetFilters(ListAssetFiltersRequest request) { request = beforeClientExecution(request); return executeListAssetFilters(request); } @SdkInternalApi final ListAssetFiltersResult executeListAssetFilters(ListAssetFiltersRequest listAssetFiltersRequest) { ExecutionContext executionContext = createExecutionContext(listAssetFiltersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAssetFiltersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAssetFiltersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAssetFilters"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAssetFiltersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the revisions for the asset. *

* * @param listAssetRevisionsRequest * @return Result of the ListAssetRevisions operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListAssetRevisions * @see AWS * API Documentation */ @Override public ListAssetRevisionsResult listAssetRevisions(ListAssetRevisionsRequest request) { request = beforeClientExecution(request); return executeListAssetRevisions(request); } @SdkInternalApi final ListAssetRevisionsResult executeListAssetRevisions(ListAssetRevisionsRequest listAssetRevisionsRequest) { ExecutionContext executionContext = createExecutionContext(listAssetRevisionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAssetRevisionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAssetRevisionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAssetRevisions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAssetRevisionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists data source run activities. *

* * @param listDataSourceRunActivitiesRequest * @return Result of the ListDataSourceRunActivities operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListDataSourceRunActivities * @see AWS API Documentation */ @Override public ListDataSourceRunActivitiesResult listDataSourceRunActivities(ListDataSourceRunActivitiesRequest request) { request = beforeClientExecution(request); return executeListDataSourceRunActivities(request); } @SdkInternalApi final ListDataSourceRunActivitiesResult executeListDataSourceRunActivities(ListDataSourceRunActivitiesRequest listDataSourceRunActivitiesRequest) { ExecutionContext executionContext = createExecutionContext(listDataSourceRunActivitiesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDataSourceRunActivitiesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listDataSourceRunActivitiesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDataSourceRunActivities"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDataSourceRunActivitiesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists data source runs in Amazon DataZone. *

* * @param listDataSourceRunsRequest * @return Result of the ListDataSourceRuns operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListDataSourceRuns * @see AWS * API Documentation */ @Override public ListDataSourceRunsResult listDataSourceRuns(ListDataSourceRunsRequest request) { request = beforeClientExecution(request); return executeListDataSourceRuns(request); } @SdkInternalApi final ListDataSourceRunsResult executeListDataSourceRuns(ListDataSourceRunsRequest listDataSourceRunsRequest) { ExecutionContext executionContext = createExecutionContext(listDataSourceRunsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDataSourceRunsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDataSourceRunsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDataSourceRuns"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDataSourceRunsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists data sources in Amazon DataZone. *

* * @param listDataSourcesRequest * @return Result of the ListDataSources operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListDataSources * @see AWS API * Documentation */ @Override public ListDataSourcesResult listDataSources(ListDataSourcesRequest request) { request = beforeClientExecution(request); return executeListDataSources(request); } @SdkInternalApi final ListDataSourcesResult executeListDataSources(ListDataSourcesRequest listDataSourcesRequest) { ExecutionContext executionContext = createExecutionContext(listDataSourcesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDataSourcesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDataSourcesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDataSources"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDataSourcesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon DataZone domains. *

* * @param listDomainsRequest * @return Result of the ListDomains operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListDomains * @see AWS API * Documentation */ @Override public ListDomainsResult listDomains(ListDomainsRequest request) { request = beforeClientExecution(request); return executeListDomains(request); } @SdkInternalApi final ListDomainsResult executeListDomains(ListDomainsRequest listDomainsRequest) { ExecutionContext executionContext = createExecutionContext(listDomainsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDomainsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDomainsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDomains"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDomainsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists existing environment actions. *

* * @param listEnvironmentActionsRequest * @return Result of the ListEnvironmentActions operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListEnvironmentActions * @see AWS API Documentation */ @Override public ListEnvironmentActionsResult listEnvironmentActions(ListEnvironmentActionsRequest request) { request = beforeClientExecution(request); return executeListEnvironmentActions(request); } @SdkInternalApi final ListEnvironmentActionsResult executeListEnvironmentActions(ListEnvironmentActionsRequest listEnvironmentActionsRequest) { ExecutionContext executionContext = createExecutionContext(listEnvironmentActionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEnvironmentActionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listEnvironmentActionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEnvironmentActions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEnvironmentActionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists blueprint configurations for a Amazon DataZone environment. *

* * @param listEnvironmentBlueprintConfigurationsRequest * @return Result of the ListEnvironmentBlueprintConfigurations operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListEnvironmentBlueprintConfigurations * @see AWS API Documentation */ @Override public ListEnvironmentBlueprintConfigurationsResult listEnvironmentBlueprintConfigurations(ListEnvironmentBlueprintConfigurationsRequest request) { request = beforeClientExecution(request); return executeListEnvironmentBlueprintConfigurations(request); } @SdkInternalApi final ListEnvironmentBlueprintConfigurationsResult executeListEnvironmentBlueprintConfigurations( ListEnvironmentBlueprintConfigurationsRequest listEnvironmentBlueprintConfigurationsRequest) { ExecutionContext executionContext = createExecutionContext(listEnvironmentBlueprintConfigurationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEnvironmentBlueprintConfigurationsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listEnvironmentBlueprintConfigurationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEnvironmentBlueprintConfigurations"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEnvironmentBlueprintConfigurationsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists blueprints in an Amazon DataZone environment. *

* * @param listEnvironmentBlueprintsRequest * @return Result of the ListEnvironmentBlueprints operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListEnvironmentBlueprints * @see AWS API Documentation */ @Override public ListEnvironmentBlueprintsResult listEnvironmentBlueprints(ListEnvironmentBlueprintsRequest request) { request = beforeClientExecution(request); return executeListEnvironmentBlueprints(request); } @SdkInternalApi final ListEnvironmentBlueprintsResult executeListEnvironmentBlueprints(ListEnvironmentBlueprintsRequest listEnvironmentBlueprintsRequest) { ExecutionContext executionContext = createExecutionContext(listEnvironmentBlueprintsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEnvironmentBlueprintsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listEnvironmentBlueprintsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEnvironmentBlueprints"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEnvironmentBlueprintsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon DataZone environment profiles. *

* * @param listEnvironmentProfilesRequest * @return Result of the ListEnvironmentProfiles operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListEnvironmentProfiles * @see AWS API Documentation */ @Override public ListEnvironmentProfilesResult listEnvironmentProfiles(ListEnvironmentProfilesRequest request) { request = beforeClientExecution(request); return executeListEnvironmentProfiles(request); } @SdkInternalApi final ListEnvironmentProfilesResult executeListEnvironmentProfiles(ListEnvironmentProfilesRequest listEnvironmentProfilesRequest) { ExecutionContext executionContext = createExecutionContext(listEnvironmentProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEnvironmentProfilesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listEnvironmentProfilesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEnvironmentProfiles"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEnvironmentProfilesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon DataZone environments. *

* * @param listEnvironmentsRequest * @return Result of the ListEnvironments operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListEnvironments * @see AWS API * Documentation */ @Override public ListEnvironmentsResult listEnvironments(ListEnvironmentsRequest request) { request = beforeClientExecution(request); return executeListEnvironments(request); } @SdkInternalApi final ListEnvironmentsResult executeListEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) { ExecutionContext executionContext = createExecutionContext(listEnvironmentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEnvironmentsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listEnvironmentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEnvironments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEnvironmentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the history of the specified data lineage node. *

* * @param listLineageNodeHistoryRequest * @return Result of the ListLineageNodeHistory operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListLineageNodeHistory * @see AWS API Documentation */ @Override public ListLineageNodeHistoryResult listLineageNodeHistory(ListLineageNodeHistoryRequest request) { request = beforeClientExecution(request); return executeListLineageNodeHistory(request); } @SdkInternalApi final ListLineageNodeHistoryResult executeListLineageNodeHistory(ListLineageNodeHistoryRequest listLineageNodeHistoryRequest) { ExecutionContext executionContext = createExecutionContext(listLineageNodeHistoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListLineageNodeHistoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listLineageNodeHistoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListLineageNodeHistory"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListLineageNodeHistoryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all metadata generation runs. *

* * @param listMetadataGenerationRunsRequest * @return Result of the ListMetadataGenerationRuns operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListMetadataGenerationRuns * @see AWS API Documentation */ @Override public ListMetadataGenerationRunsResult listMetadataGenerationRuns(ListMetadataGenerationRunsRequest request) { request = beforeClientExecution(request); return executeListMetadataGenerationRuns(request); } @SdkInternalApi final ListMetadataGenerationRunsResult executeListMetadataGenerationRuns(ListMetadataGenerationRunsRequest listMetadataGenerationRunsRequest) { ExecutionContext executionContext = createExecutionContext(listMetadataGenerationRunsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMetadataGenerationRunsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listMetadataGenerationRunsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMetadataGenerationRuns"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMetadataGenerationRunsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all Amazon DataZone notifications. *

* * @param listNotificationsRequest * @return Result of the ListNotifications operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListNotifications * @see AWS API * Documentation */ @Override public ListNotificationsResult listNotifications(ListNotificationsRequest request) { request = beforeClientExecution(request); return executeListNotifications(request); } @SdkInternalApi final ListNotificationsResult executeListNotifications(ListNotificationsRequest listNotificationsRequest) { ExecutionContext executionContext = createExecutionContext(listNotificationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListNotificationsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listNotificationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListNotifications"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListNotificationsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all members of the specified project. *

* * @param listProjectMembershipsRequest * @return Result of the ListProjectMemberships operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListProjectMemberships * @see AWS API Documentation */ @Override public ListProjectMembershipsResult listProjectMemberships(ListProjectMembershipsRequest request) { request = beforeClientExecution(request); return executeListProjectMemberships(request); } @SdkInternalApi final ListProjectMembershipsResult executeListProjectMemberships(ListProjectMembershipsRequest listProjectMembershipsRequest) { ExecutionContext executionContext = createExecutionContext(listProjectMembershipsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListProjectMembershipsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listProjectMembershipsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListProjectMemberships"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListProjectMembershipsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon DataZone projects. *

* * @param listProjectsRequest * @return Result of the ListProjects operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListProjects * @see AWS API * Documentation */ @Override public ListProjectsResult listProjects(ListProjectsRequest request) { request = beforeClientExecution(request); return executeListProjects(request); } @SdkInternalApi final ListProjectsResult executeListProjects(ListProjectsRequest listProjectsRequest) { ExecutionContext executionContext = createExecutionContext(listProjectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListProjectsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listProjectsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListProjects"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListProjectsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists subscription grants. *

* * @param listSubscriptionGrantsRequest * @return Result of the ListSubscriptionGrants operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListSubscriptionGrants * @see AWS API Documentation */ @Override public ListSubscriptionGrantsResult listSubscriptionGrants(ListSubscriptionGrantsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionGrants(request); } @SdkInternalApi final ListSubscriptionGrantsResult executeListSubscriptionGrants(ListSubscriptionGrantsRequest listSubscriptionGrantsRequest) { ExecutionContext executionContext = createExecutionContext(listSubscriptionGrantsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSubscriptionGrantsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listSubscriptionGrantsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSubscriptionGrants"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSubscriptionGrantsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon DataZone subscription requests. *

* * @param listSubscriptionRequestsRequest * @return Result of the ListSubscriptionRequests operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListSubscriptionRequests * @see AWS API Documentation */ @Override public ListSubscriptionRequestsResult listSubscriptionRequests(ListSubscriptionRequestsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionRequests(request); } @SdkInternalApi final ListSubscriptionRequestsResult executeListSubscriptionRequests(ListSubscriptionRequestsRequest listSubscriptionRequestsRequest) { ExecutionContext executionContext = createExecutionContext(listSubscriptionRequestsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSubscriptionRequestsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listSubscriptionRequestsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSubscriptionRequests"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSubscriptionRequestsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists subscription targets in Amazon DataZone. *

* * @param listSubscriptionTargetsRequest * @return Result of the ListSubscriptionTargets operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListSubscriptionTargets * @see AWS API Documentation */ @Override public ListSubscriptionTargetsResult listSubscriptionTargets(ListSubscriptionTargetsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionTargets(request); } @SdkInternalApi final ListSubscriptionTargetsResult executeListSubscriptionTargets(ListSubscriptionTargetsRequest listSubscriptionTargetsRequest) { ExecutionContext executionContext = createExecutionContext(listSubscriptionTargetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSubscriptionTargetsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listSubscriptionTargetsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSubscriptionTargets"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSubscriptionTargetsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists subscriptions in Amazon DataZone. *

* * @param listSubscriptionsRequest * @return Result of the ListSubscriptions operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListSubscriptions * @see AWS API * Documentation */ @Override public ListSubscriptionsResult listSubscriptions(ListSubscriptionsRequest request) { request = beforeClientExecution(request); return executeListSubscriptions(request); } @SdkInternalApi final ListSubscriptionsResult executeListSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) { ExecutionContext executionContext = createExecutionContext(listSubscriptionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSubscriptionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listSubscriptionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSubscriptions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSubscriptionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists tags for the specified resource in Amazon DataZone. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListTagsForResource * @see AWS * API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists time series data points. *

* * @param listTimeSeriesDataPointsRequest * @return Result of the ListTimeSeriesDataPoints operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.ListTimeSeriesDataPoints * @see AWS API Documentation */ @Override public ListTimeSeriesDataPointsResult listTimeSeriesDataPoints(ListTimeSeriesDataPointsRequest request) { request = beforeClientExecution(request); return executeListTimeSeriesDataPoints(request); } @SdkInternalApi final ListTimeSeriesDataPointsResult executeListTimeSeriesDataPoints(ListTimeSeriesDataPointsRequest listTimeSeriesDataPointsRequest) { ExecutionContext executionContext = createExecutionContext(listTimeSeriesDataPointsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTimeSeriesDataPointsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listTimeSeriesDataPointsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTimeSeriesDataPoints"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTimeSeriesDataPointsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Posts a data lineage event. *

* * @param postLineageEventRequest * @return Result of the PostLineageEvent operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.PostLineageEvent * @see AWS API * Documentation */ @Override public PostLineageEventResult postLineageEvent(PostLineageEventRequest request) { request = beforeClientExecution(request); return executePostLineageEvent(request); } @SdkInternalApi final PostLineageEventResult executePostLineageEvent(PostLineageEventRequest postLineageEventRequest) { ExecutionContext executionContext = createExecutionContext(postLineageEventRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PostLineageEventRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(postLineageEventRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PostLineageEvent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PostLineageEventResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Posts time series data points to Amazon DataZone for the specified asset. *

* * @param postTimeSeriesDataPointsRequest * @return Result of the PostTimeSeriesDataPoints operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.PostTimeSeriesDataPoints * @see AWS API Documentation */ @Override public PostTimeSeriesDataPointsResult postTimeSeriesDataPoints(PostTimeSeriesDataPointsRequest request) { request = beforeClientExecution(request); return executePostTimeSeriesDataPoints(request); } @SdkInternalApi final PostTimeSeriesDataPointsResult executePostTimeSeriesDataPoints(PostTimeSeriesDataPointsRequest postTimeSeriesDataPointsRequest) { ExecutionContext executionContext = createExecutionContext(postTimeSeriesDataPointsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PostTimeSeriesDataPointsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(postTimeSeriesDataPointsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PostTimeSeriesDataPoints"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PostTimeSeriesDataPointsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Writes the configuration for the specified environment blueprint in Amazon DataZone. *

* * @param putEnvironmentBlueprintConfigurationRequest * @return Result of the PutEnvironmentBlueprintConfiguration operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.PutEnvironmentBlueprintConfiguration * @see AWS API Documentation */ @Override public PutEnvironmentBlueprintConfigurationResult putEnvironmentBlueprintConfiguration(PutEnvironmentBlueprintConfigurationRequest request) { request = beforeClientExecution(request); return executePutEnvironmentBlueprintConfiguration(request); } @SdkInternalApi final PutEnvironmentBlueprintConfigurationResult executePutEnvironmentBlueprintConfiguration( PutEnvironmentBlueprintConfigurationRequest putEnvironmentBlueprintConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(putEnvironmentBlueprintConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PutEnvironmentBlueprintConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(putEnvironmentBlueprintConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutEnvironmentBlueprintConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutEnvironmentBlueprintConfigurationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Rejects automatically generated business-friendly metadata for your Amazon DataZone assets. *

* * @param rejectPredictionsRequest * @return Result of the RejectPredictions operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.RejectPredictions * @see AWS API * Documentation */ @Override public RejectPredictionsResult rejectPredictions(RejectPredictionsRequest request) { request = beforeClientExecution(request); return executeRejectPredictions(request); } @SdkInternalApi final RejectPredictionsResult executeRejectPredictions(RejectPredictionsRequest rejectPredictionsRequest) { ExecutionContext executionContext = createExecutionContext(rejectPredictionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RejectPredictionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(rejectPredictionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RejectPredictions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RejectPredictionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Rejects the specified subscription request. *

* * @param rejectSubscriptionRequestRequest * @return Result of the RejectSubscriptionRequest operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.RejectSubscriptionRequest * @see AWS API Documentation */ @Override public RejectSubscriptionRequestResult rejectSubscriptionRequest(RejectSubscriptionRequestRequest request) { request = beforeClientExecution(request); return executeRejectSubscriptionRequest(request); } @SdkInternalApi final RejectSubscriptionRequestResult executeRejectSubscriptionRequest(RejectSubscriptionRequestRequest rejectSubscriptionRequestRequest) { ExecutionContext executionContext = createExecutionContext(rejectSubscriptionRequestRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RejectSubscriptionRequestRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(rejectSubscriptionRequestRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RejectSubscriptionRequest"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RejectSubscriptionRequestResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Revokes a specified subscription in Amazon DataZone. *

* * @param revokeSubscriptionRequest * @return Result of the RevokeSubscription operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.RevokeSubscription * @see AWS * API Documentation */ @Override public RevokeSubscriptionResult revokeSubscription(RevokeSubscriptionRequest request) { request = beforeClientExecution(request); return executeRevokeSubscription(request); } @SdkInternalApi final RevokeSubscriptionResult executeRevokeSubscription(RevokeSubscriptionRequest revokeSubscriptionRequest) { ExecutionContext executionContext = createExecutionContext(revokeSubscriptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RevokeSubscriptionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(revokeSubscriptionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RevokeSubscription"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RevokeSubscriptionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches for assets in Amazon DataZone. *

* * @param searchRequest * @return Result of the Search operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.Search * @see AWS API * Documentation */ @Override public SearchResult search(SearchRequest request) { request = beforeClientExecution(request); return executeSearch(request); } @SdkInternalApi final SearchResult executeSearch(SearchRequest searchRequest) { ExecutionContext executionContext = createExecutionContext(searchRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "Search"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches group profiles in Amazon DataZone. *

* * @param searchGroupProfilesRequest * @return Result of the SearchGroupProfiles operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.SearchGroupProfiles * @see AWS * API Documentation */ @Override public SearchGroupProfilesResult searchGroupProfiles(SearchGroupProfilesRequest request) { request = beforeClientExecution(request); return executeSearchGroupProfiles(request); } @SdkInternalApi final SearchGroupProfilesResult executeSearchGroupProfiles(SearchGroupProfilesRequest searchGroupProfilesRequest) { ExecutionContext executionContext = createExecutionContext(searchGroupProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchGroupProfilesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchGroupProfilesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchGroupProfiles"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchGroupProfilesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches listings (records of an asset at a given time) in Amazon DataZone. *

* * @param searchListingsRequest * @return Result of the SearchListings operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.SearchListings * @see AWS API * Documentation */ @Override public SearchListingsResult searchListings(SearchListingsRequest request) { request = beforeClientExecution(request); return executeSearchListings(request); } @SdkInternalApi final SearchListingsResult executeSearchListings(SearchListingsRequest searchListingsRequest) { ExecutionContext executionContext = createExecutionContext(searchListingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchListingsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchListingsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchListings"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchListingsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches for types in Amazon DataZone. *

* * @param searchTypesRequest * @return Result of the SearchTypes operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.SearchTypes * @see AWS API * Documentation */ @Override public SearchTypesResult searchTypes(SearchTypesRequest request) { request = beforeClientExecution(request); return executeSearchTypes(request); } @SdkInternalApi final SearchTypesResult executeSearchTypes(SearchTypesRequest searchTypesRequest) { ExecutionContext executionContext = createExecutionContext(searchTypesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchTypesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchTypesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchTypes"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchTypesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches user profiles in Amazon DataZone. *

* * @param searchUserProfilesRequest * @return Result of the SearchUserProfiles operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.SearchUserProfiles * @see AWS * API Documentation */ @Override public SearchUserProfilesResult searchUserProfiles(SearchUserProfilesRequest request) { request = beforeClientExecution(request); return executeSearchUserProfiles(request); } @SdkInternalApi final SearchUserProfilesResult executeSearchUserProfiles(SearchUserProfilesRequest searchUserProfilesRequest) { ExecutionContext executionContext = createExecutionContext(searchUserProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchUserProfilesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchUserProfilesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchUserProfiles"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchUserProfilesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Start the run of the specified data source in Amazon DataZone. *

* * @param startDataSourceRunRequest * @return Result of the StartDataSourceRun operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.StartDataSourceRun * @see AWS * API Documentation */ @Override public StartDataSourceRunResult startDataSourceRun(StartDataSourceRunRequest request) { request = beforeClientExecution(request); return executeStartDataSourceRun(request); } @SdkInternalApi final StartDataSourceRunResult executeStartDataSourceRun(StartDataSourceRunRequest startDataSourceRunRequest) { ExecutionContext executionContext = createExecutionContext(startDataSourceRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartDataSourceRunRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startDataSourceRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartDataSourceRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartDataSourceRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts the metadata generation run. *

* * @param startMetadataGenerationRunRequest * @return Result of the StartMetadataGenerationRun operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.StartMetadataGenerationRun * @see AWS API Documentation */ @Override public StartMetadataGenerationRunResult startMetadataGenerationRun(StartMetadataGenerationRunRequest request) { request = beforeClientExecution(request); return executeStartMetadataGenerationRun(request); } @SdkInternalApi final StartMetadataGenerationRunResult executeStartMetadataGenerationRun(StartMetadataGenerationRunRequest startMetadataGenerationRunRequest) { ExecutionContext executionContext = createExecutionContext(startMetadataGenerationRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartMetadataGenerationRunRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startMetadataGenerationRunRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartMetadataGenerationRun"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartMetadataGenerationRunResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Tags a resource in Amazon DataZone. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.TagResource * @see AWS API * Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Untags a resource in Amazon DataZone. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UntagResource * @see AWS API * Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an asset filter. *

* * @param updateAssetFilterRequest * @return Result of the UpdateAssetFilter operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateAssetFilter * @see AWS API * Documentation */ @Override public UpdateAssetFilterResult updateAssetFilter(UpdateAssetFilterRequest request) { request = beforeClientExecution(request); return executeUpdateAssetFilter(request); } @SdkInternalApi final UpdateAssetFilterResult executeUpdateAssetFilter(UpdateAssetFilterRequest updateAssetFilterRequest) { ExecutionContext executionContext = createExecutionContext(updateAssetFilterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAssetFilterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateAssetFilterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAssetFilter"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAssetFilterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified data source in Amazon DataZone. *

* * @param updateDataSourceRequest * @return Result of the UpdateDataSource operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateDataSource * @see AWS API * Documentation */ @Override public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request) { request = beforeClientExecution(request); return executeUpdateDataSource(request); } @SdkInternalApi final UpdateDataSourceResult executeUpdateDataSource(UpdateDataSourceRequest updateDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(updateDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a Amazon DataZone domain. *

* * @param updateDomainRequest * @return Result of the UpdateDomain operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateDomain * @see AWS API * Documentation */ @Override public UpdateDomainResult updateDomain(UpdateDomainRequest request) { request = beforeClientExecution(request); return executeUpdateDomain(request); } @SdkInternalApi final UpdateDomainResult executeUpdateDomain(UpdateDomainRequest updateDomainRequest) { ExecutionContext executionContext = createExecutionContext(updateDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified environment in Amazon DataZone. *

* * @param updateEnvironmentRequest * @return Result of the UpdateEnvironment operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateEnvironment * @see AWS API * Documentation */ @Override public UpdateEnvironmentResult updateEnvironment(UpdateEnvironmentRequest request) { request = beforeClientExecution(request); return executeUpdateEnvironment(request); } @SdkInternalApi final UpdateEnvironmentResult executeUpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(updateEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEnvironmentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateEnvironmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an environment action. *

* * @param updateEnvironmentActionRequest * @return Result of the UpdateEnvironmentAction operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateEnvironmentAction * @see AWS API Documentation */ @Override public UpdateEnvironmentActionResult updateEnvironmentAction(UpdateEnvironmentActionRequest request) { request = beforeClientExecution(request); return executeUpdateEnvironmentAction(request); } @SdkInternalApi final UpdateEnvironmentActionResult executeUpdateEnvironmentAction(UpdateEnvironmentActionRequest updateEnvironmentActionRequest) { ExecutionContext executionContext = createExecutionContext(updateEnvironmentActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEnvironmentActionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateEnvironmentActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEnvironmentAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateEnvironmentActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified environment profile in Amazon DataZone. *

* * @param updateEnvironmentProfileRequest * @return Result of the UpdateEnvironmentProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateEnvironmentProfile * @see AWS API Documentation */ @Override public UpdateEnvironmentProfileResult updateEnvironmentProfile(UpdateEnvironmentProfileRequest request) { request = beforeClientExecution(request); return executeUpdateEnvironmentProfile(request); } @SdkInternalApi final UpdateEnvironmentProfileResult executeUpdateEnvironmentProfile(UpdateEnvironmentProfileRequest updateEnvironmentProfileRequest) { ExecutionContext executionContext = createExecutionContext(updateEnvironmentProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEnvironmentProfileRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateEnvironmentProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEnvironmentProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateEnvironmentProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the business glossary in Amazon DataZone. *

* * @param updateGlossaryRequest * @return Result of the UpdateGlossary operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateGlossary * @see AWS API * Documentation */ @Override public UpdateGlossaryResult updateGlossary(UpdateGlossaryRequest request) { request = beforeClientExecution(request); return executeUpdateGlossary(request); } @SdkInternalApi final UpdateGlossaryResult executeUpdateGlossary(UpdateGlossaryRequest updateGlossaryRequest) { ExecutionContext executionContext = createExecutionContext(updateGlossaryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateGlossaryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateGlossaryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateGlossary"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateGlossaryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a business glossary term in Amazon DataZone. *

* * @param updateGlossaryTermRequest * @return Result of the UpdateGlossaryTerm operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateGlossaryTerm * @see AWS * API Documentation */ @Override public UpdateGlossaryTermResult updateGlossaryTerm(UpdateGlossaryTermRequest request) { request = beforeClientExecution(request); return executeUpdateGlossaryTerm(request); } @SdkInternalApi final UpdateGlossaryTermResult executeUpdateGlossaryTerm(UpdateGlossaryTermRequest updateGlossaryTermRequest) { ExecutionContext executionContext = createExecutionContext(updateGlossaryTermRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateGlossaryTermRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateGlossaryTermRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateGlossaryTerm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateGlossaryTermResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified group profile in Amazon DataZone. *

* * @param updateGroupProfileRequest * @return Result of the UpdateGroupProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateGroupProfile * @see AWS * API Documentation */ @Override public UpdateGroupProfileResult updateGroupProfile(UpdateGroupProfileRequest request) { request = beforeClientExecution(request); return executeUpdateGroupProfile(request); } @SdkInternalApi final UpdateGroupProfileResult executeUpdateGroupProfile(UpdateGroupProfileRequest updateGroupProfileRequest) { ExecutionContext executionContext = createExecutionContext(updateGroupProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateGroupProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateGroupProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateGroupProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateGroupProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified project in Amazon DataZone. *

* * @param updateProjectRequest * @return Result of the UpdateProject operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The request has exceeded the specified service quota. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateProject * @see AWS API * Documentation */ @Override public UpdateProjectResult updateProject(UpdateProjectRequest request) { request = beforeClientExecution(request); return executeUpdateProject(request); } @SdkInternalApi final UpdateProjectResult executeUpdateProject(UpdateProjectRequest updateProjectRequest) { ExecutionContext executionContext = createExecutionContext(updateProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the status of the specified subscription grant status in Amazon DataZone. *

* * @param updateSubscriptionGrantStatusRequest * @return Result of the UpdateSubscriptionGrantStatus operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateSubscriptionGrantStatus * @see AWS API Documentation */ @Override public UpdateSubscriptionGrantStatusResult updateSubscriptionGrantStatus(UpdateSubscriptionGrantStatusRequest request) { request = beforeClientExecution(request); return executeUpdateSubscriptionGrantStatus(request); } @SdkInternalApi final UpdateSubscriptionGrantStatusResult executeUpdateSubscriptionGrantStatus(UpdateSubscriptionGrantStatusRequest updateSubscriptionGrantStatusRequest) { ExecutionContext executionContext = createExecutionContext(updateSubscriptionGrantStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateSubscriptionGrantStatusRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateSubscriptionGrantStatusRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateSubscriptionGrantStatus"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateSubscriptionGrantStatusResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a specified subscription request in Amazon DataZone. *

* * @param updateSubscriptionRequestRequest * @return Result of the UpdateSubscriptionRequest operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateSubscriptionRequest * @see AWS API Documentation */ @Override public UpdateSubscriptionRequestResult updateSubscriptionRequest(UpdateSubscriptionRequestRequest request) { request = beforeClientExecution(request); return executeUpdateSubscriptionRequest(request); } @SdkInternalApi final UpdateSubscriptionRequestResult executeUpdateSubscriptionRequest(UpdateSubscriptionRequestRequest updateSubscriptionRequestRequest) { ExecutionContext executionContext = createExecutionContext(updateSubscriptionRequestRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateSubscriptionRequestRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateSubscriptionRequestRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateSubscriptionRequest"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateSubscriptionRequestResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified subscription target in Amazon DataZone. *

* * @param updateSubscriptionTargetRequest * @return Result of the UpdateSubscriptionTarget operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ConflictException * There is a conflict while performing this action. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateSubscriptionTarget * @see AWS API Documentation */ @Override public UpdateSubscriptionTargetResult updateSubscriptionTarget(UpdateSubscriptionTargetRequest request) { request = beforeClientExecution(request); return executeUpdateSubscriptionTarget(request); } @SdkInternalApi final UpdateSubscriptionTargetResult executeUpdateSubscriptionTarget(UpdateSubscriptionTargetRequest updateSubscriptionTargetRequest) { ExecutionContext executionContext = createExecutionContext(updateSubscriptionTargetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateSubscriptionTargetRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateSubscriptionTargetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateSubscriptionTarget"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateSubscriptionTargetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified user profile in Amazon DataZone. *

* * @param updateUserProfileRequest * @return Result of the UpdateUserProfile operation returned by the service. * @throws InternalServerException * The request has failed because of an unknown error, exception or failure. * @throws ResourceNotFoundException * The specified resource cannot be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by the Amazon Web Services service. * @throws UnauthorizedException * You do not have permission to perform this action. * @sample AmazonDataZone.UpdateUserProfile * @see AWS API * Documentation */ @Override public UpdateUserProfileResult updateUserProfile(UpdateUserProfileRequest request) { request = beforeClientExecution(request); return executeUpdateUserProfile(request); } @SdkInternalApi final UpdateUserProfileResult executeUpdateUserProfile(UpdateUserProfileRequest updateUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(updateUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "DataZone"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** * Returns additional metadata for a previously executed successful, request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing the request. * * @param request * The originally executed request * * @return The response metadata for the specified request, or null if none is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider)); return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait); } /** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private Response anonymousInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); } /** * Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the * ExecutionContext beforehand. **/ private Response doInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) { if (discoveredEndpoint != null) { request.setEndpoint(discoveredEndpoint); request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery"); } else if (uriFromEndpointTrait != null) { request.setEndpoint(uriFromEndpointTrait); } else { request.setEndpoint(endpoint); } request.setTimeOffset(timeOffset); HttpResponseHandler errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata()); return client.execute(request, responseHandler, errorResponseHandler, executionContext); } @com.amazonaws.annotation.SdkInternalApi static com.amazonaws.protocol.json.SdkJsonProtocolFactory getProtocolFactory() { return protocolFactory; } @Override public void shutdown() { super.shutdown(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy