def iter_list_cidr_blocks(
self,
collection_id: "capo_route_53.types.uuid.UUID",
*,
config_overrides: Optional[Route53ClientConfig] = None,
location_name: Optional[
"capo_route_53.types.cidr_location_name_default_not_allowed.CidrLocationNameDefaultNotAllowed"
] = None,
next_token: Optional[
"capo_route_53.types.pagination_token.PaginationToken"
] = None,
max_results: Optional[int] = None,
) -> "Iterator[capo_route_53.types.cidr_block_summary.CidrBlockSummary]":
_token = next_token
while True:
_response = self.list_cidr_blocks(
collection_id,
config_overrides=config_overrides,
location_name=location_name,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("cidr_blocks",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break