CostOptimizationHub / Paginator / ListEnrollmentStatuses

ListEnrollmentStatuses#

class CostOptimizationHub.Paginator.ListEnrollmentStatuses#
paginator = client.get_paginator('list_enrollment_statuses')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from CostOptimizationHub.Client.list_enrollment_statuses().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    accountId='string',
    includeOrganizationInfo=True|False,
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • accountId (string) – The account ID of a member account in the organization.

  • includeOrganizationInfo (boolean) – Indicates whether to return the enrollment status for the organization.

  • 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

{
    'includeMemberAccounts': True|False,
    'items': [
        {
            'accountId': 'string',
            'createdTimestamp': datetime(2015, 1, 1),
            'lastUpdatedTimestamp': datetime(2015, 1, 1),
            'status': 'Active'|'Inactive'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • includeMemberAccounts (boolean) –

      The enrollment status of all member accounts in the organization if the account is the management account.

    • items (list) –

      The enrollment status of a specific account ID, including creation and last updated timestamps.

      • (dict) –

        Describes the enrollment status of an organization’s member accounts in Cost Optimization Hub.

        • accountId (string) –

          The Amazon Web Services account ID.

        • createdTimestamp (datetime) –

          The time when the account enrollment status was created.

        • lastUpdatedTimestamp (datetime) –

          The time when the account enrollment status was last updated.

        • status (string) –

          The account enrollment status.

    • NextToken (string) –

      A token to resume pagination.