Skip to main content

enrollment_configurations

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

Overview

Nameenrollment_configurations
TypeResource
Idaws.compute_optimizer_automation.enrollment_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
last_updated_timestampstring (date-time)The timestamp of the last update to the enrollment configuration.
organization_rule_modestringSpecifies whether the management account can create Automation rules that implement optimization actions for this account. (AnyAllowed, NoneAllowed)
statusstringThe current enrollment status. (Active, Inactive, Pending, Failed)
status_reasonstringThe reason for the current enrollment status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_enrollment_configurationselectregionRetrieves the current enrollment configuration for Compute Optimizer Automation.
update_enrollment_configurationupdateregion, statusUpdates your account’s Compute Optimizer Automation enrollment configuration.

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 current enrollment configuration for Compute Optimizer Automation.

SELECT
last_updated_timestamp,
organization_rule_mode,
status,
status_reason
FROM aws.compute_optimizer_automation.enrollment_configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates your account’s Compute Optimizer Automation enrollment configuration.

UPDATE aws.compute_optimizer_automation.enrollment_configurations
SET
status = '{{ status }}',
clientToken = '{{ clientToken }}'
WHERE
region = '{{ region }}' --required
AND status = '{{ status }}' --required
RETURNING
last_updated_timestamp,
status,
status_reason;