Skip to content

CloudFormationClient.update_stack_instances

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Updates the parameter values for 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 can only update stack instances in Amazon Web Services Regions and accounts where they already exist; to create additional stack instances, use CreateStackInstances . During StackSet updates, any...

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

Signature

async def update_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,
) -> UpdateStackInstancesOutput: ...

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 associated with the stack instances.
regions Yes The names of one or more Amazon Web Services Regions in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions.
accounts No [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. You can specify Accounts or DeploymentTargets , but not both.
deployment_targets No [Service-managed permissions] The Organizations accounts in which you want to update parameter values for stack instances. If your update targets OUs, the overridden parameter values only apply to the accounts that are currently in the target OUs and their child OUs. Accounts added to the target OUs and their child OUs in the future won't use the overridden values. You can specify Accounts or...
parameter_overrides No A list of input parameters whose values you want to update for the specified 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 update operations: To override the current value for...
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

UpdateStackInstancesOutput.

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

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, OperationIdAlreadyExistsError, OperationInProgressError, StackInstanceNotFoundError, StackSetNotFoundError, StaleRequestError.

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

Service guide · Pinned model