Skip to content

iter_list_jobs async

iter_list_jobs(
    *,
    config_overrides: Optional[AsyncSnowballClientConfig] = None,
    max_results: Optional[ListLimit] = None,
    next_token: Optional[String] = None,
) -> AsyncIterator[JobListEntry]
Source code in docs_src/capo_snowball/_services/async_snowball.py
async def iter_list_jobs(
    self,
    *,
    config_overrides: Optional[AsyncSnowballClientConfig] = None,
    max_results: Optional["capo_snowball.types.list_limit.ListLimit"] = None,
    next_token: Optional["capo_snowball.types.string.String"] = None,
) -> "AsyncIterator[capo_snowball.types.job_list_entry.JobListEntry]":
    _token = next_token
    while True:
        _response = await self.list_jobs(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("job_list_entries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break