Skip to main content

enabled_controls

Creates, updates, deletes or gets an enabled_control resource or lists enabled_controls in a region

Overview

Nameenabled_controls
TypeResource
DescriptionEnables a control on a specified target.
Idaws.controltower.enabled_controls

Fields

NameDatatypeDescription
control_identifierstringArn of the control.
target_identifierstringArn for Organizational unit to which the control needs to be applied
parametersarrayParameters to configure the enabled control behavior.
tagsarrayA set of tags to assign to the enabled control.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTTargetIdentifier, ControlIdentifier, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all enabled_controls in a region.

SELECT
region,
control_identifier,
target_identifier,
parameters,
tags
FROM aws.controltower.enabled_controls
WHERE region = 'us-east-1';

Gets all properties from an individual enabled_control.

SELECT
region,
control_identifier,
target_identifier,
parameters,
tags
FROM aws.controltower.enabled_controls
WHERE region = 'us-east-1' AND data__Identifier = '<TargetIdentifier>|<ControlIdentifier>';

INSERT example

Use the following StackQL query and manifest file to create a new enabled_control resource, using stack-deploy.

/*+ create */
INSERT INTO aws.controltower.enabled_controls (
ControlIdentifier,
TargetIdentifier,
region
)
SELECT
'{{ ControlIdentifier }}',
'{{ TargetIdentifier }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.controltower.enabled_controls
WHERE data__Identifier = '<TargetIdentifier|ControlIdentifier>'
AND region = 'us-east-1';

Permissions

To operate on the enabled_controls resource, the following permissions are required:

Create

controltower:ListEnabledControls,
controltower:GetEnabledControl,
controltower:GetControlOperation,
controltower:EnableControl,
controltower:TagResource,
organizations:UpdatePolicy,
organizations:CreatePolicy,
organizations:AttachPolicy,
organizations:DetachPolicy,
organizations:ListPoliciesForTarget,
organizations:ListTargetsForPolicy,
organizations:DescribePolicy

Update

controltower:ListEnabledControls,
controltower:GetEnabledControl,
controltower:GetControlOperation,
controltower:UpdateEnabledControl,
controltower:UntagResource,
controltower:TagResource,
organizations:UpdatePolicy,
organizations:CreatePolicy,
organizations:AttachPolicy,
organizations:DetachPolicy,
organizations:ListPoliciesForTarget,
organizations:ListTargetsForPolicy,
organizations:DescribePolicy

Delete

controltower:GetControlOperation,
controltower:DisableControl,
organizations:UpdatePolicy,
organizations:DeletePolicy,
organizations:CreatePolicy,
organizations:AttachPolicy,
organizations:DetachPolicy,
organizations:ListPoliciesForTarget,
organizations:ListTargetsForPolicy,
organizations:DescribePolicy

Read

controltower:ListEnabledControls,
controltower:GetEnabledControl,
controltower:ListTagsForResource

List

controltower:ListEnabledControls