

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 사물에 사물 유형 연결
<a name="associate-thing-type"></a>

사물을 생성할 때는 다음과 같이 **CreateThing** 명령을 사용하여 사물 유형을 지정할 수 있습니다.

```
$ 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** 명령을 사용하여 사물을 사물 유형에서 분리할 수도 있습니다.