Class CfnDeliveryChannel.Builder

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

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

    • create

      @Stability(Stable) public static CfnDeliveryChannel.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 CfnDeliveryChannel.Builder.
    • s3BucketName

      @Stability(Stable) public CfnDeliveryChannel.Builder s3BucketName(String s3BucketName)
      The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files.

      If you specify a bucket that belongs to another AWS account , that bucket must have policies that grant access permissions to AWS Config . For more information, see Permissions for the Amazon S3 Bucket in the AWS Config Developer Guide .

      Parameters:
      s3BucketName - The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files. This parameter is required.
      Returns:
      this
    • configSnapshotDeliveryProperties

      @Stability(Stable) public CfnDeliveryChannel.Builder configSnapshotDeliveryProperties(IResolvable configSnapshotDeliveryProperties)
      The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.

      Parameters:
      configSnapshotDeliveryProperties - The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • configSnapshotDeliveryProperties

      @Stability(Stable) public CfnDeliveryChannel.Builder configSnapshotDeliveryProperties(CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty configSnapshotDeliveryProperties)
      The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.

      Parameters:
      configSnapshotDeliveryProperties - The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnDeliveryChannel.Builder name(String name)
      A name for the delivery channel.

      If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the delivery channel name. For more information, see Name Type .

      Updates are not supported. To change the name, you must run two separate updates. In the first update, delete this resource, and then recreate it with a new name in the second update.

      Parameters:
      name - A name for the delivery channel. This parameter is required.
      Returns:
      this
    • s3KeyPrefix

      @Stability(Stable) public CfnDeliveryChannel.Builder s3KeyPrefix(String s3KeyPrefix)
      The prefix for the specified Amazon S3 bucket.

      Parameters:
      s3KeyPrefix - The prefix for the specified Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • s3KmsKeyArn

      @Stability(Stable) public CfnDeliveryChannel.Builder s3KmsKeyArn(String s3KmsKeyArn)
      The Amazon Resource Name (ARN) of the AWS Key Management Service ( AWS KMS ) AWS KMS key (KMS key) used to encrypt objects delivered by AWS Config .

      Must belong to the same Region as the destination S3 bucket.

      Parameters:
      s3KmsKeyArn - The Amazon Resource Name (ARN) of the AWS Key Management Service ( AWS KMS ) AWS KMS key (KMS key) used to encrypt objects delivered by AWS Config . This parameter is required.
      Returns:
      this
    • snsTopicArn

      @Stability(Stable) public CfnDeliveryChannel.Builder snsTopicArn(String snsTopicArn)
      The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.

      If you choose a topic from another account, the topic must have policies that grant access permissions to AWS Config . For more information, see Permissions for the Amazon SNS Topic in the AWS Config Developer Guide .

      Parameters:
      snsTopicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes. This parameter is required.
      Returns:
      this
    • build

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