Skip to content

CloudFormation  >  Operations  >  import_stacks_to_stack_set

import_stacks_to_stack_set

Operation

import_stacks_to_stack_set async

import_stacks_to_stack_set(input: ImportStacksToStackSetInput, plugins: list[Plugin] | None = None) -> ImportStacksToStackSetOutput

Import existing stacks into a new StackSets. Use the stack import operation to import up to 10 stacks into a new StackSet in the same account as the source stack or in a different administrator account and Region, by specifying the stack ID of the stack you intend to import.

Parameters:

Name Type Description Default
input ImportStacksToStackSetInput

An instance of ImportStacksToStackSetInput.

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
ImportStacksToStackSetOutput

An instance of ImportStacksToStackSetOutput.

Input

ImportStacksToStackSetInput dataclass

Bases: _SerdeShape

Dataclass for ImportStacksToStackSetInput structure.

Attributes

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

By default, SELF is specified. Use SELF for StackSets with self-managed permissions.

  • If you are signed in to the management account, specify SELF.

  • For service managed StackSets, specify DELEGATED_ADMIN.

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

A unique, user defined, identifier for the StackSet operation.

This field is autopopulated if not provided.

operation_preferences class-attribute instance-attribute
operation_preferences: StackSetOperationPreferences | None = ...

The user-specified preferences for how CloudFormation performs a StackSet operation.

For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.

organizational_unit_ids class-attribute instance-attribute
organizational_unit_ids: list[str] | None = ...

The list of OU ID's to which the imported stacks must be mapped as deployment targets.

stack_ids class-attribute instance-attribute
stack_ids: list[str] | None = ...

The IDs of the stacks you are importing into a StackSet. You import up to 10 stacks per StackSet at a time.

Specify either StackIds or StackIdsUrl.

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

The Amazon S3 URL which contains list of stack ids to be inputted.

Specify either StackIds or StackIdsUrl.

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

The name of the StackSet. The name must be unique in the Region where you create your StackSet.

Output

ImportStacksToStackSetOutput dataclass

Bases: _SerdeShape

Dataclass for ImportStacksToStackSetOutput structure.

Attributes

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

The unique identifier for the StackSet operation.

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.