enrollment_statuses_for_organizations
Creates, updates, deletes, gets or lists an enrollment_statuses_for_organizations resource.
Overview
| Name | enrollment_statuses_for_organizations |
| Type | Resource |
| Id | aws.compute_optimizer.enrollment_statuses_for_organizations |
Fields
The following fields are returned by SELECT queries:
- get_enrollment_statuses_for_organization
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Amazon Web Services account ID. |
last_updated_timestamp | string (date-time) | The Unix epoch timestamp, in seconds, of when the account enrollment status was last updated. |
status | string | The account enrollment status. (Active, Inactive, Pending, Failed) |
status_reason | string | The reason for the account enrollment status. For example, an account might show a status of Pending because member accounts of an organization require more time to be enrolled in the service. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_enrollment_statuses_for_organization | select | region | Returns the Compute Optimizer enrollment (opt-in) status of organization member accounts, if your account is an organization management account. To get the enrollment status of standalone accounts, use the GetEnrollmentStatus action. |
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
- get_enrollment_statuses_for_organization
Returns the Compute Optimizer enrollment (opt-in) status of organization member accounts, if your account is an organization management account. To get the enrollment status of standalone accounts, use the GetEnrollmentStatus action.
SELECT
account_id,
last_updated_timestamp,
status,
status_reason
FROM aws.compute_optimizer.enrollment_statuses_for_organizations
WHERE region = '{{ region }}' -- required
;