enabled_baselines
Creates, updates, deletes or gets an enabled_baseline
resource or lists enabled_baselines
in a region
Overview
Name | enabled_baselines |
Type | Resource |
Description | Definition of AWS::ControlTower::EnabledBaseline Resource Type |
Id | aws.controltower.enabled_baselines |
Fields
Name | Datatype | Description |
---|---|---|
baseline_identifier | string | |
baseline_version | string | |
enabled_baseline_identifier | string | |
target_identifier | string | |
parameters | array | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | BaselineIdentifier, TargetIdentifier, BaselineVersion, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all enabled_baselines
in a region.
SELECT
region,
baseline_identifier,
baseline_version,
enabled_baseline_identifier,
target_identifier,
parameters,
tags
FROM aws.controltower.enabled_baselines
WHERE region = 'us-east-1';
Gets all properties from an individual enabled_baseline
.
SELECT
region,
baseline_identifier,
baseline_version,
enabled_baseline_identifier,
target_identifier,
parameters,
tags
FROM aws.controltower.enabled_baselines
WHERE region = 'us-east-1' AND data__Identifier = '<EnabledBaselineIdentifier>';
INSERT
example
Use the following StackQL query and manifest file to create a new enabled_baseline
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.controltower.enabled_baselines (
BaselineIdentifier,
BaselineVersion,
TargetIdentifier,
region
)
SELECT
'{{ BaselineIdentifier }}',
'{{ BaselineVersion }}',
'{{ TargetIdentifier }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.controltower.enabled_baselines (
BaselineIdentifier,
BaselineVersion,
TargetIdentifier,
Parameters,
Tags,
region
)
SELECT
'{{ BaselineIdentifier }}',
'{{ BaselineVersion }}',
'{{ TargetIdentifier }}',
'{{ Parameters }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: enabled_baseline
props:
- name: BaselineIdentifier
value: '{{ BaselineIdentifier }}'
- name: BaselineVersion
value: '{{ BaselineVersion }}'
- name: TargetIdentifier
value: '{{ TargetIdentifier }}'
- name: Parameters
value:
- Key: '{{ Key }}'
Value: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.controltower.enabled_baselines
WHERE data__Identifier = '<EnabledBaselineIdentifier>'
AND region = 'us-east-1';
Permissions
To operate on the enabled_baselines
resource, the following permissions are required:
Create
controltower:EnableBaseline,
controltower:TagResource,
controltower:GetBaselineOperation,
controltower:GetEnabledBaseline,
controltower:ListTagsForResource,
organizations:CreateOrganizationalUnit,
organizations:CreateOrganization,
organizations:UpdatePolicy,
organizations:CreatePolicy,
organizations:AttachPolicy,
organizations:DetachPolicy,
organizations:DeletePolicy,
organizations:EnablePolicyType,
organizations:EnableAWSServiceAccess,
organizations:ListRoots,
servicecatalog:AssociatePrincipalWithPortfolio,
servicecatalog:AssociateProductWithPortfolio,
servicecatalog:CreatePortfolio,
servicecatalog:CreateProduct,
servicecatalog:CreateProvisioningArtifact,
servicecatalog:ListPortfolios,
servicecatalog:ListProvisioningArtifacts,
servicecatalog:SearchProductsAsAdmin,
servicecatalog:UpdatePortfolio,
servicecatalog:UpdateProvisioningArtifact,
servicecatalog:ListPrincipalsForPortfolio,
servicecatalog:DeleteProvisioningArtifact
Read
controltower:GetEnabledBaseline,
controltower:ListEnabledBaselines,
controltower:ListTagsForResource
Update
controltower:UpdateEnabledBaseline,
controltower:GetBaselineOperation,
organizations:CreateOrganizationalUnit,
organizations:CreateOrganization,
organizations:UpdatePolicy,
organizations:CreatePolicy,
organizations:AttachPolicy,
organizations:DetachPolicy,
organizations:DeletePolicy,
organizations:EnablePolicyType,
organizations:EnableAWSServiceAccess,
organizations:ListRoots,
servicecatalog:AssociatePrincipalWithPortfolio,
servicecatalog:AssociateProductWithPortfolio,
servicecatalog:CreatePortfolio,
servicecatalog:CreateProduct,
servicecatalog:CreateProvisioningArtifact,
servicecatalog:ListPortfolios,
servicecatalog:ListProvisioningArtifacts,
servicecatalog:SearchProductsAsAdmin,
servicecatalog:UpdatePortfolio,
servicecatalog:UpdateProvisioningArtifact,
servicecatalog:ListPrincipalsForPortfolio,
servicecatalog:DeleteProvisioningArtifact,
controltower:TagResource,
controltower:ListTagsForResource,
controltower:GetEnabledBaseline
Delete
controltower:DisableBaseline,
controltower:GetBaselineOperation,
organizations:CreateOrganizationalUnit,
organizations:CreateOrganization,
organizations:UpdatePolicy,
organizations:CreatePolicy,
organizations:AttachPolicy,
organizations:DetachPolicy,
organizations:DeletePolicy,
organizations:EnablePolicyType,
organizations:EnableAWSServiceAccess,
organizations:ListRoots,
servicecatalog:AssociatePrincipalWithPortfolio,
servicecatalog:AssociateProductWithPortfolio,
servicecatalog:CreatePortfolio,
servicecatalog:CreateProduct,
servicecatalog:CreateProvisioningArtifact,
servicecatalog:ListPortfolios,
servicecatalog:ListProvisioningArtifacts,
servicecatalog:SearchProductsAsAdmin,
servicecatalog:UpdatePortfolio,
servicecatalog:UpdateProvisioningArtifact,
servicecatalog:ListPrincipalsForPortfolio,
servicecatalog:DeleteProvisioningArtifact
List
controltower:ListEnabledBaselines