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

Streaming sources.

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

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

## Initializer

```ts
new StreamSource(sourceArn: string, sourceParameters: StreamSourceParameters)
```

## 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.

- `sourceParameters`: [StreamSourceParameters](/cdk/api/v2/docs/@aws-cdk_aws-pipes-sources-alpha.StreamSourceParameters.html) — Base parameters for streaming sources.

## 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.
