Skip to content

CloudFormationClient.create_stack_instances

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Creates stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You must specify at least one value for either Accounts or DeploymentTargets , and you must specify at least one value for Regions . The maximum number of organizational unit (OUs) supported by a CreateStackInstances...

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,
    CreateStackInstancesOutput,
    DeploymentTargets,
    Parameter,
    StackSetOperationPreferences,
)

Signature

async def create_stack_instances(
    *,
    stack_set_name: str,
    regions: Sequence[str],
    accounts: Sequence[str] | None = None,
    deployment_targets: DeploymentTargets | None = None,
    parameter_overrides: Sequence[Parameter] | None = None,
    operation_preferences: StackSetOperationPreferences | None = None,
    operation_id: str | None = None,
    call_as: CallAs | None = None,
) -> CreateStackInstancesOutput: ...

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 or unique ID of the StackSet that you want to create stack instances from.
regions Yes The names of one or more Amazon Web Services Regions where you want to create stack instances using the specified Amazon Web Services accounts.
accounts No [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts that you want to create stack instances in the specified Region(s) for. You can specify Accounts or DeploymentTargets , but not both.
deployment_targets No [Service-managed permissions] The Organizations accounts in which to create stack instances in the specified Amazon Web Services Regions. You can specify Accounts or DeploymentTargets , but not both.
parameter_overrides No A list of StackSet parameters whose values you want to override in the selected stack instances. Any overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. When specifying parameters and their values, be aware of how CloudFormation sets parameter values during stack instance operations: To override the current value for a...
operation_preferences No Preferences for how CloudFormation performs this StackSet operation.
operation_id No The unique identifier for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one...
call_as No [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,...

Output

CreateStackInstancesOutput.

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, CreateStackInstancesOutput, DeploymentTargets, Parameter, 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, StackSetNotFoundError, StaleRequestError.

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

Service guide · Pinned model