Interface EventSourceMappingProps
- All Superinterfaces:
EventSourceMappingOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EventSourceMappingProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.734Z")
@Stability(Stable)
public interface EventSourceMappingProps
extends software.amazon.jsii.JsiiSerializable, EventSourceMappingOptions
Properties for declaring a new event source mapping.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.core.*;
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.minutes(30))
.maxRecordAge(Duration.minutes(30))
.onFailure(eventSourceDlq)
.parallelizationFactor(123)
.reportBatchItemFailures(false)
.retryAttempts(123)
.sourceAccessConfigurations(List.of(SourceAccessConfiguration.builder()
.type(sourceAccessConfigurationType)
.uri("uri")
.build()))
.startingPosition(StartingPosition.TRIM_HORIZON)
.tumblingWindow(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEventSourceMappingPropsstatic final classAn implementation forEventSourceMappingProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.lambda.EventSourceMappingOptions
getBatchSize, getBisectBatchOnError, getEnabled, getEventSourceArn, getKafkaBootstrapServers, getKafkaTopic, getMaxBatchingWindow, getMaxRecordAge, getOnFailure, getParallelizationFactor, getReportBatchItemFailures, getRetryAttempts, getSourceAccessConfigurations, getStartingPosition, getTumblingWindowMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTarget
The target AWS Lambda function. -
builder
- Returns:
- a
EventSourceMappingProps.BuilderofEventSourceMappingProps
-