aws-cdk.aws-sns
The CDK Construct Library for AWS::SNS
What it is and what it does
This is an AWS CDK construct library for Amazon SNS, part of the official AWS CDK v1 framework. It provides Python classes to define SNS topics and subscriptions declaratively within infrastructure-as-code stacks, supporting both standard and FIFO topics with content-based deduplication, message filtering by attributes, and integration with other AWS services like SQS, Lambda, and CloudWatch Events.
The package is in maintenance-only status: AWS CDK v1 reached end-of-support on 2023-06-01, and this library is no longer receiving updates. While the code remains functional and the repository is not archived, new projects should use AWS CDK v2 instead. Existing v1 users can continue to use this package, but migration is recommended.
Use it for:
- Define SNS topics and subscriptions in CDK stacks for event-driven architectures and notifications.
- Set up FIFO topics with content deduplication for ordered, exactly-once message delivery.
- Apply message filtering policies to route SNS messages to subscribers based on message attributes.
- Attach dead-letter queues to SNS subscriptions to capture failed message deliveries.
- Integrate SNS topics as targets for CloudWatch event rules to trigger notifications on AWS events.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK constructs for defining Amazon SNS topics and subscriptions in Python infrastructure code, supporting standard and FIFO topics with filtering and dead-letter queue configuration.
Yes, but with conditions. Install this package only if you are maintaining an existing AWS CDK v1 codebase or have a specific reason to stay on v1. For new projects, use AWS CDK v2 instead, which receives active maintenance and updates. The package itself is stable and has no known vulnerabilities, but its end-of-support status means no new features or security patches will be released.
Install
aws-cdk-aws-sns on PyPI
pip
pip install aws-cdk-aws-snsuv
uv add aws-cdk-aws-snspoetry
poetry add aws-cdk-aws-snsInstalling aws-cdk.aws-sns
Before you install
Low install friction with a pure-Python wheel. However, this is an AWS CDK v1 package that reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk.aws-sns
from aws_cdk import aws_sns as sns
topic = sns.Topic(self, "Topic",
display_name="Customer subscription topic"
)
Requires AWS CDK core and constructs libraries; intended for use within a CDK application stack context.
Verify before relying
- Whether v1-to-v2 migration tooling or compatibility layers are available to ease adoption of CDK v2 alternatives.
- Performance or feature differences between standard and FIFO topic implementations in this construct library.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — aws-cdk.aws-cloudwatch, aws-cdk.aws-codestarnotifications, aws-cdk.aws-events, aws-cdk.aws-iam, aws-cdk.aws-kms, aws-cdk.aws-sqs, aws-cdk.core, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 161,981/month — #10,617 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_sns-1.204.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
aws-cdk.aws-sns-subscriptionsProvides AWS CDK constructs for subscribing SNS…
permissive · top 15,000 on PyPI
aws-cdk.aws-sqsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestarnotificationsDefines AWS CodeStarNotifications rules in…
permissive · top 15,000 on PyPI
snsSNS utils provides utilities related to AWS…
unclear · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
publish-event-snsPublishes Python dictionaries as JSON messages…
permissive · top 5,000 on PyPI
aws-cdk.aws-codecommitProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI
aws-cdk.aws-autoscaling-hooktargetsProvides integration classes for AWS…
permissive · top 15,000 on PyPI
amazon-sns-extended-clientExtends boto3's SNS client to publish messages…
permissive · top 15,000 on PyPI
aws-cdk.aws-logsProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI