CmdID

CmdID / aws / aws iot-data

aws iot-data get-thing-shadow

Gets the shadow for the specified thing. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get a thing shadow document

The following get-thing-shadow example gets the thing shadow document for the specified IoT thing.

aws iot-data get-thing-shadow output.txt --thing-name MyRPiIdentify
--thing-nameThe name of the thing.

Contents of output.txt:

{
    "state":{
        "reported":{
            "moisture":"low"
        }
    },
    "metadata":{
        "reported":{
            "moisture":{
                "timestamp":1560269319
            }
        }
    },
    "version":1,"timestamp":1560269405
}

This command produces no output.

For more information, see Device Shadow Service Data Flow in the AWS IoT Developers Guide.

Options

2 in the AWS CLI reference
--shadow-nameThe name of the shadow.
--thing-nameThe name of the thing.