CloudFormation / Client / list_stack_sets
list_stack_sets#
- CloudFormation.Client.list_stack_sets(**kwargs)#
- Returns summary information about stack sets that are associated with the user. - [Self-managed permissions] If you set the - CallAsparameter to- SELFwhile signed in to your Amazon Web Services account,- ListStackSetsreturns all self-managed stack sets in your Amazon Web Services account.
- [Service-managed permissions] If you set the - CallAsparameter to- SELFwhile signed in to the organization’s management account,- ListStackSetsreturns all stack sets in the management account.
- [Service-managed permissions] If you set the - CallAsparameter to- DELEGATED_ADMINwhile signed in to your member account,- ListStackSetsreturns all stack sets with service-managed permissions in the management account.
 - See also: AWS API Documentation - Request Syntax - response = client.list_stack_sets( NextToken='string', MaxResults=123, Status='ACTIVE'|'DELETED', CallAs='SELF'|'DELEGATED_ADMIN' ) - Parameters:
- NextToken (string) – If the previous paginated request didn’t return all the remaining results, the response object’s - NextTokenparameter value is set to a token. To retrieve the next set of results, call- ListStackSetsagain and assign that token to the request object’s- NextTokenparameter. If there are no remaining results, the previous response object’s- NextTokenparameter is set to- null.
- MaxResults (integer) – 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 - NextTokenvalue that you can assign to the- NextTokenrequest parameter to get the next set of results.
- Status (string) – The status of the stack sets that you want to get summary information about. 
- CallAs (string) – - [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, - SELFis specified. Use- SELFfor 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 Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide .
 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'Summaries': [ { 'StackSetName': 'string', 'StackSetId': 'string', 'Description': 'string', 'Status': 'ACTIVE'|'DELETED', 'AutoDeployment': { 'Enabled': True|False, 'RetainStacksOnAccountRemoval': True|False }, 'PermissionModel': 'SERVICE_MANAGED'|'SELF_MANAGED', 'DriftStatus': 'DRIFTED'|'IN_SYNC'|'UNKNOWN'|'NOT_CHECKED', 'LastDriftCheckTimestamp': datetime(2015, 1, 1), 'ManagedExecution': { 'Active': True|False } }, ], 'NextToken': 'string' } - Response Structure - (dict) – - Summaries (list) – - A list of - StackSetSummarystructures that contain information about the user’s stack sets.- (dict) – - The structures that contain summary information about the specified stack set. - StackSetName (string) – - The name of the stack set. 
- StackSetId (string) – - The ID of the stack set. 
- Description (string) – - A description of the stack set that you specify when the stack set is created or updated. 
- Status (string) – - The status of the stack set. 
- AutoDeployment (dict) – - [Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU). - Enabled (boolean) – - If set to - true, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
- RetainStacksOnAccountRemoval (boolean) – - If set to - true, stack resources are retained when an account is removed from a target organization or OU. If set to- false, stack resources are deleted. Specify only if- Enabledis set to- True.
 
- PermissionModel (string) – - Describes how the IAM roles required for stack set operations are created. - With - self-managedpermissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant Self-Managed Stack Set Permissions.
- With - service-managedpermissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Grant Service-Managed Stack Set Permissions.
 
- DriftStatus (string) – - Status of the stack set’s actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration. - DRIFTED: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.
- NOT_CHECKED: CloudFormation hasn’t checked the stack set for drift.
- IN_SYNC: All the stack instances belonging to the stack set stack match from the expected template and parameter configuration.
- UNKNOWN: This value is reserved for future use.
 
- LastDriftCheckTimestamp (datetime) – - Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be - NULLfor any stack set on which drift detection hasn’t yet been performed.
- ManagedExecution (dict) – - Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations. - Active (boolean) – - When - true, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.- Note - If there are already running or queued operations, StackSets queues all incoming operations even if they are non-conflicting. - You can’t modify your stack set’s execution configuration while there are running or queued operations for that stack set. - When - false(default), StackSets performs one operation at a time in request order.
 
 
 
- NextToken (string) – - If the request doesn’t return all of the remaining results, - NextTokenis set to a token. To retrieve the next set of results, call- ListStackInstancesagain and assign that token to the request object’s- NextTokenparameter. If the request returns all results,- NextTokenis set to- null.