CfnConformancePackProps Struct
Properties for defining a CfnConformancePack.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
declare const templateSsmDocumentDetails: any;
const cfnConformancePackProps: config.CfnConformancePackProps = {
conformancePackName: 'conformancePackName',
// the properties below are optional
conformancePackInputParameters: [{
parameterName: 'parameterName',
parameterValue: 'parameterValue',
}],
deliveryS3Bucket: 'deliveryS3Bucket',
deliveryS3KeyPrefix: 'deliveryS3KeyPrefix',
scope: {
tagKey: 'tagKey',
// the properties below are optional
tagValue: 'tagValue',
},
source: {
sourceIdentifier: 'sourceIdentifier',
},
tags: [{
key: 'key',
value: 'value',
}],
templateBody: 'templateBody',
templateS3Uri: 'templateS3Uri',
templateSsmDocumentDetails: templateSsmDocumentDetails,
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config
# template_ssm_document_details: Any
cfn_conformance_pack_props = config.CfnConformancePackProps(
conformance_pack_name="conformancePackName",
# the properties below are optional
conformance_pack_input_parameters=[config.CfnConformancePack.ConformancePackInputParameterProperty(
parameter_name="parameterName",
parameter_value="parameterValue"
)],
delivery_s3_bucket="deliveryS3Bucket",
delivery_s3_key_prefix="deliveryS3KeyPrefix",
scope=config.CfnConformancePack.ScopeProperty(
tag_key="tagKey",
# the properties below are optional
tag_value="tagValue"
),
source=config.CfnConformancePack.SourceProperty(
source_identifier="sourceIdentifier"
),
tags=[CfnTag(
key="key",
value="value"
)],
template_body="templateBody",
template_s3_uri="templateS3Uri",
template_ssm_document_details=template_ssm_document_details
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;
Object templateSsmDocumentDetails;
CfnConformancePackProps cfnConformancePackProps = CfnConformancePackProps.builder()
.conformancePackName("conformancePackName")
// the properties below are optional
.conformancePackInputParameters(List.of(ConformancePackInputParameterProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.deliveryS3Bucket("deliveryS3Bucket")
.deliveryS3KeyPrefix("deliveryS3KeyPrefix")
.scope(ScopeProperty.builder()
.tagKey("tagKey")
// the properties below are optional
.tagValue("tagValue")
.build())
.source(SourceProperty.builder()
.sourceIdentifier("sourceIdentifier")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.templateBody("templateBody")
.templateS3Uri("templateS3Uri")
.templateSsmDocumentDetails(templateSsmDocumentDetails)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;
var templateSsmDocumentDetails;
var cfnConformancePackProps = new CfnConformancePackProps {
ConformancePackName = "conformancePackName",
// the properties below are optional
ConformancePackInputParameters = new [] { new ConformancePackInputParameterProperty {
ParameterName = "parameterName",
ParameterValue = "parameterValue"
} },
DeliveryS3Bucket = "deliveryS3Bucket",
DeliveryS3KeyPrefix = "deliveryS3KeyPrefix",
Scope = new ScopeProperty {
TagKey = "tagKey",
// the properties below are optional
TagValue = "tagValue"
},
Source = new SourceProperty {
SourceIdentifier = "sourceIdentifier"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TemplateBody = "templateBody",
TemplateS3Uri = "templateS3Uri",
TemplateSsmDocumentDetails = templateSsmDocumentDetails
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var templateSsmDocumentDetails interface{}
cfnConformancePackProps := &CfnConformancePackProps{
ConformancePackName: jsii.String("conformancePackName"),
// the properties below are optional
ConformancePackInputParameters: []interface{}{
&ConformancePackInputParameterProperty{
ParameterName: jsii.String("parameterName"),
ParameterValue: jsii.String("parameterValue"),
},
},
DeliveryS3Bucket: jsii.String("deliveryS3Bucket"),
DeliveryS3KeyPrefix: jsii.String("deliveryS3KeyPrefix"),
Scope: &ScopeProperty{
TagKey: jsii.String("tagKey"),
// the properties below are optional
TagValue: jsii.String("tagValue"),
},
Source: &SourceProperty{
SourceIdentifier: jsii.String("sourceIdentifier"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
TemplateBody: jsii.String("templateBody"),
TemplateS3Uri: jsii.String("templateS3Uri"),
TemplateSsmDocumentDetails: templateSsmDocumentDetails,
}
Properties
conformancePackInputParametersoptionalIResolvable | IResolvable | CfnConformancePack.conformance_pack_input_parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConformancePackInputParameterProperty]]]conformancePackInputParametersoptionalIResolvableConformancePackInputParametersoptionalIResolvableConformancePackInputParametersoptionalinterface{} #A list of ConformancePackInputParameter objects.
conformancePackNamestringconformance_pack_namestrconformancePackNameStringConformancePackNamestringConformancePackName*string required #Name of the conformance pack you want to create.
deliveryS3Bucketoptionalstring | IBucketRefdelivery_s3_bucketoptionaltyping.Union[str, IBucketRef]deliveryS3BucketoptionalStringDeliveryS3BucketoptionalstringDeliveryS3Bucketoptionalinterface{} #The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.
deliveryS3KeyPrefixoptionalstringdelivery_s3_key_prefixoptionalstrdeliveryS3KeyPrefixoptionalStringDeliveryS3KeyPrefixoptionalstringDeliveryS3KeyPrefixoptional*string #The prefix for the Amazon S3 bucket.
scopeoptionalIResolvable | CfnConformancePack.ScopePropertyscopeoptionaltyping.Union[IResolvable, ScopeProperty]scopeoptionalIResolvableScopeoptionalIResolvableScopeoptionalinterface{} #The global tag scope of the managed conformance pack.
If specified, only resources with this tag key and value pair are in scope of the conformance pack.
sourceoptionalIResolvable | CfnConformancePack.sourceoptionaltyping.Union[IResolvable, SourceProperty]sourceoptionalIResolvableSourceoptionalIResolvableSourceoptionalinterface{} #The source of a managed conformance pack.
Specifying Source creates a managed conformance pack, whose Config rules are managed by AWS. You can only specify one of Source or the template body or template S3Uri fields.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags for the conformance pack.
templateBodyoptionalstringtemplate_bodyoptionalstrtemplateBodyoptionalStringTemplateBodyoptionalstringTemplateBodyoptional*string #A string containing full conformance pack template body.
notes
Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
You can only use a YAML template with two resource types: config rule (
AWS::Config::ConfigRule) and a remediation action (AWS::Config::RemediationConfiguration).
templateS3Urioptionalstringtemplate_s3_urioptionalstrtemplateS3UrioptionalStringTemplateS3UrioptionalstringTemplateS3Urioptional*string #Location of file containing the template body (s3://bucketname/prefix).
The uri must point to the conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket.
You must have access to read Amazon S3 bucket.
templateSsmDocumentDetailsoptionalanytemplate_ssm_document_detailsoptionalAnytemplateSsmDocumentDetailsoptionalObjectTemplateSsmDocumentDetailsoptionalobjectTemplateSsmDocumentDetailsoptionalinterface{} #An object that contains the name or Amazon Resource Name (ARN) of the AWS Systems Manager document (SSM document) and the version of the SSM document that is used to create a conformance pack.