Skip to content

CloudFormationClient.create_stack_refactor

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Creates a refactor across multiple stacks, with the list of stacks and resources that are affected.

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 (
    CreateStackRefactorOutput,
    ResourceMapping,
    StackDefinition,
)

Signature

async def create_stack_refactor(
    *,
    stack_definitions: Sequence[StackDefinition],
    description: str | None = None,
    enable_stack_creation: bool | None = None,
    resource_mappings: Sequence[ResourceMapping] | None = None,
) -> CreateStackRefactorOutput: ...

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_definitions Yes The stacks being refactored.
description No A description to help you identify the stack refactor.
enable_stack_creation No Determines if a new stack is created with the refactor.
resource_mappings No The mappings for the stack resource Source and stack resource Destination .

Output

CreateStackRefactorOutput.

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_refactor_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.

CreateStackRefactorOutput, ResourceMapping, StackDefinition

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

No modeled service errors for this operation.

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

Service guide · Pinned model