public class AmazonCloudFormationAsyncClient extends AmazonCloudFormationClient implements AmazonCloudFormationAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
AWS CloudFormation enables you to create and manage AWS infrastructure deployments predictably and repeatedly. AWS CloudFormation helps you leverage AWS products such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, highly scalable, cost effective applications without worrying about creating and configuring the underlying AWS infrastructure.
With AWS 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. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you.
For more information about this product, go to the CloudFormation Product Page.
Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.
LOGGING_AWS_REQUEST_METRIC
Constructor and Description |
---|
AmazonCloudFormationAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation.
|
AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation using the specified AWS account credentials.
|
AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService 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.
|
AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation using the specified AWS account credentials and executor
service.
|
AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation using the specified AWS account credentials provider.
|
AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation using the provided AWS account credentials provider and
client configuration options.
|
AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService 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.
|
AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation using the specified AWS account credentials provider and
executor service.
|
AmazonCloudFormationAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
CloudFormation.
|
cancelUpdateStack, createStack, deleteStack, describeAccountLimits, describeStackEvents, describeStackResource, describeStackResources, describeStacks, describeStacks, estimateTemplateCost, estimateTemplateCost, getCachedResponseMetadata, getStackPolicy, getTemplate, getTemplateSummary, getTemplateSummary, listStackResources, listStacks, listStacks, setStackPolicy, signalResource, updateStack, validateTemplate
addRequestHandler, addRequestHandler, configureRegion, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelUpdateStack, createStack, deleteStack, describeAccountLimits, describeStackEvents, describeStackResource, describeStackResources, describeStacks, describeStacks, estimateTemplateCost, estimateTemplateCost, getCachedResponseMetadata, getStackPolicy, getTemplate, getTemplateSummary, getTemplateSummary, listStackResources, listStacks, listStacks, setEndpoint, setRegion, setStackPolicy, signalResource, updateStack, validateTemplate
public AmazonCloudFormationAsyncClient()
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).
public AmazonCloudFormationAsyncClient(ClientConfiguration clientConfiguration)
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 ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client
connects to AWS CloudFormation (ex: proxy settings, retry counts,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials)
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).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
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).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
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 ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public ExecutorService getExecutorService()
public Future<Void> cancelUpdateStackAsync(CancelUpdateStackRequest request)
AmazonCloudFormationAsync
Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration.
cancelUpdateStackAsync
in interface AmazonCloudFormationAsync
request
- The input for the CancelUpdateStack action.public Future<Void> cancelUpdateStackAsync(CancelUpdateStackRequest request, AsyncHandler<CancelUpdateStackRequest,Void> asyncHandler)
AmazonCloudFormationAsync
Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration.
cancelUpdateStackAsync
in interface AmazonCloudFormationAsync
request
- The input for the CancelUpdateStack action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateStackResult> createStackAsync(CreateStackRequest request)
AmazonCloudFormationAsync
Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack via the DescribeStacks API.
createStackAsync
in interface AmazonCloudFormationAsync
request
- The input for CreateStack action.public Future<CreateStackResult> createStackAsync(CreateStackRequest request, AsyncHandler<CreateStackRequest,CreateStackResult> asyncHandler)
AmazonCloudFormationAsync
Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack via the DescribeStacks API.
createStackAsync
in interface AmazonCloudFormationAsync
request
- The input for CreateStack action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> deleteStackAsync(DeleteStackRequest request)
AmazonCloudFormationAsync
Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks do not show up in the DescribeStacks API if the deletion has been completed successfully.
deleteStackAsync
in interface AmazonCloudFormationAsync
request
- The input for DeleteStack action.public Future<Void> deleteStackAsync(DeleteStackRequest request, AsyncHandler<DeleteStackRequest,Void> asyncHandler)
AmazonCloudFormationAsync
Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks do not show up in the DescribeStacks API if the deletion has been completed successfully.
deleteStackAsync
in interface AmazonCloudFormationAsync
request
- The input for DeleteStack action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request)
AmazonCloudFormationAsync
Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.
describeAccountLimitsAsync
in interface AmazonCloudFormationAsync
request
- The input for the DescribeAccountLimits action.public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request, AsyncHandler<DescribeAccountLimitsRequest,DescribeAccountLimitsResult> asyncHandler)
AmazonCloudFormationAsync
Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.
describeAccountLimitsAsync
in interface AmazonCloudFormationAsync
request
- The input for the DescribeAccountLimits action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeStackEventsResult> describeStackEventsAsync(DescribeStackEventsRequest request)
AmazonCloudFormationAsync
Returns all stack related events for a specified stack. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.
describeStackEventsAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStackEvents action.public Future<DescribeStackEventsResult> describeStackEventsAsync(DescribeStackEventsRequest request, AsyncHandler<DescribeStackEventsRequest,DescribeStackEventsResult> asyncHandler)
AmazonCloudFormationAsync
Returns all stack related events for a specified stack. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.
describeStackEventsAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStackEvents action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeStackResourceResult> describeStackResourceAsync(DescribeStackResourceRequest request)
AmazonCloudFormationAsync
Returns a description of the specified resource in the specified stack.
For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.
describeStackResourceAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStackResource action.public Future<DescribeStackResourceResult> describeStackResourceAsync(DescribeStackResourceRequest request, AsyncHandler<DescribeStackResourceRequest,DescribeStackResourceResult> asyncHandler)
AmazonCloudFormationAsync
Returns a description of the specified resource in the specified stack.
For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.
describeStackResourceAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStackResource action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeStackResourcesResult> describeStackResourcesAsync(DescribeStackResourcesRequest request)
AmazonCloudFormationAsync
Returns AWS resource descriptions for running and deleted stacks. If
StackName
is specified, all the associated resources that
are part of the stack are returned. If PhysicalResourceId
is
specified, the associated resources of the stack that the resource
belongs to are returned.
ListStackResources
instead.
For deleted stacks, DescribeStackResources
returns resource
information for up to 90 days after the stack has been deleted.
You must specify either StackName
or
PhysicalResourceId
, but not both. In addition, you can
specify LogicalResourceId
to filter the returned result. For
more information about resources, the LogicalResourceId
and
PhysicalResourceId
, go to the AWS
CloudFormation User Guide.
ValidationError
is returned if you specify both
StackName
and PhysicalResourceId
in the same
request.describeStackResourcesAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStackResources action.public Future<DescribeStackResourcesResult> describeStackResourcesAsync(DescribeStackResourcesRequest request, AsyncHandler<DescribeStackResourcesRequest,DescribeStackResourcesResult> asyncHandler)
AmazonCloudFormationAsync
Returns AWS resource descriptions for running and deleted stacks. If
StackName
is specified, all the associated resources that
are part of the stack are returned. If PhysicalResourceId
is
specified, the associated resources of the stack that the resource
belongs to are returned.
ListStackResources
instead.
For deleted stacks, DescribeStackResources
returns resource
information for up to 90 days after the stack has been deleted.
You must specify either StackName
or
PhysicalResourceId
, but not both. In addition, you can
specify LogicalResourceId
to filter the returned result. For
more information about resources, the LogicalResourceId
and
PhysicalResourceId
, go to the AWS
CloudFormation User Guide.
ValidationError
is returned if you specify both
StackName
and PhysicalResourceId
in the same
request.describeStackResourcesAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStackResources action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest request)
AmazonCloudFormationAsync
Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
describeStacksAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStacks action.public Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest request, AsyncHandler<DescribeStacksRequest,DescribeStacksResult> asyncHandler)
AmazonCloudFormationAsync
Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
describeStacksAsync
in interface AmazonCloudFormationAsync
request
- The input for DescribeStacks action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeStacksResult> describeStacksAsync()
describeStacksAsync
in interface AmazonCloudFormationAsync
describeStacksAsync(DescribeStacksRequest)
public Future<DescribeStacksResult> describeStacksAsync(AsyncHandler<DescribeStacksRequest,DescribeStacksResult> asyncHandler)
describeStacksAsync
in interface AmazonCloudFormationAsync
describeStacksAsync(DescribeStacksRequest,
com.amazonaws.handlers.AsyncHandler)
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(EstimateTemplateCostRequest request)
AmazonCloudFormationAsync
Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
estimateTemplateCostAsync
in interface AmazonCloudFormationAsync
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(EstimateTemplateCostRequest request, AsyncHandler<EstimateTemplateCostRequest,EstimateTemplateCostResult> asyncHandler)
AmazonCloudFormationAsync
Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
estimateTemplateCostAsync
in interface AmazonCloudFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<EstimateTemplateCostResult> estimateTemplateCostAsync()
estimateTemplateCostAsync
in interface AmazonCloudFormationAsync
estimateTemplateCostAsync(EstimateTemplateCostRequest)
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(AsyncHandler<EstimateTemplateCostRequest,EstimateTemplateCostResult> asyncHandler)
estimateTemplateCostAsync
in interface AmazonCloudFormationAsync
estimateTemplateCostAsync(EstimateTemplateCostRequest,
com.amazonaws.handlers.AsyncHandler)
public Future<GetStackPolicyResult> getStackPolicyAsync(GetStackPolicyRequest request)
AmazonCloudFormationAsync
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
getStackPolicyAsync
in interface AmazonCloudFormationAsync
request
- The input for the GetStackPolicy action.public Future<GetStackPolicyResult> getStackPolicyAsync(GetStackPolicyRequest request, AsyncHandler<GetStackPolicyRequest,GetStackPolicyResult> asyncHandler)
AmazonCloudFormationAsync
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
getStackPolicyAsync
in interface AmazonCloudFormationAsync
request
- The input for the GetStackPolicy action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetTemplateResult> getTemplateAsync(GetTemplateRequest request)
AmazonCloudFormationAsync
Returns the template body for a specified stack. You can get the template for running or deleted stacks.
For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.
ValidationError
is
returned. getTemplateAsync
in interface AmazonCloudFormationAsync
request
- The input for a GetTemplate action.public Future<GetTemplateResult> getTemplateAsync(GetTemplateRequest request, AsyncHandler<GetTemplateRequest,GetTemplateResult> asyncHandler)
AmazonCloudFormationAsync
Returns the template body for a specified stack. You can get the template for running or deleted stacks.
For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.
ValidationError
is
returned. getTemplateAsync
in interface AmazonCloudFormationAsync
request
- The input for a GetTemplate action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(GetTemplateSummaryRequest request)
AmazonCloudFormationAsync
Returns information about a new or existing template. The
GetTemplateSummary
action is useful for viewing parameter
information, such as default parameter values and parameter types, before
you create or update a stack.
You can use the GetTemplateSummary
action when you submit a
template, or you can get template information for a running or deleted
stack.
For deleted stacks, GetTemplateSummary
returns the template
information for up to 90 days after the stack has been deleted. If the
template does not exist, a ValidationError
is returned.
getTemplateSummaryAsync
in interface AmazonCloudFormationAsync
request
- The input for the GetTemplateSummary action.public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(GetTemplateSummaryRequest request, AsyncHandler<GetTemplateSummaryRequest,GetTemplateSummaryResult> asyncHandler)
AmazonCloudFormationAsync
Returns information about a new or existing template. The
GetTemplateSummary
action is useful for viewing parameter
information, such as default parameter values and parameter types, before
you create or update a stack.
You can use the GetTemplateSummary
action when you submit a
template, or you can get template information for a running or deleted
stack.
For deleted stacks, GetTemplateSummary
returns the template
information for up to 90 days after the stack has been deleted. If the
template does not exist, a ValidationError
is returned.
getTemplateSummaryAsync
in interface AmazonCloudFormationAsync
request
- The input for the GetTemplateSummary action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetTemplateSummaryResult> getTemplateSummaryAsync()
getTemplateSummaryAsync
in interface AmazonCloudFormationAsync
getTemplateSummaryAsync(GetTemplateSummaryRequest)
public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(AsyncHandler<GetTemplateSummaryRequest,GetTemplateSummaryResult> asyncHandler)
getTemplateSummaryAsync
in interface AmazonCloudFormationAsync
getTemplateSummaryAsync(GetTemplateSummaryRequest,
com.amazonaws.handlers.AsyncHandler)
public Future<ListStackResourcesResult> listStackResourcesAsync(ListStackResourcesRequest request)
AmazonCloudFormationAsync
Returns descriptions of all resources of the specified stack.
For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.
listStackResourcesAsync
in interface AmazonCloudFormationAsync
request
- The input for the ListStackResource action.public Future<ListStackResourcesResult> listStackResourcesAsync(ListStackResourcesRequest request, AsyncHandler<ListStackResourcesRequest,ListStackResourcesResult> asyncHandler)
AmazonCloudFormationAsync
Returns descriptions of all resources of the specified stack.
For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.
listStackResourcesAsync
in interface AmazonCloudFormationAsync
request
- The input for the ListStackResource action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListStacksResult> listStacksAsync(ListStacksRequest request)
AmazonCloudFormationAsync
Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).
listStacksAsync
in interface AmazonCloudFormationAsync
request
- The input for ListStacks action.public Future<ListStacksResult> listStacksAsync(ListStacksRequest request, AsyncHandler<ListStacksRequest,ListStacksResult> asyncHandler)
AmazonCloudFormationAsync
Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).
listStacksAsync
in interface AmazonCloudFormationAsync
request
- The input for ListStacks action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListStacksResult> listStacksAsync()
listStacksAsync
in interface AmazonCloudFormationAsync
listStacksAsync(ListStacksRequest)
public Future<ListStacksResult> listStacksAsync(AsyncHandler<ListStacksRequest,ListStacksResult> asyncHandler)
listStacksAsync
in interface AmazonCloudFormationAsync
listStacksAsync(ListStacksRequest,
com.amazonaws.handlers.AsyncHandler)
public Future<Void> setStackPolicyAsync(SetStackPolicyRequest request)
AmazonCloudFormationAsync
Sets a stack policy for a specified stack.
setStackPolicyAsync
in interface AmazonCloudFormationAsync
request
- The input for the SetStackPolicy action.public Future<Void> setStackPolicyAsync(SetStackPolicyRequest request, AsyncHandler<SetStackPolicyRequest,Void> asyncHandler)
AmazonCloudFormationAsync
Sets a stack policy for a specified stack.
setStackPolicyAsync
in interface AmazonCloudFormationAsync
request
- The input for the SetStackPolicy action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> signalResourceAsync(SignalResourceRequest request)
AmazonCloudFormationAsync
Sends a signal to the specified resource with a success or failure status. You can use the SignalResource API in conjunction with a creation policy or update policy. AWS CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource API is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.
signalResourceAsync
in interface AmazonCloudFormationAsync
request
- The input for the SignalResource action.public Future<Void> signalResourceAsync(SignalResourceRequest request, AsyncHandler<SignalResourceRequest,Void> asyncHandler)
AmazonCloudFormationAsync
Sends a signal to the specified resource with a success or failure status. You can use the SignalResource API in conjunction with a creation policy or update policy. AWS CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource API is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.
signalResourceAsync
in interface AmazonCloudFormationAsync
request
- The input for the SignalResource action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateStackResult> updateStackAsync(UpdateStackRequest request)
AmazonCloudFormationAsync
Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack via the DescribeStacks action.
To get a copy of the template for an existing stack, you can use the GetTemplate action.
Tags that were associated with this stack during creation time will still
be associated with the stack after an UpdateStack
operation.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.
updateStackAsync
in interface AmazonCloudFormationAsync
request
- The input for UpdateStack action.public Future<UpdateStackResult> updateStackAsync(UpdateStackRequest request, AsyncHandler<UpdateStackRequest,UpdateStackResult> asyncHandler)
AmazonCloudFormationAsync
Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack via the DescribeStacks action.
To get a copy of the template for an existing stack, you can use the GetTemplate action.
Tags that were associated with this stack during creation time will still
be associated with the stack after an UpdateStack
operation.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.
updateStackAsync
in interface AmazonCloudFormationAsync
request
- The input for UpdateStack action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ValidateTemplateResult> validateTemplateAsync(ValidateTemplateRequest request)
AmazonCloudFormationAsync
Validates a specified template.
validateTemplateAsync
in interface AmazonCloudFormationAsync
request
- The input for ValidateTemplate action.public Future<ValidateTemplateResult> validateTemplateAsync(ValidateTemplateRequest request, AsyncHandler<ValidateTemplateRequest,ValidateTemplateResult> asyncHandler)
AmazonCloudFormationAsync
Validates a specified template.
validateTemplateAsync
in interface AmazonCloudFormationAsync
request
- The input for ValidateTemplate action.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by
getExecutorService().awaitTermination()
prior to calling this
method.shutdown
in interface AmazonCloudFormation
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.