Class CfnChannel.S3StorageConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.CfnChannel.S3StorageConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.S3StorageConfigurationProperty>
- Enclosing interface:
CfnChannel.S3StorageConfigurationProperty
@Stability(Stable)
public static final class CfnChannel.S3StorageConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.S3StorageConfigurationProperty>
A builder for
CfnChannel.S3StorageConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.S3StorageConfigurationProperty.getBucketArn()build()Builds the configured instance.compressionType(String compressionType) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getCompressionType()expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getExpectedBucketOwner()outputKeyTemplate(String outputKeyTemplate) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getOutputKeyTemplate()storageClass(String storageClass) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getStorageClass()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketArn
@Stability(Stable) public CfnChannel.S3StorageConfigurationProperty.Builder bucketArn(String bucketArn) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getBucketArn()- Parameters:
bucketArn- The ARN of the S3 bucket for record delivery. This parameter is required. Different channels can deliver to the same bucket. Buckets can be cross-account but must be in the same region as the channel.- Returns:
this
-
compressionType
@Stability(Stable) public CfnChannel.S3StorageConfigurationProperty.Builder compressionType(String compressionType) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getCompressionType()- Parameters:
compressionType- The compression algorithm applied to delivered objects. This parameter is required.- Returns:
this
-
expectedBucketOwner
@Stability(Stable) public CfnChannel.S3StorageConfigurationProperty.Builder expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getExpectedBucketOwner()- Parameters:
expectedBucketOwner- The AWS account ID of the expected owner of the destination S3 bucket. This parameter is required. Used to verify bucket ownership before delivery.- Returns:
this
-
outputKeyTemplate
@Stability(Stable) public CfnChannel.S3StorageConfigurationProperty.Builder outputKeyTemplate(String outputKeyTemplate) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getOutputKeyTemplate()- Parameters:
outputKeyTemplate- Optional template for the S3 object key path. Supports placeholders in the form !{name}: !{channel-name}, !{channel-id}, !{stream-name}, !{yyyy}, !{yy}, !{MM}, !{dd}, !{HH}, !{mm}, and !{extension} (a literal file extension can be supplied as !{extension:.json.gz}). When omitted, the service uses the default 'kinesis-channel/!{channel-name}/!{channel-id}/!{yyyy}/!{MM}/!{dd}/!{HH}/!{channel-name}-!{channel-id}-!{yyyy}-!{MM}-!{dd}-!{HH}-!{mm}!{extension}'.- Returns:
this
-
storageClass
@Stability(Stable) public CfnChannel.S3StorageConfigurationProperty.Builder storageClass(String storageClass) Sets the value ofCfnChannel.S3StorageConfigurationProperty.getStorageClass()- Parameters:
storageClass- The S3 storage class for delivered objects.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.S3StorageConfigurationProperty>- Returns:
- a new instance of
CfnChannel.S3StorageConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-