skillfed

aws-cdk.aws-iot-alpha

The CDK Construct Library for AWS::IoT

aws-cdk-aws-iot-alpha v2.265.0a0 309.3K downloads/30d#7,756 on PyPI12,868
Permissive license Apache-2.0 Active released

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

uv

uv add aws-cdk-aws-iot-alpha

poetry

poetry add aws-cdk-aws-iot-alpha

Installing 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

Development Status :: 4 - BetaFramework :: AWS CDKFramework :: AWS CDK :: 2Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

AWS IoT CDK constructsIoT topic rules infrastructureAWS device messaging rulesIoT audit and logging CDKAWS IoT Core PythonCDK IoT construct libraryIoT rule actions and routing
aws-cdkiot-infrastructurealpha-stage

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-iot-actions-alpha

Provides AWS CDK constructs that define actions…

permissive · top 15,000 on PyPI

awsiotsdk

Connects Python applications to AWS IoT Core…

permissive · top 5,000 on PyPI

aws-cdk.aws-neptune-alpha

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-sam

Provides AWS CDK v1 constructs for defining…

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

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

aws-solutions-constructs.core

Provides core building blocks and default…

permissive · top 15,000 on PyPI

aws-cdk.core

Provides the core construct classes and stack…

permissive · top 15,000 on PyPI

aws-cdk.aws-lambda

Defines AWS Lambda functions and layers as…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestar-alpha

Provides AWS CDK constructs for AWS CodeStar…

permissive · top 15,000 on PyPI