aws iot update-thing
Updates the data for a thing. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To associate a thing with a thing type
The following update-thing example associates a thing in the AWS IoT registry with a thing type. When you make the association, you provide values for the attributes defined by the thing type.
aws iot update-thing --thing-name "MyOtherLightBulb" --thing-type-name "LightBulb" --attribute-payload '{"attributes": {"wattage":"75", "model":"123"}}'Identify--thing-nameThe name of the thing to update.--thing-type-nameThe name of the thing type.--attribute-payloadA list of thing attributes, a JSON string containing name-value pairs.This command produces no output. Use the describe-thing command to see the result.
For more information, see Thing Types in the AWS IoT Developers Guide.
Options
--attribute-payloadA list of thing attributes, a JSON string containing name-value pairs.--expected-versionThe expected version of the thing record in the registry.--remove-thing-typeRemove a thing type association.--thing-nameThe name of the thing to update.--thing-type-nameThe name of the thing type.