def iter_list_billing_views(
self,
*,
config_overrides: Optional[BillingClientConfig] = None,
active_time_range: Optional[
"capo_billing.types.active_time_range.ActiveTimeRange"
] = None,
arns: Optional[
"capo_billing.types.billing_view_arn_list.BillingViewArnList"
] = None,
billing_view_types: Optional[
"capo_billing.types.billing_view_type_list.BillingViewTypeList"
] = None,
names: Optional["capo_billing.types.string_searches.StringSearches"] = None,
owner_account_id: Optional["capo_billing.types.account_id.AccountId"] = None,
source_account_id: Optional["capo_billing.types.account_id.AccountId"] = None,
max_results: Optional[
"capo_billing.types.billing_views_max_results.BillingViewsMaxResults"
] = None,
next_token: Optional["capo_billing.types.page_token.PageToken"] = None,
) -> (
"Iterator[capo_billing.types.billing_view_list_element.BillingViewListElement]"
):
_token = next_token
while True:
_response = self.list_billing_views(
config_overrides=config_overrides,
active_time_range=active_time_range,
arns=arns,
billing_view_types=billing_view_types,
names=names,
owner_account_id=owner_account_id,
source_account_id=source_account_id,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("billing_views",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break