async def iter_list_things_in_thing_group(
self,
thing_group_name: "capo_iot.types.thing_group_name.ThingGroupName",
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
recursive: Optional["capo_iot.types.recursive.Recursive"] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_iot.types.registry_max_results.RegistryMaxResults"
] = None,
) -> "AsyncIterator[capo_iot.types.thing_name.ThingName]":
_token = next_token
while True:
_response = await self.list_things_in_thing_group(
thing_group_name,
config_overrides=config_overrides,
recursive=recursive,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("things",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break