Class SqsDlq
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.eventsources.SqsDlq
- All Implemented Interfaces:
IEventSourceDlq
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.845Z")
@Stability(Stable)
public class SqsDlq
extends software.amazon.jsii.JsiiObject
implements IEventSourceDlq
An SQS dead letter queue destination configuration for a Lambda event source.
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IEventSourceDlq
IEventSourceDlq.Jsii$Default, IEventSourceDlq.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(IEventSourceMapping _target, IFunction targetHandler) Returns a destination configuration for the DLQ.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
SqsDlq
protected SqsDlq(software.amazon.jsii.JsiiObjectRef objRef) -
SqsDlq
protected SqsDlq(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SqsDlq
- Parameters:
queue
- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public DlqDestinationConfig bind(@NotNull IEventSourceMapping _target, @NotNull IFunction targetHandler) Returns a destination configuration for the DLQ.- Specified by:
bind
in interfaceIEventSourceDlq
- Parameters:
_target
- This parameter is required.targetHandler
- This parameter is required.
-