

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 更新物件類型
<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** 命令取消物件與物件類型的關聯。