--- id: aws-cdk-aws-sns version: "1.204.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # aws-cdk.aws-sns — The CDK Construct Library for AWS::SNS License: permissive · Maintenance: active · Downloads: 162.0K/mo ## 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 above — 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 pip install aws-cdk-aws-sns uv add aws-cdk-aws-sns poetry add aws-cdk-aws-sns ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 162.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags aws sns topic construct, cdk sns infrastructure, aws notification service python, sns subscription management, fifo topic cdk, sns filter policy, aws event rule sns target, aws-cdk, infrastructure-as-code, end-of-support [View on SkillFed](https://skillfed.io/packages/aws-cdk-aws-sns) · [View on PyPI](https://pypi.org/project/aws-cdk-aws-sns/)