Class S3Bucket.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3Bucket>
- Enclosing class:
S3Bucket
S3Bucket
.-
Method Summary
Modifier and TypeMethodDescriptionbufferingInterval
(Duration bufferingInterval) (experimental) The length of time that Firehose buffers incoming data before delivering it to the S3 bucket.bufferingSize
(Size bufferingSize) (experimental) The size of the buffer that Kinesis Data Firehose uses for incoming data before delivering it to the S3 bucket.build()
compression
(Compression compression) (experimental) The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket.static S3Bucket.Builder
dataOutputPrefix
(String dataOutputPrefix) (experimental) A prefix that Kinesis Data Firehose evaluates and adds to records before writing them to S3.encryptionKey
(IKey encryptionKey) (experimental) The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket.errorOutputPrefix
(String errorOutputPrefix) (experimental) A prefix that Kinesis Data Firehose evaluates and adds to failed records before writing them to S3.loggingConfig
(ILoggingConfig loggingConfig) (experimental) Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs.processor
(IDataProcessor processor) (experimental) The data transformation that should be performed on the data before writing to the destination.(experimental) The IAM role associated with this destination.s3Backup
(DestinationS3BackupProps s3Backup) (experimental) The configuration for backing up source records to S3.
-
Method Details
-
create
- Parameters:
bucket
- This parameter is required.- Returns:
- a new instance of
S3Bucket.Builder
.
-
bufferingInterval
(experimental) The length of time that Firehose buffers incoming data before delivering it to the S3 bucket.Minimum: Duration.seconds(0) Maximum: Duration.seconds(900)
Default: Duration.seconds(300)
- Parameters:
bufferingInterval
- The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. This parameter is required.- Returns:
this
-
bufferingSize
(experimental) The size of the buffer that Kinesis Data Firehose uses for incoming data before delivering it to the S3 bucket.Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128)
Default: Size.mebibytes(5)
- Parameters:
bufferingSize
- The size of the buffer that Kinesis Data Firehose uses for incoming data before delivering it to the S3 bucket. This parameter is required.- Returns:
this
-
compression
(experimental) The type of compression that Kinesis 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.
Default: - UNCOMPRESSED
- Parameters:
compression
- The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. This parameter is required.- Returns:
this
-
dataOutputPrefix
(experimental) A prefix that Kinesis Data Firehose evaluates and adds to records before writing them to S3.This prefix appears immediately following the bucket name.
Default: "YYYY/MM/DD/HH"
- Parameters:
dataOutputPrefix
- A prefix that Kinesis Data Firehose evaluates and adds to records before writing them to S3. This parameter is required.- Returns:
this
- See Also:
-
encryptionKey
(experimental) The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket.Default: - Data is not encrypted.
- Parameters:
encryptionKey
- The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket. This parameter is required.- Returns:
this
-
errorOutputPrefix
(experimental) A prefix that Kinesis Data Firehose evaluates and adds to failed records before writing them to S3.This prefix appears immediately following the bucket name.
Default: "YYYY/MM/DD/HH"
- Parameters:
errorOutputPrefix
- A prefix that Kinesis Data Firehose evaluates and adds to failed records before writing them to S3. This parameter is required.- Returns:
this
- See Also:
-
loggingConfig
(experimental) Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs.Default: - errors will be logged and a log group will be created for you.
- 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. This parameter is required.- Returns:
this
-
processor
(experimental) The data transformation that should be performed on the data before writing to the destination.Default: - no data transformation will occur.
- Parameters:
processor
- The data transformation that should be performed on the data before writing to the destination. This parameter is required.- Returns:
this
-
role
(experimental) The IAM role associated with this destination.Assumed by Kinesis Data Firehose to invoke processors and write to destinations
Default: - a role will be created with default permissions.
- Parameters:
role
- The IAM role associated with this destination. This parameter is required.- Returns:
this
-
s3Backup
(experimental) The configuration for backing up source records to S3.Default: - source records will not be backed up to S3.
- Parameters:
s3Backup
- The configuration for backing up source records to S3. This parameter is required.- Returns:
this
-
build
-