Skip to content

iter_list_prices async

iter_list_prices(
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
    tld: Optional[TldName] = None,
    marker: Optional[PageMarker] = None,
    max_items: Optional[ListPricesPageMaxItems] = None,
) -> AsyncIterator[DomainPrice]
Source code in docs_src/capo_route_53_domains/_services/async_route53_domains.py
async def iter_list_prices(
    self,
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
    tld: Optional["capo_route_53_domains.types.tld_name.TldName"] = None,
    marker: Optional["capo_route_53_domains.types.page_marker.PageMarker"] = None,
    max_items: Optional[
        "capo_route_53_domains.types.list_prices_page_max_items.ListPricesPageMaxItems"
    ] = None,
) -> "AsyncIterator[capo_route_53_domains.types.domain_price.DomainPrice]":
    _token = marker
    while True:
        _response = await self.list_prices(
            config_overrides=config_overrides,
            tld=tld,
            marker=_token,
            max_items=max_items,
        )
        _page = _resolve_path(_response, ("prices",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_page_marker",))
        if not _token:
            break