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

A source that reads from an SQS queue.

Extends: SqsSource
Implements: ISource

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

## Example

```ts
declare const sourceQueue: sqs.Queue;
declare const dest: events.ApiDestination;

const apiTarget = new targets.ApiDestinationTarget(dest, {
  inputTransformation: pipes.InputTransformation.fromObject({ body: "👀" }),
});

const pipe = new pipes.Pipe(this, 'Pipe', {
    source: new SqsSource(sourceQueue),
    target: apiTarget,
});
```

## Initializer

```ts
new SqsSource(queue: IQueue, parameters?: SqsSourceParameters)
```

## Properties

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

## Methods

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

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