Skip to content

iter_list_things_in_thing_group

iter_list_things_in_thing_group(
    thing_group_name: ThingGroupName,
    *,
    config_overrides: Optional[IoTClientConfig] = None,
    recursive: Optional[Recursive] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[RegistryMaxResults] = None,
) -> Iterator[ThingName]
Source code in docs_src/capo_iot/_services/io_t.py
def iter_list_things_in_thing_group(
    self,
    thing_group_name: "capo_iot.types.thing_group_name.ThingGroupName",
    *,
    config_overrides: Optional[IoTClientConfig] = 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,
) -> "Iterator[capo_iot.types.thing_name.ThingName]":
    _token = next_token
    while True:
        _response = 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