aws-cdk.aws-iot-alpha
The CDK Construct Library for AWS::IoT
What it is and what it does
This package provides high-level CDK constructs for AWS IoT Core, allowing you to define IoT infrastructure declaratively in Python. It wraps AWS IoT's core capabilities—topic rules that route device messages to AWS services, logging configuration for monitoring IoT activity, and Device Defender audits for security compliance—into reusable, composable objects that integrate with the broader AWS CDK ecosystem.
The library is explicitly marked as experimental and alpha-stage, meaning its APIs are actively evolving and may introduce breaking changes between releases without following semantic versioning. You use it by instantiating constructs like TopicRule, Logging, and AccountAuditConfiguration within a CDK stack, configuring them with SQL queries, actions, and audit checks, then synthesizing the stack into CloudFormation templates. It depends on aws-cdk-lib, constructs, jsii, and publication—all standard CDK infrastructure packages.
Use it for:
- Define IoT topic rules that automatically invoke Lambda functions or write to CloudWatch Logs when devices publish to MQTT topics.
- Enable centralized logging and monitoring of AWS IoT activity across your account.
- Configure Device Defender audits to check for security drifts in device certificates, policies, and IAM role permissions.
- Set up scheduled audits (daily, weekly, monthly) to continuously validate IoT security posture.
- Route IoT device messages to multiple AWS services (SNS, S3, DynamoDB) based on topic patterns and SQL filters.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK constructs for defining AWS IoT Core resources—topic rules, logging, and device audits—as infrastructure-as-code in Python.
Yes, with conditions. Install if you are building IoT infrastructure with AWS CDK and need to define topic rules, logging, or audits programmatically. The package is actively maintained and has no known vulnerabilities. However, accept that APIs are experimental—review the release notes before upgrading, and avoid it in production systems where breaking changes pose high risk until the library reaches stable status.
Install
aws-cdk-aws-iot-alpha on PyPI
pip
pip install aws-cdk-aws-iot-alphauv
uv add aws-cdk-aws-iot-alphapoetry
poetry add aws-cdk-aws-iot-alphaInstalling aws-cdk.aws-iot-alpha
Before you install
Low install friction with four runtime dependencies. Actively maintained with a release 1 day old. Marked as experimental/alpha—APIs are subject to breaking changes without semantic versioning guarantees, so expect potential updates when upgrading.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk-aws-iot-alpha
import aws_cdk.aws_iot as iot
topic_rule = iot.TopicRule(self, "TopicRule",
sql=iot.IotSql.from_string_as_ver20160323("SELECT * FROM 'device/+/data'")
)
Requires Python 3.10 or later. Intended for use within an AWS CDK application context (self parameter).
Verify before relying
- Whether all audit check types and scheduled audit frequencies are fully documented in the package itself or require external AWS documentation.
- Performance characteristics when managing large numbers of topic rules or audit configurations.
- Compatibility guarantees with specific aws-cdk-lib versions beyond the runtime dependency.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aws-cdk-lib, constructs, jsii, publication |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 309,303/month — #7,756 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk_aws_iot_alpha-2.265.0a0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
aws-cdk.aws-iot-actions-alphaProvides AWS CDK constructs that define actions…
permissive · top 15,000 on PyPI
awsiotsdkConnects Python applications to AWS IoT Core…
permissive · top 5,000 on PyPI
aws-cdk.aws-neptune-alphaProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-samProvides AWS CDK v1 constructs for defining…
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-logsProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI
aws-solutions-constructs.coreProvides core building blocks and default…
permissive · top 15,000 on PyPI
aws-cdk.coreProvides the core construct classes and stack…
permissive · top 15,000 on PyPI
aws-cdk.aws-lambdaDefines AWS Lambda functions and layers as…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestar-alphaProvides AWS CDK constructs for AWS CodeStar…
permissive · top 15,000 on PyPI