skillfed

aws-cdk.aws-sns

The CDK Construct Library for AWS::SNS

aws-cdk-aws-sns v1.204.0 162.0K downloads/30d#10,617 on PyPI12,868
Permissive license Apache-2.0 Active released

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

uv

uv add aws-cdk-aws-sns

poetry

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

Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

aws sns topic constructcdk sns infrastructureaws notification service pythonsns subscription managementfifo topic cdksns filter policyaws event rule sns target
aws-cdkinfrastructure-as-codeend-of-support

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

aws-cdk.aws-sns-subscriptions

Provides AWS CDK constructs for subscribing SNS…

permissive · top 15,000 on PyPI

aws-cdk.aws-sqs

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestarnotifications

Defines AWS CodeStarNotifications rules in…

permissive · top 15,000 on PyPI

sns

SNS utils provides utilities related to AWS…

unclear · top 15,000 on PyPI

aws-cdk.aws-events

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

publish-event-sns

Publishes Python dictionaries as JSON messages…

permissive · top 5,000 on PyPI

aws-cdk.aws-codecommit

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

aws-cdk.aws-autoscaling-hooktargets

Provides integration classes for AWS…

permissive · top 15,000 on PyPI

amazon-sns-extended-client

Extends boto3's SNS client to publish messages…

permissive · top 15,000 on PyPI

aws-cdk.aws-logs

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI