Put Conformance Pack
configservice_put_conformance_pack | R Documentation |
Creates or updates a conformance pack¶
Description¶
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
.
Usage¶
configservice_put_conformance_pack(ConformancePackName, TemplateS3Uri,
TemplateBody, DeliveryS3Bucket, DeliveryS3KeyPrefix,
ConformancePackInputParameters, TemplateSSMDocumentDetails)
Arguments¶
ConformancePackName |
[required] The unique name of the conformance pack you want to deploy. |
TemplateS3Uri |
The location of the file containing the template body ( 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 |
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
( |
DeliveryS3Bucket |
The name of the Amazon S3 bucket where Config stores conformance pack templates. This field is optional. |
DeliveryS3KeyPrefix |
The prefix for the Amazon S3 bucket. This field is optional. |
ConformancePackInputParameters |
A list of |
TemplateSSMDocumentDetails |
An object of type |
Value¶
A list with the following syntax:
list(
ConformancePackArn = "string"
)
Request syntax¶
svc$put_conformance_pack(
ConformancePackName = "string",
TemplateS3Uri = "string",
TemplateBody = "string",
DeliveryS3Bucket = "string",
DeliveryS3KeyPrefix = "string",
ConformancePackInputParameters = list(
list(
ParameterName = "string",
ParameterValue = "string"
)
),
TemplateSSMDocumentDetails = list(
DocumentName = "string",
DocumentVersion = "string"
)
)