aws iot create-dynamic-thing-group
Creates a dynamic thing group. AWS CLI reference
1 example 6 options Its page in the AWS CLI reference
Examples
To create a dynamic thing group
The following create-dynamic-thing-group example creates a dynamic thing group that contains any thing with a temperature attribute that is greater than 60 degrees. You must enable AWS IoT fleet indexing before you can use dynamic thing groups.
aws iot create-dynamic-thing-group --thing-group-name "RoomTooWarm" --query-string "attributes.temperature>60"Identify--thing-group-nameThe dynamic thing group name to create.--query-stringThe dynamic thing group search query string.Its output
{
"thingGroupName": "RoomTooWarm",
"thingGroupArn": "arn:aws:iot:us-west-2:123456789012:thinggroup/RoomTooWarm",
"thingGroupId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"indexName": "AWS_Things",
"queryString": "attributes.temperature>60",
"queryVersion": "2017-09-30"
}For more information, see Dynamic Thing Groups in the AWS IoT Developers Guide.
Options
--index-nameThe dynamic thing group index name.--query-stringThe dynamic thing group search query string.--query-versionThe dynamic thing group query version.--tagsMetadata which can be used to manage the dynamic thing group.--thing-group-nameThe dynamic thing group name to create.--thing-group-propertiesThe dynamic thing group properties.