com.amazonaws.services.cloudformation.AmazonCloudFormationAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudformation Show documentation
/*
* Copyright 2017-2022 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.cloudformation;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.cloudformation.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 AWS CloudFormation 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.
*
* AWS CloudFormation
*
* CloudFormation allows you to create and manage Amazon Web Services infrastructure deployments predictably and
* repeatedly. You can use CloudFormation to leverage Amazon Web Services products, such as Amazon Elastic Compute
* Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to
* build highly-reliable, highly scalable, cost-effective applications without creating or configuring the underlying
* Amazon Web Services infrastructure.
*
*
* With CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a
* collection of resources as a single unit called a stack. CloudFormation creates and deletes all member resources of
* the stack together and manages all dependencies between the resources for you.
*
*
* For more information about CloudFormation, see the CloudFormation
* Product Page.
*
*
* CloudFormation makes use of other Amazon Web Services products. If you need additional technical information about a
* specific Amazon Web Services product, you can find the product's technical documentation at docs.aws.amazon.com
.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonCloudFormationAsyncClient extends AmazonCloudFormationClient implements AmazonCloudFormationAsync {
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 AWS CloudFormation. 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 AmazonCloudFormationAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AmazonCloudFormationAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation. 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 AWS CloudFormation (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation 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 AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration,
ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AmazonCloudFormationAsyncClientBuilder asyncBuilder() {
return AmazonCloudFormationAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonCloudFormationAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonCloudFormationAsyncClient(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 activateTypeAsync(ActivateTypeRequest request) {
return activateTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future activateTypeAsync(final ActivateTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ActivateTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ActivateTypeResult call() throws Exception {
ActivateTypeResult result = null;
try {
result = executeActivateType(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 batchDescribeTypeConfigurationsAsync(
BatchDescribeTypeConfigurationsRequest request) {
return batchDescribeTypeConfigurationsAsync(request, null);
}
@Override
public java.util.concurrent.Future batchDescribeTypeConfigurationsAsync(
final BatchDescribeTypeConfigurationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchDescribeTypeConfigurationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchDescribeTypeConfigurationsResult call() throws Exception {
BatchDescribeTypeConfigurationsResult result = null;
try {
result = executeBatchDescribeTypeConfigurations(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 cancelUpdateStackAsync(CancelUpdateStackRequest request) {
return cancelUpdateStackAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelUpdateStackAsync(final CancelUpdateStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelUpdateStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelUpdateStackResult call() throws Exception {
CancelUpdateStackResult result = null;
try {
result = executeCancelUpdateStack(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 continueUpdateRollbackAsync(ContinueUpdateRollbackRequest request) {
return continueUpdateRollbackAsync(request, null);
}
@Override
public java.util.concurrent.Future continueUpdateRollbackAsync(final ContinueUpdateRollbackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ContinueUpdateRollbackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ContinueUpdateRollbackResult call() throws Exception {
ContinueUpdateRollbackResult result = null;
try {
result = executeContinueUpdateRollback(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 createChangeSetAsync(CreateChangeSetRequest request) {
return createChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createChangeSetAsync(final CreateChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateChangeSetResult call() throws Exception {
CreateChangeSetResult result = null;
try {
result = executeCreateChangeSet(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 createStackAsync(CreateStackRequest request) {
return createStackAsync(request, null);
}
@Override
public java.util.concurrent.Future createStackAsync(final CreateStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStackResult call() throws Exception {
CreateStackResult result = null;
try {
result = executeCreateStack(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 createStackInstancesAsync(CreateStackInstancesRequest request) {
return createStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future createStackInstancesAsync(final CreateStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStackInstancesResult call() throws Exception {
CreateStackInstancesResult result = null;
try {
result = executeCreateStackInstances(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 createStackSetAsync(CreateStackSetRequest request) {
return createStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createStackSetAsync(final CreateStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStackSetResult call() throws Exception {
CreateStackSetResult result = null;
try {
result = executeCreateStackSet(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 deactivateTypeAsync(DeactivateTypeRequest request) {
return deactivateTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future deactivateTypeAsync(final DeactivateTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeactivateTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeactivateTypeResult call() throws Exception {
DeactivateTypeResult result = null;
try {
result = executeDeactivateType(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 deleteChangeSetAsync(DeleteChangeSetRequest request) {
return deleteChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteChangeSetAsync(final DeleteChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteChangeSetResult call() throws Exception {
DeleteChangeSetResult result = null;
try {
result = executeDeleteChangeSet(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 deleteStackAsync(DeleteStackRequest request) {
return deleteStackAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStackAsync(final DeleteStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStackResult call() throws Exception {
DeleteStackResult result = null;
try {
result = executeDeleteStack(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 deleteStackInstancesAsync(DeleteStackInstancesRequest request) {
return deleteStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStackInstancesAsync(final DeleteStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStackInstancesResult call() throws Exception {
DeleteStackInstancesResult result = null;
try {
result = executeDeleteStackInstances(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 deleteStackSetAsync(DeleteStackSetRequest request) {
return deleteStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStackSetAsync(final DeleteStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStackSetResult call() throws Exception {
DeleteStackSetResult result = null;
try {
result = executeDeleteStackSet(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 deregisterTypeAsync(DeregisterTypeRequest request) {
return deregisterTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterTypeAsync(final DeregisterTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterTypeResult call() throws Exception {
DeregisterTypeResult result = null;
try {
result = executeDeregisterType(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 describeAccountLimitsAsync(DescribeAccountLimitsRequest request) {
return describeAccountLimitsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountLimitsAsync(final DescribeAccountLimitsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountLimitsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountLimitsResult call() throws Exception {
DescribeAccountLimitsResult result = null;
try {
result = executeDescribeAccountLimits(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 describeChangeSetAsync(DescribeChangeSetRequest request) {
return describeChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeChangeSetAsync(final DescribeChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeChangeSetResult call() throws Exception {
DescribeChangeSetResult result = null;
try {
result = executeDescribeChangeSet(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 describePublisherAsync(DescribePublisherRequest request) {
return describePublisherAsync(request, null);
}
@Override
public java.util.concurrent.Future describePublisherAsync(final DescribePublisherRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePublisherRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePublisherResult call() throws Exception {
DescribePublisherResult result = null;
try {
result = executeDescribePublisher(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 describeStackDriftDetectionStatusAsync(
DescribeStackDriftDetectionStatusRequest request) {
return describeStackDriftDetectionStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackDriftDetectionStatusAsync(
final DescribeStackDriftDetectionStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackDriftDetectionStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackDriftDetectionStatusResult call() throws Exception {
DescribeStackDriftDetectionStatusResult result = null;
try {
result = executeDescribeStackDriftDetectionStatus(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 describeStackEventsAsync(DescribeStackEventsRequest request) {
return describeStackEventsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackEventsAsync(final DescribeStackEventsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackEventsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackEventsResult call() throws Exception {
DescribeStackEventsResult result = null;
try {
result = executeDescribeStackEvents(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 describeStackInstanceAsync(DescribeStackInstanceRequest request) {
return describeStackInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackInstanceAsync(final DescribeStackInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackInstanceResult call() throws Exception {
DescribeStackInstanceResult result = null;
try {
result = executeDescribeStackInstance(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 describeStackResourceAsync(DescribeStackResourceRequest request) {
return describeStackResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackResourceAsync(final DescribeStackResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackResourceResult call() throws Exception {
DescribeStackResourceResult result = null;
try {
result = executeDescribeStackResource(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 describeStackResourceDriftsAsync(DescribeStackResourceDriftsRequest request) {
return describeStackResourceDriftsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackResourceDriftsAsync(final DescribeStackResourceDriftsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackResourceDriftsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackResourceDriftsResult call() throws Exception {
DescribeStackResourceDriftsResult result = null;
try {
result = executeDescribeStackResourceDrifts(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 describeStackResourcesAsync(DescribeStackResourcesRequest request) {
return describeStackResourcesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackResourcesAsync(final DescribeStackResourcesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackResourcesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackResourcesResult call() throws Exception {
DescribeStackResourcesResult result = null;
try {
result = executeDescribeStackResources(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 describeStackSetAsync(DescribeStackSetRequest request) {
return describeStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackSetAsync(final DescribeStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackSetResult call() throws Exception {
DescribeStackSetResult result = null;
try {
result = executeDescribeStackSet(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 describeStackSetOperationAsync(DescribeStackSetOperationRequest request) {
return describeStackSetOperationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackSetOperationAsync(final DescribeStackSetOperationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackSetOperationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackSetOperationResult call() throws Exception {
DescribeStackSetOperationResult result = null;
try {
result = executeDescribeStackSetOperation(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 describeStacksAsync(DescribeStacksRequest request) {
return describeStacksAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStacksAsync(final DescribeStacksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStacksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStacksResult call() throws Exception {
DescribeStacksResult result = null;
try {
result = executeDescribeStacks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeStacks operation.
*
* @see #describeStacksAsync(DescribeStacksRequest)
*/
@Override
public java.util.concurrent.Future describeStacksAsync() {
return describeStacksAsync(new DescribeStacksRequest());
}
/**
* Simplified method form for invoking the DescribeStacks operation with an AsyncHandler.
*
* @see #describeStacksAsync(DescribeStacksRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeStacksAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeStacksAsync(new DescribeStacksRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeTypeAsync(DescribeTypeRequest request) {
return describeTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTypeAsync(final DescribeTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTypeResult call() throws Exception {
DescribeTypeResult result = null;
try {
result = executeDescribeType(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 describeTypeRegistrationAsync(DescribeTypeRegistrationRequest request) {
return describeTypeRegistrationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTypeRegistrationAsync(final DescribeTypeRegistrationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTypeRegistrationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTypeRegistrationResult call() throws Exception {
DescribeTypeRegistrationResult result = null;
try {
result = executeDescribeTypeRegistration(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 detectStackDriftAsync(DetectStackDriftRequest request) {
return detectStackDriftAsync(request, null);
}
@Override
public java.util.concurrent.Future detectStackDriftAsync(final DetectStackDriftRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DetectStackDriftRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DetectStackDriftResult call() throws Exception {
DetectStackDriftResult result = null;
try {
result = executeDetectStackDrift(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 detectStackResourceDriftAsync(DetectStackResourceDriftRequest request) {
return detectStackResourceDriftAsync(request, null);
}
@Override
public java.util.concurrent.Future detectStackResourceDriftAsync(final DetectStackResourceDriftRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DetectStackResourceDriftRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DetectStackResourceDriftResult call() throws Exception {
DetectStackResourceDriftResult result = null;
try {
result = executeDetectStackResourceDrift(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 detectStackSetDriftAsync(DetectStackSetDriftRequest request) {
return detectStackSetDriftAsync(request, null);
}
@Override
public java.util.concurrent.Future detectStackSetDriftAsync(final DetectStackSetDriftRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DetectStackSetDriftRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DetectStackSetDriftResult call() throws Exception {
DetectStackSetDriftResult result = null;
try {
result = executeDetectStackSetDrift(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 estimateTemplateCostAsync(EstimateTemplateCostRequest request) {
return estimateTemplateCostAsync(request, null);
}
@Override
public java.util.concurrent.Future estimateTemplateCostAsync(final EstimateTemplateCostRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final EstimateTemplateCostRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public EstimateTemplateCostResult call() throws Exception {
EstimateTemplateCostResult result = null;
try {
result = executeEstimateTemplateCost(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the EstimateTemplateCost operation.
*
* @see #estimateTemplateCostAsync(EstimateTemplateCostRequest)
*/
@Override
public java.util.concurrent.Future estimateTemplateCostAsync() {
return estimateTemplateCostAsync(new EstimateTemplateCostRequest());
}
/**
* Simplified method form for invoking the EstimateTemplateCost operation with an AsyncHandler.
*
* @see #estimateTemplateCostAsync(EstimateTemplateCostRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future estimateTemplateCostAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return estimateTemplateCostAsync(new EstimateTemplateCostRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future executeChangeSetAsync(ExecuteChangeSetRequest request) {
return executeChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future executeChangeSetAsync(final ExecuteChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ExecuteChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ExecuteChangeSetResult call() throws Exception {
ExecuteChangeSetResult result = null;
try {
result = executeExecuteChangeSet(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 getStackPolicyAsync(GetStackPolicyRequest request) {
return getStackPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getStackPolicyAsync(final GetStackPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetStackPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetStackPolicyResult call() throws Exception {
GetStackPolicyResult result = null;
try {
result = executeGetStackPolicy(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 getTemplateAsync(GetTemplateRequest request) {
return getTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future getTemplateAsync(final GetTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTemplateResult call() throws Exception {
GetTemplateResult result = null;
try {
result = executeGetTemplate(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 getTemplateSummaryAsync(GetTemplateSummaryRequest request) {
return getTemplateSummaryAsync(request, null);
}
@Override
public java.util.concurrent.Future getTemplateSummaryAsync(final GetTemplateSummaryRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTemplateSummaryRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTemplateSummaryResult call() throws Exception {
GetTemplateSummaryResult result = null;
try {
result = executeGetTemplateSummary(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the GetTemplateSummary operation.
*
* @see #getTemplateSummaryAsync(GetTemplateSummaryRequest)
*/
@Override
public java.util.concurrent.Future getTemplateSummaryAsync() {
return getTemplateSummaryAsync(new GetTemplateSummaryRequest());
}
/**
* Simplified method form for invoking the GetTemplateSummary operation with an AsyncHandler.
*
* @see #getTemplateSummaryAsync(GetTemplateSummaryRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future getTemplateSummaryAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return getTemplateSummaryAsync(new GetTemplateSummaryRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future importStacksToStackSetAsync(ImportStacksToStackSetRequest request) {
return importStacksToStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future importStacksToStackSetAsync(final ImportStacksToStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ImportStacksToStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ImportStacksToStackSetResult call() throws Exception {
ImportStacksToStackSetResult result = null;
try {
result = executeImportStacksToStackSet(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 listChangeSetsAsync(ListChangeSetsRequest request) {
return listChangeSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listChangeSetsAsync(final ListChangeSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListChangeSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListChangeSetsResult call() throws Exception {
ListChangeSetsResult result = null;
try {
result = executeListChangeSets(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 listExportsAsync(ListExportsRequest request) {
return listExportsAsync(request, null);
}
@Override
public java.util.concurrent.Future listExportsAsync(final ListExportsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListExportsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListExportsResult call() throws Exception {
ListExportsResult result = null;
try {
result = executeListExports(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 listImportsAsync(ListImportsRequest request) {
return listImportsAsync(request, null);
}
@Override
public java.util.concurrent.Future listImportsAsync(final ListImportsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListImportsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListImportsResult call() throws Exception {
ListImportsResult result = null;
try {
result = executeListImports(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 listStackInstancesAsync(ListStackInstancesRequest request) {
return listStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackInstancesAsync(final ListStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackInstancesResult call() throws Exception {
ListStackInstancesResult result = null;
try {
result = executeListStackInstances(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 listStackResourcesAsync(ListStackResourcesRequest request) {
return listStackResourcesAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackResourcesAsync(final ListStackResourcesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackResourcesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackResourcesResult call() throws Exception {
ListStackResourcesResult result = null;
try {
result = executeListStackResources(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 listStackSetOperationResultsAsync(ListStackSetOperationResultsRequest request) {
return listStackSetOperationResultsAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackSetOperationResultsAsync(final ListStackSetOperationResultsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackSetOperationResultsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackSetOperationResultsResult call() throws Exception {
ListStackSetOperationResultsResult result = null;
try {
result = executeListStackSetOperationResults(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 listStackSetOperationsAsync(ListStackSetOperationsRequest request) {
return listStackSetOperationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackSetOperationsAsync(final ListStackSetOperationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackSetOperationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackSetOperationsResult call() throws Exception {
ListStackSetOperationsResult result = null;
try {
result = executeListStackSetOperations(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 listStackSetsAsync(ListStackSetsRequest request) {
return listStackSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackSetsAsync(final ListStackSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackSetsResult call() throws Exception {
ListStackSetsResult result = null;
try {
result = executeListStackSets(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 listStacksAsync(ListStacksRequest request) {
return listStacksAsync(request, null);
}
@Override
public java.util.concurrent.Future listStacksAsync(final ListStacksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStacksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStacksResult call() throws Exception {
ListStacksResult result = null;
try {
result = executeListStacks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the ListStacks operation.
*
* @see #listStacksAsync(ListStacksRequest)
*/
@Override
public java.util.concurrent.Future listStacksAsync() {
return listStacksAsync(new ListStacksRequest());
}
/**
* Simplified method form for invoking the ListStacks operation with an AsyncHandler.
*
* @see #listStacksAsync(ListStacksRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future listStacksAsync(com.amazonaws.handlers.AsyncHandler asyncHandler) {
return listStacksAsync(new ListStacksRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future listTypeRegistrationsAsync(ListTypeRegistrationsRequest request) {
return listTypeRegistrationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTypeRegistrationsAsync(final ListTypeRegistrationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTypeRegistrationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTypeRegistrationsResult call() throws Exception {
ListTypeRegistrationsResult result = null;
try {
result = executeListTypeRegistrations(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 listTypeVersionsAsync(ListTypeVersionsRequest request) {
return listTypeVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTypeVersionsAsync(final ListTypeVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTypeVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTypeVersionsResult call() throws Exception {
ListTypeVersionsResult result = null;
try {
result = executeListTypeVersions(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 listTypesAsync(ListTypesRequest request) {
return listTypesAsync(request, null);
}
@Override
public java.util.concurrent.Future listTypesAsync(final ListTypesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTypesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTypesResult call() throws Exception {
ListTypesResult result = null;
try {
result = executeListTypes(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 publishTypeAsync(PublishTypeRequest request) {
return publishTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future publishTypeAsync(final PublishTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final PublishTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public PublishTypeResult call() throws Exception {
PublishTypeResult result = null;
try {
result = executePublishType(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 recordHandlerProgressAsync(RecordHandlerProgressRequest request) {
return recordHandlerProgressAsync(request, null);
}
@Override
public java.util.concurrent.Future recordHandlerProgressAsync(final RecordHandlerProgressRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RecordHandlerProgressRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RecordHandlerProgressResult call() throws Exception {
RecordHandlerProgressResult result = null;
try {
result = executeRecordHandlerProgress(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 registerPublisherAsync(RegisterPublisherRequest request) {
return registerPublisherAsync(request, null);
}
@Override
public java.util.concurrent.Future registerPublisherAsync(final RegisterPublisherRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RegisterPublisherRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RegisterPublisherResult call() throws Exception {
RegisterPublisherResult result = null;
try {
result = executeRegisterPublisher(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 registerTypeAsync(RegisterTypeRequest request) {
return registerTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future registerTypeAsync(final RegisterTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RegisterTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RegisterTypeResult call() throws Exception {
RegisterTypeResult result = null;
try {
result = executeRegisterType(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 rollbackStackAsync(RollbackStackRequest request) {
return rollbackStackAsync(request, null);
}
@Override
public java.util.concurrent.Future rollbackStackAsync(final RollbackStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RollbackStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RollbackStackResult call() throws Exception {
RollbackStackResult result = null;
try {
result = executeRollbackStack(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 setStackPolicyAsync(SetStackPolicyRequest request) {
return setStackPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future setStackPolicyAsync(final SetStackPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SetStackPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SetStackPolicyResult call() throws Exception {
SetStackPolicyResult result = null;
try {
result = executeSetStackPolicy(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 setTypeConfigurationAsync(SetTypeConfigurationRequest request) {
return setTypeConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future setTypeConfigurationAsync(final SetTypeConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SetTypeConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SetTypeConfigurationResult call() throws Exception {
SetTypeConfigurationResult result = null;
try {
result = executeSetTypeConfiguration(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 setTypeDefaultVersionAsync(SetTypeDefaultVersionRequest request) {
return setTypeDefaultVersionAsync(request, null);
}
@Override
public java.util.concurrent.Future setTypeDefaultVersionAsync(final SetTypeDefaultVersionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SetTypeDefaultVersionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SetTypeDefaultVersionResult call() throws Exception {
SetTypeDefaultVersionResult result = null;
try {
result = executeSetTypeDefaultVersion(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 signalResourceAsync(SignalResourceRequest request) {
return signalResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future signalResourceAsync(final SignalResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SignalResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SignalResourceResult call() throws Exception {
SignalResourceResult result = null;
try {
result = executeSignalResource(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 stopStackSetOperationAsync(StopStackSetOperationRequest request) {
return stopStackSetOperationAsync(request, null);
}
@Override
public java.util.concurrent.Future stopStackSetOperationAsync(final StopStackSetOperationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final StopStackSetOperationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public StopStackSetOperationResult call() throws Exception {
StopStackSetOperationResult result = null;
try {
result = executeStopStackSetOperation(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 testTypeAsync(TestTypeRequest request) {
return testTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future