@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.725Z") @Stability(value=Stable) public class CfnConformancePack extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnConformancePack.Builder
A fluent builder for
CfnConformancePack. |
static interface |
CfnConformancePack.ConformancePackInputParameterProperty
Input parameters in the form of key-value pairs for the conformance pack, both of which you define.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnConformancePack(software.constructs.Construct scope,
String id,
CfnConformancePackProps props)
Create a new `AWS::Config::ConformancePack`.
|
protected |
CfnConformancePack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConformancePack(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConformancePackInputParameters()
A list of ConformancePackInputParameter objects.
|
String |
getConformancePackName()
Name of the conformance pack you want to create.
|
String |
getDeliveryS3Bucket()
The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.
|
String |
getDeliveryS3KeyPrefix()
The prefix for the Amazon S3 bucket.
|
String |
getTemplateBody()
A string containing full conformance pack template body.
|
String |
getTemplateS3Uri()
Location of file containing the template body (s3://bucketname/prefix).
|
Object |
getTemplateSsmDocumentDetails()
`AWS::Config::ConformancePack.TemplateSSMDocumentDetails`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setConformancePackInputParameters(IResolvable value)
A list of ConformancePackInputParameter objects.
|
void |
setConformancePackInputParameters(List<Object> value)
A list of ConformancePackInputParameter objects.
|
void |
setConformancePackName(String value)
Name of the conformance pack you want to create.
|
void |
setDeliveryS3Bucket(String value)
The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.
|
void |
setDeliveryS3KeyPrefix(String value)
The prefix for the Amazon S3 bucket.
|
void |
setTemplateBody(String value)
A string containing full conformance pack template body.
|
void |
setTemplateS3Uri(String value)
Location of file containing the template body (s3://bucketname/prefix).
|
void |
setTemplateSsmDocumentDetails(Object value)
`AWS::Config::ConformancePack.TemplateSSMDocumentDetails`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnConformancePack(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConformancePack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConformancePack(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnConformancePackProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getConformancePackName()
@Stability(value=Stable)
public void setConformancePackName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getTemplateSsmDocumentDetails()
@Stability(value=Stable)
public void setTemplateSsmDocumentDetails(@NotNull
Object value)
@Stability(value=Stable) @Nullable public Object getConformancePackInputParameters()
@Stability(value=Stable)
public void setConformancePackInputParameters(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setConformancePackInputParameters(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getDeliveryS3Bucket()
@Stability(value=Stable)
public void setDeliveryS3Bucket(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDeliveryS3KeyPrefix()
@Stability(value=Stable)
public void setDeliveryS3KeyPrefix(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getTemplateBody()
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).
@Stability(value=Stable)
public void setTemplateBody(@Nullable
String value)
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).
@Stability(value=Stable) @Nullable public String getTemplateS3Uri()
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.
@Stability(value=Stable)
public void setTemplateS3Uri(@Nullable
String value)
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.
Copyright © 2022. All rights reserved.