async def iter_list_workload_estimate_usage(
self,
workload_estimate_id: "capo_bcm_pricing_calculator.types.resource_id.ResourceId",
*,
config_overrides: Optional[AsyncBCMPricingCalculatorClientConfig] = None,
filters: Optional[
"capo_bcm_pricing_calculator.types.list_usage_filters.ListUsageFilters"
] = None,
next_token: Optional[
"capo_bcm_pricing_calculator.types.next_page_token.NextPageToken"
] = None,
max_results: Optional[
"capo_bcm_pricing_calculator.types.workload_estimate_usage_max_results.WorkloadEstimateUsageMaxResults"
] = None,
) -> "AsyncIterator[capo_bcm_pricing_calculator.types.workload_estimate_usage_item.WorkloadEstimateUsageItem]":
_token = next_token
while True:
_response = await self.list_workload_estimate_usage(
workload_estimate_id,
config_overrides=config_overrides,
filters=filters,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break