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.
Idawscc.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.

For more information, see AWS::Config::OrganizationConformancePack.

Methods

NameResourceAccessible byRequired Params
create_resourceorganization_conformance_packsINSERTOrganizationConformancePackName, region
delete_resourceorganization_conformance_packsDELETEIdentifier, region
update_resourceorganization_conformance_packsUPDATEIdentifier, PatchDocument, region
list_resourcesorganization_conformance_packs_list_onlySELECTregion
get_resourceorganization_conformance_packsSELECTIdentifier, region

SELECT examples

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 awscc.config.organization_conformance_packs
WHERE
region = '{{ region }}' AND
Identifier = '{{ organization_conformance_pack_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.config.organization_conformance_packs (
OrganizationConformancePackName,
region
)
SELECT
'{{ organization_conformance_pack_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.config.organization_conformance_packs
SET PatchDocument = string('{{ {
"TemplateS3Uri": template_s3_uri,
"TemplateBody": template_body,
"DeliveryS3Bucket": delivery_s3_bucket,
"DeliveryS3KeyPrefix": delivery_s3_key_prefix,
"ConformancePackInputParameters": conformance_pack_input_parameters,
"ExcludedAccounts": excluded_accounts
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ organization_conformance_pack_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.config.organization_conformance_packs
WHERE
Identifier = '{{ organization_conformance_pack_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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