/* * Copyright 2018-2023 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.servermigration; 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.servermigration.AWSServerMigrationClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.servermigration.model.*; import com.amazonaws.services.servermigration.model.transform.*; /** * Client for accessing SMS. All service calls made using this client are blocking, and will not return until the * service call completes. *
*
* Product update
*
* We recommend Amazon Web Services Application Migration
* Service (Amazon Web Services MGN) as the primary migration service for lift-and-shift migrations. If Amazon Web
* Services MGN is unavailable in a specific Amazon Web Services Region, you can use the Server Migration Service APIs
* through March 2023.
*
* Server Migration Service (Server Migration Service) makes it easier and faster for you to migrate your on-premises * workloads to Amazon Web Services. To learn more about Server Migration Service, see the following resources: *
** All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @see DefaultAWSCredentialsProviderChain * @deprecated use {@link AWSServerMigrationClientBuilder#defaultClient()} */ @Deprecated public AWSServerMigrationClient() { this(DefaultAWSCredentialsProviderChain.getInstance(), configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on SMS. A credentials provider chain will be used that searches * for credentials in this order: *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientConfiguration * The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry * counts, etc.). * * @see DefaultAWSCredentialsProviderChain * @deprecated use {@link AWSServerMigrationClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSServerMigrationClient(ClientConfiguration clientConfiguration) { this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration); } /** * Constructs a new client to invoke service methods on SMS using the specified AWS account credentials. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @deprecated use {@link AWSServerMigrationClientBuilder#withCredentials(AWSCredentialsProvider)} for example: * {@code AWSServerMigrationClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();} */ @Deprecated public AWSServerMigrationClient(AWSCredentials awsCredentials) { this(awsCredentials, configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on SMS using the specified AWS account credentials and client * configuration options. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry * counts, etc.). * @deprecated use {@link AWSServerMigrationClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServerMigrationClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSServerMigrationClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) { super(clientConfiguration); this.awsCredentialsProvider = new StaticCredentialsProvider(awsCredentials); this.advancedConfig = AdvancedConfig.EMPTY; init(); } /** * Constructs a new client to invoke service methods on SMS using the specified AWS account credentials provider. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @deprecated use {@link AWSServerMigrationClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on SMS using the specified AWS account credentials provider and * client configuration options. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry * counts, etc.). * @deprecated use {@link AWSServerMigrationClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServerMigrationClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, null); } /** * Constructs a new client to invoke service methods on SMS using the specified AWS account credentials provider, * client configuration options, and request metric collector. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry * counts, etc.). * @param requestMetricCollector * optional request metric collector * @deprecated use {@link AWSServerMigrationClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSServerMigrationClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSServerMigrationClientBuilder#withMetricsCollector(RequestMetricCollector)} */ @Deprecated public AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector) { super(clientConfiguration, requestMetricCollector); this.awsCredentialsProvider = awsCredentialsProvider; this.advancedConfig = AdvancedConfig.EMPTY; init(); } public static AWSServerMigrationClientBuilder builder() { return AWSServerMigrationClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on SMS 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. */ AWSServerMigrationClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on SMS 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. */ AWSServerMigrationClient(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("sms.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/servermigration/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/servermigration/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Creates an application. An application consists of one or more server groups. Each server group contain one or * more servers. *
* * @param createAppRequest * @return Result of the CreateApp operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.CreateApp * @see AWS API * Documentation */ @Override public CreateAppResult createApp(CreateAppRequest request) { request = beforeClientExecution(request); return executeCreateApp(request); } @SdkInternalApi final CreateAppResult executeCreateApp(CreateAppRequest createAppRequest) { ExecutionContext executionContext = createExecutionContext(createAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a replication job. The replication job schedules periodic replication runs to replicate your server to * Amazon Web Services. Each replication run creates an Amazon Machine Image (AMI). *
* * @param createReplicationJobRequest * @return Result of the CreateReplicationJob operation returned by the service. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws OperationNotPermittedException * This operation is not allowed. * @throws ServerCannotBeReplicatedException * The specified server cannot be replicated. * @throws ReplicationJobAlreadyExistsException * The specified replication job already exists. * @throws NoConnectorsAvailableException * There are no connectors available. * @throws InternalErrorException * An internal error occurred. * @throws TemporarilyUnavailableException * The service is temporarily unavailable. * @sample AWSServerMigration.CreateReplicationJob * @see AWS API * Documentation */ @Override public CreateReplicationJobResult createReplicationJob(CreateReplicationJobRequest request) { request = beforeClientExecution(request); return executeCreateReplicationJob(request); } @SdkInternalApi final CreateReplicationJobResult executeCreateReplicationJob(CreateReplicationJobRequest createReplicationJobRequest) { ExecutionContext executionContext = createExecutionContext(createReplicationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified application. Optionally deletes the launched stack associated with the application and all * Server Migration Service replication jobs for servers in the application. *
* * @param deleteAppRequest * @return Result of the DeleteApp operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.DeleteApp * @see AWS API * Documentation */ @Override public DeleteAppResult deleteApp(DeleteAppRequest request) { request = beforeClientExecution(request); return executeDeleteApp(request); } @SdkInternalApi final DeleteAppResult executeDeleteApp(DeleteAppRequest deleteAppRequest) { ExecutionContext executionContext = createExecutionContext(deleteAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the launch configuration for the specified application. *
* * @param deleteAppLaunchConfigurationRequest * @return Result of the DeleteAppLaunchConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.DeleteAppLaunchConfiguration * @see AWS API Documentation */ @Override public DeleteAppLaunchConfigurationResult deleteAppLaunchConfiguration(DeleteAppLaunchConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteAppLaunchConfiguration(request); } @SdkInternalApi final DeleteAppLaunchConfigurationResult executeDeleteAppLaunchConfiguration(DeleteAppLaunchConfigurationRequest deleteAppLaunchConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteAppLaunchConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the replication configuration for the specified application. *
* * @param deleteAppReplicationConfigurationRequest * @return Result of the DeleteAppReplicationConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.DeleteAppReplicationConfiguration * @see AWS API Documentation */ @Override public DeleteAppReplicationConfigurationResult deleteAppReplicationConfiguration(DeleteAppReplicationConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteAppReplicationConfiguration(request); } @SdkInternalApi final DeleteAppReplicationConfigurationResult executeDeleteAppReplicationConfiguration( DeleteAppReplicationConfigurationRequest deleteAppReplicationConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteAppReplicationConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the validation configuration for the specified application. *
* * @param deleteAppValidationConfigurationRequest * @return Result of the DeleteAppValidationConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.DeleteAppValidationConfiguration * @see AWS API Documentation */ @Override public DeleteAppValidationConfigurationResult deleteAppValidationConfiguration(DeleteAppValidationConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteAppValidationConfiguration(request); } @SdkInternalApi final DeleteAppValidationConfigurationResult executeDeleteAppValidationConfiguration( DeleteAppValidationConfigurationRequest deleteAppValidationConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteAppValidationConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified replication job. *
** After you delete a replication job, there are no further replication runs. Amazon Web Services deletes the * contents of the Amazon S3 bucket used to store Server Migration Service artifacts. The AMIs created by the * replication runs are not deleted. *
* * @param deleteReplicationJobRequest * @return Result of the DeleteReplicationJob operation returned by the service. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws OperationNotPermittedException * This operation is not allowed. * @throws ReplicationJobNotFoundException * The specified replication job does not exist. * @sample AWSServerMigration.DeleteReplicationJob * @see AWS API * Documentation */ @Override public DeleteReplicationJobResult deleteReplicationJob(DeleteReplicationJobRequest request) { request = beforeClientExecution(request); return executeDeleteReplicationJob(request); } @SdkInternalApi final DeleteReplicationJobResult executeDeleteReplicationJob(DeleteReplicationJobRequest deleteReplicationJobRequest) { ExecutionContext executionContext = createExecutionContext(deleteReplicationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes all servers from your server catalog. *
* * @param deleteServerCatalogRequest * @return Result of the DeleteServerCatalog operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws OperationNotPermittedException * This operation is not allowed. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @sample AWSServerMigration.DeleteServerCatalog * @see AWS API * Documentation */ @Override public DeleteServerCatalogResult deleteServerCatalog(DeleteServerCatalogRequest request) { request = beforeClientExecution(request); return executeDeleteServerCatalog(request); } @SdkInternalApi final DeleteServerCatalogResult executeDeleteServerCatalog(DeleteServerCatalogRequest deleteServerCatalogRequest) { ExecutionContext executionContext = createExecutionContext(deleteServerCatalogRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Disassociates the specified connector from Server Migration Service. *
** After you disassociate a connector, it is no longer available to support replication jobs. *
* * @param disassociateConnectorRequest * @return Result of the DisassociateConnector operation returned by the service. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws OperationNotPermittedException * This operation is not allowed. * @throws InvalidParameterException * A specified parameter is not valid. * @sample AWSServerMigration.DisassociateConnector * @see AWS API * Documentation */ @Override public DisassociateConnectorResult disassociateConnector(DisassociateConnectorRequest request) { request = beforeClientExecution(request); return executeDisassociateConnector(request); } @SdkInternalApi final DisassociateConnectorResult executeDisassociateConnector(DisassociateConnectorRequest disassociateConnectorRequest) { ExecutionContext executionContext = createExecutionContext(disassociateConnectorRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Generates a target change set for a currently launched stack and writes it to an Amazon S3 object in the * customer’s Amazon S3 bucket. *
* * @param generateChangeSetRequest * @return Result of the GenerateChangeSet operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GenerateChangeSet * @see AWS API * Documentation */ @Override public GenerateChangeSetResult generateChangeSet(GenerateChangeSetRequest request) { request = beforeClientExecution(request); return executeGenerateChangeSet(request); } @SdkInternalApi final GenerateChangeSetResult executeGenerateChangeSet(GenerateChangeSetRequest generateChangeSetRequest) { ExecutionContext executionContext = createExecutionContext(generateChangeSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Generates an CloudFormation template based on the current launch configuration and writes it to an Amazon S3 * object in the customer’s Amazon S3 bucket. *
* * @param generateTemplateRequest * @return Result of the GenerateTemplate operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GenerateTemplate * @see AWS API * Documentation */ @Override public GenerateTemplateResult generateTemplate(GenerateTemplateRequest request) { request = beforeClientExecution(request); return executeGenerateTemplate(request); } @SdkInternalApi final GenerateTemplateResult executeGenerateTemplate(GenerateTemplateRequest generateTemplateRequest) { ExecutionContext executionContext = createExecutionContext(generateTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieve information about the specified application. *
* * @param getAppRequest * @return Result of the GetApp operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GetApp * @see AWS API * Documentation */ @Override public GetAppResult getApp(GetAppRequest request) { request = beforeClientExecution(request); return executeGetApp(request); } @SdkInternalApi final GetAppResult executeGetApp(GetAppRequest getAppRequest) { ExecutionContext executionContext = createExecutionContext(getAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the application launch configuration associated with the specified application. *
* * @param getAppLaunchConfigurationRequest * @return Result of the GetAppLaunchConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GetAppLaunchConfiguration * @see AWS * API Documentation */ @Override public GetAppLaunchConfigurationResult getAppLaunchConfiguration(GetAppLaunchConfigurationRequest request) { request = beforeClientExecution(request); return executeGetAppLaunchConfiguration(request); } @SdkInternalApi final GetAppLaunchConfigurationResult executeGetAppLaunchConfiguration(GetAppLaunchConfigurationRequest getAppLaunchConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(getAppLaunchConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the application replication configuration associated with the specified application. *
* * @param getAppReplicationConfigurationRequest * @return Result of the GetAppReplicationConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GetAppReplicationConfiguration * @see AWS API Documentation */ @Override public GetAppReplicationConfigurationResult getAppReplicationConfiguration(GetAppReplicationConfigurationRequest request) { request = beforeClientExecution(request); return executeGetAppReplicationConfiguration(request); } @SdkInternalApi final GetAppReplicationConfigurationResult executeGetAppReplicationConfiguration(GetAppReplicationConfigurationRequest getAppReplicationConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(getAppReplicationConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves information about a configuration for validating an application. *
* * @param getAppValidationConfigurationRequest * @return Result of the GetAppValidationConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GetAppValidationConfiguration * @see AWS API Documentation */ @Override public GetAppValidationConfigurationResult getAppValidationConfiguration(GetAppValidationConfigurationRequest request) { request = beforeClientExecution(request); return executeGetAppValidationConfiguration(request); } @SdkInternalApi final GetAppValidationConfigurationResult executeGetAppValidationConfiguration(GetAppValidationConfigurationRequest getAppValidationConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(getAppValidationConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves output from validating an application. *
* * @param getAppValidationOutputRequest * @return Result of the GetAppValidationOutput operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.GetAppValidationOutput * @see AWS API * Documentation */ @Override public GetAppValidationOutputResult getAppValidationOutput(GetAppValidationOutputRequest request) { request = beforeClientExecution(request); return executeGetAppValidationOutput(request); } @SdkInternalApi final GetAppValidationOutputResult executeGetAppValidationOutput(GetAppValidationOutputRequest getAppValidationOutputRequest) { ExecutionContext executionContext = createExecutionContext(getAppValidationOutputRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Describes the connectors registered with the Server Migration Service. *
* * @param getConnectorsRequest * @return Result of the GetConnectors operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @sample AWSServerMigration.GetConnectors * @see AWS API * Documentation */ @Override public GetConnectorsResult getConnectors(GetConnectorsRequest request) { request = beforeClientExecution(request); return executeGetConnectors(request); } @SdkInternalApi final GetConnectorsResult executeGetConnectors(GetConnectorsRequest getConnectorsRequest) { ExecutionContext executionContext = createExecutionContext(getConnectorsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Describes the specified replication job or all of your replication jobs. *
* * @param getReplicationJobsRequest * @return Result of the GetReplicationJobs operation returned by the service. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @sample AWSServerMigration.GetReplicationJobs * @see AWS API * Documentation */ @Override public GetReplicationJobsResult getReplicationJobs(GetReplicationJobsRequest request) { request = beforeClientExecution(request); return executeGetReplicationJobs(request); } @SdkInternalApi final GetReplicationJobsResult executeGetReplicationJobs(GetReplicationJobsRequest getReplicationJobsRequest) { ExecutionContext executionContext = createExecutionContext(getReplicationJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Describes the replication runs for the specified replication job. *
* * @param getReplicationRunsRequest * @return Result of the GetReplicationRuns operation returned by the service. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @sample AWSServerMigration.GetReplicationRuns * @see AWS API * Documentation */ @Override public GetReplicationRunsResult getReplicationRuns(GetReplicationRunsRequest request) { request = beforeClientExecution(request); return executeGetReplicationRuns(request); } @SdkInternalApi final GetReplicationRunsResult executeGetReplicationRuns(GetReplicationRunsRequest getReplicationRunsRequest) { ExecutionContext executionContext = createExecutionContext(getReplicationRunsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Describes the servers in your server catalog. *
** Before you can describe your servers, you must import them using ImportServerCatalog. *
* * @param getServersRequest * @return Result of the GetServers operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @sample AWSServerMigration.GetServers * @see AWS API * Documentation */ @Override public GetServersResult getServers(GetServersRequest request) { request = beforeClientExecution(request); return executeGetServers(request); } @SdkInternalApi final GetServersResult executeGetServers(GetServersRequest getServersRequest) { ExecutionContext executionContext = createExecutionContext(getServersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Allows application import from Migration Hub. *
* * @param importAppCatalogRequest * @return Result of the ImportAppCatalog operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.ImportAppCatalog * @see AWS API * Documentation */ @Override public ImportAppCatalogResult importAppCatalog(ImportAppCatalogRequest request) { request = beforeClientExecution(request); return executeImportAppCatalog(request); } @SdkInternalApi final ImportAppCatalogResult executeImportAppCatalog(ImportAppCatalogRequest importAppCatalogRequest) { ExecutionContext executionContext = createExecutionContext(importAppCatalogRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gathers a complete list of on-premises servers. Connectors must be installed and monitoring all servers to * import. *
** This call returns immediately, but might take additional time to retrieve all the servers. *
* * @param importServerCatalogRequest * @return Result of the ImportServerCatalog operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws OperationNotPermittedException * This operation is not allowed. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws NoConnectorsAvailableException * There are no connectors available. * @sample AWSServerMigration.ImportServerCatalog * @see AWS API * Documentation */ @Override public ImportServerCatalogResult importServerCatalog(ImportServerCatalogRequest request) { request = beforeClientExecution(request); return executeImportServerCatalog(request); } @SdkInternalApi final ImportServerCatalogResult executeImportServerCatalog(ImportServerCatalogRequest importServerCatalogRequest) { ExecutionContext executionContext = createExecutionContext(importServerCatalogRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Launches the specified application as a stack in CloudFormation. *
* * @param launchAppRequest * @return Result of the LaunchApp operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.LaunchApp * @see AWS API * Documentation */ @Override public LaunchAppResult launchApp(LaunchAppRequest request) { request = beforeClientExecution(request); return executeLaunchApp(request); } @SdkInternalApi final LaunchAppResult executeLaunchApp(LaunchAppRequest launchAppRequest) { ExecutionContext executionContext = createExecutionContext(launchAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves summaries for all applications. *
* * @param listAppsRequest * @return Result of the ListApps operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.ListApps * @see AWS API * Documentation */ @Override public ListAppsResult listApps(ListAppsRequest request) { request = beforeClientExecution(request); return executeListApps(request); } @SdkInternalApi final ListAppsResult executeListApps(ListAppsRequest listAppsRequest) { ExecutionContext executionContext = createExecutionContext(listAppsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Provides information to Server Migration Service about whether application validation is successful. *
* * @param notifyAppValidationOutputRequest * @return Result of the NotifyAppValidationOutput operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.NotifyAppValidationOutput * @see AWS * API Documentation */ @Override public NotifyAppValidationOutputResult notifyAppValidationOutput(NotifyAppValidationOutputRequest request) { request = beforeClientExecution(request); return executeNotifyAppValidationOutput(request); } @SdkInternalApi final NotifyAppValidationOutputResult executeNotifyAppValidationOutput(NotifyAppValidationOutputRequest notifyAppValidationOutputRequest) { ExecutionContext executionContext = createExecutionContext(notifyAppValidationOutputRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates or updates the launch configuration for the specified application. *
* * @param putAppLaunchConfigurationRequest * @return Result of the PutAppLaunchConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.PutAppLaunchConfiguration * @see AWS * API Documentation */ @Override public PutAppLaunchConfigurationResult putAppLaunchConfiguration(PutAppLaunchConfigurationRequest request) { request = beforeClientExecution(request); return executePutAppLaunchConfiguration(request); } @SdkInternalApi final PutAppLaunchConfigurationResult executePutAppLaunchConfiguration(PutAppLaunchConfigurationRequest putAppLaunchConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(putAppLaunchConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates or updates the replication configuration for the specified application. *
* * @param putAppReplicationConfigurationRequest * @return Result of the PutAppReplicationConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.PutAppReplicationConfiguration * @see AWS API Documentation */ @Override public PutAppReplicationConfigurationResult putAppReplicationConfiguration(PutAppReplicationConfigurationRequest request) { request = beforeClientExecution(request); return executePutAppReplicationConfiguration(request); } @SdkInternalApi final PutAppReplicationConfigurationResult executePutAppReplicationConfiguration(PutAppReplicationConfigurationRequest putAppReplicationConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(putAppReplicationConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates or updates a validation configuration for the specified application. *
* * @param putAppValidationConfigurationRequest * @return Result of the PutAppValidationConfiguration operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.PutAppValidationConfiguration * @see AWS API Documentation */ @Override public PutAppValidationConfigurationResult putAppValidationConfiguration(PutAppValidationConfigurationRequest request) { request = beforeClientExecution(request); return executePutAppValidationConfiguration(request); } @SdkInternalApi final PutAppValidationConfigurationResult executePutAppValidationConfiguration(PutAppValidationConfigurationRequest putAppValidationConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(putAppValidationConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts replicating the specified application by creating replication jobs for each server in the application. *
* * @param startAppReplicationRequest * @return Result of the StartAppReplication operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.StartAppReplication * @see AWS API * Documentation */ @Override public StartAppReplicationResult startAppReplication(StartAppReplicationRequest request) { request = beforeClientExecution(request); return executeStartAppReplication(request); } @SdkInternalApi final StartAppReplicationResult executeStartAppReplication(StartAppReplicationRequest startAppReplicationRequest) { ExecutionContext executionContext = createExecutionContext(startAppReplicationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts an on-demand replication run for the specified application. *
* * @param startOnDemandAppReplicationRequest * @return Result of the StartOnDemandAppReplication operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.StartOnDemandAppReplication * @see AWS API Documentation */ @Override public StartOnDemandAppReplicationResult startOnDemandAppReplication(StartOnDemandAppReplicationRequest request) { request = beforeClientExecution(request); return executeStartOnDemandAppReplication(request); } @SdkInternalApi final StartOnDemandAppReplicationResult executeStartOnDemandAppReplication(StartOnDemandAppReplicationRequest startOnDemandAppReplicationRequest) { ExecutionContext executionContext = createExecutionContext(startOnDemandAppReplicationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts an on-demand replication run for the specified replication job. This replication run starts immediately. * This replication run is in addition to the ones already scheduled. *
** There is a limit on the number of on-demand replications runs that you can request in a 24-hour period. *
* * @param startOnDemandReplicationRunRequest * @return Result of the StartOnDemandReplicationRun operation returned by the service. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws OperationNotPermittedException * This operation is not allowed. * @throws ReplicationRunLimitExceededException * You have exceeded the number of on-demand replication runs you can request in a 24-hour period. * @throws DryRunOperationException * The user has the required permissions, so the request would have succeeded, but a dry run was performed. * @sample AWSServerMigration.StartOnDemandReplicationRun * @see AWS API Documentation */ @Override public StartOnDemandReplicationRunResult startOnDemandReplicationRun(StartOnDemandReplicationRunRequest request) { request = beforeClientExecution(request); return executeStartOnDemandReplicationRun(request); } @SdkInternalApi final StartOnDemandReplicationRunResult executeStartOnDemandReplicationRun(StartOnDemandReplicationRunRequest startOnDemandReplicationRunRequest) { ExecutionContext executionContext = createExecutionContext(startOnDemandReplicationRunRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Stops replicating the specified application by deleting the replication job for each server in the application. *
* * @param stopAppReplicationRequest * @return Result of the StopAppReplication operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.StopAppReplication * @see AWS API * Documentation */ @Override public StopAppReplicationResult stopAppReplication(StopAppReplicationRequest request) { request = beforeClientExecution(request); return executeStopAppReplication(request); } @SdkInternalApi final StopAppReplicationResult executeStopAppReplication(StopAppReplicationRequest stopAppReplicationRequest) { ExecutionContext executionContext = createExecutionContext(stopAppReplicationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Terminates the stack for the specified application. *
* * @param terminateAppRequest * @return Result of the TerminateApp operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.TerminateApp * @see AWS API * Documentation */ @Override public TerminateAppResult terminateApp(TerminateAppRequest request) { request = beforeClientExecution(request); return executeTerminateApp(request); } @SdkInternalApi final TerminateAppResult executeTerminateApp(TerminateAppRequest terminateAppRequest) { ExecutionContext executionContext = createExecutionContext(terminateAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates the specified application. *
* * @param updateAppRequest * @return Result of the UpdateApp operation returned by the service. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws InternalErrorException * An internal error occurred. * @throws OperationNotPermittedException * This operation is not allowed. * @sample AWSServerMigration.UpdateApp * @see AWS API * Documentation */ @Override public UpdateAppResult updateApp(UpdateAppRequest request) { request = beforeClientExecution(request); return executeUpdateApp(request); } @SdkInternalApi final UpdateAppResult executeUpdateApp(UpdateAppRequest updateAppRequest) { ExecutionContext executionContext = createExecutionContext(updateAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates the specified settings for the specified replication job. *
* * @param updateReplicationJobRequest * @return Result of the UpdateReplicationJob operation returned by the service. * @throws InvalidParameterException * A specified parameter is not valid. * @throws MissingRequiredParameterException * A required parameter is missing. * @throws OperationNotPermittedException * This operation is not allowed. * @throws UnauthorizedOperationException * You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are * using the correct access keys. * @throws ServerCannotBeReplicatedException * The specified server cannot be replicated. * @throws ReplicationJobNotFoundException * The specified replication job does not exist. * @throws InternalErrorException * An internal error occurred. * @throws TemporarilyUnavailableException * The service is temporarily unavailable. * @sample AWSServerMigration.UpdateReplicationJob * @see AWS API * Documentation */ @Override public UpdateReplicationJobResult updateReplicationJob(UpdateReplicationJobRequest request) { request = beforeClientExecution(request); return executeUpdateReplicationJob(request); } @SdkInternalApi final UpdateReplicationJobResult executeUpdateReplicationJob(UpdateReplicationJobRequest updateReplicationJobRequest) { ExecutionContext executionContext = createExecutionContext(updateReplicationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request
* 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