Interface IDynamoEventSourceProps
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda.EventSources
Assembly: Amazon.CDK.AWS.Lambda.EventSources.dll
Syntax (csharp)
public interface IDynamoEventSourceProps : IStreamEventSourceProps, IBaseStreamEventSourceProps
Syntax (vb)
Public Interface IDynamoEventSourceProps
Inherits IStreamEventSourceProps, IBaseStreamEventSourceProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.DynamoDB;
using Amazon.CDK.AWS.Lambda.EventSources;
Table table;
Function fn;
var deadLetterQueue = new Queue(this, "deadLetterQueue");
fn.AddEventSource(new DynamoEventSource(table, new DynamoEventSourceProps {
StartingPosition = StartingPosition.TRIM_HORIZON,
BatchSize = 5,
BisectBatchOnError = true,
OnFailure = new SqsDlq(deadLetterQueue),
RetryAttempts = 10
}));