2022/08/24 - AWS Config - 2 updated api methods
Changes AWS Config now supports ConformancePackTemplate documents in SSM Docs for the deployment and update of conformance packs.
{'ConformancePackDetails': {'TemplateSSMDocumentDetails': {'DocumentName': 'string', 'DocumentVersion': 'string'}}}
Returns a list of one or more conformance packs.
See also: AWS API Documentation
Request Syntax
client.describe_conformance_packs( ConformancePackNames=[ 'string', ], Limit=123, NextToken='string' )
list
Comma-separated list of conformance pack names for which you want details. If you do not specify any names, Config returns details for all your conformance packs.
(string) --
integer
The maximum number of conformance packs returned on each page.
string
The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.
dict
Response Syntax
{ 'ConformancePackDetails': [ { 'ConformancePackName': 'string', 'ConformancePackArn': 'string', 'ConformancePackId': 'string', 'DeliveryS3Bucket': 'string', 'DeliveryS3KeyPrefix': 'string', 'ConformancePackInputParameters': [ { 'ParameterName': 'string', 'ParameterValue': 'string' }, ], 'LastUpdateRequestedTime': datetime(2015, 1, 1), 'CreatedBy': 'string', 'TemplateSSMDocumentDetails': { 'DocumentName': 'string', 'DocumentVersion': 'string' } }, ], 'NextToken': 'string' }
Response Structure
(dict) --
ConformancePackDetails (list) --
Returns a list of ConformancePackDetail objects.
(dict) --
Returns details of a conformance pack. A conformance pack is a collection of Config rules and remediation actions that can be easily deployed in an account and a region.
ConformancePackName (string) --
Name of the conformance pack.
ConformancePackArn (string) --
Amazon Resource Name (ARN) of the conformance pack.
ConformancePackId (string) --
ID of the conformance pack.
DeliveryS3Bucket (string) --
The name of the Amazon S3 bucket where Config stores conformance pack templates.
DeliveryS3KeyPrefix (string) --
The prefix for the Amazon S3 bucket.
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) --
One part of a key-value pair.
ParameterValue (string) --
Another part of the key-value pair.
LastUpdateRequestedTime (datetime) --
The last time a conformation pack update was requested.
CreatedBy (string) --
The Amazon Web Services service that created the conformance pack.
TemplateSSMDocumentDetails (dict) --
An object that contains the name or 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) --
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 region for the SSM document. If you want to use an SSM document from another region or account, you must provide the ARN.
DocumentVersion (string) --
The version of the SSM document to use to create a conformance pack. By default, Config uses the latest version.
NextToken (string) --
The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.
{'TemplateSSMDocumentDetails': {'DocumentName': 'string', 'DocumentVersion': '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 Amazon Web Services 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' } )
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 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.
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 region for the SSM document. If you want to use an SSM document from another region or account, you must provide the ARN.
DocumentVersion (string) --
The version of the SSM document to use to create a conformance pack. By default, Config uses the latest version.
dict
Response Syntax
{ 'ConformancePackArn': 'string' }
Response Structure
(dict) --
ConformancePackArn (string) --
ARN of the conformance pack.