Class HttpEndpoint.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.HttpEndpoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpEndpoint>
- Enclosing class:
HttpEndpoint
@Stability(Stable)
public static final class HttpEndpoint.Builder
extends Object
implements software.amazon.jsii.Builder<HttpEndpoint>
A fluent builder for
HttpEndpoint.-
Method Summary
Modifier and TypeMethodDescriptionattributes(List<? extends HttpAttribute> attributes) Describes the metadata sent to the Http endpoint destination.backupMode(HttpBackupMode backupMode) Describes the S3 bucket backup options for the data that Kinesis Data Firehose delivers to the Http endpoint destination.bufferingHints(HttpBufferingHints bufferingHints) The buffering options that can be used before data is delivered to the specified destination.build()static HttpEndpoint.Buildercreate()endpointConfig(HttpEndpointConfig endpointConfig) Describes the configuration of the Http endpoint to which Kinesis Firehose delivers data.loggingConfig(ILoggingConfig loggingConfig) 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) Deprecated.processors(List<? extends IDataProcessor> processors) The data transformation that should be performed on the data before writing to the destination.requestCompression(HttpCompression requestCompression) Compress the body of a request before sending the request to the destination.retryOptions(HttpRetryOptions retryOptions) The total amount of time that Kinesis Data Firehose spends on retries.The IAM role associated with this destination.s3Backup(DestinationS3BackupProps s3Backup) The configuration for backing up source records to S3.
-
Method Details
-
create
- Returns:
- a new instance of
HttpEndpoint.Builder.
-
loggingConfig
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
Deprecated.Useprocessorsinstead.(deprecated) 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
-
processors
@Stability(Stable) public HttpEndpoint.Builder processors(List<? extends IDataProcessor> processors) The data transformation that should be performed on the data before writing to the destination.Default: - no data transformation will occur.
- Parameters:
processors- The data transformation that should be performed on the data before writing to the destination. This parameter is required.- Returns:
this
-
role
The IAM role associated with this destination.Assumed by Amazon 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
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
-
endpointConfig
Describes the configuration of the Http endpoint to which Kinesis Firehose delivers data.- Parameters:
endpointConfig- Describes the configuration of the Http endpoint to which Kinesis Firehose delivers data. This parameter is required.- Returns:
this
-
attributes
Describes the metadata sent to the Http endpoint destination.Default: - None
- Parameters:
attributes- Describes the metadata sent to the Http endpoint destination. This parameter is required.- Returns:
this
-
backupMode
Describes the S3 bucket backup options for the data that Kinesis Data Firehose delivers to the Http endpoint destination.Default: - Failed data only
- Parameters:
backupMode- Describes the S3 bucket backup options for the data that Kinesis Data Firehose delivers to the Http endpoint destination. This parameter is required.- Returns:
this
-
bufferingHints
The buffering options that can be used before data is delivered to the specified destination.Default: - None
- Parameters:
bufferingHints- The buffering options that can be used before data is delivered to the specified destination. This parameter is required.- Returns:
this
-
requestCompression
@Stability(Stable) public HttpEndpoint.Builder requestCompression(HttpCompression requestCompression) Compress the body of a request before sending the request to the destination.Default: - None
- Parameters:
requestCompression- Compress the body of a request before sending the request to the destination. This parameter is required.- Returns:
this
-
retryOptions
The total amount of time that Kinesis Data Firehose spends on retries.Default: - None
- Parameters:
retryOptions- The total amount of time that Kinesis Data Firehose spends on retries. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpEndpoint>- Returns:
- a newly built instance of
HttpEndpoint.
-
processorsinstead.