# QueueAttributes

Reference to a queue.

- Source: [`aws-sqs/lib/queue-base.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-sqs/lib/queue-base.ts#L323)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sqs as sqs } from 'aws-cdk-lib';
const queueAttributes: sqs.QueueAttributes = {
  queueArn: 'queueArn',

  // the properties below are optional
  fifo: false,
  keyArn: 'keyArn',
  queueName: 'queueName',
  queueUrl: 'queueUrl',
};
```

## Properties

- `fifo`: boolean — Whether this queue is an Amazon SQS FIFO queue. If false, this is a standard queue.

  **Default:** if fifo is not specified, the property will be determined based on the queue name (not possible for FIFO queues imported from a token)

  In case of a FIFO queue which is imported from a token, this value has to be explicitly set to true.

- `keyArn`: string = None — KMS encryption key, if this queue is server-side encrypted by a KMS key.

- `queueArn`: string (required) — The ARN of the queue.

- `queueName`: string — The name of the queue.

  **Default:** if queue name is not specified, the name will be derived from the queue ARN

- `queueUrl`: string — The URL of the queue.

  **Default:** 'https://sqs.<region-endpoint>/<account-ID>/<queue-name>'
