aws iot create-thing-type
Creates a new thing type. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To define a thing type
The following create-thing-type example defines a thing type and associated attributes.
aws iot create-thing-type --thing-type-name "LightBulb" --thing-type-properties "thingTypeDescription=light bulb type, searchableAttributes=wattage,model"Identify--thing-type-nameThe name of the thing type.--thing-type-propertiesThe ThingTypeProperties for the thing type to create.Its output
{
"thingTypeName": "LightBulb",
"thingTypeArn": "arn:aws:iot:us-west-2:123456789012:thingtype/LightBulb",
"thingTypeId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see Thing Types in the AWS IoT Developers Guide.
Options
--tagsMetadata which can be used to manage the thing type.--thing-type-nameThe name of the thing type.--thing-type-propertiesThe ThingTypeProperties for the thing type to create.