2024/02/09 - Cost Optimization Hub - 1 updated api methods
Changes Adding includeMemberAccounts field to the response of ListEnrollmentStatuses API.
{'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' )
string
The account ID of a member account in the organization.
boolean
Indicates whether to return the enrollment status for the organization.
integer
The maximum number of objects that are returned for the request.
string
The token to retrieve the next set of results.
dict
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.