class SnsDlq
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.EventSources.SnsDlq |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambdaeventsources#SnsDlq |
![]() | software.amazon.awscdk.services.lambda.eventsources.SnsDlq |
![]() | aws_cdk.aws_lambda_event_sources.SnsDlq |
![]() | aws-cdk-lib » 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 { 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
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.