@Stability(value=Experimental) public static final class ManagedKafkaEventSourceProps.Builder extends Object implements software.amazon.jsii.Builder<ManagedKafkaEventSourceProps>
ManagedKafkaEventSourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder clusterArn(String clusterArn)
ManagedKafkaEventSourceProps.getClusterArn()clusterArn - an MSK cluster construct. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder secret(ISecret secret)
KafkaEventSourceProps.getSecret()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 ManagedKafkaEventSourceProps.Builder topic(String topic)
KafkaEventSourceProps.getTopic()topic - the Kafka topic to subscribe to. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder startingPosition(StartingPosition startingPosition)
StreamEventSourceProps.getStartingPosition()startingPosition - Where to begin consuming the stream. This parameter is required.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder batchSize(Number batchSize)
StreamEventSourceProps.getBatchSize()batchSize - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
Your function receives an
event with all the retrieved records.
Valid Range:
this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder bisectBatchOnError(Boolean bisectBatchOnError)
StreamEventSourceProps.getBisectBatchOnError()bisectBatchOnError - If the function returns an error, split the batch in two and retry.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder enabled(Boolean enabled)
StreamEventSourceProps.getEnabled()enabled - If the stream event source mapping should be enabled.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder maxBatchingWindow(Duration maxBatchingWindow)
StreamEventSourceProps.getMaxBatchingWindow()maxBatchingWindow - The maximum amount of time to gather records before invoking the function.
Maximum of Duration.minutes(5)this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder maxRecordAge(Duration maxRecordAge)
StreamEventSourceProps.getMaxRecordAge()maxRecordAge - The maximum age of a record that Lambda sends to a function for processing.
Valid Range:
this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder onFailure(IEventSourceDlq onFailure)
StreamEventSourceProps.getOnFailure()onFailure - An Amazon SQS queue or Amazon SNS topic destination for discarded records.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder parallelizationFactor(Number parallelizationFactor)
StreamEventSourceProps.getParallelizationFactor()parallelizationFactor - The number of batches to process from each shard concurrently.
Valid Range:
this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder retryAttempts(Number retryAttempts)
StreamEventSourceProps.getRetryAttempts()retryAttempts - Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps.Builder tumblingWindow(Duration tumblingWindow)
StreamEventSourceProps.getTumblingWindow()tumblingWindow - The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes.this@Stability(value=Experimental) public ManagedKafkaEventSourceProps build()
build in interface software.amazon.jsii.Builder<ManagedKafkaEventSourceProps>ManagedKafkaEventSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.