ListStackSets
Returns summary information about stack sets that are associated with the user.
-
[Self-managed permissions] If you set the
CallAs
parameter toSELF
while signed in to your AWS account,ListStackSets
returns all self-managed stack sets in your AWS account. -
[Service-managed permissions] If you set the
CallAs
parameter toSELF
while signed in to the organization's management account,ListStackSets
returns all stack sets in the management account. -
[Service-managed permissions] If you set the
CallAs
parameter toDELEGATED_ADMIN
while signed in to your member account,ListStackSets
returns all stack sets with service-managed permissions in the management account.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- CallAs
-
[Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account.
By default,
SELF
is specified. UseSELF
for stack sets with self-managed permissions.-
If you are signed in to the management account, specify
SELF
. -
If you are signed in to a delegated administrator account, specify
DELEGATED_ADMIN
.Your AWS account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the AWS CloudFormation User Guide.
Type: String
Valid Values:
SELF | DELEGATED_ADMIN
Required: No
-
- MaxResults
-
The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a
NextToken
value that you can assign to theNextToken
request parameter to get the next set of results.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
If the previous paginated request didn't return all the remaining results, the response object's
NextToken
parameter value is set to a token. To retrieve the next set of results, callListStackSets
again and assign that token to the request object'sNextToken
parameter. If there are no remaining results, the previous response object'sNextToken
parameter is set tonull
.Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No
- Status
-
The status of the stack sets that you want to get summary information about.
Type: String
Valid Values:
ACTIVE | DELETED
Required: No
Response Elements
The following elements are returned by the service.
- NextToken
-
If the request doesn't return all of the remaining results,
NextToken
is set to a token. To retrieve the next set of results, callListStackInstances
again and assign that token to the request object'sNextToken
parameter. If the request returns all results,NextToken
is set tonull
.Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
- Summaries.member.N
-
A list of
StackSetSummary
structures that contain information about the user's stack sets.Type: Array of StackSetSummary objects
Errors
For information about the errors that are common to all actions, see Common Errors.
Examples
ListStackSets
This example illustrates one usage of ListStackSets.
Sample Request
https://cloudformation.us-east-1.amazonaws.com/
?Action=ListStackSets
&Status=ACTIVE
&Version=2010-05-15
&X-Amz-Algorithm=AWS4-HMAC-SHA256
&X-Amz-Credential=[Access key ID and scope]
&X-Amz-Date=20170810T233349Z
&X-Amz-SignedHeaders=content-type;host
&X-Amz-Signature=[Signature]
Sample Response
<ListStackSetsResponse xmlns="http://internal.amazon.com/coral/com.amazonaws.maestro.service.v20160713/">
<ListStackSetsResult>
<Summaries>
<member>
<StackSetName>stack-set-example-one</StackSetName>
<Description>Description of the stack set</Description>
<StackSetId>stack-set-example-one:c14cd6d1-cd17-40bd-82ed-ff97example</StackSetId>
<Status>ACTIVE</Status>
</member>
<member>
<StackSetName>stack-set-example-two</StackSetName>
<StackSetId>stack-set-example-two:22f04391-472b-4e36-b11a-727example</StackSetId>
<Status>ACTIVE</Status>
</member>
</Summaries>
</ListStackSetsResult>
<ResponseMetadata>
<RequestId>35ec5187-794a-11e7-8c45-3f18example</RequestId>
</ResponseMetadata>
</ListStackSetsResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: