Class CommonDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.destinations.CommonDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonDestinationProps>
- Enclosing interface:
- CommonDestinationProps
@Stability(Experimental)
public static final class CommonDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CommonDestinationProps>
A builder for
CommonDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCommonDestinationProps.getLogging()Sets the value ofCommonDestinationProps.getLogGroup()processor(IDataProcessor processor) Sets the value ofCommonDestinationProps.getProcessor()Sets the value ofCommonDestinationProps.getRole()s3Backup(DestinationS3BackupProps s3Backup) Sets the value ofCommonDestinationProps.getS3Backup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logging
Sets the value ofCommonDestinationProps.getLogging()- Parameters:
logging- If true, log errors when data transformation or data delivery fails. IflogGroupis provided, this will be implicitly set totrue.- Returns:
this
-
logGroup
Sets the value ofCommonDestinationProps.getLogGroup()- Parameters:
logGroup- The CloudWatch log group where log streams will be created to hold error logs.- Returns:
this
-
processor
Sets the value ofCommonDestinationProps.getProcessor()- Parameters:
processor- 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 Kinesis Data Firehose to invoke processors and write to destinations- Returns:
this
-
s3Backup
@Stability(Experimental) public CommonDestinationProps.Builder s3Backup(DestinationS3BackupProps 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<CommonDestinationProps>- Returns:
- a new instance of
CommonDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-