aws-cdk-lib.aws_lambda_event_sources.SnsDlq

class SnsDlq

LanguageType name
.NETAmazon.CDK.AWS.Lambda.EventSources.SnsDlq
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambdaeventsources#SnsDlq
Javasoftware.amazon.awscdk.services.lambda.eventsources.SnsDlq
Pythonaws_cdk.aws_lambda_event_sources.SnsDlq
TypeScript (source)aws-cdk-lib » aws_lambda_event_sources » SnsDlq

Implements IEventSourceDlq

An SNS dead letter queue destination configuration for a Lambda event source.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda_event_sources as lambda_event_sources } from 'aws-cdk-lib';
import { aws_sns as sns } from 'aws-cdk-lib';

declare const topic: sns.Topic;
const snsDlq = new lambda_event_sources.SnsDlq(topic);

Initializer

new SnsDlq(topic: ITopic)

Parameters

  • topic ITopic

Methods

NameDescription
bind(_target, targetHandler)Returns a destination configuration for the DLQ.

bind(_target, targetHandler)

public bind(_target: IEventSourceMapping, targetHandler: IFunction): DlqDestinationConfig

Parameters

  • _target IEventSourceMapping
  • targetHandler IFunction

Returns

  • DlqDestinationConfig

Returns a destination configuration for the DLQ.