Skip to content

iter_list_entities async

iter_list_entities(
    workspace_id: Id,
    *,
    config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
    filters: Optional[ListEntitiesFilters] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ListEntitiesResponse]
Source code in docs_src/capo_iottwinmaker/_services/async_io_t_twin_maker.py
async def iter_list_entities(
    self,
    workspace_id: "capo_iottwinmaker.types.id.Id",
    *,
    config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
    filters: Optional[
        "capo_iottwinmaker.types.list_entities_filters.ListEntitiesFilters"
    ] = None,
    max_results: Optional["capo_iottwinmaker.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iottwinmaker.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_iottwinmaker.types.list_entities_response.ListEntitiesResponse]":
    _token = next_token
    while True:
        _response = await self.list_entities(
            workspace_id,
            config_overrides=config_overrides,
            filters=filters,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break