Skip to main content

enabled_baselines

Creates, updates, deletes or gets an enabled_baseline resource or lists enabled_baselines in a region

Overview

Nameenabled_baselines
TypeResource
DescriptionDefinition of AWS::ControlTower::EnabledBaseline Resource Type
Idaws.controltower.enabled_baselines

Fields

NameDatatypeDescription
baseline_identifierstring
baseline_versionstring
enabled_baseline_identifierstring
target_identifierstring
parametersarray
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTBaselineIdentifier, TargetIdentifier, BaselineVersion, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.controltower.enabled_baselines (
BaselineIdentifier,
BaselineVersion,
TargetIdentifier,
region
)
SELECT
'{{ BaselineIdentifier }}',
'{{ BaselineVersion }}',
'{{ TargetIdentifier }}',
'{{ region }}';

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