Cost Optimization Hub

2024/02/09 - Cost Optimization Hub - 1 updated api methods

Changes  Adding includeMemberAccounts field to the response of ListEnrollmentStatuses API.

ListEnrollmentStatuses (updated) Link ΒΆ
Changes (response)
{'includeMemberAccounts': 'boolean'}

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

client.list_enrollment_statuses(
    accountId='string',
    includeOrganizationInfo=True|False,
    maxResults=123,
    nextToken='string'
)
type accountId

string

param accountId

The account ID of a member account in the organization.

type includeOrganizationInfo

boolean

param includeOrganizationInfo

Indicates whether to return the enrollment status for the organization.

type maxResults

integer

param maxResults

The maximum number of objects that are returned for the request.

type nextToken

string

param nextToken

The token to retrieve the next set of results.

rtype

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.