@@ -1187,21 +1187,24 @@ class ShadowDeltaUpdatedEvent(awsiot.ModeledClass):
1187
1187
All attributes are None by default, and may be set by keyword in the constructor.
1188
1188
1189
1189
Keyword Args:
1190
+ client_token (str): An opaque token used to correlate requests and responses. Present only if a client token was used in the request.
1190
1191
metadata (typing.Dict[str, typing.Any]): Timestamps for the shadow properties that were updated.
1191
1192
state (typing.Dict[str, typing.Any]): Shadow properties that were updated.
1192
1193
timestamp (datetime.datetime): The time the event was generated by AWS IoT.
1193
1194
version (int): The current version of the document for the device's shadow.
1194
1195
1195
1196
Attributes:
1197
+ client_token (str): An opaque token used to correlate requests and responses. Present only if a client token was used in the request.
1196
1198
metadata (typing.Dict[str, typing.Any]): Timestamps for the shadow properties that were updated.
1197
1199
state (typing.Dict[str, typing.Any]): Shadow properties that were updated.
1198
1200
timestamp (datetime.datetime): The time the event was generated by AWS IoT.
1199
1201
version (int): The current version of the document for the device's shadow.
1200
1202
"""
1201
1203
1202
- __slots__ = ['metadata' , 'state' , 'timestamp' , 'version' ]
1204
+ __slots__ = ['client_token' , ' metadata' , 'state' , 'timestamp' , 'version' ]
1203
1205
1204
1206
def __init__ (self , * args , ** kwargs ):
1207
+ self .client_token = kwargs .get ('client_token' )
1205
1208
self .metadata = kwargs .get ('metadata' )
1206
1209
self .state = kwargs .get ('state' )
1207
1210
self .timestamp = kwargs .get ('timestamp' )
@@ -1215,6 +1218,9 @@ def __init__(self, *args, **kwargs):
1215
1218
def from_payload (cls , payload ):
1216
1219
# type: (typing.Dict[str, typing.Any]) -> ShadowDeltaUpdatedEvent
1217
1220
new = cls ()
1221
+ val = payload .get ('clientToken' )
1222
+ if val is not None :
1223
+ new .client_token = val
1218
1224
val = payload .get ('metadata' )
1219
1225
if val is not None :
1220
1226
new .metadata = val
@@ -1711,4 +1717,3 @@ def __init__(self, *args, **kwargs):
1711
1717
# for backwards compatibility, read any arguments that used to be accepted by position
1712
1718
for key , val in zip (['thing_name' ], args ):
1713
1719
setattr (self , key , val )
1714
-
0 commit comments