get_thing_shadow
(**kwargs)¶Gets the shadow for the specified thing.
Requires permission to access the GetThingShadow action.
For more information, see GetThingShadow in the IoT Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.get_thing_shadow(
thingName='string',
shadowName='string'
)
[REQUIRED]
The name of the thing.
dict
Response Syntax
{
'payload': StreamingBody()
}
Response Structure
(dict) --
The output from the GetThingShadow operation.
payload (StreamingBody
) --
The state information, in JSON format.
Exceptions
IoTDataPlane.Client.exceptions.InvalidRequestException
IoTDataPlane.Client.exceptions.ResourceNotFoundException
IoTDataPlane.Client.exceptions.ThrottlingException
IoTDataPlane.Client.exceptions.UnauthorizedException
IoTDataPlane.Client.exceptions.ServiceUnavailableException
IoTDataPlane.Client.exceptions.InternalFailureException
IoTDataPlane.Client.exceptions.MethodNotAllowedException
IoTDataPlane.Client.exceptions.UnsupportedDocumentEncodingException