Class CfnConformancePack.Builder

java.lang.Object
software.amazon.awscdk.services.config.CfnConformancePack.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConformancePack>
Enclosing class:
CfnConformancePack

@Stability(Stable) public static final class CfnConformancePack.Builder extends Object implements software.amazon.jsii.Builder<CfnConformancePack>
A fluent builder for CfnConformancePack.
  • Method Details

    • create

      @Stability(Stable) public static CfnConformancePack.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnConformancePack.Builder.
    • conformancePackName

      @Stability(Stable) public CfnConformancePack.Builder conformancePackName(String conformancePackName)
      Name of the conformance pack you want to create.

      Parameters:
      conformancePackName - Name of the conformance pack you want to create. This parameter is required.
      Returns:
      this
    • conformancePackInputParameters

      @Stability(Stable) public CfnConformancePack.Builder conformancePackInputParameters(IResolvable conformancePackInputParameters)
      A list of ConformancePackInputParameter objects.

      Parameters:
      conformancePackInputParameters - A list of ConformancePackInputParameter objects. This parameter is required.
      Returns:
      this
    • conformancePackInputParameters

      @Stability(Stable) public CfnConformancePack.Builder conformancePackInputParameters(List<? extends Object> conformancePackInputParameters)
      A list of ConformancePackInputParameter objects.

      Parameters:
      conformancePackInputParameters - A list of ConformancePackInputParameter objects. This parameter is required.
      Returns:
      this
    • deliveryS3Bucket

      @Stability(Stable) public CfnConformancePack.Builder deliveryS3Bucket(String deliveryS3Bucket)
      The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.

      Parameters:
      deliveryS3Bucket - The name of the Amazon S3 bucket where AWS Config stores conformance pack templates. This parameter is required.
      Returns:
      this
    • deliveryS3KeyPrefix

      @Stability(Stable) public CfnConformancePack.Builder deliveryS3KeyPrefix(String deliveryS3KeyPrefix)
      The prefix for the Amazon S3 bucket.

      Parameters:
      deliveryS3KeyPrefix - The prefix for the Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • templateBody

      @Stability(Stable) public CfnConformancePack.Builder templateBody(String 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 ).

      Parameters:
      templateBody - A string containing full conformance pack template body. This parameter is required.
      Returns:
      this
    • templateS3Uri

      @Stability(Stable) public CfnConformancePack.Builder templateS3Uri(String 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.

      Parameters:
      templateS3Uri - Location of file containing the template body (s3://bucketname/prefix). This parameter is required.
      Returns:
      this
    • templateSsmDocumentDetails

      @Stability(Stable) public CfnConformancePack.Builder templateSsmDocumentDetails(Object templateSsmDocumentDetails)
      AWS::Config::ConformancePack.TemplateSSMDocumentDetails.

      Parameters:
      templateSsmDocumentDetails - AWS::Config::ConformancePack.TemplateSSMDocumentDetails. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnConformancePack build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnConformancePack>
      Returns:
      a newly built instance of CfnConformancePack.