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
Examples
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
--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.