# SnsDlq

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

Implements: [IEventSourceDlq](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.IEventSourceDlq.html)

- Source: [`aws-lambda-event-sources/lib/sns-dlq.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-lambda-event-sources/lib/sns-dlq.ts#L7)

## Example

TypeScript:

```ts
// 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);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda_event_sources as lambda_event_sources
from aws_cdk import aws_sns as sns

# topic: sns.Topic

sns_dlq = lambda_event_sources.SnsDlq(topic)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.eventsources.*;
import software.amazon.awscdk.services.sns.*;

Topic topic;

SnsDlq snsDlq = new SnsDlq(topic);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda.EventSources;
using Amazon.CDK.AWS.SNS;

Topic topic;

var snsDlq = new SnsDlq(topic);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var topic Topic

snsDlq := awscdk.Aws_lambda_event_sources.NewSnsDlq(topic)
```

## Initializer

TypeScript:

```ts
new SnsDlq(topic: ITopic)
```

Python:

```python
SnsDlq(topic: ITopic)
```

Java:

```java
new SnsDlq(ITopic topic)
```

C# / .NET:

```csharp
new SnsDlq(ITopic topic)
```

Golang:

```go
NewSnsDlq(Topic ITopic)
```

## Methods

- `bind(_target: IEventSourceMapping, targetHandler: IFunction): DlqDestinationConfig` — Returns a destination configuration for the DLQ.
