Skip to content

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

@leandrodamascena

Description

@leandrodamascena

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

Metadata

Metadata

Assignees

Labels

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions