enrollment_statuses
Creates, updates, deletes, gets or lists an enrollment_statuses resource.
Overview
| Name | enrollment_statuses |
| Type | Resource |
| Id | aws.cost_optimization_hub.enrollment_statuses |
Fields
The following fields are returned by SELECT queries:
- list_enrollment_statuses
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Amazon Web Services account ID. (pattern: <code>[0-9]{12}</code>) |
created_timestamp | string (date-time) | The time when the account enrollment status was created. |
last_updated_timestamp | string (date-time) | The time when the account enrollment status was last updated. |
status | string | The account enrollment status. (Active, Inactive) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_enrollment_statuses | select | region | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_enrollment_statuses
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
;