update_thing_shadow(**kwargs)¶Updates the shadow for the specified thing.
Requires permission to access the UpdateThingShadow action.
For more information, see UpdateThingShadow in the IoT Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.update_thing_shadow(
thingName='string',
shadowName='string',
payload=b'bytes'|file
)
[REQUIRED]
The name of the thing.
[REQUIRED]
The state information, in JSON format.
dict
Response Syntax
{
'payload': StreamingBody()
}
Response Structure
(dict) --
The output from the UpdateThingShadow operation.
payload (StreamingBody) --
The state information, in JSON format.
Exceptions
IoTDataPlane.Client.exceptions.ConflictExceptionIoTDataPlane.Client.exceptions.RequestEntityTooLargeExceptionIoTDataPlane.Client.exceptions.InvalidRequestExceptionIoTDataPlane.Client.exceptions.ThrottlingExceptionIoTDataPlane.Client.exceptions.UnauthorizedExceptionIoTDataPlane.Client.exceptions.ServiceUnavailableExceptionIoTDataPlane.Client.exceptions.InternalFailureExceptionIoTDataPlane.Client.exceptions.MethodNotAllowedExceptionIoTDataPlane.Client.exceptions.UnsupportedDocumentEncodingException