Class CfnConformancePackMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.config.CfnConformancePackMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConformancePackMixinProps>
- Enclosing interface:
CfnConformancePackMixinProps
@Stability(Stable)
public static final class CfnConformancePackMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConformancePackMixinProps>
A builder for
CfnConformancePackMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conformancePackInputParameters(List<? extends Object> conformancePackInputParameters) Sets the value ofCfnConformancePackMixinProps.getConformancePackInputParameters()conformancePackInputParameters(IResolvable conformancePackInputParameters) Sets the value ofCfnConformancePackMixinProps.getConformancePackInputParameters()conformancePackName(String conformancePackName) Sets the value ofCfnConformancePackMixinProps.getConformancePackName()deliveryS3Bucket(String deliveryS3Bucket) Sets the value ofCfnConformancePackMixinProps.getDeliveryS3Bucket()deliveryS3Bucket(IBucketRef deliveryS3Bucket) Sets the value ofCfnConformancePackMixinProps.getDeliveryS3Bucket()deliveryS3KeyPrefix(String deliveryS3KeyPrefix) Sets the value ofCfnConformancePackMixinProps.getDeliveryS3KeyPrefix()templateBody(String templateBody) Sets the value ofCfnConformancePackMixinProps.getTemplateBody()templateS3Uri(String templateS3Uri) Sets the value ofCfnConformancePackMixinProps.getTemplateS3Uri()templateSsmDocumentDetails(Object templateSsmDocumentDetails) Sets the value ofCfnConformancePackMixinProps.getTemplateSsmDocumentDetails()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conformancePackInputParameters
@Stability(Stable) public CfnConformancePackMixinProps.Builder conformancePackInputParameters(IResolvable conformancePackInputParameters) Sets the value ofCfnConformancePackMixinProps.getConformancePackInputParameters()- Parameters:
conformancePackInputParameters- A list of ConformancePackInputParameter objects.- Returns:
this
-
conformancePackInputParameters
@Stability(Stable) public CfnConformancePackMixinProps.Builder conformancePackInputParameters(List<? extends Object> conformancePackInputParameters) Sets the value ofCfnConformancePackMixinProps.getConformancePackInputParameters()- Parameters:
conformancePackInputParameters- A list of ConformancePackInputParameter objects.- Returns:
this
-
conformancePackName
@Stability(Stable) public CfnConformancePackMixinProps.Builder conformancePackName(String conformancePackName) Sets the value ofCfnConformancePackMixinProps.getConformancePackName()- Parameters:
conformancePackName- Name of the conformance pack you want to create.- Returns:
this
-
deliveryS3Bucket
@Stability(Stable) public CfnConformancePackMixinProps.Builder deliveryS3Bucket(String deliveryS3Bucket) Sets the value ofCfnConformancePackMixinProps.getDeliveryS3Bucket()- Parameters:
deliveryS3Bucket- The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.- Returns:
this
-
deliveryS3Bucket
@Stability(Stable) public CfnConformancePackMixinProps.Builder deliveryS3Bucket(IBucketRef deliveryS3Bucket) Sets the value ofCfnConformancePackMixinProps.getDeliveryS3Bucket()- Parameters:
deliveryS3Bucket- The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.- Returns:
this
-
deliveryS3KeyPrefix
@Stability(Stable) public CfnConformancePackMixinProps.Builder deliveryS3KeyPrefix(String deliveryS3KeyPrefix) Sets the value ofCfnConformancePackMixinProps.getDeliveryS3KeyPrefix()- Parameters:
deliveryS3KeyPrefix- The prefix for the Amazon S3 bucket.- Returns:
this
-
templateBody
Sets the value ofCfnConformancePackMixinProps.getTemplateBody()- Parameters:
templateBody- 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).- Returns:
this
-
templateS3Uri
Sets the value ofCfnConformancePackMixinProps.getTemplateS3Uri()- Parameters:
templateS3Uri- 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.
- Returns:
this
-
templateSsmDocumentDetails
@Stability(Stable) public CfnConformancePackMixinProps.Builder templateSsmDocumentDetails(Object templateSsmDocumentDetails) Sets the value ofCfnConformancePackMixinProps.getTemplateSsmDocumentDetails()- Parameters:
templateSsmDocumentDetails- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConformancePackMixinProps>- Returns:
- a new instance of
CfnConformancePackMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-