async def iter_search_entities(
self,
entity_types: "capo_iotthingsgraph.types.entity_types.EntityTypes",
*,
config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
filters: Optional[
"capo_iotthingsgraph.types.entity_filters.EntityFilters"
] = None,
next_token: Optional["capo_iotthingsgraph.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_iotthingsgraph.types.max_results.MaxResults"
] = None,
namespace_version: Optional["capo_iotthingsgraph.types.version.Version"] = None,
) -> (
"AsyncIterator[capo_iotthingsgraph.types.entity_description.EntityDescription]"
):
_token = next_token
while True:
_response = await self.search_entities(
entity_types,
config_overrides=config_overrides,
filters=filters,
next_token=_token,
max_results=max_results,
namespace_version=namespace_version,
)
_page = _resolve_path(_response, ("descriptions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break