def iter_list_bill_estimate_commitments(
self,
bill_estimate_id: "capo_bcm_pricing_calculator.types.resource_id.ResourceId",
*,
config_overrides: Optional[BCMPricingCalculatorClientConfig] = None,
next_token: Optional[
"capo_bcm_pricing_calculator.types.next_page_token.NextPageToken"
] = None,
max_results: Optional[
"capo_bcm_pricing_calculator.types.max_results.MaxResults"
] = None,
) -> "Iterator[capo_bcm_pricing_calculator.types.bill_estimate_commitment_summary.BillEstimateCommitmentSummary]":
_token = next_token
while True:
_response = self.list_bill_estimate_commitments(
bill_estimate_id,
config_overrides=config_overrides,
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