com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ssm Show documentation
/*
* 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.simplesystemsmanagement;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.simplesystemsmanagement.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing Amazon SSM asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
*
* Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and
* a secure end-to-end management solution for hybrid cloud environments that enables safe and secure operations at
* scale.
*
*
* This reference is intended to be used with the Amazon Web Services Systems Manager User
* Guide. To get started, see Setting up Amazon
* Web Services Systems Manager.
*
*
* Related resources
*
*
* -
*
* For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
*
*
* -
*
* For details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the
* Systems Manager Automation runbook reference .
*
*
* -
*
* For information about AppConfig, a capability of Systems Manager, see the AppConfig User Guide and the AppConfig API Reference .
*
*
* -
*
* For information about Incident Manager, a capability of Systems Manager, see the Systems Manager Incident Manager User Guide
* and the Systems Manager Incident
* Manager API Reference .
*
*
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSSimpleSystemsManagementAsyncClient extends AWSSimpleSystemsManagementClient implements AWSSimpleSystemsManagementAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM. A credentials provider chain will
* be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM. A credentials provider chain will
* be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon SSM (ex: proxy settings,
* retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified AWS account
* credentials.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified AWS account
* credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified AWS account
* credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified AWS account
* credentials provider. Default client settings will be used.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the provided AWS account
* credentials provider and client configuration options.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified AWS account
* credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified AWS account
* credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSSimpleSystemsManagementAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSSimpleSystemsManagementAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration,
ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AWSSimpleSystemsManagementAsyncClientBuilder asyncBuilder() {
return AWSSimpleSystemsManagementAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSSimpleSystemsManagementAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon SSM using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSSimpleSystemsManagementAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) {
super(asyncClientParams, endpointDiscoveryEnabled);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(AddTagsToResourceRequest request) {
return addTagsToResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(final AddTagsToResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddTagsToResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddTagsToResourceResult call() throws Exception {
AddTagsToResourceResult result = null;
try {
result = executeAddTagsToResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateOpsItemRelatedItemAsync(AssociateOpsItemRelatedItemRequest request) {
return associateOpsItemRelatedItemAsync(request, null);
}
@Override
public java.util.concurrent.Future associateOpsItemRelatedItemAsync(final AssociateOpsItemRelatedItemRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateOpsItemRelatedItemRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateOpsItemRelatedItemResult call() throws Exception {
AssociateOpsItemRelatedItemResult result = null;
try {
result = executeAssociateOpsItemRelatedItem(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelCommandAsync(CancelCommandRequest request) {
return cancelCommandAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelCommandAsync(final CancelCommandRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelCommandRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelCommandResult call() throws Exception {
CancelCommandResult result = null;
try {
result = executeCancelCommand(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelMaintenanceWindowExecutionAsync(
CancelMaintenanceWindowExecutionRequest request) {
return cancelMaintenanceWindowExecutionAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelMaintenanceWindowExecutionAsync(
final CancelMaintenanceWindowExecutionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelMaintenanceWindowExecutionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelMaintenanceWindowExecutionResult call() throws Exception {
CancelMaintenanceWindowExecutionResult result = null;
try {
result = executeCancelMaintenanceWindowExecution(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createActivationAsync(CreateActivationRequest request) {
return createActivationAsync(request, null);
}
@Override
public java.util.concurrent.Future createActivationAsync(final CreateActivationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateActivationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateActivationResult call() throws Exception {
CreateActivationResult result = null;
try {
result = executeCreateActivation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAssociationAsync(CreateAssociationRequest request) {
return createAssociationAsync(request, null);
}
@Override
public java.util.concurrent.Future createAssociationAsync(final CreateAssociationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAssociationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAssociationResult call() throws Exception {
CreateAssociationResult result = null;
try {
result = executeCreateAssociation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAssociationBatchAsync(CreateAssociationBatchRequest request) {
return createAssociationBatchAsync(request, null);
}
@Override
public java.util.concurrent.Future createAssociationBatchAsync(final CreateAssociationBatchRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAssociationBatchRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAssociationBatchResult call() throws Exception {
CreateAssociationBatchResult result = null;
try {
result = executeCreateAssociationBatch(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createDocumentAsync(CreateDocumentRequest request) {
return createDocumentAsync(request, null);
}
@Override
public java.util.concurrent.Future createDocumentAsync(final CreateDocumentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDocumentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDocumentResult call() throws Exception {
CreateDocumentResult result = null;
try {
result = executeCreateDocument(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createMaintenanceWindowAsync(CreateMaintenanceWindowRequest request) {
return createMaintenanceWindowAsync(request, null);
}
@Override
public java.util.concurrent.Future createMaintenanceWindowAsync(final CreateMaintenanceWindowRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateMaintenanceWindowRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateMaintenanceWindowResult call() throws Exception {
CreateMaintenanceWindowResult result = null;
try {
result = executeCreateMaintenanceWindow(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createOpsItemAsync(CreateOpsItemRequest request) {
return createOpsItemAsync(request, null);
}
@Override
public java.util.concurrent.Future createOpsItemAsync(final CreateOpsItemRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateOpsItemRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateOpsItemResult call() throws Exception {
CreateOpsItemResult result = null;
try {
result = executeCreateOpsItem(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createOpsMetadataAsync(CreateOpsMetadataRequest request) {
return createOpsMetadataAsync(request, null);
}
@Override
public java.util.concurrent.Future createOpsMetadataAsync(final CreateOpsMetadataRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateOpsMetadataRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateOpsMetadataResult call() throws Exception {
CreateOpsMetadataResult result = null;
try {
result = executeCreateOpsMetadata(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createPatchBaselineAsync(CreatePatchBaselineRequest request) {
return createPatchBaselineAsync(request, null);
}
@Override
public java.util.concurrent.Future createPatchBaselineAsync(final CreatePatchBaselineRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreatePatchBaselineRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreatePatchBaselineResult call() throws Exception {
CreatePatchBaselineResult result = null;
try {
result = executeCreatePatchBaseline(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createResourceDataSyncAsync(CreateResourceDataSyncRequest request) {
return createResourceDataSyncAsync(request, null);
}
@Override
public java.util.concurrent.Future createResourceDataSyncAsync(final CreateResourceDataSyncRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateResourceDataSyncRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateResourceDataSyncResult call() throws Exception {
CreateResourceDataSyncResult result = null;
try {
result = executeCreateResourceDataSync(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteActivationAsync(DeleteActivationRequest request) {
return deleteActivationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteActivationAsync(final DeleteActivationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteActivationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteActivationResult call() throws Exception {
DeleteActivationResult result = null;
try {
result = executeDeleteActivation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAssociationAsync(DeleteAssociationRequest request) {
return deleteAssociationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAssociationAsync(final DeleteAssociationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAssociationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAssociationResult call() throws Exception {
DeleteAssociationResult result = null;
try {
result = executeDeleteAssociation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteDocumentAsync(DeleteDocumentRequest request) {
return deleteDocumentAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDocumentAsync(final DeleteDocumentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDocumentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDocumentResult call() throws Exception {
DeleteDocumentResult result = null;
try {
result = executeDeleteDocument(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteInventoryAsync(DeleteInventoryRequest request) {
return deleteInventoryAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteInventoryAsync(final DeleteInventoryRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteInventoryRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteInventoryResult call() throws Exception {
DeleteInventoryResult result = null;
try {
result = executeDeleteInventory(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteMaintenanceWindowAsync(DeleteMaintenanceWindowRequest request) {
return deleteMaintenanceWindowAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteMaintenanceWindowAsync(final DeleteMaintenanceWindowRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteMaintenanceWindowRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteMaintenanceWindowResult call() throws Exception {
DeleteMaintenanceWindowResult result = null;
try {
result = executeDeleteMaintenanceWindow(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteOpsItemAsync(DeleteOpsItemRequest request) {
return deleteOpsItemAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteOpsItemAsync(final DeleteOpsItemRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteOpsItemRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteOpsItemResult call() throws Exception {
DeleteOpsItemResult result = null;
try {
result = executeDeleteOpsItem(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteOpsMetadataAsync(DeleteOpsMetadataRequest request) {
return deleteOpsMetadataAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteOpsMetadataAsync(final DeleteOpsMetadataRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteOpsMetadataRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteOpsMetadataResult call() throws Exception {
DeleteOpsMetadataResult result = null;
try {
result = executeDeleteOpsMetadata(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteParameterAsync(DeleteParameterRequest request) {
return deleteParameterAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteParameterAsync(final DeleteParameterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteParameterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteParameterResult call() throws Exception {
DeleteParameterResult result = null;
try {
result = executeDeleteParameter(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteParametersAsync(DeleteParametersRequest request) {
return deleteParametersAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteParametersAsync(final DeleteParametersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteParametersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteParametersResult call() throws Exception {
DeleteParametersResult result = null;
try {
result = executeDeleteParameters(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deletePatchBaselineAsync(DeletePatchBaselineRequest request) {
return deletePatchBaselineAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePatchBaselineAsync(final DeletePatchBaselineRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePatchBaselineRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePatchBaselineResult call() throws Exception {
DeletePatchBaselineResult result = null;
try {
result = executeDeletePatchBaseline(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteResourceDataSyncAsync(DeleteResourceDataSyncRequest request) {
return deleteResourceDataSyncAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteResourceDataSyncAsync(final DeleteResourceDataSyncRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteResourceDataSyncRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteResourceDataSyncResult call() throws Exception {
DeleteResourceDataSyncResult result = null;
try {
result = executeDeleteResourceDataSync(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteResourcePolicyAsync(DeleteResourcePolicyRequest request) {
return deleteResourcePolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteResourcePolicyAsync(final DeleteResourcePolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteResourcePolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteResourcePolicyResult call() throws Exception {
DeleteResourcePolicyResult result = null;
try {
result = executeDeleteResourcePolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deregisterManagedInstanceAsync(DeregisterManagedInstanceRequest request) {
return deregisterManagedInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterManagedInstanceAsync(final DeregisterManagedInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterManagedInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterManagedInstanceResult call() throws Exception {
DeregisterManagedInstanceResult result = null;
try {
result = executeDeregisterManagedInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deregisterPatchBaselineForPatchGroupAsync(
DeregisterPatchBaselineForPatchGroupRequest request) {
return deregisterPatchBaselineForPatchGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterPatchBaselineForPatchGroupAsync(
final DeregisterPatchBaselineForPatchGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterPatchBaselineForPatchGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterPatchBaselineForPatchGroupResult call() throws Exception {
DeregisterPatchBaselineForPatchGroupResult result = null;
try {
result = executeDeregisterPatchBaselineForPatchGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deregisterTargetFromMaintenanceWindowAsync(
DeregisterTargetFromMaintenanceWindowRequest request) {
return deregisterTargetFromMaintenanceWindowAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterTargetFromMaintenanceWindowAsync(
final DeregisterTargetFromMaintenanceWindowRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterTargetFromMaintenanceWindowRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterTargetFromMaintenanceWindowResult call() throws Exception {
DeregisterTargetFromMaintenanceWindowResult result = null;
try {
result = executeDeregisterTargetFromMaintenanceWindow(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deregisterTaskFromMaintenanceWindowAsync(
DeregisterTaskFromMaintenanceWindowRequest request) {
return deregisterTaskFromMaintenanceWindowAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterTaskFromMaintenanceWindowAsync(
final DeregisterTaskFromMaintenanceWindowRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterTaskFromMaintenanceWindowRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterTaskFromMaintenanceWindowResult call() throws Exception {
DeregisterTaskFromMaintenanceWindowResult result = null;
try {
result = executeDeregisterTaskFromMaintenanceWindow(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeActivationsAsync(DescribeActivationsRequest request) {
return describeActivationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeActivationsAsync(final DescribeActivationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeActivationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeActivationsResult call() throws Exception {
DescribeActivationsResult result = null;
try {
result = executeDescribeActivations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAssociationAsync(DescribeAssociationRequest request) {
return describeAssociationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAssociationAsync(final DescribeAssociationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAssociationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAssociationResult call() throws Exception {
DescribeAssociationResult result = null;
try {
result = executeDescribeAssociation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAssociationExecutionTargetsAsync(
DescribeAssociationExecutionTargetsRequest request) {
return describeAssociationExecutionTargetsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAssociationExecutionTargetsAsync(
final DescribeAssociationExecutionTargetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAssociationExecutionTargetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAssociationExecutionTargetsResult call() throws Exception {
DescribeAssociationExecutionTargetsResult result = null;
try {
result = executeDescribeAssociationExecutionTargets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAssociationExecutionsAsync(DescribeAssociationExecutionsRequest request) {
return describeAssociationExecutionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAssociationExecutionsAsync(
final DescribeAssociationExecutionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAssociationExecutionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAssociationExecutionsResult call() throws Exception {
DescribeAssociationExecutionsResult result = null;
try {
result = executeDescribeAssociationExecutions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAutomationExecutionsAsync(DescribeAutomationExecutionsRequest request) {
return describeAutomationExecutionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAutomationExecutionsAsync(final DescribeAutomationExecutionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAutomationExecutionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAutomationExecutionsResult call() throws Exception {
DescribeAutomationExecutionsResult result = null;
try {
result = executeDescribeAutomationExecutions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAutomationStepExecutionsAsync(
DescribeAutomationStepExecutionsRequest request) {
return describeAutomationStepExecutionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAutomationStepExecutionsAsync(
final DescribeAutomationStepExecutionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAutomationStepExecutionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAutomationStepExecutionsResult call() throws Exception {
DescribeAutomationStepExecutionsResult result = null;
try {
result = executeDescribeAutomationStepExecutions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAvailablePatchesAsync(DescribeAvailablePatchesRequest request) {
return describeAvailablePatchesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAvailablePatchesAsync(final DescribeAvailablePatchesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAvailablePatchesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAvailablePatchesResult call() throws Exception {
DescribeAvailablePatchesResult result = null;
try {
result = executeDescribeAvailablePatches(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDocumentAsync(DescribeDocumentRequest request) {
return describeDocumentAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDocumentAsync(final DescribeDocumentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDocumentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDocumentResult call() throws Exception {
DescribeDocumentResult result = null;
try {
result = executeDescribeDocument(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeDocumentPermissionAsync(DescribeDocumentPermissionRequest request) {
return describeDocumentPermissionAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDocumentPermissionAsync(final DescribeDocumentPermissionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDocumentPermissionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDocumentPermissionResult call() throws Exception {
DescribeDocumentPermissionResult result = null;
try {
result = executeDescribeDocumentPermission(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEffectiveInstanceAssociationsAsync(
DescribeEffectiveInstanceAssociationsRequest request) {
return describeEffectiveInstanceAssociationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEffectiveInstanceAssociationsAsync(
final DescribeEffectiveInstanceAssociationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEffectiveInstanceAssociationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEffectiveInstanceAssociationsResult call() throws Exception {
DescribeEffectiveInstanceAssociationsResult result = null;
try {
result = executeDescribeEffectiveInstanceAssociations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEffectivePatchesForPatchBaselineAsync(
DescribeEffectivePatchesForPatchBaselineRequest request) {
return describeEffectivePatchesForPatchBaselineAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEffectivePatchesForPatchBaselineAsync(
final DescribeEffectivePatchesForPatchBaselineRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEffectivePatchesForPatchBaselineRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEffectivePatchesForPatchBaselineResult call() throws Exception {
DescribeEffectivePatchesForPatchBaselineResult result = null;
try {
result = executeDescribeEffectivePatchesForPatchBaseline(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstanceAssociationsStatusAsync(
DescribeInstanceAssociationsStatusRequest request) {
return describeInstanceAssociationsStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstanceAssociationsStatusAsync(
final DescribeInstanceAssociationsStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstanceAssociationsStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstanceAssociationsStatusResult call() throws Exception {
DescribeInstanceAssociationsStatusResult result = null;
try {
result = executeDescribeInstanceAssociationsStatus(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstanceInformationAsync(DescribeInstanceInformationRequest request) {
return describeInstanceInformationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstanceInformationAsync(final DescribeInstanceInformationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstanceInformationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstanceInformationResult call() throws Exception {
DescribeInstanceInformationResult result = null;
try {
result = executeDescribeInstanceInformation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstancePatchStatesAsync(DescribeInstancePatchStatesRequest request) {
return describeInstancePatchStatesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstancePatchStatesAsync(final DescribeInstancePatchStatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstancePatchStatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstancePatchStatesResult call() throws Exception {
DescribeInstancePatchStatesResult result = null;
try {
result = executeDescribeInstancePatchStates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstancePatchStatesForPatchGroupAsync(
DescribeInstancePatchStatesForPatchGroupRequest request) {
return describeInstancePatchStatesForPatchGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstancePatchStatesForPatchGroupAsync(
final DescribeInstancePatchStatesForPatchGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstancePatchStatesForPatchGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstancePatchStatesForPatchGroupResult call() throws Exception {
DescribeInstancePatchStatesForPatchGroupResult result = null;
try {
result = executeDescribeInstancePatchStatesForPatchGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstancePatchesAsync(DescribeInstancePatchesRequest request) {
return describeInstancePatchesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstancePatchesAsync(final DescribeInstancePatchesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstancePatchesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstancePatchesResult call() throws Exception {
DescribeInstancePatchesResult result = null;
try {
result = executeDescribeInstancePatches(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstancePropertiesAsync(DescribeInstancePropertiesRequest request) {
return describeInstancePropertiesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstancePropertiesAsync(final DescribeInstancePropertiesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstancePropertiesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstancePropertiesResult call() throws Exception {
DescribeInstancePropertiesResult result = null;
try {
result = executeDescribeInstanceProperties(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInventoryDeletionsAsync(DescribeInventoryDeletionsRequest request) {
return describeInventoryDeletionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInventoryDeletionsAsync(final DescribeInventoryDeletionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInventoryDeletionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInventoryDeletionsResult call() throws Exception {
DescribeInventoryDeletionsResult result = null;
try {
result = executeDescribeInventoryDeletions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowExecutionTaskInvocationsAsync(
DescribeMaintenanceWindowExecutionTaskInvocationsRequest request) {
return describeMaintenanceWindowExecutionTaskInvocationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowExecutionTaskInvocationsAsync(
final DescribeMaintenanceWindowExecutionTaskInvocationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowExecutionTaskInvocationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowExecutionTaskInvocationsResult call() throws Exception {
DescribeMaintenanceWindowExecutionTaskInvocationsResult result = null;
try {
result = executeDescribeMaintenanceWindowExecutionTaskInvocations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowExecutionTasksAsync(
DescribeMaintenanceWindowExecutionTasksRequest request) {
return describeMaintenanceWindowExecutionTasksAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowExecutionTasksAsync(
final DescribeMaintenanceWindowExecutionTasksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowExecutionTasksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowExecutionTasksResult call() throws Exception {
DescribeMaintenanceWindowExecutionTasksResult result = null;
try {
result = executeDescribeMaintenanceWindowExecutionTasks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowExecutionsAsync(
DescribeMaintenanceWindowExecutionsRequest request) {
return describeMaintenanceWindowExecutionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowExecutionsAsync(
final DescribeMaintenanceWindowExecutionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowExecutionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowExecutionsResult call() throws Exception {
DescribeMaintenanceWindowExecutionsResult result = null;
try {
result = executeDescribeMaintenanceWindowExecutions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowScheduleAsync(
DescribeMaintenanceWindowScheduleRequest request) {
return describeMaintenanceWindowScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowScheduleAsync(
final DescribeMaintenanceWindowScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowScheduleResult call() throws Exception {
DescribeMaintenanceWindowScheduleResult result = null;
try {
result = executeDescribeMaintenanceWindowSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowTargetsAsync(
DescribeMaintenanceWindowTargetsRequest request) {
return describeMaintenanceWindowTargetsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowTargetsAsync(
final DescribeMaintenanceWindowTargetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowTargetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowTargetsResult call() throws Exception {
DescribeMaintenanceWindowTargetsResult result = null;
try {
result = executeDescribeMaintenanceWindowTargets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowTasksAsync(DescribeMaintenanceWindowTasksRequest request) {
return describeMaintenanceWindowTasksAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowTasksAsync(
final DescribeMaintenanceWindowTasksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowTasksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowTasksResult call() throws Exception {
DescribeMaintenanceWindowTasksResult result = null;
try {
result = executeDescribeMaintenanceWindowTasks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowsAsync(DescribeMaintenanceWindowsRequest request) {
return describeMaintenanceWindowsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowsAsync(final DescribeMaintenanceWindowsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowsResult call() throws Exception {
DescribeMaintenanceWindowsResult result = null;
try {
result = executeDescribeMaintenanceWindows(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowsForTargetAsync(
DescribeMaintenanceWindowsForTargetRequest request) {
return describeMaintenanceWindowsForTargetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceWindowsForTargetAsync(
final DescribeMaintenanceWindowsForTargetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceWindowsForTargetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceWindowsForTargetResult call() throws Exception {
DescribeMaintenanceWindowsForTargetResult result = null;
try {
result = executeDescribeMaintenanceWindowsForTarget(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeOpsItemsAsync(DescribeOpsItemsRequest request) {
return describeOpsItemsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeOpsItemsAsync(final DescribeOpsItemsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeOpsItemsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeOpsItemsResult call() throws Exception {
DescribeOpsItemsResult result = null;
try {
result = executeDescribeOpsItems(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeParametersAsync(DescribeParametersRequest request) {
return describeParametersAsync(request, null);
}
@Override
public java.util.concurrent.Future describeParametersAsync(final DescribeParametersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeParametersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeParametersResult call() throws Exception {
DescribeParametersResult result = null;
try {
result = executeDescribeParameters(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describePatchBaselinesAsync(DescribePatchBaselinesRequest request) {
return describePatchBaselinesAsync(request, null);
}
@Override
public java.util.concurrent.Future describePatchBaselinesAsync(final DescribePatchBaselinesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePatchBaselinesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePatchBaselinesResult call() throws Exception {
DescribePatchBaselinesResult result = null;
try {
result = executeDescribePatchBaselines(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describePatchGroupStateAsync(DescribePatchGroupStateRequest request) {
return describePatchGroupStateAsync(request, null);
}
@Override
public java.util.concurrent.Future describePatchGroupStateAsync(final DescribePatchGroupStateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePatchGroupStateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePatchGroupStateResult call() throws Exception {
DescribePatchGroupStateResult result = null;
try {
result = executeDescribePatchGroupState(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describePatchGroupsAsync(DescribePatchGroupsRequest request) {
return describePatchGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future describePatchGroupsAsync(final DescribePatchGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePatchGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePatchGroupsResult call() throws Exception {
DescribePatchGroupsResult result = null;
try {
result = executeDescribePatchGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describePatchPropertiesAsync(DescribePatchPropertiesRequest request) {
return describePatchPropertiesAsync(request, null);
}
@Override
public java.util.concurrent.Future describePatchPropertiesAsync(final DescribePatchPropertiesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePatchPropertiesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePatchPropertiesResult call() throws Exception {
DescribePatchPropertiesResult result = null;
try {
result = executeDescribePatchProperties(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSessionsAsync(DescribeSessionsRequest request) {
return describeSessionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSessionsAsync(final DescribeSessionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSessionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSessionsResult call() throws Exception {
DescribeSessionsResult result = null;
try {
result = executeDescribeSessions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateOpsItemRelatedItemAsync(DisassociateOpsItemRelatedItemRequest request) {
return disassociateOpsItemRelatedItemAsync(request, null);
}
@Override
public java.util.concurrent.Future