You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: IoT Core registry models can't be imported from parser.models #8742
The six IoT Core registry models listed under "Built-in models" in the Parser docs can be imported from aws_lambda_powertools.utilities.parser.models, like the other built-in models.
Current Behaviour
They're missing from parser/models/__init__.py, so the import fails:
ImportError: cannot import name 'IoTCoreThingEvent' from 'aws_lambda_powertools.utilities.parser.models'
The same happens for IoTCoreThingTypeEvent, IoTCoreThingTypeAssociationEvent, IoTCoreThingGroupEvent, IoTCoreAddOrRemoveFromThingGroupEvent and IoTCoreAddOrDeleteFromThingGroupEvent. Importing them from the submodule (parser.models.iot_registry_events) works.
A small related one in the same docs table: it lists CloudwatchLogsModel, but the class is CloudWatchLogsModel, so that import fails too. The CloudWatchLogsEnvelope row uses the same spelling.
Export the six models from parser/models/__init__.py the same way as the other models, add a case to tests/functional/parser/test_model_imports.py, and fix the CloudwatchLogsModel spelling in docs/utilities/parser.md. I'm happy to send a PR for this.
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out our GitHub Discussions: Join the conversation
Thanks @Manishram-ai, confirmed on develop: the six IoT Core models were never added to parser/models/__init__.py, so only the submodule import works, and the docs table has CloudwatchLogsModel twice where the class is CloudWatchLogsModel. Your plan is the right one, including the new cases in test_model_imports.py. Do you want to send the PR? Say so here and I'll assign the issue to you. This goes into 3.39.0, which ships in two days, so if you can open it in the next day it makes the cut.
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Activity
boring-cyborg commentedon Nov 1, 2026
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
powertools-for-aws-oss-automation commentedon Nov 1, 2026
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out our GitHub Discussions: Join the conversation
leandrodamascena commentedon Nov 2, 2026
Thanks @Manishram-ai, confirmed on
develop: the six IoT Core models were never added toparser/models/__init__.py, so only the submodule import works, and the docs table hasCloudwatchLogsModeltwice where the class isCloudWatchLogsModel. Your plan is the right one, including the new cases intest_model_imports.py. Do you want to send the PR? Say so here and I'll assign the issue to you. This goes into 3.39.0, which ships in two days, so if you can open it in the next day it makes the cut.Manishram-ai commentedon Nov 2, 2026
Yes, I'd like to send it. I'll open the PR today.
powertools-for-aws-oss-automation commentedon Nov 3, 2026
Warning
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Nov 3, 2026
This is now released under 3.39.0 version!