Skip to content

iter_list_landing_zones async

iter_list_landing_zones(
    *,
    config_overrides: Optional[AsyncControlTowerClientConfig] = None,
    next_token: Optional[str] = None,
    max_results: Optional[ListLandingZonesMaxResults] = None,
) -> AsyncIterator[LandingZoneSummary]
Source code in docs_src/capo_controltower/_services/async_control_tower.py
async def iter_list_landing_zones(
    self,
    *,
    config_overrides: Optional[AsyncControlTowerClientConfig] = None,
    next_token: Optional[str] = None,
    max_results: Optional[
        "capo_controltower.types.list_landing_zones_max_results.ListLandingZonesMaxResults"
    ] = None,
) -> (
    "AsyncIterator[capo_controltower.types.landing_zone_summary.LandingZoneSummary]"
):
    _token = next_token
    while True:
        _response = await self.list_landing_zones(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("landing_zones",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break