Interface DynamoEventSourceProps
- All Superinterfaces:
BaseStreamEventSourceProps,software.amazon.jsii.JsiiSerializable,StreamEventSourceProps
- All Known Implementing Classes:
DynamoEventSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.826Z")
@Stability(Stable)
public interface DynamoEventSourceProps
extends software.amazon.jsii.JsiiSerializable, StreamEventSourceProps
Example:
import software.amazon.awscdk.services.dynamodb.*;
import software.amazon.awscdk.services.lambda.eventsources.DynamoEventSource;
import software.amazon.awscdk.services.lambda.eventsources.SqsDlq;
Table table;
Function fn;
Queue deadLetterQueue = new Queue(this, "deadLetterQueue");
fn.addEventSource(DynamoEventSource.Builder.create(table)
.startingPosition(StartingPosition.TRIM_HORIZON)
.batchSize(5)
.bisectBatchOnError(true)
.onFailure(new SqsDlq(deadLetterQueue))
.retryAttempts(10)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDynamoEventSourcePropsstatic final classAn implementation forDynamoEventSourceProps -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.lambda.eventsources.BaseStreamEventSourceProps
getBatchSize, getEnabled, getMaxBatchingWindow, getStartingPositionMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.lambda.eventsources.StreamEventSourceProps
getBisectBatchOnError, getMaxRecordAge, getOnFailure, getParallelizationFactor, getReportBatchItemFailures, getRetryAttempts, getTumblingWindow
-
Method Details
-
builder
- Returns:
- a
DynamoEventSourceProps.BuilderofDynamoEventSourceProps
-