@Stability(value=Stable) public static final class KafkaEventSourceProps.Builder extends Object implements software.amazon.jsii.Builder<KafkaEventSourceProps>
KafkaEventSourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public KafkaEventSourceProps.Builder topic(String topic)
KafkaEventSourceProps.getTopic()topic - The Kafka topic to subscribe to. This parameter is required.this@Stability(value=Stable) public KafkaEventSourceProps.Builder consumerGroupId(String consumerGroupId)
KafkaEventSourceProps.getConsumerGroupId()consumerGroupId - The identifier for the Kafka consumer group to join.
The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. The value must have a lenght between 1 and 200 and full the pattern '[a-zA-Z0-9-/:_+=.@-]'.this@Stability(value=Stable) public KafkaEventSourceProps.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 field is required if your Kafka brokers are accessed over the Internet.this@Stability(value=Stable) public KafkaEventSourceProps.Builder startingPosition(StartingPosition startingPosition)
BaseStreamEventSourceProps.getStartingPosition()startingPosition - Where to begin consuming the stream. This parameter is required.this@Stability(value=Stable) public KafkaEventSourceProps.Builder batchSize(Number batchSize)
BaseStreamEventSourceProps.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=Stable) public KafkaEventSourceProps.Builder enabled(Boolean enabled)
BaseStreamEventSourceProps.getEnabled()enabled - If the stream event source mapping should be enabled.this@Stability(value=Stable) public KafkaEventSourceProps.Builder maxBatchingWindow(Duration maxBatchingWindow)
BaseStreamEventSourceProps.getMaxBatchingWindow()maxBatchingWindow - The maximum amount of time to gather records before invoking the function.
Maximum of Duration.minutes(5).this@Stability(value=Stable) public KafkaEventSourceProps build()
build in interface software.amazon.jsii.Builder<KafkaEventSourceProps>KafkaEventSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.