Class CfnConformancePack
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.config.CfnConformancePack
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:28.633Z")
@Stability(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();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnConformancePack
.static interface
Input parameters in the form of key-value pairs for the conformance pack, both of which you define.static interface
This 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnConformancePack
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnConformancePack
(software.amazon.jsii.JsiiObjectRef objRef) CfnConformancePack
(software.constructs.Construct scope, String id, CfnConformancePackProps props) -
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).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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
A list of ConformancePackInputParameter objects.void
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
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.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnConformancePackProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getConformancePackName
Name of the conformance pack you want to create. -
setConformancePackName
Name of the conformance pack you want to create. -
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. -
setTemplateBody
A string containing full conformance pack template body. -
getTemplateS3Uri
Location of file containing the template body (s3://bucketname/prefix). -
setTemplateS3Uri
Location of file containing the template body (s3://bucketname/prefix). -
getTemplateSsmDocumentDetails
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. -
setTemplateSsmDocumentDetails
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.
-