Skip to content

iter_list_proxy_versions async

iter_list_proxy_versions(
    type: ProxyType,
    *,
    config_overrides: Optional[AsyncELBProxyClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ProxyVersionSummary]
Source code in docs_src/capo_elb_proxy/_services/async_elb_proxy.py
async def iter_list_proxy_versions(
    self,
    type: "capo_elb_proxy.types.proxy_type.ProxyType",
    *,
    config_overrides: Optional[AsyncELBProxyClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_elb_proxy.types.next_token.NextToken"] = None,
) -> (
    "AsyncIterator[capo_elb_proxy.types.proxy_version_summary.ProxyVersionSummary]"
):
    _token = next_token
    while True:
        _response = await self.list_proxy_versions(
            type,
            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