Skip to main content

things_in_thing_groups

Creates, updates, deletes, gets or lists a things_in_thing_groups resource.

Overview​

Namethings_in_thing_groups
TypeResource
Idaws.iot.things_in_thing_groups

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
thingstringThe things in the specified thing group.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_things_in_thing_groupselectthing_group_name, regionrecursive, nextToken, maxResultsLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
thing_group_namestringThe thing group name.
maxResultsintegerThe maximum number of results to return at one time.
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.
recursivebooleanWhen true, list things in this thing group and in all child groups as well.

SELECT examples​

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 }}'
;