things_in_thing_groups
Creates, updates, deletes, gets or lists a things_in_thing_groups resource.
Overview
| Name | things_in_thing_groups |
| Type | Resource |
| Id | aws.iot.things_in_thing_groups |
Fields
The following fields are returned by SELECT queries:
- list_things_in_thing_group
| Name | Datatype | Description |
|---|---|---|
thing | string | The things in the specified thing group. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_things_in_thing_group | select | thing_group_name, region | recursive, nextToken, maxResults | Lists the things in the specified group. Requires permission to access the ListThingsInThingGroup action. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
thing_group_name | string | The thing group name. |
maxResults | integer | The maximum number of results to return at one time. |
nextToken | string | To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. |
recursive | boolean | When true, list things in this thing group and in all child groups as well. |
SELECT examples
- list_things_in_thing_group
Lists the things in the specified group. Requires permission to access the ListThingsInThingGroup action.
SELECT
thing
FROM aws.iot.things_in_thing_groups
WHERE thing_group_name = '{{ thing_group_name }}' -- required
AND region = '{{ region }}' -- required
AND recursive = '{{ recursive }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;