Skip to main content

enrollment_statuses

Creates, updates, deletes, gets or lists an enrollment_statuses resource.

Overview​

Nameenrollment_statuses
TypeResource
Idaws.cost_optimization_hub.enrollment_statuses

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID. (pattern: <code>[0-9]{12}</code>)
created_timestampstring (date-time)The time when the account enrollment status was created.
last_updated_timestampstring (date-time)The time when the account enrollment status was last updated.
statusstringThe account enrollment status. (Active, Inactive)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_enrollment_statusesselectregionRetrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

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

SELECT
account_id,
created_timestamp,
last_updated_timestamp,
status
FROM aws.cost_optimization_hub.enrollment_statuses
WHERE region = '{{ region }}' -- required
;