ConfigService / Client / put_conformance_pack



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.

See also: AWS API Documentation

Request Syntax

response = client.put_conformance_pack(
            'ParameterName': 'string',
            'ParameterValue': 'string'
        'DocumentName': 'string',
        'DocumentVersion': 'string'
  • ConformancePackName (string) –


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

  • TemplateS3Uri (string) –

    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.

  • TemplateBody (string) –

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

  • DeliveryS3Bucket (string) –

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


    This field is optional.

  • DeliveryS3KeyPrefix (string) –

    The prefix for the Amazon S3 bucket.


    This field is optional.

  • ConformancePackInputParameters (list) –

    A list of ConformancePackInputParameter objects.

    • (dict) –

      Input parameters in the form of key-value pairs for the conformance pack, both of which you define. Keys can have a maximum character length of 255 characters, and values can have a maximum length of 4096 characters.

      • ParameterName (string) – [REQUIRED]

        One part of a key-value pair.

      • ParameterValue (string) – [REQUIRED]

        Another part of the key-value pair.

  • TemplateSSMDocumentDetails (dict) –

    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.

    • DocumentName (string) – [REQUIRED]

      The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, Config checks only your account and Amazon Web Services Region for the SSM document.

    • DocumentVersion (string) –

      The version of the SSM document to use to create a conformance pack. By default, Config uses the latest version.


      This field is optional.

Return type:



Response Syntax

    'ConformancePackArn': 'string'

Response Structure

  • (dict) –

    • ConformancePackArn (string) –

      ARN of the conformance pack.