Skip to content

iter_list_things

iter_list_things(
    *,
    config_overrides: Optional[IoTClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[RegistryMaxResults] = None,
    attribute_name: Optional[AttributeName] = None,
    attribute_value: Optional[AttributeValue] = None,
    thing_type_name: Optional[ThingTypeName] = None,
    use_prefix_attribute_value: Optional[usePrefixAttributeValue] = None,
) -> Iterator[ThingAttribute]
Source code in docs_src/capo_iot/_services/io_t.py
def iter_list_things(
    self,
    *,
    config_overrides: Optional[IoTClientConfig] = None,
    next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_iot.types.registry_max_results.RegistryMaxResults"
    ] = None,
    attribute_name: Optional["capo_iot.types.attribute_name.AttributeName"] = None,
    attribute_value: Optional[
        "capo_iot.types.attribute_value.AttributeValue"
    ] = None,
    thing_type_name: Optional[
        "capo_iot.types.thing_type_name.ThingTypeName"
    ] = None,
    use_prefix_attribute_value: Optional[
        "capo_iot.types.use_prefix_attribute_value.usePrefixAttributeValue"
    ] = None,
) -> "Iterator[capo_iot.types.thing_attribute.ThingAttribute]":
    _token = next_token
    while True:
        _response = self.list_things(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            attribute_name=attribute_name,
            attribute_value=attribute_value,
            thing_type_name=thing_type_name,
            use_prefix_attribute_value=use_prefix_attribute_value,
        )
        _page = _resolve_path(_response, ("things",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break