Skip to content

Feature request: Missing event source classes for IoT Core events #6110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
leandrodamascena opened this issue Feb 17, 2025 · 4 comments · Fixed by #6123
Closed
1 of 2 tasks

Feature request: Missing event source classes for IoT Core events #6110

leandrodamascena opened this issue Feb 17, 2025 · 4 comments · Fixed by #6123
Assignees
Labels
event_sources Event Source Data Class utility feature-request feature request

Comments

@leandrodamascena
Copy link
Contributor

Use case

Original issue for Parser: #5891

On AWS IoT, you can configure registry events, which send messages to MQTT topics on for example creation, updating or deletion of things.

This generates the underneath format.

{
    "eventType" : "THING_EVENT",
    "eventId" : "f5ae9b94-8b8e-4d8e-8c8f-b3266dd89853",
    "timestamp" : 1234567890123,
    "operation" : "CREATED|UPDATED|DELETED",
    "accountId" : "123456789012",
    "thingId" : "b604f69c-aa9a-4d4a-829e-c480e958a0b5",
    "thingName" : "MyThing",
    "versionNumber" : 1,
    "thingTypeName" : null,
    "attributes": {
                "attribute3": "value3",
                "attribute1": "value1",
                "attribute2": "value2"
    }
}

Solution/User Experience

@event_source(model=IoTCRUDEvent)
def handle(event: IoTCRUDEvent, _: LambdaContext):
    ...

Alternative solutions

Acknowledgment

@leandrodamascena leandrodamascena added feature-request feature request triage Pending triage from maintainers labels Feb 17, 2025
@leandrodamascena leandrodamascena added event_sources Event Source Data Class utility and removed triage Pending triage from maintainers labels Feb 17, 2025
@leandrodamascena leandrodamascena added the good first issue Good for newcomers label Feb 17, 2025
@basvandriel
Copy link
Contributor

basvandriel commented Feb 17, 2025

Hi @leandrodamascena. I'm sorry for the late reply. I'll pick this up ASAP! Feel free to assign it to my name.

@leandrodamascena
Copy link
Contributor Author

Hi @leandrodamascena. I'm sorry for the late reply. I'll pick this up ASAP! Feel free to assign it to my name.

Thats amazing to hear @basvandriel! For event source data class, please add a comment in each property, ok? Something like this.

Assigned to you.

@basvandriel
Copy link
Contributor

I'll make the pull request ready tomorrow. Drafted the changes here

Copy link
Contributor

⚠️COMMENT VISIBILITY 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 tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@leandrodamascena leandrodamascena moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event_sources Event Source Data Class utility feature-request feature request
Projects
Status: Shipped
2 participants