

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# モノのタイプを更新する
<a name="update-thing-type"></a>

**UpdateThingType** コマンドを使用すると、モノを作成する際にタイプを更新することができます。

```
$ aws iot create-thing --thing-name "MyLightBulb" --thing-type-name "LightBulb" --attribute-payload "{\"attributes\": {\"wattage\":\"75\", \"model\":\"123\"}}"
```

**UpdateThing** コマンドを使用すると、モノに関連付けるモノのタイプをいつでも変更できます。

```
$ aws iot update-thing --thing-name "MyLightBulb"
                --thing-type-name "LightBulb" --attribute-payload  "{\"attributes\": {\"wattage\":\"75\", \"model\":\"123\"}}"
```

**UpdateThing** コマンドを使用すると、モノのタイプとモノとの関連付けを解除することもできます。