@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.509Z") @Stability(value=Stable) public interface KafkaEventSourceProps extends software.amazon.jsii.JsiiSerializable, BaseStreamEventSourceProps
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.services.lambda.eventsources.*;
import software.amazon.awscdk.services.secretsmanager.*;
Secret secret;
KafkaEventSourceProps kafkaEventSourceProps = KafkaEventSourceProps.builder()
.startingPosition(StartingPosition.TRIM_HORIZON)
.topic("topic")
// the properties below are optional
.batchSize(123)
.consumerGroupId("consumerGroupId")
.enabled(false)
.maxBatchingWindow(Duration.minutes(30))
.secret(secret)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
KafkaEventSourceProps.Builder
A builder for
KafkaEventSourceProps |
static class |
KafkaEventSourceProps.Jsii$Proxy
An implementation for
KafkaEventSourceProps |
| Modifier and Type | Method and Description |
|---|---|
static KafkaEventSourceProps.Builder |
builder() |
default String |
getConsumerGroupId()
The identifier for the Kafka consumer group to join.
|
default ISecret |
getSecret()
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.
|
String |
getTopic()
The Kafka topic to subscribe to.
|
getBatchSize, getEnabled, getMaxBatchingWindow, getStartingPosition@Stability(value=Stable) @NotNull String getTopic()
@Stability(value=Stable) @Nullable default String getConsumerGroupId()
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-/:_+=.@-]'.
Default: - none
@Stability(value=Stable) @Nullable default ISecret getSecret()
Default: none
@Stability(value=Stable) static KafkaEventSourceProps.Builder builder()
builder in interface BaseStreamEventSourcePropsKafkaEventSourceProps.Builder of KafkaEventSourcePropsCopyright © 2022. All rights reserved.