Skip to content
Browse files

Version 1.2.4 of the AWS Java SDK

This release updates the AWS SDK for Java to the latest API version of AWS CloudFormation, which adds Oracle Database support, weighted round robin and zone apex support, LoadBalancer source security group support, and new actions to enable listing of stack resources and viewing of a specific resource in a stack.
  • Loading branch information...
1 parent 4f6fa46 commit 447aab8822958adef54d3ed92142e7aeeefa506f amazonwebservices committed Jul 12, 2011
Showing with 3,354 additions and 267 deletions.
  1. +1 −1 pom.xml
  2. +152 −33 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormation.java
  3. +131 −17 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationAsync.java
  4. +149 −17 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationAsyncClient.java
  5. +162 −35 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationClient.java
  6. +17 −17 src/main/java/com/amazonaws/services/cloudformation/model/CreateStackRequest.java
  7. +1 −1 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackEventsRequest.java
  8. +149 −0 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackResourceRequest.java
  9. +88 −0 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackResourceResult.java
  10. +10 −6 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackResourcesRequest.java
  11. +6 −1 src/main/java/com/amazonaws/services/cloudformation/model/GetTemplateRequest.java
  12. +7 −7 src/main/java/com/amazonaws/services/cloudformation/model/GetTemplateResult.java
  13. +155 −0 src/main/java/com/amazonaws/services/cloudformation/model/ListStackResourcesRequest.java
  14. +168 −0 src/main/java/com/amazonaws/services/cloudformation/model/ListStackResourcesResult.java
  15. +161 −0 src/main/java/com/amazonaws/services/cloudformation/model/ListStacksRequest.java
  16. +150 −0 src/main/java/com/amazonaws/services/cloudformation/model/ListStacksResult.java
  17. +4 −4 src/main/java/com/amazonaws/services/cloudformation/model/Stack.java
  18. +7 −7 src/main/java/com/amazonaws/services/cloudformation/model/StackEvent.java
  19. +7 −7 src/main/java/com/amazonaws/services/cloudformation/model/StackResource.java
  20. +501 −0 src/main/java/com/amazonaws/services/cloudformation/model/StackResourceDetail.java
  21. +320 −0 src/main/java/com/amazonaws/services/cloudformation/model/StackResourceSummary.java
  22. +4 −1 src/main/java/com/amazonaws/services/cloudformation/model/StackStatus.java
  23. +299 −0 src/main/java/com/amazonaws/services/cloudformation/model/StackSummary.java
  24. +14 −14 src/main/java/com/amazonaws/services/cloudformation/model/ValidateTemplateRequest.java
  25. +0 −41 src/main/java/com/amazonaws/services/cloudformation/model/ValidationErrorException.java
  26. +50 −0 ...com/amazonaws/services/cloudformation/model/transform/DescribeStackResourceRequestMarshaller.java
  27. +68 −0 ...mazonaws/services/cloudformation/model/transform/DescribeStackResourceResultStaxUnmarshaller.java
  28. +50 −0 ...va/com/amazonaws/services/cloudformation/model/transform/ListStackResourcesRequestMarshaller.java
  29. +72 −0 ...m/amazonaws/services/cloudformation/model/transform/ListStackResourcesResultStaxUnmarshaller.java
  30. +56 −0 src/main/java/com/amazonaws/services/cloudformation/model/transform/ListStacksRequestMarshaller.java
  31. +72 −0 .../java/com/amazonaws/services/cloudformation/model/transform/ListStacksResultStaxUnmarshaller.java
  32. +104 −0 ...va/com/amazonaws/services/cloudformation/model/transform/StackResourceDetailStaxUnmarshaller.java
  33. +88 −0 ...a/com/amazonaws/services/cloudformation/model/transform/StackResourceSummaryStaxUnmarshaller.java
  34. +88 −0 ...main/java/com/amazonaws/services/cloudformation/model/transform/StackSummaryStaxUnmarshaller.java
  35. +0 −43 ...a/com/amazonaws/services/cloudformation/model/transform/ValidationErrorExceptionUnmarshaller.java
  36. +22 −6 src/main/java/com/amazonaws/services/cloudformation/package-info.java
  37. +15 −8 src/main/java/com/amazonaws/services/s3/AmazonS3Client.java
  38. +1 −0 src/main/java/com/amazonaws/services/s3/transfer/TransferManager.java
  39. +4 −0 src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java
  40. +1 −1 src/main/resources/com/amazonaws/sdk/versionInfo.properties
View
2 pom.xml
@@ -6,7 +6,7 @@
<artifactId>aws-java-sdk</artifactId>
<packaging>jar</packaging>
<name>AWS SDK for Java</name>
- <version>1.2.3</version>
+ <version>1.2.4</version>
<description>The Amazon Web Services SDK for Java provides Java APIs for building software on AWS’ cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).</description>
<url>http://aws.amazon.com/sdkforjava</url>
View
185 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormation.java
@@ -24,10 +24,25 @@
* This is the AWS CloudFormation API Reference. The major sections of
* this guide are described in the following table.
* </p>
- * Actions Alphabetical list of CloudFormation actions Data Types
- * Alphabetical list of CloudFormation data types Common Parameters
- * Parameters that all Query actions can use Common Errors Client and
- * server errors that all actions can return <p>
+ *
+ * <ul>
+ * <li> <a
+ * rvices.com/AWSCloudFormation/latest/APIReference/API_Operations.html">
+ * Actions </a> : Alphabetical list of CloudFormation actions</li>
+ * <li> <a
+ * webservices.com/AWSCloudFormation/latest/APIReference/API_Types.html">
+ * Data Types </a> : Alphabetical list of CloudFormation data types</li>
+ * <li> <a
+ * ices.com/AWSCloudFormation/latest/APIReference/CommonParameters.html">
+ * Common Parameters </a> : Parameters that all Query actions can
+ * use</li>
+ * <li> <a
+ * services.com/AWSCloudFormation/latest/APIReference/CommonErrors.html">
+ * Common Errors </a> : Client and server errors that all actions can
+ * return</li>
+ *
+ * </ul>
+ * <p>
* This guide is for programmers who need detailed information about the
* CloudFormation APIs. You use AWS CloudFormation to create and manage
* AWS infrastructure deployments predictably and repeatedly.
@@ -52,8 +67,9 @@
* <p>
* Amazon CloudFormation makes use of other AWS products. If you need
* additional technical information about a specific AWS product, you can
- * find the product's technical documentation at
- * http://aws.amazon.com/documentation/.
+ * find the product's technical documentation at <a
+ * href="http://aws.amazon.com/documentation/">
+ * http://aws.amazon.com/documentation/ </a> .
* </p>
*/
public interface AmazonCloudFormation {
@@ -85,9 +101,37 @@
/**
* <p>
- * Creates a stack as specified in the template. Once the call completes
- * successfully, the stack creation starts. You can check the status of
- * the stack via the DescribeStacks API.
+ * 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).
+ * </p>
+ *
+ * @param listStacksRequest Container for the necessary parameters to
+ * execute the ListStacks service method on AmazonCloudFormation.
+ *
+ * @return The response from the ListStacks service method, as returned
+ * by AmazonCloudFormation.
+ *
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public ListStacksResult listStacks(ListStacksRequest listStacksRequest)
+ throws AmazonServiceException, AmazonClientException;
+
+ /**
+ * <p>
+ * 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.
* </p>
* <p>
* <b>NOTE:</b> Currently, the limit for stacks is 20 stacks per account
@@ -126,7 +170,6 @@ public CreateStackResult createStack(CreateStackRequest createStackRequest)
* @return The response from the ValidateTemplate service method, as
* returned by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -170,7 +213,7 @@ public DescribeStacksResult describeStacks(DescribeStacksRequest describeStacksR
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -199,7 +242,12 @@ public DescribeStackEventsResult describeStackEvents(DescribeStackEventsRequest
/**
* <p>
- * Returns the template body for a specified stack name.
+ * Returns the template body for a specified stack name. You can get the
+ * template for running or deleted stacks.
+ * </p>
+ * <p>
+ * For deleted stacks, GetTemplate returns the template for up to 90 days
+ * after the stack has been deleted.
* </p>
* <p>
* <b>NOTE:</b> If the template does not exist, a ValidationError is
@@ -212,7 +260,6 @@ public DescribeStackEventsResult describeStackEvents(DescribeStackEventsRequest
* @return The response from the GetTemplate service method, as returned
* by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -227,6 +274,40 @@ public GetTemplateResult getTemplate(GetTemplateRequest getTemplateRequest)
/**
* <p>
+ * Returns the description for the specified resource in the specified
+ * stack.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResource returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ * <p>
+ * You must specify <code>StackName</code> and
+ * <code>LogicalResourceId</code> .
+ *
+ * </p>
+ *
+ * @param describeStackResourceRequest Container for the necessary
+ * parameters to execute the DescribeStackResource service method on
+ * AmazonCloudFormation.
+ *
+ * @return The response from the DescribeStackResource service method, as
+ * returned by AmazonCloudFormation.
+ *
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public DescribeStackResourceResult describeStackResource(DescribeStackResourceRequest describeStackResourceRequest)
+ throws AmazonServiceException, AmazonClientException;
+
+ /**
+ * <p>
* 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.
@@ -249,19 +330,51 @@ public void deleteStack(DeleteStackRequest deleteStackRequest)
/**
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns descriptions for all resources of the specified stack.
+ * </p>
+ * <p>
+ * For deleted stacks, ListStackResources returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ *
+ * @param listStackResourcesRequest Container for the necessary
+ * parameters to execute the ListStackResources service method on
+ * AmazonCloudFormation.
+ *
+ * @return The response from the ListStackResources service method, as
+ * returned by AmazonCloudFormation.
+ *
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public ListStackResourcesResult listStackResources(ListStackResourcesRequest listStackResourcesRequest)
+ throws AmazonServiceException, AmazonClientException;
+
+ /**
+ * <p>
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -276,7 +389,6 @@ public void deleteStack(DeleteStackRequest deleteStackRequest)
* @return The response from the DescribeStackResources service method,
* as returned by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -291,13 +403,17 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
/**
* <p>
- * Validates a specified template.
+ * 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).
* </p>
*
- * @return The response from the ValidateTemplate service method, as
- * returned by AmazonCloudFormation.
+ * @return The response from the ListStacks service method, as returned
+ * by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -307,7 +423,7 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
* If an error response is returned by AmazonCloudFormation indicating
* either a problem with the data in the request, or a server side issue.
*/
- public ValidateTemplateResult validateTemplate() throws AmazonServiceException, AmazonClientException;
+ public ListStacksResult listStacks() throws AmazonServiceException, AmazonClientException;
/**
* <p>
@@ -336,7 +452,7 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -360,19 +476,23 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
/**
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -383,7 +503,6 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
* @return The response from the DescribeStackResources service method,
* as returned by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
View
148 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationAsync.java
@@ -27,10 +27,25 @@
* This is the AWS CloudFormation API Reference. The major sections of
* this guide are described in the following table.
* </p>
- * Actions Alphabetical list of CloudFormation actions Data Types
- * Alphabetical list of CloudFormation data types Common Parameters
- * Parameters that all Query actions can use Common Errors Client and
- * server errors that all actions can return <p>
+ *
+ * <ul>
+ * <li> <a
+ * rvices.com/AWSCloudFormation/latest/APIReference/API_Operations.html">
+ * Actions </a> : Alphabetical list of CloudFormation actions</li>
+ * <li> <a
+ * webservices.com/AWSCloudFormation/latest/APIReference/API_Types.html">
+ * Data Types </a> : Alphabetical list of CloudFormation data types</li>
+ * <li> <a
+ * ices.com/AWSCloudFormation/latest/APIReference/CommonParameters.html">
+ * Common Parameters </a> : Parameters that all Query actions can
+ * use</li>
+ * <li> <a
+ * services.com/AWSCloudFormation/latest/APIReference/CommonErrors.html">
+ * Common Errors </a> : Client and server errors that all actions can
+ * return</li>
+ *
+ * </ul>
+ * <p>
* This guide is for programmers who need detailed information about the
* CloudFormation APIs. You use AWS CloudFormation to create and manage
* AWS infrastructure deployments predictably and repeatedly.
@@ -55,16 +70,44 @@
* <p>
* Amazon CloudFormation makes use of other AWS products. If you need
* additional technical information about a specific AWS product, you can
- * find the product's technical documentation at
- * http://aws.amazon.com/documentation/.
+ * find the product's technical documentation at <a
+ * href="http://aws.amazon.com/documentation/">
+ * http://aws.amazon.com/documentation/ </a> .
* </p>
*/
public interface AmazonCloudFormationAsync extends AmazonCloudFormation {
/**
* <p>
- * Creates a stack as specified in the template. Once the call completes
- * successfully, the stack creation starts. You can check the status of
- * the stack via the DescribeStacks API.
+ * 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).
+ * </p>
+ *
+ * @param listStacksRequest Container for the necessary parameters to
+ * execute the ListStacks operation on AmazonCloudFormation.
+ *
+ * @return A Java Future object containing the response from the
+ * ListStacks service method, as returned by AmazonCloudFormation.
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public Future<ListStacksResult> listStacksAsync(ListStacksRequest listStacksRequest)
+ throws AmazonServiceException, AmazonClientException;
+
+ /**
+ * <p>
+ * 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.
* </p>
* <p>
* <b>NOTE:</b> Currently, the limit for stacks is 20 stacks per account
@@ -140,7 +183,7 @@
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -169,7 +212,12 @@
/**
* <p>
- * Returns the template body for a specified stack name.
+ * Returns the template body for a specified stack name. You can get the
+ * template for running or deleted stacks.
+ * </p>
+ * <p>
+ * For deleted stacks, GetTemplate returns the template for up to 90 days
+ * after the stack has been deleted.
* </p>
* <p>
* <b>NOTE:</b> If the template does not exist, a ValidationError is
@@ -195,6 +243,40 @@
/**
* <p>
+ * Returns the description for the specified resource in the specified
+ * stack.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResource returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ * <p>
+ * You must specify <code>StackName</code> and
+ * <code>LogicalResourceId</code> .
+ *
+ * </p>
+ *
+ * @param describeStackResourceRequest Container for the necessary
+ * parameters to execute the DescribeStackResource operation on
+ * AmazonCloudFormation.
+ *
+ * @return A Java Future object containing the response from the
+ * DescribeStackResource service method, as returned by
+ * AmazonCloudFormation.
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public Future<DescribeStackResourceResult> describeStackResourceAsync(DescribeStackResourceRequest describeStackResourceRequest)
+ throws AmazonServiceException, AmazonClientException;
+
+ /**
+ * <p>
* 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.
@@ -219,19 +301,51 @@
/**
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns descriptions for all resources of the specified stack.
+ * </p>
+ * <p>
+ * For deleted stacks, ListStackResources returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ *
+ * @param listStackResourcesRequest Container for the necessary
+ * parameters to execute the ListStackResources operation on
+ * AmazonCloudFormation.
+ *
+ * @return A Java Future object containing the response from the
+ * ListStackResources service method, as returned by
+ * AmazonCloudFormation.
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public Future<ListStackResourcesResult> listStackResourcesAsync(ListStackResourcesRequest listStackResourcesRequest)
+ throws AmazonServiceException, AmazonClientException;
+
+ /**
+ * <p>
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
View
166 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationAsyncClient.java
@@ -36,10 +36,25 @@
* This is the AWS CloudFormation API Reference. The major sections of
* this guide are described in the following table.
* </p>
- * Actions Alphabetical list of CloudFormation actions Data Types
- * Alphabetical list of CloudFormation data types Common Parameters
- * Parameters that all Query actions can use Common Errors Client and
- * server errors that all actions can return <p>
+ *
+ * <ul>
+ * <li> <a
+ * rvices.com/AWSCloudFormation/latest/APIReference/API_Operations.html">
+ * Actions </a> : Alphabetical list of CloudFormation actions</li>
+ * <li> <a
+ * webservices.com/AWSCloudFormation/latest/APIReference/API_Types.html">
+ * Data Types </a> : Alphabetical list of CloudFormation data types</li>
+ * <li> <a
+ * ices.com/AWSCloudFormation/latest/APIReference/CommonParameters.html">
+ * Common Parameters </a> : Parameters that all Query actions can
+ * use</li>
+ * <li> <a
+ * services.com/AWSCloudFormation/latest/APIReference/CommonErrors.html">
+ * Common Errors </a> : Client and server errors that all actions can
+ * return</li>
+ *
+ * </ul>
+ * <p>
* This guide is for programmers who need detailed information about the
* CloudFormation APIs. You use AWS CloudFormation to create and manage
* AWS infrastructure deployments predictably and repeatedly.
@@ -64,8 +79,9 @@
* <p>
* Amazon CloudFormation makes use of other AWS products. If you need
* additional technical information about a specific AWS product, you can
- * find the product's technical documentation at
- * http://aws.amazon.com/documentation/.
+ * find the product's technical documentation at <a
+ * href="http://aws.amazon.com/documentation/">
+ * http://aws.amazon.com/documentation/ </a> .
* </p>
*/
public class AmazonCloudFormationAsyncClient extends AmazonCloudFormationClient
@@ -156,9 +172,42 @@ public ExecutorService getExecutorService() {
/**
* <p>
- * Creates a stack as specified in the template. Once the call completes
- * successfully, the stack creation starts. You can check the status of
- * the stack via the DescribeStacks API.
+ * 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).
+ * </p>
+ *
+ * @param listStacksRequest Container for the necessary parameters to
+ * execute the ListStacks operation on AmazonCloudFormation.
+ *
+ * @return A Java Future object containing the response from the
+ * ListStacks service method, as returned by AmazonCloudFormation.
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public Future<ListStacksResult> listStacksAsync(final ListStacksRequest listStacksRequest)
+ throws AmazonServiceException, AmazonClientException {
+ return executorService.submit(new Callable<ListStacksResult>() {
+ public ListStacksResult call() throws Exception {
+ return listStacks(listStacksRequest);
+ }
+ });
+ }
+
+ /**
+ * <p>
+ * 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.
* </p>
* <p>
* <b>NOTE:</b> Currently, the limit for stacks is 20 stacks per account
@@ -252,7 +301,7 @@ public DescribeStacksResult call() throws Exception {
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -287,7 +336,12 @@ public DescribeStackEventsResult call() throws Exception {
/**
* <p>
- * Returns the template body for a specified stack name.
+ * Returns the template body for a specified stack name. You can get the
+ * template for running or deleted stacks.
+ * </p>
+ * <p>
+ * For deleted stacks, GetTemplate returns the template for up to 90 days
+ * after the stack has been deleted.
* </p>
* <p>
* <b>NOTE:</b> If the template does not exist, a ValidationError is
@@ -319,6 +373,46 @@ public GetTemplateResult call() throws Exception {
/**
* <p>
+ * Returns the description for the specified resource in the specified
+ * stack.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResource returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ * <p>
+ * You must specify <code>StackName</code> and
+ * <code>LogicalResourceId</code> .
+ *
+ * </p>
+ *
+ * @param describeStackResourceRequest Container for the necessary
+ * parameters to execute the DescribeStackResource operation on
+ * AmazonCloudFormation.
+ *
+ * @return A Java Future object containing the response from the
+ * DescribeStackResource service method, as returned by
+ * AmazonCloudFormation.
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public Future<DescribeStackResourceResult> describeStackResourceAsync(final DescribeStackResourceRequest describeStackResourceRequest)
+ throws AmazonServiceException, AmazonClientException {
+ return executorService.submit(new Callable<DescribeStackResourceResult>() {
+ public DescribeStackResourceResult call() throws Exception {
+ return describeStackResource(describeStackResourceRequest);
+ }
+ });
+ }
+
+ /**
+ * <p>
* 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.
@@ -350,19 +444,57 @@ public Void call() throws Exception {
/**
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns descriptions for all resources of the specified stack.
+ * </p>
+ * <p>
+ * For deleted stacks, ListStackResources returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ *
+ * @param listStackResourcesRequest Container for the necessary
+ * parameters to execute the ListStackResources operation on
+ * AmazonCloudFormation.
+ *
+ * @return A Java Future object containing the response from the
+ * ListStackResources service method, as returned by
+ * AmazonCloudFormation.
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public Future<ListStackResourcesResult> listStackResourcesAsync(final ListStackResourcesRequest listStackResourcesRequest)
+ throws AmazonServiceException, AmazonClientException {
+ return executorService.submit(new Callable<ListStackResourcesResult>() {
+ public ListStackResourcesResult call() throws Exception {
+ return listStackResources(listStackResourcesRequest);
+ }
+ });
+ }
+
+ /**
+ * <p>
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
View
197 src/main/java/com/amazonaws/services/cloudformation/AmazonCloudFormationClient.java
@@ -47,10 +47,25 @@
* This is the AWS CloudFormation API Reference. The major sections of
* this guide are described in the following table.
* </p>
- * Actions Alphabetical list of CloudFormation actions Data Types
- * Alphabetical list of CloudFormation data types Common Parameters
- * Parameters that all Query actions can use Common Errors Client and
- * server errors that all actions can return <p>
+ *
+ * <ul>
+ * <li> <a
+ * rvices.com/AWSCloudFormation/latest/APIReference/API_Operations.html">
+ * Actions </a> : Alphabetical list of CloudFormation actions</li>
+ * <li> <a
+ * webservices.com/AWSCloudFormation/latest/APIReference/API_Types.html">
+ * Data Types </a> : Alphabetical list of CloudFormation data types</li>
+ * <li> <a
+ * ices.com/AWSCloudFormation/latest/APIReference/CommonParameters.html">
+ * Common Parameters </a> : Parameters that all Query actions can
+ * use</li>
+ * <li> <a
+ * services.com/AWSCloudFormation/latest/APIReference/CommonErrors.html">
+ * Common Errors </a> : Client and server errors that all actions can
+ * return</li>
+ *
+ * </ul>
+ * <p>
* This guide is for programmers who need detailed information about the
* CloudFormation APIs. You use AWS CloudFormation to create and manage
* AWS infrastructure deployments predictably and repeatedly.
@@ -75,8 +90,9 @@
* <p>
* Amazon CloudFormation makes use of other AWS products. If you need
* additional technical information about a specific AWS product, you can
- * find the product's technical documentation at
- * http://aws.amazon.com/documentation/.
+ * find the product's technical documentation at <a
+ * href="http://aws.amazon.com/documentation/">
+ * http://aws.amazon.com/documentation/ </a> .
* </p>
*/
public class AmazonCloudFormationClient extends AmazonWebServiceClient implements AmazonCloudFormation {
@@ -133,7 +149,6 @@ public AmazonCloudFormationClient(AWSCredentials awsCredentials, ClientConfigura
exceptionUnmarshallers = new ArrayList<Unmarshaller<AmazonServiceException, Node>>();
exceptionUnmarshallers.add(new AlreadyExistsExceptionUnmarshaller());
- exceptionUnmarshallers.add(new ValidationErrorExceptionUnmarshaller());
exceptionUnmarshallers.add(new LimitExceededExceptionUnmarshaller());
exceptionUnmarshallers.add(new StandardErrorUnmarshaller());
@@ -149,9 +164,40 @@ public AmazonCloudFormationClient(AWSCredentials awsCredentials, ClientConfigura
/**
* <p>
- * Creates a stack as specified in the template. Once the call completes
- * successfully, the stack creation starts. You can check the status of
- * the stack via the DescribeStacks API.
+ * 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).
+ * </p>
+ *
+ * @param listStacksRequest Container for the necessary parameters to
+ * execute the ListStacks service method on AmazonCloudFormation.
+ *
+ * @return The response from the ListStacks service method, as returned
+ * by AmazonCloudFormation.
+ *
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public ListStacksResult listStacks(ListStacksRequest listStacksRequest)
+ throws AmazonServiceException, AmazonClientException {
+ Request<ListStacksRequest> request = new ListStacksRequestMarshaller().marshall(listStacksRequest);
+ return invoke(request, new ListStacksResultStaxUnmarshaller());
+ }
+
+ /**
+ * <p>
+ * 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.
* </p>
* <p>
* <b>NOTE:</b> Currently, the limit for stacks is 20 stacks per account
@@ -193,7 +239,6 @@ public CreateStackResult createStack(CreateStackRequest createStackRequest)
* @return The response from the ValidateTemplate service method, as
* returned by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -243,7 +288,7 @@ public DescribeStacksResult describeStacks(DescribeStacksRequest describeStacksR
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -275,7 +320,12 @@ public DescribeStackEventsResult describeStackEvents(DescribeStackEventsRequest
/**
* <p>
- * Returns the template body for a specified stack name.
+ * Returns the template body for a specified stack name. You can get the
+ * template for running or deleted stacks.
+ * </p>
+ * <p>
+ * For deleted stacks, GetTemplate returns the template for up to 90 days
+ * after the stack has been deleted.
* </p>
* <p>
* <b>NOTE:</b> If the template does not exist, a ValidationError is
@@ -288,7 +338,6 @@ public DescribeStackEventsResult describeStackEvents(DescribeStackEventsRequest
* @return The response from the GetTemplate service method, as returned
* by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -306,6 +355,43 @@ public GetTemplateResult getTemplate(GetTemplateRequest getTemplateRequest)
/**
* <p>
+ * Returns the description for the specified resource in the specified
+ * stack.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResource returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ * <p>
+ * You must specify <code>StackName</code> and
+ * <code>LogicalResourceId</code> .
+ *
+ * </p>
+ *
+ * @param describeStackResourceRequest Container for the necessary
+ * parameters to execute the DescribeStackResource service method on
+ * AmazonCloudFormation.
+ *
+ * @return The response from the DescribeStackResource service method, as
+ * returned by AmazonCloudFormation.
+ *
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public DescribeStackResourceResult describeStackResource(DescribeStackResourceRequest describeStackResourceRequest)
+ throws AmazonServiceException, AmazonClientException {
+ Request<DescribeStackResourceRequest> request = new DescribeStackResourceRequestMarshaller().marshall(describeStackResourceRequest);
+ return invoke(request, new DescribeStackResourceResultStaxUnmarshaller());
+ }
+
+ /**
+ * <p>
* 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.
@@ -331,19 +417,54 @@ public void deleteStack(DeleteStackRequest deleteStackRequest)
/**
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns descriptions for all resources of the specified stack.
+ * </p>
+ * <p>
+ * For deleted stacks, ListStackResources returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ *
+ * @param listStackResourcesRequest Container for the necessary
+ * parameters to execute the ListStackResources service method on
+ * AmazonCloudFormation.
+ *
+ * @return The response from the ListStackResources service method, as
+ * returned by AmazonCloudFormation.
+ *
+ *
+ * @throws AmazonClientException
+ * If any internal errors are encountered inside the client while
+ * attempting to make the request or handle the response. For example
+ * if a network connection is not available.
+ * @throws AmazonServiceException
+ * If an error response is returned by AmazonCloudFormation indicating
+ * either a problem with the data in the request, or a server side issue.
+ */
+ public ListStackResourcesResult listStackResources(ListStackResourcesRequest listStackResourcesRequest)
+ throws AmazonServiceException, AmazonClientException {
+ Request<ListStackResourcesRequest> request = new ListStackResourcesRequestMarshaller().marshall(listStackResourcesRequest);
+ return invoke(request, new ListStackResourcesResultStaxUnmarshaller());
+ }
+
+ /**
+ * <p>
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -358,7 +479,6 @@ public void deleteStack(DeleteStackRequest deleteStackRequest)
* @return The response from the DescribeStackResources service method,
* as returned by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -376,13 +496,17 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
/**
* <p>
- * Validates a specified template.
+ * 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).
* </p>
*
- * @return The response from the ValidateTemplate service method, as
- * returned by AmazonCloudFormation.
+ * @return The response from the ListStacks service method, as returned
+ * by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
@@ -392,8 +516,8 @@ public DescribeStackResourcesResult describeStackResources(DescribeStackResource
* If an error response is returned by AmazonCloudFormation indicating
* either a problem with the data in the request, or a server side issue.
*/
- public ValidateTemplateResult validateTemplate() throws AmazonServiceException, AmazonClientException {
- return validateTemplate(new ValidateTemplateRequest());
+ public ListStacksResult listStacks() throws AmazonServiceException, AmazonClientException {
+ return listStacks(new ListStacksRequest());
}
/**
@@ -425,7 +549,7 @@ public DescribeStacksResult describeStacks() throws AmazonServiceException, Amaz
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -451,19 +575,23 @@ public DescribeStackEventsResult describeStackEvents() throws AmazonServiceExcep
/**
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
@@ -474,7 +602,6 @@ public DescribeStackEventsResult describeStackEvents() throws AmazonServiceExcep
* @return The response from the DescribeStackResources service method,
* as returned by AmazonCloudFormation.
*
- * @throws ValidationErrorException
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
View
34 src/main/java/com/amazonaws/services/cloudformation/model/CreateStackRequest.java
@@ -18,9 +18,9 @@
/**
* Container for the parameters to the {@link com.amazonaws.services.cloudformation.AmazonCloudFormation#createStack(CreateStackRequest) CreateStack operation}.
* <p>
- * Creates a stack as specified in the template. Once the call completes
- * successfully, the stack creation starts. You can check the status of
- * the stack via the DescribeStacks API.
+ * 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.
* </p>
* <p>
* <b>NOTE:</b> Currently, the limit for stacks is 20 stacks per account
@@ -42,7 +42,7 @@
/**
* Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -56,7 +56,7 @@
* Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -153,7 +153,7 @@ public CreateStackRequest withStackName(String stackName) {
/**
* Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -163,7 +163,7 @@ public CreateStackRequest withStackName(String stackName) {
*
* @return Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -175,7 +175,7 @@ public String getTemplateBody() {
/**
* Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -185,7 +185,7 @@ public String getTemplateBody() {
*
* @param templateBody Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -197,7 +197,7 @@ public void setTemplateBody(String templateBody) {
/**
* Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -209,7 +209,7 @@ public void setTemplateBody(String templateBody) {
*
* @param templateBody Structure containing the template body. (For more information, go to
* the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>.) <p>Condition: You must pass
* <code>TemplateBody</code> or <code>TemplateURL</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -227,7 +227,7 @@ public CreateStackRequest withTemplateBody(String templateBody) {
* Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -238,7 +238,7 @@ public CreateStackRequest withTemplateBody(String templateBody) {
* @return Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -251,7 +251,7 @@ public String getTemplateURL() {
* Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -262,7 +262,7 @@ public String getTemplateURL() {
* @param templateURL Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -275,7 +275,7 @@ public void setTemplateURL(String templateURL) {
* Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
@@ -288,7 +288,7 @@ public void setTemplateURL(String templateURL) {
* @param templateURL Location of file containing the template body. The URL must point to a
* template located in an S3 bucket in the same region as the stack. For
* more information, go to the <a
- * tp://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">AWS
+ * p://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS
* CloudFormation User Guide</a>. <p>Conditional: You must pass
* <code>TemplateURL</code> or <code>TemplateBody</code>. If both are
* passed, only <code>TemplateBody</code> is used.
View
2 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackEventsRequest.java
@@ -23,7 +23,7 @@
* stacks with the given name. If <code>StackName</code> is not
* specified, returns all the events for the account. For more
* information about a stack's event history, go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
View
149 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackResourceRequest.java
@@ -0,0 +1,149 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.services.cloudformation.model;
+import com.amazonaws.AmazonWebServiceRequest;
+
+/**
+ * Container for the parameters to the {@link com.amazonaws.services.cloudformation.AmazonCloudFormation#describeStackResource(DescribeStackResourceRequest) DescribeStackResource operation}.
+ * <p>
+ * Returns the description for the specified resource in the specified
+ * stack.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResource returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ * <p>
+ * You must specify <code>StackName</code> and
+ * <code>LogicalResourceId</code> .
+ *
+ * </p>
+ *
+ * @see com.amazonaws.services.cloudformation.AmazonCloudFormation#describeStackResource(DescribeStackResourceRequest)
+ */
+public class DescribeStackResourceRequest extends AmazonWebServiceRequest {
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ */
+ private String stackName;
+
+ /**
+ * The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ */
+ private String logicalResourceId;
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ *
+ * @return The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ */
+ public String getStackName() {
+ return stackName;
+ }
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ *
+ * @param stackName The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ */
+ public void setStackName(String stackName) {
+ this.stackName = stackName;
+ }
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackName The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public DescribeStackResourceRequest withStackName(String stackName) {
+ this.stackName = stackName;
+ return this;
+ }
+
+
+ /**
+ * The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ *
+ * @return The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ */
+ public String getLogicalResourceId() {
+ return logicalResourceId;
+ }
+
+ /**
+ * The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ *
+ * @param logicalResourceId The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ */
+ public void setLogicalResourceId(String logicalResourceId) {
+ this.logicalResourceId = logicalResourceId;
+ }
+
+ /**
+ * The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param logicalResourceId The logical name of the resource as specified in the
+ * template.<br></br> Default: There is on default value.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public DescribeStackResourceRequest withLogicalResourceId(String logicalResourceId) {
+ this.logicalResourceId = logicalResourceId;
+ return this;
+ }
+
+
+ /**
+ * Returns a string representation of this object; useful for testing and
+ * debugging.
+ *
+ * @return A string representation of this object.
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("{");
+ sb.append("StackName: " + stackName + ", ");
+ sb.append("LogicalResourceId: " + logicalResourceId + ", ");
+ sb.append("}");
+ return sb.toString();
+ }
+
+}
+
View
88 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackResourceResult.java
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.services.cloudformation.model;
+
+/**
+ * <p>
+ * The output for a DescribeStackResource action.
+ * </p>
+ */
+public class DescribeStackResourceResult {
+
+ /**
+ * A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ */
+ private StackResourceDetail stackResourceDetail;
+
+ /**
+ * A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ *
+ * @return A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ */
+ public StackResourceDetail getStackResourceDetail() {
+ return stackResourceDetail;
+ }
+
+ /**
+ * A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ *
+ * @param stackResourceDetail A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ */
+ public void setStackResourceDetail(StackResourceDetail stackResourceDetail) {
+ this.stackResourceDetail = stackResourceDetail;
+ }
+
+ /**
+ * A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackResourceDetail A <code>StackResourceDetail</code> structure containing the
+ * description of the specified resource in the specified stack.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public DescribeStackResourceResult withStackResourceDetail(StackResourceDetail stackResourceDetail) {
+ this.stackResourceDetail = stackResourceDetail;
+ return this;
+ }
+
+
+ /**
+ * Returns a string representation of this object; useful for testing and
+ * debugging.
+ *
+ * @return A string representation of this object.
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("{");
+ sb.append("StackResourceDetail: " + stackResourceDetail + ", ");
+ sb.append("}");
+ return sb.toString();
+ }
+
+}
+
View
16 src/main/java/com/amazonaws/services/cloudformation/model/DescribeStackResourcesRequest.java
@@ -18,19 +18,23 @@
/**
* Container for the parameters to the {@link com.amazonaws.services.cloudformation.AmazonCloudFormation#describeStackResources(DescribeStackResourcesRequest) DescribeStackResources operation}.
* <p>
- * Returns AWS resource descriptions. If <code>StackName</code> is
- * specified, all the associated resources that are part of the stack are
- * returned. If <code>PhysicalResourceId</code> is specified, all the
- * associated resources of the stack the resource belongs to are
- * returned.
+ * Returns AWS resource descriptions for running and deleted stacks. If
+ * <code>StackName</code> is specified, all the associated resources that
+ * are part of the stack are returned. If <code>PhysicalResourceId</code>
+ * is specified, all the associated resources of the stack the resource
+ * belongs to are returned.
+ * </p>
+ * <p>
+ * For deleted stacks, DescribeStackResources returns resource
+ * information for up to 90 days after the stack has been deleted.
* </p>
* <p>
* You must specify <code>StackName</code> or
* <code>PhysicalResourceId.</code> In addition, you can specify
* <code>LogicalResourceId</code> to filter the returned result. For more
* information about resources, the <code>LogicalResourceId</code> and
* <code>PhysicalResourceId</code> , go to the <a
- * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/CFNGuide">
+ * http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">
* AWS CloudFormation User Guide </a> .
* </p>
* <p>
View
7 src/main/java/com/amazonaws/services/cloudformation/model/GetTemplateRequest.java
@@ -18,7 +18,12 @@
/**
* Container for the parameters to the {@link com.amazonaws.services.cloudformation.AmazonCloudFormation#getTemplate(GetTemplateRequest) GetTemplate operation}.
* <p>
- * Returns the template body for a specified stack name.
+ * Returns the template body for a specified stack name. You can get the
+ * template for running or deleted stacks.
+ * </p>
+ * <p>
+ * For deleted stacks, GetTemplate returns the template for up to 90 days
+ * after the stack has been deleted.
* </p>
* <p>
* <b>NOTE:</b> If the template does not exist, a ValidationError is
View
14 src/main/java/com/amazonaws/services/cloudformation/model/GetTemplateResult.java
@@ -24,7 +24,7 @@
/**
* Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
* <p>
* <b>Constraints:</b><br/>
@@ -35,15 +35,15 @@
/**
* Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*
* @return Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
*/
public String getTemplateBody() {
@@ -53,15 +53,15 @@ public String getTemplateBody() {
/**
* Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*
* @param templateBody Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
*/
public void setTemplateBody(String templateBody) {
@@ -71,7 +71,7 @@ public void setTemplateBody(String templateBody) {
/**
* Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
* <p>
* Returns a reference to this object so that method calls can be chained together.
@@ -81,7 +81,7 @@ public void setTemplateBody(String templateBody) {
*
* @param templateBody Structure containing the template body. (For more information, go to
* the <a
- * /docs.amazonwebservices.com/AmazonCloudFormation/latest/CFNGuide/">AWS
+ * docs.amazonwebservices.com/AmazonCloudFormation/latest/UserGuide/">AWS
* CloudFormation User Guide</a>.)
*
* @return A reference to this updated object so that method calls can be chained
View
155 src/main/java/com/amazonaws/services/cloudformation/model/ListStackResourcesRequest.java
@@ -0,0 +1,155 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.services.cloudformation.model;
+import com.amazonaws.AmazonWebServiceRequest;
+
+/**
+ * Container for the parameters to the {@link com.amazonaws.services.cloudformation.AmazonCloudFormation#listStackResources(ListStackResourcesRequest) ListStackResources operation}.
+ * <p>
+ * Returns descriptions for all resources of the specified stack.
+ * </p>
+ * <p>
+ * For deleted stacks, ListStackResources returns resource information
+ * for up to 90 days after the stack has been deleted.
+ * </p>
+ *
+ * @see com.amazonaws.services.cloudformation.AmazonCloudFormation#listStackResources(ListStackResourcesRequest)
+ */
+public class ListStackResourcesRequest extends AmazonWebServiceRequest {
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ */
+ private String stackName;
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ */
+ private String nextToken;
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ *
+ * @return The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ */
+ public String getStackName() {
+ return stackName;
+ }
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ *
+ * @param stackName The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ */
+ public void setStackName(String stackName) {
+ this.stackName = stackName;
+ }
+
+ /**
+ * The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackName The name or the unique identifier associated with the stack. <p>
+ * Default: There is no default value.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStackResourcesRequest withStackName(String stackName) {
+ this.stackName = stackName;
+ return this;
+ }
+
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @return String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ */
+ public String getNextToken() {
+ return nextToken;
+ }
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @param nextToken String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ */
+ public void setNextToken(String nextToken) {
+ this.nextToken = nextToken;
+ }
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @param nextToken String that identifies the start of the next list of events, if there
+ * is one.<br></br> Default: There is no default value.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStackResourcesRequest withNextToken(String nextToken) {
+ this.nextToken = nextToken;
+ return this;
+ }
+
+
+ /**
+ * Returns a string representation of this object; useful for testing and
+ * debugging.
+ *
+ * @return A string representation of this object.
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("{");
+ sb.append("StackName: " + stackName + ", ");
+ sb.append("NextToken: " + nextToken + ", ");
+ sb.append("}");
+ return sb.toString();
+ }
+
+}
+
View
168 src/main/java/com/amazonaws/services/cloudformation/model/ListStackResourcesResult.java
@@ -0,0 +1,168 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.services.cloudformation.model;
+
+/**
+ * <p>
+ * The output for a ListStackResources action.
+ * </p>
+ */
+public class ListStackResourcesResult {
+
+ /**
+ * A list of <code>StackResourceSummary</code> structures.
+ */
+ private java.util.List<StackResourceSummary> stackResourceSummaries;
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ */
+ private String nextToken;
+
+ /**
+ * A list of <code>StackResourceSummary</code> structures.
+ *
+ * @return A list of <code>StackResourceSummary</code> structures.
+ */
+ public java.util.List<StackResourceSummary> getStackResourceSummaries() {
+ if (stackResourceSummaries == null) {
+ stackResourceSummaries = new java.util.ArrayList<StackResourceSummary>();
+ }
+ return stackResourceSummaries;
+ }
+
+ /**
+ * A list of <code>StackResourceSummary</code> structures.
+ *
+ * @param stackResourceSummaries A list of <code>StackResourceSummary</code> structures.
+ */
+ public void setStackResourceSummaries(java.util.Collection<StackResourceSummary> stackResourceSummaries) {
+ java.util.List<StackResourceSummary> stackResourceSummariesCopy = new java.util.ArrayList<StackResourceSummary>();
+ if (stackResourceSummaries != null) {
+ stackResourceSummariesCopy.addAll(stackResourceSummaries);
+ }
+ this.stackResourceSummaries = stackResourceSummariesCopy;
+ }
+
+ /**
+ * A list of <code>StackResourceSummary</code> structures.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackResourceSummaries A list of <code>StackResourceSummary</code> structures.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStackResourcesResult withStackResourceSummaries(StackResourceSummary... stackResourceSummaries) {
+ for (StackResourceSummary value : stackResourceSummaries) {
+ getStackResourceSummaries().add(value);
+ }
+ return this;
+ }
+
+ /**
+ * A list of <code>StackResourceSummary</code> structures.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackResourceSummaries A list of <code>StackResourceSummary</code> structures.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStackResourcesResult withStackResourceSummaries(java.util.Collection<StackResourceSummary> stackResourceSummaries) {
+ java.util.List<StackResourceSummary> stackResourceSummariesCopy = new java.util.ArrayList<StackResourceSummary>();
+ if (stackResourceSummaries != null) {
+ stackResourceSummariesCopy.addAll(stackResourceSummaries);
+ }
+ this.stackResourceSummaries = stackResourceSummariesCopy;
+
+ return this;
+ }
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @return String that identifies the start of the next list of events, if there
+ * is one.
+ */
+ public String getNextToken() {
+ return nextToken;
+ }
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @param nextToken String that identifies the start of the next list of events, if there
+ * is one.
+ */
+ public void setNextToken(String nextToken) {
+ this.nextToken = nextToken;
+ }
+
+ /**
+ * String that identifies the start of the next list of events, if there
+ * is one.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @param nextToken String that identifies the start of the next list of events, if there
+ * is one.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStackResourcesResult withNextToken(String nextToken) {
+ this.nextToken = nextToken;
+ return this;
+ }
+
+
+ /**
+ * Returns a string representation of this object; useful for testing and
+ * debugging.
+ *
+ * @return A string representation of this object.
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("{");
+ sb.append("StackResourceSummaries: " + stackResourceSummaries + ", ");
+ sb.append("NextToken: " + nextToken + ", ");
+ sb.append("}");
+ return sb.toString();
+ }
+
+}
+
View
161 src/main/java/com/amazonaws/services/cloudformation/model/ListStacksRequest.java
@@ -0,0 +1,161 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.services.cloudformation.model;
+import com.amazonaws.AmazonWebServiceRequest;
+
+/**
+ * Container for the parameters to the {@link com.amazonaws.services.cloudformation.AmazonCloudFormation#listStacks(ListStacksRequest) ListStacks operation}.
+ * <p>
+ * 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).
+ * </p>
+ *
+ * @see com.amazonaws.services.cloudformation.AmazonCloudFormation#listStacks(ListStacksRequest)
+ */
+public class ListStacksRequest extends AmazonWebServiceRequest {
+
+ private String nextToken;
+
+ private java.util.List<String> stackStatusFilters;
+
+ /**
+ * Returns the value of the NextToken property for this object.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @return The value of the NextToken property for this object.
+ */
+ public String getNextToken() {
+ return nextToken;
+ }
+
+ /**
+ * Sets the value of the NextToken property for this object.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @param nextToken The new value for the NextToken property for this object.
+ */
+ public void setNextToken(String nextToken) {
+ this.nextToken = nextToken;
+ }
+
+ /**
+ * Sets the value of the NextToken property for this object.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ * <p>
+ * <b>Constraints:</b><br/>
+ * <b>Length: </b>1 - 1024<br/>
+ *
+ * @param nextToken The new value for the NextToken property for this object.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStacksRequest withNextToken(String nextToken) {
+ this.nextToken = nextToken;
+ return this;
+ }
+
+
+ /**
+ * Returns the value of the StackStatusFilters property for this object.
+ *
+ * @return The value of the StackStatusFilters property for this object.
+ */
+ public java.util.List<String> getStackStatusFilters() {
+ if (stackStatusFilters == null) {
+ stackStatusFilters = new java.util.ArrayList<String>();
+ }
+ return stackStatusFilters;
+ }
+
+ /**
+ * Sets the value of the StackStatusFilters property for this object.
+ *
+ * @param stackStatusFilters The new value for the StackStatusFilters property for this object.
+ */
+ public void setStackStatusFilters(java.util.Collection<String> stackStatusFilters) {
+ java.util.List<String> stackStatusFiltersCopy = new java.util.ArrayList<String>();
+ if (stackStatusFilters != null) {
+ stackStatusFiltersCopy.addAll(stackStatusFilters);
+ }
+ this.stackStatusFilters = stackStatusFiltersCopy;
+ }
+
+ /**
+ * Sets the value of the StackStatusFilters property for this object.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackStatusFilters The new value for the StackStatusFilters property for this object.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStacksRequest withStackStatusFilters(String... stackStatusFilters) {
+ for (String value : stackStatusFilters) {
+ getStackStatusFilters().add(value);
+ }
+ return this;
+ }
+
+ /**
+ * Sets the value of the StackStatusFilters property for this object.
+ * <p>
+ * Returns a reference to this object so that method calls can be chained together.
+ *
+ * @param stackStatusFilters The new value for the StackStatusFilters property for this object.
+ *
+ * @return A reference to this updated object so that method calls can be chained
+ * together.
+ */
+ public ListStacksRequest withStackStatusFilters(java.util.Collection<String> stackStatusFilters) {
+ java.util.List<String> stackStatusFiltersCopy = new java.util.ArrayList<String>();
+ if (stackStatusFilters != null) {
+ stackStatusFiltersCopy.addAll(stackStatusFilters);
+ }
+ this.stackStatusFilters = stackStatusFiltersCopy;
+
+ return this;
+ }
+
+ /**
+ * Returns a string representation of this object; useful for testing and
+ * debugging.
+ *
+ * @return A string representation of this object.
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("{");
+ sb.append("NextToken: " + nextToken + ", ");
+ sb.append("StackStatusFilters: " + stackStatusFilters + ", ");
+ sb.append("}");
+ return sb.toString();
+ }
+
+}
+
View
150 src/main/java/com/amazonaws/services/cloudformation/model/ListStacksResult.java
@@ -0,0 +1,150 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.services.cloudformation.model;
+
+/**
+ * List Stacks Result
+ */
+public class ListStacksResult {
+
+ private java.util.List<StackSummary> stackSummaries;
+
+ private String nextToken;
+
+ /**
+ * Returns the value of the StackSummaries property for this object.
+ *
+ * @return The value of the StackSummaries property for this object.
+ */
+ public java.util.List<StackSummary> getStackSummaries() {
+ if (stackSummaries == null) {
+ stackSummaries = new java.util.ArrayList<StackSummary>();
+ }
+ return stackSummaries;
+ }
+
+ /**