@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:19.766Z") @Stability(value=Stable) public class DynamoEventSource extends StreamEventSource
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());
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamoEventSource.Builder
A fluent builder for
DynamoEventSource. |
software.amazon.jsii.JsiiObject.InitializationModeIEventSource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
DynamoEventSource(ITable table,
DynamoEventSourceProps props) |
protected |
DynamoEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DynamoEventSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(IFunction target)
Called by `lambda.addEventSource` to allow the event source to bind to this function.
|
String |
getEventSourceMappingId()
The identifier for this EventSourceMapping.
|
enrichMappingOptions, getPropsjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected DynamoEventSource(software.amazon.jsii.JsiiObjectRef objRef)
protected DynamoEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public DynamoEventSource(@NotNull
ITable table,
@NotNull
DynamoEventSourceProps props)
table - This parameter is required.props - This parameter is required.@Stability(value=Stable)
public void bind(@NotNull
IFunction target)
bind in interface IEventSourcebind in class StreamEventSourcetarget - This parameter is required.@Stability(value=Stable) @NotNull public String getEventSourceMappingId()
Copyright © 2022. All rights reserved.