Skip to main content

stack_set_operation_results

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

Overview

Namestack_set_operation_results
TypeResource
Idaws.cloudformation.stack_set_operation_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
accountstring[Self-managed permissions] The name of the Amazon Web Services account for this operation result.
account_gate_resultstringThe results of the account gate function CloudFormation invokes, if present, before proceeding with StackSet operations in an account.
organizational_unit_idstring[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
regionstringThe name of the Amazon Web Services Region for this operation result.
statusstringThe result status of the StackSet operation for the given account in the given Region. CANCELLED: The operation in the specified account and Region has been canceled. This is either because a user has stopped the StackSet operation, or because the failure tolerance of the StackSet operation has been exceeded. FAILED: The operation in the specified account and Region failed. If the StackSet operation fails in enough accounts within a Region, the failure tolerance for the StackSet operation as a whole might be exceeded. RUNNING: The operation in the specified account and Region is currently in progress. PENDING: The operation in the specified account and Region has yet to start. SUCCEEDED: The operation in the specified account and Region completed successfully.
status_reasonstringThe reason for the assigned result status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_stack_set_operation_resultsselectStackSetName, OperationId, regionNextToken, MaxResults, CallAs, FiltersReturns summary information about the results of a StackSet operation. This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data.

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
OperationIdstringThe ID of the StackSet operation.
StackSetNamestringThe name or unique ID of the StackSet that you want to get operation results for.
regionstringAWS region (default: us-east-1)
CallAsstring[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, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
FiltersarrayThe filter to apply to operation results.
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

Returns summary information about the results of a StackSet operation. This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data.

SELECT
account,
account_gate_result,
organizational_unit_id,
region,
status,
status_reason
FROM aws.cloudformation.stack_set_operation_results
WHERE StackSetName = '{{ StackSetName }}' -- required
AND OperationId = '{{ OperationId }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND CallAs = '{{ CallAs }}'
AND Filters = '{{ Filters }}'
;