class SnsDlq
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.EventSources.SnsDlq |
Java | software.amazon.awscdk.services.lambda.eventsources.SnsDlq |
Python | aws_cdk.aws_lambda_event_sources.SnsDlq |
TypeScript (source) | @aws-cdk/aws-lambda-event-sources » SnsDlq |
Implements
IEvent
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 * as lambda_event_sources from '@aws-cdk/aws-lambda-event-sources';
import * as sns from '@aws-cdk/aws-sns';
declare const topic: sns.Topic;
const snsDlq = new lambda_event_sources.SnsDlq(topic);
Initializer
new SnsDlq(topic: ITopic)
Parameters
- topic
ITopic
Methods
Name | Description |
---|---|
bind(_target, targetHandler) | Returns a destination configuration for the DLQ. |
bind(_target, targetHandler)
public bind(_target: IEventSourceMapping, targetHandler: IFunction): DlqDestinationConfig
Parameters
- _target
IEvent
Source Mapping - targetHandler
IFunction
Returns
Returns a destination configuration for the DLQ.