@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:10.038Z") @Stability(value=Experimental) public interface EventSourceMappingProps extends software.amazon.jsii.JsiiSerializable, EventSourceMappingOptions
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.*;
Duration duration;
IEventSourceDlq eventSourceDlq;
Function function_;
SourceAccessConfigurationType sourceAccessConfigurationType;
EventSourceMappingProps eventSourceMappingProps = EventSourceMappingProps.builder()
.target(function_)
// the properties below are optional
.batchSize(123)
.bisectBatchOnError(false)
.enabled(false)
.eventSourceArn("eventSourceArn")
.kafkaBootstrapServers(List.of("kafkaBootstrapServers"))
.kafkaTopic("kafkaTopic")
.maxBatchingWindow(duration)
.maxRecordAge(duration)
.onFailure(eventSourceDlq)
.parallelizationFactor(123)
.reportBatchItemFailures(false)
.retryAttempts(123)
.sourceAccessConfigurations(List.of(SourceAccessConfiguration.builder()
.type(sourceAccessConfigurationType)
.uri("uri")
.build()))
.startingPosition(StartingPosition.TRIM_HORIZON)
.tumblingWindow(duration)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EventSourceMappingProps.Builder
A builder for
EventSourceMappingProps |
static class |
EventSourceMappingProps.Jsii$Proxy
An implementation for
EventSourceMappingProps |
| Modifier and Type | Method and Description |
|---|---|
static EventSourceMappingProps.Builder |
builder() |
IFunction |
getTarget()
(experimental) The target AWS Lambda function.
|
getBatchSize, getBisectBatchOnError, getEnabled, getEventSourceArn, getKafkaBootstrapServers, getKafkaTopic, getMaxBatchingWindow, getMaxRecordAge, getOnFailure, getParallelizationFactor, getReportBatchItemFailures, getRetryAttempts, getSourceAccessConfigurations, getStartingPosition, getTumblingWindow@Stability(value=Experimental) @NotNull IFunction getTarget()
@Stability(value=Experimental) static EventSourceMappingProps.Builder builder()
builder in interface EventSourceMappingOptionsEventSourceMappingProps.Builder of EventSourceMappingPropsCopyright © 2022. All rights reserved.