AWS::IoT::ThingGroupCreates a new thing group. A dynamic thing group is created if the resource template contains the `QueryString` attribute. A dynamic thing group will not contain the `ParentGroupName` attribute. A static thing group and dynamic thing group can't be converted to each other via the addition or removal of the `QueryString` attribute. > This is a control plane operation. See [Authorization](https://docs.aws.amazon.com/iot/latest/developerguide/iot-authorization.html) for information about authorizing control plane actions. Requires permission to access the [CreateThingGroup](https://docs.aws.amazon.com//service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.
import { CfnThingGroup } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnThingGroupConfiguration passed to the constructor as CfnThingGroupProps.
parentGroupNameOptionalstringThe parent thing group name. A Dynamic Thing Group does not have `parentGroupName` defined.
queryStringOptionalstringThe dynamic thing group search query string. The `queryString` attribute *is* required for `CreateDynamicThingGroup` . The `queryString` attribute *is not* required for `CreateThingGroup` .
tagsOptionalCfnTag[]Metadata which can be used to manage the thing group or dynamic thing group.
thingGroupNameOptionalstringThe thing group name.
thingGroupPropertiesOptionalIResolvable | ThingGroupPropertiesPropertyThing group properties.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::ThingGroup