Skip to content

iter_list_cidr_locations async

iter_list_cidr_locations(
    collection_id: UUID,
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[int] = None,
) -> AsyncIterator[LocationSummary]
Source code in docs_src/capo_route_53/_services/async_route53.py
async def iter_list_cidr_locations(
    self,
    collection_id: "capo_route_53.types.uuid.UUID",
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
    next_token: Optional[
        "capo_route_53.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional[int] = None,
) -> "AsyncIterator[capo_route_53.types.location_summary.LocationSummary]":
    _token = next_token
    while True:
        _response = await self.list_cidr_locations(
            collection_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("cidr_locations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break