@Stability(value=Experimental) public static final class ManagedKafkaEventSource.Builder extends Object implements software.amazon.jsii.Builder<ManagedKafkaEventSource>
ManagedKafkaEventSource.| Modifier and Type | Method and Description |
|---|---|
ManagedKafkaEventSource.Builder |
batchSize(Number batchSize)
(experimental) The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
ManagedKafkaEventSource.Builder |
bisectBatchOnError(Boolean bisectBatchOnError)
(experimental) If the function returns an error, split the batch in two and retry.
|
ManagedKafkaEventSource |
build() |
ManagedKafkaEventSource.Builder |
clusterArn(String clusterArn)
(experimental) an MSK cluster construct.
|
static ManagedKafkaEventSource.Builder |
create() |
ManagedKafkaEventSource.Builder |
enabled(Boolean enabled)
(experimental) If the stream event source mapping should be enabled.
|
ManagedKafkaEventSource.Builder |
maxBatchingWindow(Duration maxBatchingWindow)
(experimental) The maximum amount of time to gather records before invoking the function.
|
ManagedKafkaEventSource.Builder |
maxRecordAge(Duration maxRecordAge)
(experimental) The maximum age of a record that Lambda sends to a function for processing.
|
ManagedKafkaEventSource.Builder |
onFailure(IEventSourceDlq onFailure)
(experimental) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
ManagedKafkaEventSource.Builder |
parallelizationFactor(Number parallelizationFactor)
(experimental) The number of batches to process from each shard concurrently.
|
ManagedKafkaEventSource.Builder |
retryAttempts(Number retryAttempts)
(experimental) Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.
|
ManagedKafkaEventSource.Builder |
secret(ISecret secret)
(experimental) the secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details.
|
ManagedKafkaEventSource.Builder |
startingPosition(StartingPosition startingPosition)
(experimental) Where to begin consuming the stream.
|
ManagedKafkaEventSource.Builder |
topic(String topic)
(experimental) the Kafka topic to subscribe to.
|
ManagedKafkaEventSource.Builder |
tumblingWindow(Duration tumblingWindow)
(experimental) The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes.
|
@Stability(value=Experimental) public static ManagedKafkaEventSource.Builder create()
ManagedKafkaEventSource.Builder.@Stability(value=Experimental) public ManagedKafkaEventSource.Builder startingPosition(StartingPosition startingPosition)
startingPosition - Where to begin consuming the stream. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder batchSize(Number batchSize)
Your function receives an event with all the retrieved records.
Valid Range:
Default: 100
batchSize - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder bisectBatchOnError(Boolean bisectBatchOnError)
Default: false
bisectBatchOnError - If the function returns an error, split the batch in two and retry. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder enabled(Boolean enabled)
Default: true
enabled - If the stream event source mapping should be enabled. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder maxBatchingWindow(Duration maxBatchingWindow)
Maximum of Duration.minutes(5)
Default: Duration.seconds(0)
maxBatchingWindow - The maximum amount of time to gather records before invoking the function. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder maxRecordAge(Duration maxRecordAge)
Valid Range:
Default: - the retention period configured on the stream
maxRecordAge - The maximum age of a record that Lambda sends to a function for processing. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder onFailure(IEventSourceDlq onFailure)
Default: discarded records are ignored
onFailure - An Amazon SQS queue or Amazon SNS topic destination for discarded records. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder parallelizationFactor(Number parallelizationFactor)
Valid Range:
Default: 1
parallelizationFactor - The number of batches to process from each shard concurrently. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder retryAttempts(Number retryAttempts)
Default: - retry until the record expires
retryAttempts - Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder tumblingWindow(Duration tumblingWindow)
Default: - None
tumblingWindow - The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder secret(ISecret secret)
secret - the secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder topic(String topic)
topic - the Kafka topic to subscribe to. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource.Builder clusterArn(String clusterArn)
clusterArn - an MSK cluster construct. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSource build()
build in interface software.amazon.jsii.Builder<ManagedKafkaEventSource>Copyright © 2021. All rights reserved.