Class CfnDeliveryChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnDeliveryChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryChannelProps>
- Enclosing interface:
CfnDeliveryChannelProps
@Stability(Stable)
public static final class CfnDeliveryChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryChannelProps>
A builder for
CfnDeliveryChannelProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configSnapshotDeliveryProperties
(IResolvable configSnapshotDeliveryProperties) Sets the value ofCfnDeliveryChannelProps.getConfigSnapshotDeliveryProperties()
configSnapshotDeliveryProperties
(CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty configSnapshotDeliveryProperties) Sets the value ofCfnDeliveryChannelProps.getConfigSnapshotDeliveryProperties()
Sets the value ofCfnDeliveryChannelProps.getName()
s3BucketName
(String s3BucketName) Sets the value ofCfnDeliveryChannelProps.getS3BucketName()
s3KeyPrefix
(String s3KeyPrefix) Sets the value ofCfnDeliveryChannelProps.getS3KeyPrefix()
s3KmsKeyArn
(String s3KmsKeyArn) Sets the value ofCfnDeliveryChannelProps.getS3KmsKeyArn()
snsTopicArn
(String snsTopicArn) Sets the value ofCfnDeliveryChannelProps.getSnsTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3BucketName
Sets the value ofCfnDeliveryChannelProps.getS3BucketName()
- Parameters:
s3BucketName
- The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files. This parameter is required. 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 .- Returns:
this
-
configSnapshotDeliveryProperties
@Stability(Stable) public CfnDeliveryChannelProps.Builder configSnapshotDeliveryProperties(IResolvable configSnapshotDeliveryProperties) Sets the value ofCfnDeliveryChannelProps.getConfigSnapshotDeliveryProperties()
- Parameters:
configSnapshotDeliveryProperties
- The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.- Returns:
this
-
configSnapshotDeliveryProperties
@Stability(Stable) public CfnDeliveryChannelProps.Builder configSnapshotDeliveryProperties(CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty configSnapshotDeliveryProperties) Sets the value ofCfnDeliveryChannelProps.getConfigSnapshotDeliveryProperties()
- Parameters:
configSnapshotDeliveryProperties
- The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.- Returns:
this
-
name
Sets the value ofCfnDeliveryChannelProps.getName()
- Parameters:
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.
- Returns:
this
-
s3KeyPrefix
Sets the value ofCfnDeliveryChannelProps.getS3KeyPrefix()
- Parameters:
s3KeyPrefix
- The prefix for the specified Amazon S3 bucket.- Returns:
this
-
s3KmsKeyArn
Sets the value ofCfnDeliveryChannelProps.getS3KmsKeyArn()
- 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 . Must belong to the same Region as the destination S3 bucket.- Returns:
this
-
snsTopicArn
Sets the value ofCfnDeliveryChannelProps.getSnsTopicArn()
- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryChannelProps>
- Returns:
- a new instance of
CfnDeliveryChannelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-