Class AbstractAmazonCloudFormationAsync
- java.lang.Object
-
- com.amazonaws.services.cloudformation.AbstractAmazonCloudFormation
-
- com.amazonaws.services.cloudformation.AbstractAmazonCloudFormationAsync
-
- All Implemented Interfaces:
AmazonCloudFormation,AmazonCloudFormationAsync
public class AbstractAmazonCloudFormationAsync extends AbstractAmazonCloudFormation implements AmazonCloudFormationAsync
Abstract implementation ofAmazonCloudFormationAsync. Convenient method forms pass through to the corresponding overload that takes a request object and anAsyncHandler, which throws anUnsupportedOperationException.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAmazonCloudFormationAsync()
-
Method Summary
-
Methods inherited from class com.amazonaws.services.cloudformation.AbstractAmazonCloudFormation
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, shutdown, signalResource, updateStack, validateTemplate
-
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, shutdown, signalResource, updateStack, validateTemplate
-
-
-
-
Method Detail
-
cancelUpdateStackAsync
public Future<CancelUpdateStackResult> cancelUpdateStackAsync(CancelUpdateStackRequest request)
Description copied from interface:AmazonCloudFormationAsyncCancels 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:
cancelUpdateStackAsyncin 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:AmazonCloudFormationAsyncCancels 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:
cancelUpdateStackAsyncin 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:AmazonCloudFormationAsyncFor a specified stack that is in the
UPDATE_ROLLBACK_FAILEDstate, continues rolling it back to theUPDATE_ROLLBACK_COMPLETEstate. 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_COMPLETEstate), and then try to update the stack again.A stack goes into the
UPDATE_ROLLBACK_FAILEDstate 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:
continueUpdateRollbackAsyncin 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:AmazonCloudFormationAsyncFor a specified stack that is in the
UPDATE_ROLLBACK_FAILEDstate, continues rolling it back to theUPDATE_ROLLBACK_COMPLETEstate. 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_COMPLETEstate), and then try to update the stack again.A stack goes into the
UPDATE_ROLLBACK_FAILEDstate 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:
continueUpdateRollbackAsyncin 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
public Future<CreateChangeSetResult> createChangeSetAsync(CreateChangeSetRequest request)
Description copied from interface:AmazonCloudFormationAsyncCreates 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:
createChangeSetAsyncin 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:AmazonCloudFormationAsyncCreates 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:
createChangeSetAsyncin 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
public Future<CreateStackResult> createStackAsync(CreateStackRequest request)
Description copied from interface:AmazonCloudFormationAsyncCreates 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:
createStackAsyncin 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:AmazonCloudFormationAsyncCreates 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:
createStackAsyncin 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
public Future<DeleteChangeSetResult> deleteChangeSetAsync(DeleteChangeSetRequest request)
Description copied from interface:AmazonCloudFormationAsyncDeletes 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:
deleteChangeSetAsyncin 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:AmazonCloudFormationAsyncDeletes 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:
deleteChangeSetAsyncin 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
public Future<DeleteStackResult> deleteStackAsync(DeleteStackRequest request)
Description copied from interface:AmazonCloudFormationAsyncDeletes 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:
deleteStackAsyncin 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:AmazonCloudFormationAsyncDeletes 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:
deleteStackAsyncin 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:AmazonCloudFormationAsyncRetrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.
- Specified by:
describeAccountLimitsAsyncin 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:AmazonCloudFormationAsyncRetrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.
- Specified by:
describeAccountLimitsAsyncin 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
public Future<DescribeChangeSetResult> describeChangeSetAsync(DescribeChangeSetRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns 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:
describeChangeSetAsyncin 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:AmazonCloudFormationAsyncReturns 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:
describeChangeSetAsyncin 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:AmazonCloudFormationAsyncReturns 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:
describeStackEventsAsyncin 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:AmazonCloudFormationAsyncReturns 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:
describeStackEventsAsyncin 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:AmazonCloudFormationAsyncReturns 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:
describeStackResourceAsyncin 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:AmazonCloudFormationAsyncReturns 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:
describeStackResourceAsyncin 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:AmazonCloudFormationAsyncReturns AWS resource descriptions for running and deleted stacks. If
StackNameis specified, all the associated resources that are part of the stack are returned. IfPhysicalResourceIdis 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
ListStackResourcesinstead.For deleted stacks,
DescribeStackResourcesreturns resource information for up to 90 days after the stack has been deleted.You must specify either
StackNameorPhysicalResourceId, but not both. In addition, you can specifyLogicalResourceIdto filter the returned result. For more information about resources, theLogicalResourceIdandPhysicalResourceId, go to the AWS CloudFormation User Guide.A
ValidationErroris returned if you specify bothStackNameandPhysicalResourceIdin the same request.- Specified by:
describeStackResourcesAsyncin 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:AmazonCloudFormationAsyncReturns AWS resource descriptions for running and deleted stacks. If
StackNameis specified, all the associated resources that are part of the stack are returned. IfPhysicalResourceIdis 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
ListStackResourcesinstead.For deleted stacks,
DescribeStackResourcesreturns resource information for up to 90 days after the stack has been deleted.You must specify either
StackNameorPhysicalResourceId, but not both. In addition, you can specifyLogicalResourceIdto filter the returned result. For more information about resources, theLogicalResourceIdandPhysicalResourceId, go to the AWS CloudFormation User Guide.A
ValidationErroris returned if you specify bothStackNameandPhysicalResourceIdin the same request.- Specified by:
describeStackResourcesAsyncin 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
public Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
- Specified by:
describeStacksAsyncin 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:AmazonCloudFormationAsyncReturns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
- Specified by:
describeStacksAsyncin 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
public Future<DescribeStacksResult> describeStacksAsync()
Simplified method form for invoking the DescribeStacks operation.- Specified by:
describeStacksAsyncin interfaceAmazonCloudFormationAsync- See Also:
describeStacksAsync(DescribeStacksRequest)
-
describeStacksAsync
public Future<DescribeStacksResult> describeStacksAsync(AsyncHandler<DescribeStacksRequest,DescribeStacksResult> asyncHandler)
Simplified method form for invoking the DescribeStacks operation with an AsyncHandler.- Specified by:
describeStacksAsyncin interfaceAmazonCloudFormationAsync- See Also:
describeStacksAsync(DescribeStacksRequest, com.amazonaws.handlers.AsyncHandler)
-
estimateTemplateCostAsync
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(EstimateTemplateCostRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns 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:
estimateTemplateCostAsyncin 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:AmazonCloudFormationAsyncReturns 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:
estimateTemplateCostAsyncin 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
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync()
Simplified method form for invoking the EstimateTemplateCost operation.- Specified by:
estimateTemplateCostAsyncin interfaceAmazonCloudFormationAsync- See Also:
estimateTemplateCostAsync(EstimateTemplateCostRequest)
-
estimateTemplateCostAsync
public Future<EstimateTemplateCostResult> estimateTemplateCostAsync(AsyncHandler<EstimateTemplateCostRequest,EstimateTemplateCostResult> asyncHandler)
Simplified method form for invoking the EstimateTemplateCost operation with an AsyncHandler.- Specified by:
estimateTemplateCostAsyncin interfaceAmazonCloudFormationAsync- See Also:
estimateTemplateCostAsync(EstimateTemplateCostRequest, com.amazonaws.handlers.AsyncHandler)
-
executeChangeSetAsync
public Future<ExecuteChangeSetResult> executeChangeSetAsync(ExecuteChangeSetRequest request)
Description copied from interface:AmazonCloudFormationAsyncUpdates 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:
executeChangeSetAsyncin 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:AmazonCloudFormationAsyncUpdates 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:
executeChangeSetAsyncin 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
public Future<GetStackPolicyResult> getStackPolicyAsync(GetStackPolicyRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
- Specified by:
getStackPolicyAsyncin 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:AmazonCloudFormationAsyncReturns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
- Specified by:
getStackPolicyAsyncin 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
public Future<GetTemplateResult> getTemplateAsync(GetTemplateRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns 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
ValidationErroris returned.- Specified by:
getTemplateAsyncin 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:AmazonCloudFormationAsyncReturns 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
ValidationErroris returned.- Specified by:
getTemplateAsyncin 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
public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(GetTemplateSummaryRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns information about a new or existing template. The
GetTemplateSummaryaction 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
GetTemplateSummaryaction when you submit a template, or you can get template information for a running or deleted stack.For deleted stacks,
GetTemplateSummaryreturns the template information for up to 90 days after the stack has been deleted. If the template does not exist, aValidationErroris returned.- Specified by:
getTemplateSummaryAsyncin 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:AmazonCloudFormationAsyncReturns information about a new or existing template. The
GetTemplateSummaryaction 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
GetTemplateSummaryaction when you submit a template, or you can get template information for a running or deleted stack.For deleted stacks,
GetTemplateSummaryreturns the template information for up to 90 days after the stack has been deleted. If the template does not exist, aValidationErroris returned.- Specified by:
getTemplateSummaryAsyncin 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
public Future<GetTemplateSummaryResult> getTemplateSummaryAsync()
Simplified method form for invoking the GetTemplateSummary operation.- Specified by:
getTemplateSummaryAsyncin interfaceAmazonCloudFormationAsync- See Also:
getTemplateSummaryAsync(GetTemplateSummaryRequest)
-
getTemplateSummaryAsync
public Future<GetTemplateSummaryResult> getTemplateSummaryAsync(AsyncHandler<GetTemplateSummaryRequest,GetTemplateSummaryResult> asyncHandler)
Simplified method form for invoking the GetTemplateSummary operation with an AsyncHandler.- Specified by:
getTemplateSummaryAsyncin interfaceAmazonCloudFormationAsync- See Also:
getTemplateSummaryAsync(GetTemplateSummaryRequest, com.amazonaws.handlers.AsyncHandler)
-
listChangeSetsAsync
public Future<ListChangeSetsResult> listChangeSetsAsync(ListChangeSetsRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns 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_PROGRESSorCREATE_PENDINGstate.- Specified by:
listChangeSetsAsyncin 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:AmazonCloudFormationAsyncReturns 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_PROGRESSorCREATE_PENDINGstate.- Specified by:
listChangeSetsAsyncin 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
public Future<ListStackResourcesResult> listStackResourcesAsync(ListStackResourcesRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns 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:
listStackResourcesAsyncin 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:AmazonCloudFormationAsyncReturns 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:
listStackResourcesAsyncin 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
public Future<ListStacksResult> listStacksAsync(ListStacksRequest request)
Description copied from interface:AmazonCloudFormationAsyncReturns 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:
listStacksAsyncin 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:AmazonCloudFormationAsyncReturns 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:
listStacksAsyncin 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
public Future<ListStacksResult> listStacksAsync()
Simplified method form for invoking the ListStacks operation.- Specified by:
listStacksAsyncin interfaceAmazonCloudFormationAsync- See Also:
listStacksAsync(ListStacksRequest)
-
listStacksAsync
public Future<ListStacksResult> listStacksAsync(AsyncHandler<ListStacksRequest,ListStacksResult> asyncHandler)
Simplified method form for invoking the ListStacks operation with an AsyncHandler.- Specified by:
listStacksAsyncin interfaceAmazonCloudFormationAsync- See Also:
listStacksAsync(ListStacksRequest, com.amazonaws.handlers.AsyncHandler)
-
setStackPolicyAsync
public Future<SetStackPolicyResult> setStackPolicyAsync(SetStackPolicyRequest request)
Description copied from interface:AmazonCloudFormationAsyncSets a stack policy for a specified stack.
- Specified by:
setStackPolicyAsyncin 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:AmazonCloudFormationAsyncSets a stack policy for a specified stack.
- Specified by:
setStackPolicyAsyncin 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
public Future<SignalResourceResult> signalResourceAsync(SignalResourceRequest request)
Description copied from interface:AmazonCloudFormationAsyncSends 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:
signalResourceAsyncin 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:AmazonCloudFormationAsyncSends 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:
signalResourceAsyncin 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
public Future<UpdateStackResult> updateStackAsync(UpdateStackRequest request)
Description copied from interface:AmazonCloudFormationAsyncUpdates 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:
updateStackAsyncin 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:AmazonCloudFormationAsyncUpdates 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:
updateStackAsyncin 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
public Future<ValidateTemplateResult> validateTemplateAsync(ValidateTemplateRequest request)
Description copied from interface:AmazonCloudFormationAsyncValidates a specified template.
- Specified by:
validateTemplateAsyncin 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:AmazonCloudFormationAsyncValidates a specified template.
- Specified by:
validateTemplateAsyncin 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.
-
-