Skip to content

CloudFormation  >  Operations  >  delete_stack_set

delete_stack_set

Operation

delete_stack_set async

delete_stack_set(input: DeleteStackSetInput, plugins: list[Plugin] | None = None) -> DeleteStackSetOutput

Deletes a StackSet. Before you can delete a StackSet, all its member stack instances must be deleted. For more information about how to complete this, see DeleteStackInstances.

Parameters:

Name Type Description Default
input DeleteStackSetInput

An instance of DeleteStackSetInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteStackSetOutput

An instance of DeleteStackSetOutput.

Input

DeleteStackSetInput dataclass

Bases: _SerdeShape

Dataclass for DeleteStackSetInput structure.

Attributes

call_as class-attribute instance-attribute
call_as: str | None = ...

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

By default, SELF is specified. Use SELF for 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.

stack_set_name class-attribute instance-attribute
stack_set_name: str | None = ...

The name or unique ID of the StackSet that you're deleting. You can obtain this value by running ListStackSets.

Output

DeleteStackSetOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteStackSetOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.