Class S3BucketProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.S3BucketProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3BucketProps>
- Enclosing interface:
S3BucketProps
@Stability(Stable)
public static final class S3BucketProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3BucketProps>
A builder for
S3BucketProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbufferingInterval(Duration bufferingInterval) Sets the value ofCommonDestinationS3Props.getBufferingInterval()bufferingSize(Size bufferingSize) Sets the value ofCommonDestinationS3Props.getBufferingSize()build()Builds the configured instance.compression(Compression compression) Sets the value ofCommonDestinationS3Props.getCompression()dataFormatConversion(DataFormatConversionProps dataFormatConversion) Sets the value ofS3BucketProps.getDataFormatConversion()dataOutputPrefix(String dataOutputPrefix) Sets the value ofCommonDestinationS3Props.getDataOutputPrefix()encryptionKey(IKey encryptionKey) Sets the value ofCommonDestinationS3Props.getEncryptionKey()errorOutputPrefix(String errorOutputPrefix) Sets the value ofCommonDestinationS3Props.getErrorOutputPrefix()fileExtension(String fileExtension) Sets the value ofS3BucketProps.getFileExtension()loggingConfig(ILoggingConfig loggingConfig) Sets the value ofCommonDestinationProps.getLoggingConfig()processor(IDataProcessor processor) Deprecated.Use `processors` instead.processors(List<? extends IDataProcessor> processors) Sets the value ofCommonDestinationProps.getProcessors()Sets the value ofCommonDestinationProps.getRole()s3Backup(DestinationS3BackupProps s3Backup) Sets the value ofCommonDestinationProps.getS3Backup()Sets the value ofS3BucketProps.getTimeZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataFormatConversion
@Stability(Stable) public S3BucketProps.Builder dataFormatConversion(DataFormatConversionProps dataFormatConversion) Sets the value ofS3BucketProps.getDataFormatConversion()- Parameters:
dataFormatConversion- The input format, output format, and schema config for converting data from the JSON format to the Parquet or ORC format before writing to Amazon S3.- Returns:
this
-
fileExtension
Sets the value ofS3BucketProps.getFileExtension()- Parameters:
fileExtension- Specify a file extension. It will override the default file extension appended by Data Format Conversion or S3 compression features such as.parquetor.gz.File extension must start with a period (
.) and can contain allowed characters:0-9a-z!-_.*'().- Returns:
this
-
timeZone
Sets the value ofS3BucketProps.getTimeZone()- Parameters:
timeZone- The time zone you prefer.- Returns:
this
-
bufferingInterval
Sets the value ofCommonDestinationS3Props.getBufferingInterval()- Parameters:
bufferingInterval- The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900)- Returns:
this
-
bufferingSize
Sets the value ofCommonDestinationS3Props.getBufferingSize()- Parameters:
bufferingSize- The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) when record data format conversion is disabled, Size.mebibytes(64) when it is enabled Maximum: Size.mebibytes(128)- Returns:
this
-
compression
Sets the value ofCommonDestinationS3Props.getCompression()- Parameters:
compression- The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.- Returns:
this
-
dataOutputPrefix
Sets the value ofCommonDestinationS3Props.getDataOutputPrefix()- Parameters:
dataOutputPrefix- A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3. This prefix appears immediately following the bucket name.- Returns:
this
-
encryptionKey
Sets the value ofCommonDestinationS3Props.getEncryptionKey()- Parameters:
encryptionKey- The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket.- Returns:
this
-
errorOutputPrefix
Sets the value ofCommonDestinationS3Props.getErrorOutputPrefix()- Parameters:
errorOutputPrefix- A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name.- Returns:
this
-
loggingConfig
Sets the value ofCommonDestinationProps.getLoggingConfig()- Parameters:
loggingConfig- Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs.- Returns:
this
-
processor
Deprecated.Use `processors` instead.Sets the value ofCommonDestinationProps.getProcessor()- Parameters:
processor- The data transformation that should be performed on the data before writing to the destination.- Returns:
this
-
processors
@Stability(Stable) public S3BucketProps.Builder processors(List<? extends IDataProcessor> processors) Sets the value ofCommonDestinationProps.getProcessors()- Parameters:
processors- The data transformation that should be performed on the data before writing to the destination.- Returns:
this
-
role
Sets the value ofCommonDestinationProps.getRole()- Parameters:
role- The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations- Returns:
this
-
s3Backup
Sets the value ofCommonDestinationProps.getS3Backup()- Parameters:
s3Backup- The configuration for backing up source records to S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3BucketProps>- Returns:
- a new instance of
S3BucketProps - Throws:
NullPointerException- if any required attribute was not provided
-