Skip to content

iter_view_billing async

iter_view_billing(
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
    start: Optional[Timestamp] = None,
    end: Optional[Timestamp] = None,
    marker: Optional[PageMarker] = None,
    max_items: Optional[PageMaxItems] = None,
) -> AsyncIterator[BillingRecord]
Source code in docs_src/capo_route_53_domains/_services/async_route53_domains.py
async def iter_view_billing(
    self,
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
    start: Optional["capo_route_53_domains.types.timestamp.Timestamp"] = None,
    end: Optional["capo_route_53_domains.types.timestamp.Timestamp"] = None,
    marker: Optional["capo_route_53_domains.types.page_marker.PageMarker"] = None,
    max_items: Optional[
        "capo_route_53_domains.types.page_max_items.PageMaxItems"
    ] = None,
) -> "AsyncIterator[capo_route_53_domains.types.billing_record.BillingRecord]":
    _token = marker
    while True:
        _response = await self.view_billing(
            config_overrides=config_overrides,
            start=start,
            end=end,
            marker=_token,
            max_items=max_items,
        )
        _page = _resolve_path(_response, ("billing_records",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_page_marker",))
        if not _token:
            break