@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.486Z") @Stability(value=Experimental) public interface KafkaEventSourceProps extends software.amazon.jsii.JsiiSerializable, StreamEventSourceProps
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.services.lambda.eventsources.*;
import software.amazon.awscdk.services.secretsmanager.*;
Duration duration;
IEventSourceDlq eventSourceDlq;
Secret secret;
KafkaEventSourceProps kafkaEventSourceProps = KafkaEventSourceProps.builder()
.startingPosition(StartingPosition.TRIM_HORIZON)
.topic("topic")
// the properties below are optional
.batchSize(123)
.bisectBatchOnError(false)
.enabled(false)
.maxBatchingWindow(duration)
.maxRecordAge(duration)
.onFailure(eventSourceDlq)
.parallelizationFactor(123)
.reportBatchItemFailures(false)
.retryAttempts(123)
.secret(secret)
.tumblingWindow(duration)
.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 ISecret |
getSecret()
(experimental) 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()
(experimental) The Kafka topic to subscribe to.
|
getBatchSize, getBisectBatchOnError, getEnabled, getMaxBatchingWindow, getMaxRecordAge, getOnFailure, getParallelizationFactor, getReportBatchItemFailures, getRetryAttempts, getStartingPosition, getTumblingWindow@Stability(value=Experimental) @NotNull String getTopic()
@Stability(value=Experimental) @Nullable default ISecret getSecret()
Default: none
@Stability(value=Experimental) static KafkaEventSourceProps.Builder builder()
builder in interface StreamEventSourcePropsKafkaEventSourceProps.Builder of KafkaEventSourcePropsCopyright © 2022. All rights reserved.