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.96.0 (build 921e240)", date="2024-04-10T22:22:30.114Z") @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

    Constructors
    Modifier
    Constructor
    Description
     
    SqsDlq(IQueue queue)
     
    protected
    SqsDlq(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    SqsDlq(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(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

      @Stability(Stable) public SqsDlq(@NotNull IQueue queue)
      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 interface IEventSourceDlq
      Parameters:
      _target - This parameter is required.
      targetHandler - This parameter is required.