Class CfnConformancePack
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Config::ConformancePack.
A conformance pack is a collection of AWS Config rules and remediation actions that can be easily deployed in an account and a region. ConformancePack creates a service linked role in your account. The service linked role is created only when the role does not exist in your account.
Example:
// 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;
CfnConformancePack cfnConformancePack = CfnConformancePack.Builder.create(this, "MyCfnConformancePack")
.conformancePackName("conformancePackName")
// the properties below are optional
.conformancePackInputParameters(List.of(ConformancePackInputParameterProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.deliveryS3Bucket("deliveryS3Bucket")
.deliveryS3KeyPrefix("deliveryS3KeyPrefix")
.templateBody("templateBody")
.templateS3Uri("templateS3Uri")
.templateSsmDocumentDetails(templateSsmDocumentDetails)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConformancePack.static interfaceInput parameters in the form of key-value pairs for the conformance pack, both of which you define.static interfaceThis API allows you to create a conformance pack template with an AWS Systems Manager document (SSM document).Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnConformancePack(Construct scope, String id, CfnConformancePackProps props) Create a newAWS::Config::ConformancePack.protectedCfnConformancePack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConformancePack(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA list of ConformancePackInputParameter objects.Name of the conformance pack you want to create.The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.The prefix for the Amazon S3 bucket.A string containing full conformance pack template body.Location of file containing the template body (s3://bucketname/prefix).AWS::Config::ConformancePack.TemplateSSMDocumentDetails.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidA list of ConformancePackInputParameter objects.voidA list of ConformancePackInputParameter objects.voidsetConformancePackName(String value) Name of the conformance pack you want to create.voidsetDeliveryS3Bucket(String value) The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.voidsetDeliveryS3KeyPrefix(String value) The prefix for the Amazon S3 bucket.voidsetTemplateBody(String value) A string containing full conformance pack template body.voidsetTemplateS3Uri(String value) Location of file containing the template body (s3://bucketname/prefix).voidAWS::Config::ConformancePack.TemplateSSMDocumentDetails.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnConformancePack
protected CfnConformancePack(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConformancePack
protected CfnConformancePack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConformancePack
@Stability(Stable) public CfnConformancePack(@NotNull Construct scope, @NotNull String id, @NotNull CfnConformancePackProps props) Create a newAWS::Config::ConformancePack.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConformancePackName
Name of the conformance pack you want to create. -
setConformancePackName
Name of the conformance pack you want to create. -
getTemplateSsmDocumentDetails
AWS::Config::ConformancePack.TemplateSSMDocumentDetails. -
setTemplateSsmDocumentDetails
AWS::Config::ConformancePack.TemplateSSMDocumentDetails. -
getConformancePackInputParameters
A list of ConformancePackInputParameter objects. -
setConformancePackInputParameters
A list of ConformancePackInputParameter objects. -
setConformancePackInputParameters
A list of ConformancePackInputParameter objects. -
getDeliveryS3Bucket
The name of the Amazon S3 bucket where AWS Config stores conformance pack templates. -
setDeliveryS3Bucket
The name of the Amazon S3 bucket where AWS Config stores conformance pack templates. -
getDeliveryS3KeyPrefix
The prefix for the Amazon S3 bucket. -
setDeliveryS3KeyPrefix
The prefix for the Amazon S3 bucket. -
getTemplateBody
A string containing full conformance pack template body.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). -
setTemplateBody
A string containing full conformance pack template body.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). -
getTemplateS3Uri
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.
-
setTemplateS3Uri
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.
-