Class SqsDlq
An SQS dead letter queue destination configuration for a Lambda event source.
Inheritance
System.Object
SqsDlq
Implements
Namespace: Amazon.CDK.AWS.Lambda.EventSources
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SqsDlq : DeputyBase, IEventSourceDlq
Syntax (vb)
Public Class SqsDlq
Inherits DeputyBase
Implements IEventSourceDlq
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
}));
Synopsis
Constructors
SqsDlq(IQueue) | |
SqsDlq(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SqsDlq(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IEventSourceMapping, IFunction) | Returns a destination configuration for the DLQ. |
Constructors
SqsDlq(IQueue)
SqsDlq(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SqsDlq(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SqsDlq(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SqsDlq(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IEventSourceMapping, IFunction)
Returns a destination configuration for the DLQ.
public virtual IDlqDestinationConfig Bind(IEventSourceMapping target, IFunction targetHandler)
Parameters
- target IEventSourceMapping
- targetHandler IFunction
Returns