list_stack_sets
async
¶
list_stack_sets(
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
status: Optional[StackSetStatus] = None,
call_as: Optional[CallAs] = None,
) -> ListStackSetsOutput
Returns summary information about StackSets that are associated with the user.
This API provides strongly consistent reads meaning it will always return the most up-to-date data.
-
[Self-managed permissions] If you set the
CallAsparameter toSELFwhile signed in to your Amazon Web Services account,ListStackSetsreturns all self-managed StackSets in your Amazon Web Services account. -
[Service-managed permissions] If you set the
CallAsparameter toSELFwhile signed in to the organization's management account,ListStackSetsreturns all StackSets in the management account. -
[Service-managed permissions] If you set the
CallAsparameter toDELEGATED_ADMINwhile signed in to your member account,ListStackSetsreturns all StackSets with service-managed permissions in the management account.
Parameters:
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
max_results(Optional[MaxResults], default:None) –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 theNextTokenrequest parameter to get the next set of results. -
status(Optional[StackSetStatus], default:None) –The status of the StackSets that you want to get summary information about.
-
call_as(Optional[CallAs], default:None) –[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. UseSELFfor StackSets 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.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.