Skip to main content

stack_refactor_actions

Creates, updates, deletes, gets or lists a stack_refactor_actions resource.

Overview

Namestack_refactor_actions
TypeResource
Idaws.cloudformation.stack_refactor_actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionstringThe action that CloudFormation takes on the stack.
descriptionstringA description to help you identify the refactor.
detectionstringThe 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_reasonstringThe description of the detection type.
entitystringThe type that will be evaluated in the StackRefactorAction. The following are potential Entity types: Stack Resource
physical_resource_idstringThe name or unique identifier associated with the physical instance of the resource.
resource_identifierstringA 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_mappingstringThe mapping for the stack resource Source and stack resource Destination.
tag_resourcesstringAssigns one or more tags to specified resources.
untag_resourcesstringRemoves one or more tags to specified resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_stack_refactor_actionsselectStackRefactorId, regionNextToken, MaxResultsLists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
StackRefactorIdstringThe ID associated with the stack refactor created from the CreateStackRefactor action.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)

SELECT examples

Lists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action.

SELECT
action,
description,
detection,
detection_reason,
entity,
physical_resource_id,
resource_identifier,
resource_mapping,
tag_resources,
untag_resources
FROM aws.cloudformation.stack_refactor_actions
WHERE StackRefactorId = '{{ StackRefactorId }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;