Skip to main content

enabled_baselines

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

Overview

Nameenabled_baselines
TypeResource
Idaws.controltower.enabled_baselines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the EnabledBaseline resource. (pattern: <code>arn:aws[0-9a-zA-Z_-:/]+</code>)
baseline_identifierstringThe specific Baseline enabled as part of the EnabledBaseline resource.
baseline_versionstringThe enabled version of the Baseline.
drift_status_summaryobjectThe drift status of the enabled baseline.
parametersarrayShows the parameters that are applied when enabling this Baseline.
parent_identifierstringAn ARN that represents the parent EnabledBaseline at the Organizational Unit (OU) level, from which the child EnabledBaseline inherits its configuration. The value is returned by GetEnabledBaseline. (pattern: <code>arn:aws[0-9a-zA-Z_-:/]+</code>)
status_summaryobjectThe deployment summary of an EnabledControl or EnabledBaseline resource.
target_identifierstringThe target on which to enable the Baseline.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_enabled_baselineselectregionRetrieve details of an EnabledBaseline resource by specifying its identifier.
list_enabled_baselinesselectregionReturns a list of summaries describing EnabledBaseline resources. You can filter the list by the corresponding Baseline or Target of the EnabledBaseline resources. For usage examples, see the Amazon Web Services Control Tower User Guide .
update_enabled_baselineupdateregion, baselineVersion, enabledBaselineIdentifierUpdates an EnabledBaseline resource's applied parameters or version. For usage examples, see the Amazon Web Services Control Tower User Guide .
reset_enabled_baselineexecregion, enabledBaselineIdentifierRe-enables an EnabledBaseline resource. For example, this API can re-apply the existing Baseline after a new member account is moved to the target OU. For usage examples, see the Amazon Web Services Control Tower User Guide .

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

Retrieve details of an EnabledBaseline resource by specifying its identifier.

SELECT
arn,
baseline_identifier,
baseline_version,
drift_status_summary,
parameters,
parent_identifier,
status_summary,
target_identifier
FROM aws.controltower.enabled_baselines
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates an EnabledBaseline resource's applied parameters or version. For usage examples, see the Amazon Web Services Control Tower User Guide .

UPDATE aws.controltower.enabled_baselines
SET
baselineVersion = '{{ baselineVersion }}',
parameters = '{{ parameters }}',
enabledBaselineIdentifier = '{{ enabledBaselineIdentifier }}'
WHERE
region = '{{ region }}' --required
AND baselineVersion = '{{ baselineVersion }}' --required
AND enabledBaselineIdentifier = '{{ enabledBaselineIdentifier }}' --required
RETURNING
operation_identifier;

Lifecycle Methods

Re-enables an EnabledBaseline resource. For example, this API can re-apply the existing Baseline after a new member account is moved to the target OU. For usage examples, see the Amazon Web Services Control Tower User Guide .

EXEC aws.controltower.enabled_baselines.reset_enabled_baseline
@region='{{ region }}' --required
@@json=
'{
"enabledBaselineIdentifier": "{{ enabledBaselineIdentifier }}"
}'
;