Skip to main content

enrollment_statuses_for_organizations

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

Overview

Nameenrollment_statuses_for_organizations
TypeResource
Idaws.compute_optimizer.enrollment_statuses_for_organizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID.
last_updated_timestampstring (date-time)The Unix epoch timestamp, in seconds, of when the account enrollment status was last updated.
statusstringThe account enrollment status. (Active, Inactive, Pending, Failed)
status_reasonstringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_enrollment_statuses_for_organizationselectregionReturns 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.

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

SELECT examples

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
;