Skip to content

Commit 074d64f

Browse files
Update aws_lambda_powertools/utilities/parser/models/iot_registry_events.py
Co-authored-by: Leandro Damascena <[email protected]> Signed-off-by: Bas <[email protected]>
1 parent b66e5d8 commit 074d64f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

aws_lambda_powertools/utilities/parser/models/iot_registry_events.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@ class IoTCoreRegistryEventsBase(BaseModel):
1010
timestamp: int
1111

1212

13-
class IoTCRUDEventOperation(str, enum.Enum):
14-
CREATED = "CREATED"
15-
UPDATED = "UPDATED"
16-
DELETED = "DELETED"
17-
18-
19-
class AddRemoveOperation(str, enum.Enum):
20-
ADDED = "ADDED"
21-
REMOVED = "REMOVED"
13+
EVENT_CRUD_OPERATION = Literal["CREATED", "UPDATED", "DELETED"]
14+
EVENT_ADD_REMOVE_OPERATION = Literal["ADDED", "REMOVED"]
2215

2316

2417
class IoTCoreThingEvent(IoTCoreRegistryEventsBase):

0 commit comments

Comments
 (0)