Skip to main content

Amazon Simple Queue Service Construct Library

---

cfn-resources: Stable

cdk-constructs: Stable


Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. SQS eliminates the complexity and overhead associated with managing and operating message oriented middleware, and empowers developers to focus on differentiating work. Using SQS, you can send, store, and receive messages between software components at any volume, without losing messages or requiring other services to be available.

Installation

Import to your project:

import aws_cdk.aws_sqs as sqs

Basic usage

Here's how to add a basic queue to your application:

sqs.Queue(self, "Queue")

Encryption

If you want to encrypt the queue contents, set the encryption property. You can have the messages encrypted with a key that SQS manages for you, or a key that you can manage yourself.

# Use managed key
sqs.Queue(self, "Queue",
    encryption=sqs.QueueEncryption.KMS_MANAGED
)

# Use custom key
my_key = kms.Key(self, "Key")

sqs.Queue(self, "Queue",
    encryption=sqs.QueueEncryption.KMS,
    encryption_master_key=my_key
)

First-In-First-Out (FIFO) queues

FIFO queues give guarantees on the order in which messages are dequeued, and have additional features in order to help guarantee exactly-once processing. For more information, see the SQS manual. Note that FIFO queues are not available in all AWS regions.

A queue can be made a FIFO queue by either setting fifo: true, giving it a name which ends in ".fifo", or by enabling a FIFO specific feature such as: content-based deduplication, deduplication scope or fifo throughput limit.

Metadata

Release files for aws-cdk.aws-sqs 1.202.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-cdk.aws-sqs 1.202.0
File Size Uploaded Provenance Actions
aws-cdk.aws-sqs-1.202.0.tar.gz 121.5 kB Without provenance Details for aws-cdk.aws-sqs-1.202.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-cdk.aws-sqs 1.202.0
File Interpreter ABI Platform Actions
aws_cdk.aws_sqs-1.202.0-py3-none-any.whl Python 3 none any Details for aws_cdk.aws_sqs-1.202.0-py3-none-any.whl

Total release size: 241.7 kB

Release files / aws-cdk.aws-sqs-1.202.0.tar.gz

Download URL aws-cdk.aws-sqs-1.202.0.tar.gz
Size 121.5 kB
Tags Source
SHA-256 checksum
How to use checksums
40bac390876bfac53d5aa34d0d1d7c0d3cec22ef0bbac58da7fc1d570ba2b1e8
BLAKE2b-256 checksum
How to use checksums
d601b4bf216dc4dd882b7775c6cf76798d863fdfb877def1ad767e1868f2a1c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / aws_cdk.aws_sqs-1.202.0-py3-none-any.whl

Download URL aws_cdk.aws_sqs-1.202.0-py3-none-any.whl
Size 120.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a8602d4e13f9fcb129142e754658757c7114c2b5c946851d5579f6a2d595bee
BLAKE2b-256 checksum
How to use checksums
21ab14649cc37476f0611d10bfdabcb5d1a3ff19798244214c1e18e3d859472c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for aws-cdk.aws-sqs 1.202.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.202.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page