Skip to content

Commit 44f0855

Browse files
committed
Add IoT crud event
1 parent d82537c commit 44f0855

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import enum
2+
from typing import Any, Optional
3+
4+
from pydantic import BaseModel
5+
6+
7+
class AWSIoTCRUDEventOperation(str, enum.Enum):
8+
CREATED = "CREATED"
9+
UPDATED = "UPDATED"
10+
DELETED = "DELETED"
11+
12+
13+
class AWSIoTCRUDEvent(BaseModel):
14+
"""The "Thing: created, updated, deleted" eventt"""
15+
16+
eventType: str
17+
eventId: str
18+
timestamp: int
19+
20+
operation: AWSIoTCRUDEventOperation
21+
22+
thingId: str
23+
24+
thingName: str
25+
versionNumber: int
26+
thingTypeName: Optional[str]
27+
billinGroupName: Optional[str]
28+
29+
attributes: dict[str, Any]

0 commit comments

Comments
 (0)