aws-cdk.aws-codestarnotifications
The CDK Construct Library for AWS::CodeStarNotifications
What it is and what it does
This package provides AWS CDK v1 constructs for defining notification rules that route events from AWS CodeBuild and CodePipeline to notification targets like SNS topics and Slack channels configured in AWS Chatbot. It implements the INotificationRuleSource and INotificationRuleTarget interfaces, allowing you to declaratively specify which build or pipeline events trigger notifications and where those notifications are sent.
The package is part of the broader AWS CDK project and integrates with other CDK modules for compute and messaging services. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer maintained; the AWS team recommends migrating to AWS CDK v2 for new projects and for ongoing support and security updates.
Use it for:
- Route CodeBuild project build success/failure events to an SNS topic for email or SMS alerts.
- Send CodePipeline stage transition events to a Slack channel via AWS Chatbot for team visibility.
- Combine multiple notification sources and targets in a single CDK stack to centralize event routing.
- Trigger custom Lambda functions via SNS subscriptions when specific build or pipeline events occur.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Defines AWS CodeStarNotifications rules in Python using AWS CDK v1 constructs, routing build and pipeline events to SNS topics and Slack channels via AWS Chatbot.
No, unless you are maintaining an existing AWS CDK v1 codebase. AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer updated. For new projects, use AWS CDK v2 and its equivalent notification constructs instead. If you are already on v1, this package works, but plan a migration to v2.
Install
aws-cdk-aws-codestarnotifications on PyPI
pip
pip install aws-cdk-aws-codestarnotificationsuv
uv add aws-cdk-aws-codestarnotificationspoetry
poetry add aws-cdk-aws-codestarnotificationsInstalling aws-cdk.aws-codestarnotifications
Before you install
Low install friction with standard CDK dependencies. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated—new projects should use AWS CDK v2 instead.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk.aws-codestarnotifications
import aws_cdk.aws_codestarnotifications as notifications
import aws_cdk.aws_sns as sns
topic = sns.Topic(self, "MyTopic")
rule = notifications.NotificationRule(self, "Rule",
source=project,
events=["codebuild-project-build-state-succeeded"],
targets=[topic]
)
Requires AWS CDK v1 runtime environment; users should migrate to AWS CDK v2 for ongoing support.
Verify before relying
- Whether this package can be used alongside AWS CDK v2 in the same project without conflicts.
- Current community adoption and whether migration tooling from v1 to v2 is mature.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — aws-cdk.core, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 151,996/month — #10,915 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_codestarnotifications-1.204.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.aws-codecommitProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI
cdk-events-notifyAn AWS CDK Construct Library that automatically…
permissive · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-snsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-sns-subscriptionsProvides AWS CDK constructs for subscribing SNS…
permissive · top 15,000 on PyPI
aws-cdk.aws-codebuildDefines AWS CodeBuild projects and build…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestar-alphaProvides AWS CDK constructs for AWS CodeStar…
permissive · top 15,000 on PyPI
aws-cdk.aws-cloudwatchDefines CloudWatch metrics, alarms, and…
permissive · top 15,000 on PyPI
appriseApprise sends notifications to dozens of…
permissive · top 5,000 on PyPI
publish-event-snsPublishes Python dictionaries as JSON messages…
permissive · top 5,000 on PyPI