async def iter_get_billing_group_cost_report(
self,
arn: "capo_billingconductor.types.billing_group_arn.BillingGroupArn",
*,
config_overrides: Optional[AsyncbillingconductorClientConfig] = None,
billing_period_range: Optional[
"capo_billingconductor.types.billing_period_range.BillingPeriodRange"
] = None,
group_by: Optional[
"capo_billingconductor.types.group_by_attributes_list.GroupByAttributesList"
] = None,
max_results: Optional[
"capo_billingconductor.types.max_billing_group_cost_report_results.MaxBillingGroupCostReportResults"
] = None,
next_token: Optional["capo_billingconductor.types.token.Token"] = None,
) -> "AsyncIterator[capo_billingconductor.types.billing_group_cost_report_result_element.BillingGroupCostReportResultElement]":
_token = next_token
while True:
_response = await self.get_billing_group_cost_report(
arn,
config_overrides=config_overrides,
billing_period_range=billing_period_range,
group_by=group_by,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("billing_group_cost_report_results",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break