Skip to content

/AWS1/CL_CFS=>PUTCONFORMANCEPACK()

About PutConformancePack

Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across an organization. For information on how many conformance packs you can have per account, see Service Limits in the Config Developer Guide.

This API creates a service-linked role AWSServiceRoleForConfigConforms in your account. The service-linked role is created only when the role does not exist in your account.

You must specify only one of the follow parameters: TemplateS3Uri, TemplateBody or TemplateSSMDocumentDetails.

Method Signature

IMPORTING

Required arguments:

IV_CONFORMANCEPACKNAME TYPE /AWS1/CFSCONFORMANCEPACKNAME /AWS1/CFSCONFORMANCEPACKNAME

The unique name of the conformance pack you want to deploy.

Optional arguments:

IV_TEMPLATES3URI TYPE /AWS1/CFSTEMPLATES3URI /AWS1/CFSTEMPLATES3URI

The location of the file containing the template body (s3://bucketname/prefix). The uri must point to a conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket in the same Region as the conformance pack.

You must have access to read Amazon S3 bucket. In addition, in order to ensure a successful deployment, the template object must not be in an archived storage class if this parameter is passed.

IV_TEMPLATEBODY TYPE /AWS1/CFSTEMPLATEBODY /AWS1/CFSTEMPLATEBODY

A string containing the full conformance pack template body. The structure containing the template body has a minimum length of 1 byte and a maximum length of 51,200 bytes.

You can use a YAML template with two resource types: Config rule (AWS::Config::ConfigRule) and remediation action (AWS::Config::RemediationConfiguration).

IV_DELIVERYS3BUCKET TYPE /AWS1/CFSDELIVERYS3BUCKET /AWS1/CFSDELIVERYS3BUCKET

The name of the Amazon S3 bucket where Config stores conformance pack templates.

This field is optional.

IV_DELIVERYS3KEYPREFIX TYPE /AWS1/CFSDELIVERYS3KEYPREFIX /AWS1/CFSDELIVERYS3KEYPREFIX

The prefix for the Amazon S3 bucket.

This field is optional.

IT_CONFORMANCEPACKINPPARAMS TYPE /AWS1/CL_CFSCONFORMANCEPACKI00=>TT_CONFORMANCEPACKINPUTPARAMS TT_CONFORMANCEPACKINPUTPARAMS

A list of ConformancePackInputParameter objects.

IO_TEMPLATESSMDOCDETAILS TYPE REF TO /AWS1/CL_CFSTMPLSSMDOCDETAILS /AWS1/CL_CFSTMPLSSMDOCDETAILS

An object of type TemplateSSMDocumentDetails, which contains the name or the Amazon Resource Name (ARN) of the Amazon Web Services Systems Manager document (SSM document) and the version of the SSM document that is used to create a conformance pack.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CFSPUTCONFORMANCEPA01 /AWS1/CL_CFSPUTCONFORMANCEPA01