Skip to content

iter_list_configs

iter_list_configs(
    *,
    config_overrides: Optional[GroundStationClientConfig] = None,
    max_results: Optional[PaginationMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> Iterator[ConfigListItem]
Source code in docs_src/capo_groundstation/_services/ground_station.py
def iter_list_configs(
    self,
    *,
    config_overrides: Optional[GroundStationClientConfig] = None,
    max_results: Optional[
        "capo_groundstation.types.pagination_max_results.PaginationMaxResults"
    ] = None,
    next_token: Optional[
        "capo_groundstation.types.pagination_token.PaginationToken"
    ] = None,
) -> "Iterator[capo_groundstation.types.config_list_item.ConfigListItem]":
    _token = next_token
    while True:
        _response = self.list_configs(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("config_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break