Skip to content

CloudFormation  >  Structures  >  StackRefactorAction

StackRefactorAction

Structure Class

StackRefactorAction dataclass

Bases: _SerdeShape

Describes the stack and the action that CloudFormation will perform on it if you execute the stack refactor.

Attributes

action class-attribute instance-attribute
action: str | None = ...

The action that CloudFormation takes on the stack.

description class-attribute instance-attribute
description: str | None = ...

A description to help you identify the refactor.

detection class-attribute instance-attribute
detection: str | None = ...

The detection type is one of the following:

  • Auto: CloudFormation figured out the mapping on its own.

  • Manual: The customer provided the mapping in the ResourceMapping parameter.

detection_reason class-attribute instance-attribute
detection_reason: str | None = ...

The description of the detection type.

entity class-attribute instance-attribute
entity: str | None = ...

The type that will be evaluated in the StackRefactorAction. The following are potential Entity types:

  • Stack

  • Resource

physical_resource_id class-attribute instance-attribute
physical_resource_id: str | None = ...

The name or unique identifier associated with the physical instance of the resource.

resource_identifier class-attribute instance-attribute
resource_identifier: str | None = ...

A key-value pair that identifies the target resource. The key is an identifier property (for example, BucketName for AWS::S3::Bucket resources) and the value is the actual property value (for example, MyS3Bucket).

resource_mapping class-attribute instance-attribute
resource_mapping: ResourceMapping | None = ...

The mapping for the stack resource Source and stack resource Destination.

tag_resources class-attribute instance-attribute
tag_resources: list[Tag] | None = ...

Assigns one or more tags to specified resources.

untag_resources class-attribute instance-attribute
untag_resources: list[str] | None = ...

Removes one or more tags to specified resources.