Skip to main content

organization_conformance_packs

Creates, updates, deletes or gets an organization_conformance_pack resource or lists organization_conformance_packs in a region

Overview

Nameorganization_conformance_packs
TypeResource
DescriptionResource schema for AWS::Config::OrganizationConformancePack.
Idaws.config.organization_conformance_packs

Fields

NameDatatypeDescription
organization_conformance_pack_namestringThe name of the organization conformance pack.
template_s3_uristringLocation of file containing the template body.
template_bodystringA string containing full conformance pack template body.
delivery_s3_bucketstringAWS Config stores intermediate files while processing conformance pack template.
delivery_s3_key_prefixstringThe prefix for the delivery S3 bucket.
conformance_pack_input_parametersarrayA list of ConformancePackInputParameter objects.
excluded_accountsarrayA list of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTOrganizationConformancePackName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all organization_conformance_packs in a region.

SELECT
region,
organization_conformance_pack_name,
template_s3_uri,
template_body,
delivery_s3_bucket,
delivery_s3_key_prefix,
conformance_pack_input_parameters,
excluded_accounts
FROM aws.config.organization_conformance_packs
WHERE region = 'us-east-1';

Gets all properties from an individual organization_conformance_pack.

SELECT
region,
organization_conformance_pack_name,
template_s3_uri,
template_body,
delivery_s3_bucket,
delivery_s3_key_prefix,
conformance_pack_input_parameters,
excluded_accounts
FROM aws.config.organization_conformance_packs
WHERE region = 'us-east-1' AND data__Identifier = '<OrganizationConformancePackName>';

INSERT example

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

/*+ create */
INSERT INTO aws.config.organization_conformance_packs (
OrganizationConformancePackName,
region
)
SELECT
'{{ OrganizationConformancePackName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.config.organization_conformance_packs
WHERE data__Identifier = '<OrganizationConformancePackName>'
AND region = 'us-east-1';

Permissions

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

Create

config:PutOrganizationConformancePack,
config:DescribeOrganizationConformancePackStatuses,
config:GetOrganizationConformancePackDetailedStatus,
config:DescribeOrganizationConformancePacks,
s3:GetObject,
s3:GetBucketAcl,
iam:CreateServiceLinkedRole,
iam:PassRole,
organizations:ListDelegatedAdministrators,
organizations:EnableAWSServiceAccess

Read

config:DescribeOrganizationConformancePacks

Delete

config:DeleteOrganizationConformancePack,
config:DescribeOrganizationConformancePackStatuses,
config:GetOrganizationConformancePackDetailedStatus,
organizations:ListDelegatedAdministrators

Update

config:PutOrganizationConformancePack,
config:DescribeOrganizationConformancePackStatuses,
config:GetOrganizationConformancePackDetailedStatus,
s3:GetObject,
s3:GetBucketAcl,
iam:CreateServiceLinkedRole,
iam:PassRole,
organizations:ListDelegatedAdministrators,
organizations:EnableAWSServiceAccess

List

config:DescribeOrganizationConformancePacks