CmdID

CmdID / aws / aws iotthingsgraph

aws iotthingsgraph associate-entity-to-thing

Associates a device with a concrete thing that is in the user's registry. AWS CLI reference

1 example 3 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 associate a thing with a device

The following associate-entity-to-thing example associates a thing with a device. The example uses a motion sensor device that is in the public namespace.

aws iotthingsgraph associate-entity-to-thing --thing-name "MotionSensorName" --entity-id "urn:tdm:aws/examples:Device:HCSR501MotionSensor"Identify
--thing-nameThe name of the thing to which the entity is to be associated.
--entity-idThe ID of the device to be associated with the thing.

This command produces no output.

Options

3 in the AWS CLI reference
--entity-idThe ID of the device to be associated with the thing.
--namespace-versionThe version of the user's namespace.
--thing-nameThe name of the thing to which the entity is to be associated.