Registry /
aws / aws-solutions-constructs-aws-iot-lambda
Install & Compatibility
Where this runs
tested against v2.102.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 359.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 19.2s · import 0.000s · 360MB
398MB installed
● package 398MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
IotToLambda
✓ from aws_solutions_constructs.aws_iot_lambda import IotToLambda
Correct import path for the construct class
IotToLambdaProps
✓ from aws_solutions_constructs.aws_iot_lambda import IotToLambdaProps
Correct import path for the props class
IotToLambda
✓
✗ from aws_solutions_constructs.aws_iot_lambda.aws_iot_lambda import IotToLambda
Incorrect nested import; the correct module is aws_iot_lambda at the top level
Quick start: deploy an IoT rule that sends messages to a Lambda function.
from aws_cdk import App, Stack
from aws_solutions_constructs.aws_iot_lambda import IotToLambda, IotToLambdaProps
from aws_cdk.aws_lambda import Code, Runtime
from aws_cdk.aws_iot import TopicRuleProps
app = App()
stack = Stack(app, "test-iot-lambda-stack")
# Create the construct with a Lambda function from inline code
IotToLambda(stack, "test-iot-lambda",
lambda_function_props={
"runtime": Runtime.PYTHON_3_9,
"code": Code.from_inline(
"def handler(event, context):\n print(event)\n"
),
"handler": "index.handler"
},
iot_topic_rule_props=TopicRuleProps(
topic_rule_name="my_rule",
sql="SELECT * FROM 'device/#'"
)
)
app.synth()
Upgrade
Version history
2.102.0latest on PyPI · released May 15, 2026
Audit
Dependencies
aws-cdk-librequiredRequired as peer dependency for CDK constructs
constructsrequiredRequired for CDK construct base class