Skip to content

iter_list_hosts async

iter_list_hosts(
    *,
    config_overrides: Optional[AsyncCodeStarconnectionsClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ListHostsOutput]
Source code in docs_src/capo_codestar_connections/_services/async_code_starconnections.py
async def iter_list_hosts(
    self,
    *,
    config_overrides: Optional[AsyncCodeStarconnectionsClientConfig] = None,
    max_results: Optional[
        "capo_codestar_connections.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_codestar_connections.types.next_token.NextToken"
    ] = None,
) -> "AsyncIterator[capo_codestar_connections.types.list_hosts_output.ListHostsOutput]":
    _token = next_token
    while True:
        _response = await self.list_hosts(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break