Skip to content

iter_list_associated_environments async

iter_list_associated_environments(
    collector_id: CollectorId,
    *,
    config_overrides: Optional[AsyncContinuumClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[AssociatedEnvironment]
Source code in docs_src/capo_continuum/_services/async_continuum.py
async def iter_list_associated_environments(
    self,
    collector_id: "capo_continuum.types.collector_id.CollectorId",
    *,
    config_overrides: Optional[AsyncContinuumClientConfig] = None,
    max_results: Optional["capo_continuum.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_continuum.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_continuum.types.associated_environment.AssociatedEnvironment]":
    _token = next_token
    while True:
        _response = await self.list_associated_environments(
            collector_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("associated_environments",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break