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 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',
    shadowName='string'
)
[REQUIRED]
The name of the thing.
dict
Response Syntax
{
    'payload': StreamingBody()
}
Response Structure
(dict) --
The output from the DeleteThingShadow operation.
payload (StreamingBody) --
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 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',
    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
Returns an object that can wait for some condition.
Lists the shadows for the specified thing.
See also: AWS API Documentation
Request Syntax
response = client.list_named_shadows_for_thing(
    thingName='string',
    nextToken='string',
    pageSize=123
)
[REQUIRED]
The name of the thing.
dict
Response Syntax
{
    'results': [
        'string',
    ],
    'nextToken': 'string',
    'timestamp': 123
}
Response Structure
(dict) --
results (list) --
The list of shadows for the specified thing.
nextToken (string) --
The token for the next set of results, or null if there are no additional results.
timestamp (integer) --
The Epoch date and time the response was generated by AWS IoT.
Exceptions
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 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',
    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
The available paginators are: