aws-cdk-lib.aws_sqs.QueueAttributes

interface QueueAttributes

LanguageType name
.NETAmazon.CDK.AWS.SQS.QueueAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssqs#QueueAttributes
Javasoftware.amazon.awscdk.services.sqs.QueueAttributes
Pythonaws_cdk.aws_sqs.QueueAttributes
TypeScript (source)aws-cdk-lib » aws_sqs » QueueAttributes

Reference to a queue.

Example

// 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

NameTypeDescription
queueArnstringThe ARN of the queue.
fifo?booleanWhether this queue is an Amazon SQS FIFO queue. If false, this is a standard queue.
keyArn?stringKMS encryption key, if this queue is server-side encrypted by a KMS key.
queueName?stringThe name of the queue.
queueUrl?stringThe URL of the queue.

queueArn

Type: string

The ARN of the queue.


fifo?

Type: boolean (optional, 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))

Whether this queue is an Amazon SQS FIFO queue. If false, this is a standard queue.

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


keyArn?

Type: string (optional, default: None)

KMS encryption key, if this queue is server-side encrypted by a KMS key.


queueName?

Type: string (optional, default: if queue name is not specified, the name will be derived from the queue ARN)

The name of the queue.


queueUrl?

Type: string (optional, default: 'https://sqs.<region-endpoint>/<account-ID>/<queue-name>')

The URL of the queue.

See also: https://docs.aws.amazon.com/sdk-for-net/v2/developer-guide/QueueURL.html