Skip to content

CloudFormationClient.import_stacks_to_stack_set

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): 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.

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from collections.abc import Sequence
from rboto_cloudformation.types import (
    CallAs,
    ImportStacksToStackSetOutput,
    StackSetOperationPreferences,
)

Signature

async def import_stacks_to_stack_set(
    *,
    stack_set_name: str,
    stack_ids: Sequence[str] | None = None,
    stack_ids_url: str | None = None,
    organizational_unit_ids: Sequence[str] | None = None,
    operation_preferences: StackSetOperationPreferences | None = None,
    operation_id: str | None = None,
    call_as: CallAs | None = None,
) -> ImportStacksToStackSetOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
stack_set_name Yes The name of the StackSet. The name must be unique in the Region where you create your StackSet.
stack_ids No 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 No The Amazon S3 URL which contains list of stack ids to be inputted. Specify either StackIds or StackIdsUrl .
organizational_unit_ids No The list of OU ID's to which the imported stacks must be mapped as deployment targets.
operation_preferences No 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 .
operation_id No A unique, user defined, identifier for the StackSet operation.
call_as No 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 .

Output

ImportStacksToStackSetOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
operation_id str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CallAs, ImportStacksToStackSetOutput, StackSetOperationPreferences

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudformation.exceptions:

InvalidOperationError, LimitExceededError, OperationIdAlreadyExistsError, OperationInProgressError, StackNotFoundError, StackSetNotFoundError, StaleRequestError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model