skillfed

aws-cdk.aws-codestarnotifications

The CDK Construct Library for AWS::CodeStarNotifications

aws-cdk-aws-codestarnotifications v1.204.0 152.0K downloads/30d#10,915 on PyPI12,868
Permissive license Apache-2.0 Active released

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

uv

uv add aws-cdk-aws-codestarnotifications

poetry

poetry add aws-cdk-aws-codestarnotifications

Installing 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

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 cdk notificationscodestar notifications constructcodebuild pipeline notificationssns slack notifications awsaws chatbot integration cdknotification rules codepipelineevent-driven notifications aws
aws-cdkinfrastructure-as-codeend-of-life

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.aws-codecommit

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

cdk-events-notify

An AWS CDK Construct Library that automatically…

permissive · top 15,000 on PyPI

aws-cdk.aws-events

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-sns

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-sns-subscriptions

Provides AWS CDK constructs for subscribing SNS…

permissive · top 15,000 on PyPI

aws-cdk.aws-codebuild

Defines AWS CodeBuild projects and build…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestar-alpha

Provides AWS CDK constructs for AWS CodeStar…

permissive · top 15,000 on PyPI

aws-cdk.aws-cloudwatch

Defines CloudWatch metrics, alarms, and…

permissive · top 15,000 on PyPI

apprise

Apprise sends notifications to dozens of…

permissive · top 5,000 on PyPI

publish-event-sns

Publishes Python dictionaries as JSON messages…

permissive · top 5,000 on PyPI