Skip to content

CloudFormationClient.rollback_stack

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): When specifying RollbackStack , you preserve the state of previously provisioned resources when an operation fails. You can check the status of the stack through the DescribeStacks operation. Rolls back the specified stack to the last known stable state from CREATE_FAILED or UPDATE_FAILED stack statuses. This operation will delete a stack if it doesn't contain a last known stable state. A last...

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
    DeploymentConfig,
    RollbackStackOutput,
)

Signature

async def rollback_stack(
    *,
    stack_name: str,
    role_arn: str | None = None,
    client_request_token: str | None = None,
    retain_except_on_create: bool | None = None,
    deployment_config: DeploymentConfig | None = None,
) -> RollbackStackOutput: ...

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_name Yes The name that's associated with the stack.
role_arn No The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to rollback the stack.
client_request_token No A unique identifier for this RollbackStack request.
retain_except_on_create No When set to true , newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain . Default: false
deployment_config No The deployment configuration for this stack operation, including the deployment mode.

Output

RollbackStackOutput.

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
stack_id str | None Always present —
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.

DeploymentConfig, RollbackStackOutput

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:

TokenAlreadyExistsError.

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

Service guide · Pinned model