> **Experimental**
>
> `@aws-cdk/aws-pipes-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# SourceWithDeadLetterTarget

Sources that support a dead-letter target.

Extends: SourceWithDeadLetterTarget
Implements: ISource
Superclass of: DynamoDBSource, KinesisSource, StreamSource

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/source.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-pipes-alpha/lib/source.ts#L112)

## Initializer

```ts
new SourceWithDeadLetterTarget(sourceArn: string, deadLetterTarget?: IQueue | ITopic)
```

## Properties

- `deadLetterTarget`: [IQueue](/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.IQueue.html) | [ITopic](/cdk/api/v2/docs/aws-cdk-lib.aws_sns.ITopic.html) — The dead-letter SQS queue or SNS topic.

- `sourceArn`: string — The ARN of the source resource.

## Methods

- `bind(pipe: IPipe): SourceConfig` — Bind the source to a pipe.

- `grantPush(grantee: IRole, deadLetterTarget?: IQueue | ITopic): void` — Grants the pipe role permission to publish to the dead-letter target.

  [disable-awslint:no-grants]

- `grantRead(grantee: IRole): void` — Grant the pipe role read access to the source.

- `isSourceWithDeadLetterTarget(source: ISource): boolean` (static) — Determines if the source is an instance of SourceWithDeadLetterTarget.
