CloudFormation / Paginator / ListStackSetOperations

ListStackSetOperations#

class CloudFormation.Paginator.ListStackSetOperations#
paginator = client.get_paginator('list_stack_set_operations')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from CloudFormation.Client.list_stack_set_operations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    StackSetName='string',
    CallAs='SELF'|'DELEGATED_ADMIN',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • StackSetName (string) –

    [REQUIRED]

    The name or unique ID of the stack set that you want to get operation summaries for.

  • CallAs (string) –

    [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 stack sets 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.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'Summaries': [
        {
            'OperationId': 'string',
            'Action': 'CREATE'|'UPDATE'|'DELETE'|'DETECT_DRIFT',
            'Status': 'RUNNING'|'SUCCEEDED'|'FAILED'|'STOPPING'|'STOPPED'|'QUEUED',
            'CreationTimestamp': datetime(2015, 1, 1),
            'EndTimestamp': datetime(2015, 1, 1),
            'StatusReason': 'string',
            'StatusDetails': {
                'FailedStackInstancesCount': 123
            },
            'OperationPreferences': {
                'RegionConcurrencyType': 'SEQUENTIAL'|'PARALLEL',
                'RegionOrder': [
                    'string',
                ],
                'FailureToleranceCount': 123,
                'FailureTolerancePercentage': 123,
                'MaxConcurrentCount': 123,
                'MaxConcurrentPercentage': 123
            }
        },
    ],

}

Response Structure

  • (dict) –

    • Summaries (list) –

      A list of StackSetOperationSummary structures that contain summary information about operations for the specified stack set.

      • (dict) –

        The structures that contain summary information about the specified operation.

        • OperationId (string) –

          The unique ID of the stack set operation.

        • Action (string) –

          The type of operation: CREATE, UPDATE, or DELETE. Create and delete operations affect only the specified stack instances that are associated with the specified stack set. Update operations affect both the stack set itself and all associated stack set instances.

        • Status (string) –

          The overall status of the operation.

          • FAILED: The operation exceeded the specified failure tolerance. The failure tolerance value that you’ve set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to FAILED. This in turn sets the status of the operation as a whole to FAILED, and CloudFormation cancels the operation in any remaining Regions.

          • QUEUED: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the stack set operation status codes in the CloudFormation User Guide.

          • RUNNING: The operation is currently being performed.

          • STOPPED: The user has canceled the operation.

          • STOPPING: The operation is in the process of stopping, at user request.

          • SUCCEEDED: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.

        • CreationTimestamp (datetime) –

          The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.

        • EndTimestamp (datetime) –

          The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn’t necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.

        • StatusReason (string) –

          The status of the operation in details.

        • StatusDetails (dict) –

          Detailed information about the stack set operation.

          • FailedStackInstancesCount (integer) –

            The number of stack instances for which the StackSet operation failed.

        • OperationPreferences (dict) –

          The user-specified preferences for how CloudFormation performs a stack set operation.

          For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options.

          • RegionConcurrencyType (string) –

            The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.

          • RegionOrder (list) –

            The order of the Regions where you want to perform the stack operation.

            • (string) –

          • FailureToleranceCount (integer) –

            The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn’t attempt the operation in any subsequent Regions.

            Conditional: You must specify either FailureToleranceCount or FailureTolerancePercentage (but not both).

            By default, 0 is specified.

          • FailureTolerancePercentage (integer) –

            The percentage of accounts, per Region, for which this stack operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn’t attempt the operation in any subsequent Regions.

            When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.

            Conditional: You must specify either FailureToleranceCount or FailureTolerancePercentage, but not both.

            By default, 0 is specified.

          • MaxConcurrentCount (integer) –

            The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of FailureToleranceCount. MaxConcurrentCount is at most one more than the FailureToleranceCount.

            Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

            Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage, but not both.

            By default, 1 is specified.

          • MaxConcurrentPercentage (integer) –

            The maximum percentage of accounts in which to perform this operation at one time.

            When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead.

            Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

            Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage, but not both.

            By default, 1 is specified.