Skip to content

iter_list_sinks async

iter_list_sinks(
    *,
    config_overrides: Optional[AsyncOAMClientConfig] = None,
    max_results: Optional[ListSinksMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ListSinksItem]
Source code in docs_src/capo_oam/_services/async_oam.py
async def iter_list_sinks(
    self,
    *,
    config_overrides: Optional[AsyncOAMClientConfig] = None,
    max_results: Optional[
        "capo_oam.types.list_sinks_max_results.ListSinksMaxResults"
    ] = None,
    next_token: Optional["capo_oam.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_oam.types.list_sinks_item.ListSinksItem]":
    _token = next_token
    while True:
        _response = await self.list_sinks(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break