skillfed

aws-cdk.aws-cloudwatch

The CDK Construct Library for AWS::CloudWatch

aws-cdk-aws-cloudwatch v1.204.0 189.8K downloads/30d#9,922 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 CloudWatch monitoring infrastructure—metrics, alarms, and dashboards—as Python code. It allows you to instantiate Metric objects to represent CloudWatch metrics (either from AWS services or custom applications), compose them using MathExpression for calculations, and create alarms with thresholds and actions. Metrics can be account and region aware, and the library supports search expressions and cross-account/cross-region monitoring.

However, this is a v1 package that reached end-of-support on 2023-06-01 and is no longer maintained. The package depends on aws-cdk.core, aws-cdk.aws-iam, constructs, jsii, publication, and typeguard. New projects should use AWS CDK v2 instead; existing v1 users should plan a migration.

Use it for:

  • Define CloudWatch alarms on Lambda error metrics programmatically within a CDK stack.
  • Create custom metrics for application-specific monitoring using Metric objects with custom namespaces.
  • Build metric math expressions to combine multiple metrics (e.g., error rate as errors/invocations).
  • Set up cross-account or cross-region alarms by attaching metrics to constructs with account/region context.
  • Search for and aggregate metrics across multiple resources using search expressions in MathExpression.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Defines CloudWatch metrics, alarms, and dashboards as code using AWS CDK v1 constructs, enabling programmatic monitoring infrastructure for AWS resources.

No—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. Existing v1 users should plan a migration to v2 as soon as feasible. Install only if you are maintaining a legacy CDK v1 codebase with no near-term migration path.

Install

aws-cdk-aws-cloudwatch on PyPI

pip

pip install aws-cdk-aws-cloudwatch

uv

uv add aws-cdk-aws-cloudwatch

poetry

poetry add aws-cdk-aws-cloudwatch

Installing aws-cdk.aws-cloudwatch

Before you install

Low install friction with a wheel distribution. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated—users should migrate to AWS CDK v2 instead.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions.

Quickstart

pip install aws-cdk.aws-cloudwatch

import aws_cdk.aws_cloudwatch as cloudwatch

metric = cloudwatch.Metric(
    namespace="MyNamespace",
    metric_name="MyMetric",
    dimensions_map={"ProcessingStep": "Download"}
)

Requires AWS CDK v1 environment; v1 is end-of-support as of 2023-06-01 and users should migrate to AWS CDK v2.

Verify before relying

  • Whether existing CDK v1 projects can coexist safely with v2 during migration.
  • Availability and completeness of CloudWatch feature parity in AWS CDK v2 equivalent.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (~=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 6 — aws-cdk.aws-iam, aws-cdk.core, constructs, jsii, publication, typeguard
Maintenance actively maintained — 1,152 days since the last release
Last repo commit
First released
Downloads 189,840/month — #9,922 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk.aws_cloudwatch-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

cloudwatch metrics as codeaws cdk monitoringalarm definitions infrastructuremetric math expressionscloudwatch dashboard constructaws monitoring infrastructurecdk v1 cloudwatch
aws-infrastructureend-of-supportcdk-v1

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

aws-cdk.aws-logs

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

aws-embedded-metrics

Generates CloudWatch metrics embedded within…

permissive · top 5,000 on PyPI

aws-cdk.aws-lambda

Defines AWS Lambda functions and layers as…

permissive · top 15,000 on PyPI

aws-cdk.aws-autoscaling

Provides CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-applicationautoscaling

Provides CDK constructs for configuring…

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

cdk-nag

Scans AWS CDK applications and CloudFormation…

permissive · top 5,000 on PyPI

aws-cdk.aws-codecommit

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

datadog-cdk-constructs-v2

Provides AWS CDK constructs to automatically…

permissive · top 15,000 on PyPI