Class CommonDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.destinations.alpha.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.loggingConfig
(ILoggingConfig loggingConfig) Sets the value ofCommonDestinationProps.getLoggingConfig()
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
-
loggingConfig
@Stability(Experimental) public CommonDestinationProps.Builder loggingConfig(ILoggingConfig 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
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:
build
in interfacesoftware.amazon.jsii.Builder<CommonDestinationProps>
- Returns:
- a new instance of
CommonDestinationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-