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