Skip to content

iter_list_mission_profiles async

iter_list_mission_profiles(
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
    max_results: Optional[PaginationMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[MissionProfileListItem]
Source code in docs_src/capo_groundstation/_services/async_ground_station.py
async def iter_list_mission_profiles(
    self,
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
    max_results: Optional[
        "capo_groundstation.types.pagination_max_results.PaginationMaxResults"
    ] = None,
    next_token: Optional[
        "capo_groundstation.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_groundstation.types.mission_profile_list_item.MissionProfileListItem]":
    _token = next_token
    while True:
        _response = await self.list_mission_profiles(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("mission_profile_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break