2026/01/21 - AWS Config - 1 updated api methods
Changes AWS Config Conformance Packs now support tag-on-create through PutConformancePack API.
{'Tags': [{'Key': 'string', 'Value': 'string'}]}
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.
See also: AWS API Documentation
Request Syntax
client.put_conformance_pack(
ConformancePackName='string',
TemplateS3Uri='string',
TemplateBody='string',
DeliveryS3Bucket='string',
DeliveryS3KeyPrefix='string',
ConformancePackInputParameters=[
{
'ParameterName': 'string',
'ParameterValue': 'string'
},
],
TemplateSSMDocumentDetails={
'DocumentName': 'string',
'DocumentVersion': 'string'
},
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
string
[REQUIRED]
The unique name of the conformance pack you want to deploy.
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.
string
A string that contains 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.
string
The name of the Amazon S3 bucket where Config stores conformance pack templates.
string
The prefix for the Amazon S3 bucket.
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.
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.
list
The tags for the conformance pack. Each tag consists of a key and an optional value, both of which you define.
(dict) --
The tags for the resource. The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Key (string) --
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
Value (string) --
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
dict
Response Syntax
{
'ConformancePackArn': 'string'
}
Response Structure
(dict) --
ConformancePackArn (string) --
ARN of the conformance pack.