Class AmazonCloudFormationAsyncClient
- All Implemented Interfaces:
AmazonCloudFormation
,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://docs.aws.amazon.com/.
-
Field Summary
Fields inherited from class com.amazonaws.services.cloudformation.AmazonCloudFormationClient
configFactory, exceptionUnmarshallers
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
(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
(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
(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on AWS CloudFormation. -
Method Summary
Modifier and TypeMethodDescriptionCancels an update on the specified stack.cancelUpdateStackAsync
(CancelUpdateStackRequest request, AsyncHandler<CancelUpdateStackRequest, CancelUpdateStackResult> asyncHandler) Cancels an update on the specified stack.For a specified stack that is in theUPDATE_ROLLBACK_FAILED
state, continues rolling it back to theUPDATE_ROLLBACK_COMPLETE
state.continueUpdateRollbackAsync
(ContinueUpdateRollbackRequest request, AsyncHandler<ContinueUpdateRollbackRequest, ContinueUpdateRollbackResult> asyncHandler) For a specified stack that is in theUPDATE_ROLLBACK_FAILED
state, continues rolling it back to theUPDATE_ROLLBACK_COMPLETE
state.Creates a list of changes for a stack.createChangeSetAsync
(CreateChangeSetRequest request, AsyncHandler<CreateChangeSetRequest, CreateChangeSetResult> asyncHandler) Creates a list of changes for a stack.createStackAsync
(CreateStackRequest request) Creates a stack as specified in the template.createStackAsync
(CreateStackRequest request, AsyncHandler<CreateStackRequest, CreateStackResult> asyncHandler) Creates a stack as specified in the template.Deletes the specified change set.deleteChangeSetAsync
(DeleteChangeSetRequest request, AsyncHandler<DeleteChangeSetRequest, DeleteChangeSetResult> asyncHandler) Deletes the specified change set.deleteStackAsync
(DeleteStackRequest request) Deletes a specified stack.deleteStackAsync
(DeleteStackRequest request, AsyncHandler<DeleteStackRequest, DeleteStackResult> asyncHandler) Deletes a specified stack.Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.describeAccountLimitsAsync
(DescribeAccountLimitsRequest request, AsyncHandler<DescribeAccountLimitsRequest, DescribeAccountLimitsResult> asyncHandler) Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.Returns the inputs for the change set and a list of changes that AWS CloudFormation will make if you execute the change set.describeChangeSetAsync
(DescribeChangeSetRequest request, AsyncHandler<DescribeChangeSetRequest, DescribeChangeSetResult> asyncHandler) Returns the inputs for the change set and a list of changes that AWS CloudFormation will make if you execute the change set.Returns all stack related events for a specified stack in reverse chronological order.describeStackEventsAsync
(DescribeStackEventsRequest request, AsyncHandler<DescribeStackEventsRequest, DescribeStackEventsResult> asyncHandler) Returns all stack related events for a specified stack in reverse chronological order.Returns a description of the specified resource in the specified stack.describeStackResourceAsync
(DescribeStackResourceRequest request, AsyncHandler<DescribeStackResourceRequest, DescribeStackResourceResult> asyncHandler) Returns a description of the specified resource in the specified stack.Returns AWS resource descriptions for running and deleted stacks.describeStackResourcesAsync
(DescribeStackResourcesRequest request, AsyncHandler<DescribeStackResourcesRequest, DescribeStackResourcesResult> asyncHandler) Returns AWS resource descriptions for running and deleted stacks.Simplified method form for invoking the DescribeStacks operation.describeStacksAsync
(AsyncHandler<DescribeStacksRequest, DescribeStacksResult> asyncHandler) Simplified method form for invoking the DescribeStacks operation with an AsyncHandler.describeStacksAsync
(DescribeStacksRequest request) Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.describeStacksAsync
(DescribeStacksRequest request, AsyncHandler<DescribeStacksRequest, DescribeStacksResult> asyncHandler) Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.Simplified method form for invoking the EstimateTemplateCost operation.estimateTemplateCostAsync
(AsyncHandler<EstimateTemplateCostRequest, EstimateTemplateCostResult> asyncHandler) Simplified method form for invoking the EstimateTemplateCost operation with an AsyncHandler.Returns the estimated monthly cost of a template.estimateTemplateCostAsync
(EstimateTemplateCostRequest request, AsyncHandler<EstimateTemplateCostRequest, EstimateTemplateCostResult> asyncHandler) Returns the estimated monthly cost of a template.Updates a stack using the input information that was provided when the specified change set was created.executeChangeSetAsync
(ExecuteChangeSetRequest request, AsyncHandler<ExecuteChangeSetRequest, ExecuteChangeSetResult> asyncHandler) Updates a stack using the input information that was provided when the specified change set was created.Returns the executor service used by this client to execute async requests.getStackPolicyAsync
(GetStackPolicyRequest request) Returns the stack policy for a specified stack.getStackPolicyAsync
(GetStackPolicyRequest request, AsyncHandler<GetStackPolicyRequest, GetStackPolicyResult> asyncHandler) Returns the stack policy for a specified stack.getTemplateAsync
(GetTemplateRequest request) Returns the template body for a specified stack.getTemplateAsync
(GetTemplateRequest request, AsyncHandler<GetTemplateRequest, GetTemplateResult> asyncHandler) Returns the template body for a specified stack.Simplified method form for invoking the GetTemplateSummary operation.getTemplateSummaryAsync
(AsyncHandler<GetTemplateSummaryRequest, GetTemplateSummaryResult> asyncHandler) Simplified method form for invoking the GetTemplateSummary operation with an AsyncHandler.Returns information about a new or existing template.getTemplateSummaryAsync
(GetTemplateSummaryRequest request, AsyncHandler<GetTemplateSummaryRequest, GetTemplateSummaryResult> asyncHandler) Returns information about a new or existing template.listChangeSetsAsync
(ListChangeSetsRequest request) Returns the ID and status of each active change set for a stack.listChangeSetsAsync
(ListChangeSetsRequest request, AsyncHandler<ListChangeSetsRequest, ListChangeSetsResult> asyncHandler) Returns the ID and status of each active change set for a stack.Returns descriptions of all resources of the specified stack.listStackResourcesAsync
(ListStackResourcesRequest request, AsyncHandler<ListStackResourcesRequest, ListStackResourcesResult> asyncHandler) Returns descriptions of all resources of the specified stack.Simplified method form for invoking the ListStacks operation.listStacksAsync
(AsyncHandler<ListStacksRequest, ListStacksResult> asyncHandler) Simplified method form for invoking the ListStacks operation with an AsyncHandler.listStacksAsync
(ListStacksRequest request) Returns the summary information for stacks whose status matches the specified StackStatusFilter.listStacksAsync
(ListStacksRequest request, AsyncHandler<ListStacksRequest, ListStacksResult> asyncHandler) Returns the summary information for stacks whose status matches the specified StackStatusFilter.setStackPolicyAsync
(SetStackPolicyRequest request) Sets a stack policy for a specified stack.setStackPolicyAsync
(SetStackPolicyRequest request, AsyncHandler<SetStackPolicyRequest, SetStackPolicyResult> asyncHandler) Sets a stack policy for a specified stack.void
shutdown()
Shuts down the client, releasing all managed resources.signalResourceAsync
(SignalResourceRequest request) Sends a signal to the specified resource with a success or failure status.signalResourceAsync
(SignalResourceRequest request, AsyncHandler<SignalResourceRequest, SignalResourceResult> asyncHandler) Sends a signal to the specified resource with a success or failure status.updateStackAsync
(UpdateStackRequest request) Updates a stack as specified in the template.updateStackAsync
(UpdateStackRequest request, AsyncHandler<UpdateStackRequest, UpdateStackResult> asyncHandler) Updates a stack as specified in the template.Validates a specified template.validateTemplateAsync
(ValidateTemplateRequest request, AsyncHandler<ValidateTemplateRequest, ValidateTemplateResult> asyncHandler) Validates a specified template.Methods inherited from class com.amazonaws.services.cloudformation.AmazonCloudFormationClient
cancelUpdateStack, continueUpdateRollback, createChangeSet, createStack, deleteChangeSet, deleteStack, describeAccountLimits, describeChangeSet, describeStackEvents, describeStackResource, describeStackResources, describeStacks, describeStacks, estimateTemplateCost, estimateTemplateCost, executeChangeSet, getCachedResponseMetadata, getStackPolicy, getTemplate, getTemplateSummary, getTemplateSummary, listChangeSets, listStackResources, listStacks, listStacks, setStackPolicy, signalResource, updateStack, validateTemplate
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amazonaws.services.cloudformation.AmazonCloudFormation
cancelUpdateStack, continueUpdateRollback, createChangeSet, createStack, deleteChangeSet, deleteStack, describeAccountLimits, describeChangeSet, describeStackEvents, describeStackResource, describeStackResources, describeStacks, describeStacks, estimateTemplateCost, estimateTemplateCost, executeChangeSet, getCachedResponseMetadata, getStackPolicy, getTemplate, getTemplateSummary, getTemplateSummary, listChangeSets, listStackResources, listStacks, listStacks, setEndpoint, setRegion, setStackPolicy, signalResource, updateStack, validateTemplate
-
Constructor Details
-
AmazonCloudFormationAsyncClient
public AmazonCloudFormationAsyncClient()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).
-
AmazonCloudFormationAsyncClient
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
ClientConfiguration.getMaxConnections()
.- Parameters:
clientConfiguration
- The client configuration options controlling how this client connects to AWS CloudFormation (ex: proxy settings, retry counts, etc).- See Also:
-
AmazonCloudFormationAsyncClient
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).
- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AmazonCloudFormationAsyncClient
public 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. Default client settings will be used.- Parameters:
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.
-
AmazonCloudFormationAsyncClient
public 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.- Parameters:
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.
-
AmazonCloudFormationAsyncClient
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).
- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AmazonCloudFormationAsyncClient
public 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.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()
.- Parameters:
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).- See Also:
-
AmazonCloudFormationAsyncClient
public 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. Default client settings will be used.- Parameters:
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.
-
AmazonCloudFormationAsyncClient
public 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.- Parameters:
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.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
cancelUpdateStackAsync
Description copied from interface: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.
You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.
- Specified by:
cancelUpdateStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the CancelUpdateStack action.- Returns:
- A Java Future containing the result of the CancelUpdateStack operation returned by the service.
-
cancelUpdateStackAsync
public Future<CancelUpdateStackResult> cancelUpdateStackAsync(CancelUpdateStackRequest request, AsyncHandler<CancelUpdateStackRequest, CancelUpdateStackResult> asyncHandler) Description copied from interface: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.
You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.
- Specified by:
cancelUpdateStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the CancelUpdateStack operation returned by the service.
-
continueUpdateRollbackAsync
public Future<ContinueUpdateRollbackResult> continueUpdateRollbackAsync(ContinueUpdateRollbackRequest request) Description copied from interface:AmazonCloudFormationAsync
For a specified stack that is in the
UPDATE_ROLLBACK_FAILED
state, continues rolling it back to theUPDATE_ROLLBACK_COMPLETE
state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (theUPDATE_ROLLBACK_COMPLETE
state), and then try to update the stack again.A stack goes into the
UPDATE_ROLLBACK_FAILED
state when AWS CloudFormation cannot roll back all changes after a failed stack update. For example, you might have a stack that is rolling back to an old database instance that was deleted outside of AWS CloudFormation. Because AWS CloudFormation doesn't know the database was deleted, it assumes that the database instance still exists and attempts to roll back to it, causing the update rollback to fail.- Specified by:
continueUpdateRollbackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ContinueUpdateRollback action.- Returns:
- A Java Future containing the result of the ContinueUpdateRollback operation returned by the service.
-
continueUpdateRollbackAsync
public Future<ContinueUpdateRollbackResult> continueUpdateRollbackAsync(ContinueUpdateRollbackRequest request, AsyncHandler<ContinueUpdateRollbackRequest, ContinueUpdateRollbackResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
For a specified stack that is in the
UPDATE_ROLLBACK_FAILED
state, continues rolling it back to theUPDATE_ROLLBACK_COMPLETE
state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (theUPDATE_ROLLBACK_COMPLETE
state), and then try to update the stack again.A stack goes into the
UPDATE_ROLLBACK_FAILED
state when AWS CloudFormation cannot roll back all changes after a failed stack update. For example, you might have a stack that is rolling back to an old database instance that was deleted outside of AWS CloudFormation. Because AWS CloudFormation doesn't know the database was deleted, it assumes that the database instance still exists and attempts to roll back to it, causing the update rollback to fail.- Specified by:
continueUpdateRollbackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ContinueUpdateRollback 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.- Returns:
- A Java Future containing the result of the ContinueUpdateRollback operation returned by the service.
-
createChangeSetAsync
Description copied from interface:AmazonCloudFormationAsync
Creates a list of changes for a stack. AWS CloudFormation generates the change set by comparing the stack's information with the information that you submit. A change set can help you understand which resources AWS CloudFormation will change and how it will change them before you update your stack. Change sets allow you to check before you make a change so that you don't delete or replace critical resources.
AWS CloudFormation doesn't make any changes to the stack when you create a change set. To make the specified changes, you must execute the change set by using the ExecuteChangeSet action.
After the call successfully completes, AWS CloudFormation starts creating the change set. To check the status of the change set, use the DescribeChangeSet action.
- Specified by:
createChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the CreateChangeSet action.- Returns:
- A Java Future containing the result of the CreateChangeSet operation returned by the service.
-
createChangeSetAsync
public Future<CreateChangeSetResult> createChangeSetAsync(CreateChangeSetRequest request, AsyncHandler<CreateChangeSetRequest, CreateChangeSetResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Creates a list of changes for a stack. AWS CloudFormation generates the change set by comparing the stack's information with the information that you submit. A change set can help you understand which resources AWS CloudFormation will change and how it will change them before you update your stack. Change sets allow you to check before you make a change so that you don't delete or replace critical resources.
AWS CloudFormation doesn't make any changes to the stack when you create a change set. To make the specified changes, you must execute the change set by using the ExecuteChangeSet action.
After the call successfully completes, AWS CloudFormation starts creating the change set. To check the status of the change set, use the DescribeChangeSet action.
- Specified by:
createChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the CreateChangeSet 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.- Returns:
- A Java Future containing the result of the CreateChangeSet operation returned by the service.
-
createStackAsync
Description copied from interface: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.
- Specified by:
createStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for CreateStack action.- Returns:
- A Java Future containing the result of the CreateStack operation returned by the service.
-
createStackAsync
public Future<CreateStackResult> createStackAsync(CreateStackRequest request, AsyncHandler<CreateStackRequest, CreateStackResult> asyncHandler) Description copied from interface: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.
- Specified by:
createStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the CreateStack operation returned by the service.
-
deleteChangeSetAsync
Description copied from interface:AmazonCloudFormationAsync
Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set.
If the call successfully completes, AWS CloudFormation successfully deleted the change set.
- Specified by:
deleteChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the DeleteChangeSet action.- Returns:
- A Java Future containing the result of the DeleteChangeSet operation returned by the service.
-
deleteChangeSetAsync
public Future<DeleteChangeSetResult> deleteChangeSetAsync(DeleteChangeSetRequest request, AsyncHandler<DeleteChangeSetRequest, DeleteChangeSetResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set.
If the call successfully completes, AWS CloudFormation successfully deleted the change set.
- Specified by:
deleteChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the DeleteChangeSet 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.- Returns:
- A Java Future containing the result of the DeleteChangeSet operation returned by the service.
-
deleteStackAsync
Description copied from interface: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.
- Specified by:
deleteStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for DeleteStack action.- Returns:
- A Java Future containing the result of the DeleteStack operation returned by the service.
-
deleteStackAsync
public Future<DeleteStackResult> deleteStackAsync(DeleteStackRequest request, AsyncHandler<DeleteStackRequest, DeleteStackResult> asyncHandler) Description copied from interface: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.
- Specified by:
deleteStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DeleteStack operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request) Description copied from interface:AmazonCloudFormationAsync
Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.
- Specified by:
describeAccountLimitsAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the DescribeAccountLimits action.- Returns:
- A Java Future containing the result of the DescribeAccountLimits operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request, AsyncHandler<DescribeAccountLimitsRequest, DescribeAccountLimitsResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.
- Specified by:
describeAccountLimitsAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeAccountLimits operation returned by the service.
-
describeChangeSetAsync
Description copied from interface:AmazonCloudFormationAsync
Returns the inputs for the change set and a list of changes that AWS CloudFormation will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the AWS CloudFormation User Guide.
- Specified by:
describeChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the DescribeChangeSet action.- Returns:
- A Java Future containing the result of the DescribeChangeSet operation returned by the service.
-
describeChangeSetAsync
public Future<DescribeChangeSetResult> describeChangeSetAsync(DescribeChangeSetRequest request, AsyncHandler<DescribeChangeSetRequest, DescribeChangeSetResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Returns the inputs for the change set and a list of changes that AWS CloudFormation will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the AWS CloudFormation User Guide.
- Specified by:
describeChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the DescribeChangeSet 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.- Returns:
- A Java Future containing the result of the DescribeChangeSet operation returned by the service.
-
describeStackEventsAsync
public Future<DescribeStackEventsResult> describeStackEventsAsync(DescribeStackEventsRequest request) Description copied from interface:AmazonCloudFormationAsync
Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.
You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).
- Specified by:
describeStackEventsAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for DescribeStackEvents action.- Returns:
- A Java Future containing the result of the DescribeStackEvents operation returned by the service.
-
describeStackEventsAsync
public Future<DescribeStackEventsResult> describeStackEventsAsync(DescribeStackEventsRequest request, AsyncHandler<DescribeStackEventsRequest, DescribeStackEventsResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.
You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).
- Specified by:
describeStackEventsAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeStackEvents operation returned by the service.
-
describeStackResourceAsync
public Future<DescribeStackResourceResult> describeStackResourceAsync(DescribeStackResourceRequest request) Description copied from interface: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.
- Specified by:
describeStackResourceAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for DescribeStackResource action.- Returns:
- A Java Future containing the result of the DescribeStackResource operation returned by the service.
-
describeStackResourceAsync
public Future<DescribeStackResourceResult> describeStackResourceAsync(DescribeStackResourceRequest request, AsyncHandler<DescribeStackResourceRequest, DescribeStackResourceResult> asyncHandler) Description copied from interface: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.
- Specified by:
describeStackResourceAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeStackResource operation returned by the service.
-
describeStackResourcesAsync
public Future<DescribeStackResourcesResult> describeStackResourcesAsync(DescribeStackResourcesRequest request) Description copied from interface: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. IfPhysicalResourceId
is specified, the associated resources of the stack that the resource belongs to are returned.Only the first 100 resources will be returned. If your stack has more resources than this, you should use
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
orPhysicalResourceId
, but not both. In addition, you can specifyLogicalResourceId
to filter the returned result. For more information about resources, theLogicalResourceId
andPhysicalResourceId
, go to the AWS CloudFormation User Guide.A
ValidationError
is returned if you specify bothStackName
andPhysicalResourceId
in the same request.- Specified by:
describeStackResourcesAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for DescribeStackResources action.- Returns:
- A Java Future containing the result of the DescribeStackResources operation returned by the service.
-
describeStackResourcesAsync
public Future<DescribeStackResourcesResult> describeStackResourcesAsync(DescribeStackResourcesRequest request, AsyncHandler<DescribeStackResourcesRequest, DescribeStackResourcesResult> asyncHandler) Description copied from interface: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. IfPhysicalResourceId
is specified, the associated resources of the stack that the resource belongs to are returned.Only the first 100 resources will be returned. If your stack has more resources than this, you should use
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
orPhysicalResourceId
, but not both. In addition, you can specifyLogicalResourceId
to filter the returned result. For more information about resources, theLogicalResourceId
andPhysicalResourceId
, go to the AWS CloudFormation User Guide.A
ValidationError
is returned if you specify bothStackName
andPhysicalResourceId
in the same request.- Specified by:
describeStackResourcesAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeStackResources operation returned by the service.
-
describeStacksAsync
Description copied from interface:AmazonCloudFormationAsync
Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
- Specified by:
describeStacksAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for DescribeStacks action.- Returns:
- A Java Future containing the result of the DescribeStacks operation returned by the service.
-
describeStacksAsync
public Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest request, AsyncHandler<DescribeStacksRequest, DescribeStacksResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
- Specified by:
describeStacksAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the DescribeStacks operation returned by the service.
-
describeStacksAsync
Simplified method form for invoking the DescribeStacks operation.- Specified by:
describeStacksAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
describeStacksAsync
public Future<DescribeStacksResult> describeStacksAsync(AsyncHandler<DescribeStacksRequest, DescribeStacksResult> asyncHandler) Simplified method form for invoking the DescribeStacks operation with an AsyncHandler.- Specified by:
describeStacksAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
estimateTemplateCostAsync
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(EstimateTemplateCostRequest request) Description copied from interface: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.
- Specified by:
estimateTemplateCostAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for an EstimateTemplateCost action.- Returns:
- A Java Future containing the result of the EstimateTemplateCost operation returned by the service.
-
estimateTemplateCostAsync
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(EstimateTemplateCostRequest request, AsyncHandler<EstimateTemplateCostRequest, EstimateTemplateCostResult> asyncHandler) Description copied from interface: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.
- Specified by:
estimateTemplateCostAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for an EstimateTemplateCost 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.- Returns:
- A Java Future containing the result of the EstimateTemplateCost operation returned by the service.
-
estimateTemplateCostAsync
Simplified method form for invoking the EstimateTemplateCost operation.- Specified by:
estimateTemplateCostAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
estimateTemplateCostAsync
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(AsyncHandler<EstimateTemplateCostRequest, EstimateTemplateCostResult> asyncHandler) Simplified method form for invoking the EstimateTemplateCost operation with an AsyncHandler.- Specified by:
estimateTemplateCostAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
executeChangeSetAsync
Description copied from interface:AmazonCloudFormationAsync
Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, AWS CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update.
When you execute a change set, AWS CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack.
If a stack policy is associated with the stack, AWS CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy.
- Specified by:
executeChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ExecuteChangeSet action.- Returns:
- A Java Future containing the result of the ExecuteChangeSet operation returned by the service.
-
executeChangeSetAsync
public Future<ExecuteChangeSetResult> executeChangeSetAsync(ExecuteChangeSetRequest request, AsyncHandler<ExecuteChangeSetRequest, ExecuteChangeSetResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, AWS CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update.
When you execute a change set, AWS CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack.
If a stack policy is associated with the stack, AWS CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy.
- Specified by:
executeChangeSetAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ExecuteChangeSet 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.- Returns:
- A Java Future containing the result of the ExecuteChangeSet operation returned by the service.
-
getStackPolicyAsync
Description copied from interface:AmazonCloudFormationAsync
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
- Specified by:
getStackPolicyAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the GetStackPolicy action.- Returns:
- A Java Future containing the result of the GetStackPolicy operation returned by the service.
-
getStackPolicyAsync
public Future<GetStackPolicyResult> getStackPolicyAsync(GetStackPolicyRequest request, AsyncHandler<GetStackPolicyRequest, GetStackPolicyResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
- Specified by:
getStackPolicyAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the GetStackPolicy operation returned by the service.
-
getTemplateAsync
Description copied from interface: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.
If the template does not exist, a
ValidationError
is returned.- Specified by:
getTemplateAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for a GetTemplate action.- Returns:
- A Java Future containing the result of the GetTemplate operation returned by the service.
-
getTemplateAsync
public Future<GetTemplateResult> getTemplateAsync(GetTemplateRequest request, AsyncHandler<GetTemplateRequest, GetTemplateResult> asyncHandler) Description copied from interface: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.
If the template does not exist, a
ValidationError
is returned.- Specified by:
getTemplateAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the GetTemplate operation returned by the service.
-
getTemplateSummaryAsync
Description copied from interface: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, aValidationError
is returned.- Specified by:
getTemplateSummaryAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the GetTemplateSummary action.- Returns:
- A Java Future containing the result of the GetTemplateSummary operation returned by the service.
-
getTemplateSummaryAsync
public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(GetTemplateSummaryRequest request, AsyncHandler<GetTemplateSummaryRequest, GetTemplateSummaryResult> asyncHandler) Description copied from interface: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, aValidationError
is returned.- Specified by:
getTemplateSummaryAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the GetTemplateSummary operation returned by the service.
-
getTemplateSummaryAsync
Simplified method form for invoking the GetTemplateSummary operation.- Specified by:
getTemplateSummaryAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
getTemplateSummaryAsync
public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(AsyncHandler<GetTemplateSummaryRequest, GetTemplateSummaryResult> asyncHandler) Simplified method form for invoking the GetTemplateSummary operation with an AsyncHandler.- Specified by:
getTemplateSummaryAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
listChangeSetsAsync
Description copied from interface:AmazonCloudFormationAsync
Returns the ID and status of each active change set for a stack. For example, AWS CloudFormation lists change sets that are in the
CREATE_IN_PROGRESS
orCREATE_PENDING
state.- Specified by:
listChangeSetsAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ListChangeSets action.- Returns:
- A Java Future containing the result of the ListChangeSets operation returned by the service.
-
listChangeSetsAsync
public Future<ListChangeSetsResult> listChangeSetsAsync(ListChangeSetsRequest request, AsyncHandler<ListChangeSetsRequest, ListChangeSetsResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Returns the ID and status of each active change set for a stack. For example, AWS CloudFormation lists change sets that are in the
CREATE_IN_PROGRESS
orCREATE_PENDING
state.- Specified by:
listChangeSetsAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ListChangeSets 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.- Returns:
- A Java Future containing the result of the ListChangeSets operation returned by the service.
-
listStackResourcesAsync
Description copied from interface: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.
- Specified by:
listStackResourcesAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the ListStackResource action.- Returns:
- A Java Future containing the result of the ListStackResources operation returned by the service.
-
listStackResourcesAsync
public Future<ListStackResourcesResult> listStackResourcesAsync(ListStackResourcesRequest request, AsyncHandler<ListStackResourcesRequest, ListStackResourcesResult> asyncHandler) Description copied from interface: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.
- Specified by:
listStackResourcesAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the ListStackResources operation returned by the service.
-
listStacksAsync
Description copied from interface: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).
- Specified by:
listStacksAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for ListStacks action.- Returns:
- A Java Future containing the result of the ListStacks operation returned by the service.
-
listStacksAsync
public Future<ListStacksResult> listStacksAsync(ListStacksRequest request, AsyncHandler<ListStacksRequest, ListStacksResult> asyncHandler) Description copied from interface: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).
- Specified by:
listStacksAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the ListStacks operation returned by the service.
-
listStacksAsync
Simplified method form for invoking the ListStacks operation.- Specified by:
listStacksAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
listStacksAsync
public Future<ListStacksResult> listStacksAsync(AsyncHandler<ListStacksRequest, ListStacksResult> asyncHandler) Simplified method form for invoking the ListStacks operation with an AsyncHandler.- Specified by:
listStacksAsync
in interfaceAmazonCloudFormationAsync
- See Also:
-
setStackPolicyAsync
Description copied from interface:AmazonCloudFormationAsync
Sets a stack policy for a specified stack.
- Specified by:
setStackPolicyAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the SetStackPolicy action.- Returns:
- A Java Future containing the result of the SetStackPolicy operation returned by the service.
-
setStackPolicyAsync
public Future<SetStackPolicyResult> setStackPolicyAsync(SetStackPolicyRequest request, AsyncHandler<SetStackPolicyRequest, SetStackPolicyResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Sets a stack policy for a specified stack.
- Specified by:
setStackPolicyAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the SetStackPolicy operation returned by the service.
-
signalResourceAsync
Description copied from interface: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.
- Specified by:
signalResourceAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for the SignalResource action.- Returns:
- A Java Future containing the result of the SignalResource operation returned by the service.
-
signalResourceAsync
public Future<SignalResourceResult> signalResourceAsync(SignalResourceRequest request, AsyncHandler<SignalResourceRequest, SignalResourceResult> asyncHandler) Description copied from interface: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.
- Specified by:
signalResourceAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the SignalResource operation returned by the service.
-
updateStackAsync
Description copied from interface: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.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.
- Specified by:
updateStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for an UpdateStack action.- Returns:
- A Java Future containing the result of the UpdateStack operation returned by the service.
-
updateStackAsync
public Future<UpdateStackResult> updateStackAsync(UpdateStackRequest request, AsyncHandler<UpdateStackRequest, UpdateStackResult> asyncHandler) Description copied from interface: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.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.
- Specified by:
updateStackAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for an 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.- Returns:
- A Java Future containing the result of the UpdateStack operation returned by the service.
-
validateTemplateAsync
Description copied from interface:AmazonCloudFormationAsync
Validates a specified template.
- Specified by:
validateTemplateAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
request
- The input for ValidateTemplate action.- Returns:
- A Java Future containing the result of the ValidateTemplate operation returned by the service.
-
validateTemplateAsync
public Future<ValidateTemplateResult> validateTemplateAsync(ValidateTemplateRequest request, AsyncHandler<ValidateTemplateRequest, ValidateTemplateResult> asyncHandler) Description copied from interface:AmazonCloudFormationAsync
Validates a specified template.
- Specified by:
validateTemplateAsync
in interfaceAmazonCloudFormationAsync
- Parameters:
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.- Returns:
- A Java Future containing the result of the ValidateTemplate operation returned by the service.
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()
followed bygetExecutorService().awaitTermination()
prior to calling this method.- Specified by:
shutdown
in interfaceAmazonCloudFormation
- Overrides:
shutdown
in classAmazonWebServiceClient
-