CostOptimizationHub / Client / list_enrollment_statuses

list_enrollment_statuses#

CostOptimizationHub.Client.list_enrollment_statuses(**kwargs)#

Retrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.

See also: AWS API Documentation

Request Syntax

response = client.list_enrollment_statuses(
    accountId='string',
    includeOrganizationInfo=True|False,
    maxResults=123,
    nextToken='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.

  • maxResults (integer) – The maximum number of objects that are returned for the request.

  • nextToken (string) – The token to retrieve the next set of results.

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) –

      The token to retrieve the next set of results.

Exceptions

  • CostOptimizationHub.Client.exceptions.ValidationException

  • CostOptimizationHub.Client.exceptions.InternalServerException

  • CostOptimizationHub.Client.exceptions.AccessDeniedException

  • CostOptimizationHub.Client.exceptions.ThrottlingException