Table of Contents
A low-level client representing AWS IoT Data Plane:
import boto3
client = boto3.client('iot-data')
These are the available methods:
Check if an operation can be paginated.
Deletes the thing shadow for the specified thing.
For more information, see DeleteThingShadow in the AWS IoT Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_thing_shadow(
thingName='string'
)
[REQUIRED]
The name of the thing.
{
'payload': StreamingBody()
}
Response Structure
The output from the DeleteThingShadow operation.
The state information, in JSON format.
Exceptions
Generate a presigned url given a client, its method, and arguments
The presigned url
Create a paginator for an operation.
Gets the thing shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.get_thing_shadow(
thingName='string'
)
[REQUIRED]
The name of the thing.
{
'payload': StreamingBody()
}
Response Structure
The output from the GetThingShadow operation.
The state information, in JSON format.
Exceptions
Returns an object that can wait for some condition.
Publishes state information.
For more information, see HTTP Protocol in the AWS IoT Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.publish(
topic='string',
qos=123,
payload=b'bytes'|file
)
[REQUIRED]
The name of the MQTT topic.
None
Exceptions
Updates the thing shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.update_thing_shadow(
thingName='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