Skip to content

iter_list_contractual_investment_attestations async

iter_list_contractual_investment_attestations(
    contract_arn: ArnString,
    *,
    config_overrides: Optional[AsyncBillingClientConfig] = None,
    investment_summary_id: Optional[IdentifierString] = None,
    next_token: Optional[PageToken] = None,
    max_results: Optional[int] = None,
) -> AsyncIterator[InvestmentAttestation]
Source code in docs_src/capo_billing/_services/async_billing.py
async def iter_list_contractual_investment_attestations(
    self,
    contract_arn: "capo_billing.types.arn_string.ArnString",
    *,
    config_overrides: Optional[AsyncBillingClientConfig] = None,
    investment_summary_id: Optional[
        "capo_billing.types.identifier_string.IdentifierString"
    ] = None,
    next_token: Optional["capo_billing.types.page_token.PageToken"] = None,
    max_results: Optional[int] = None,
) -> (
    "AsyncIterator[capo_billing.types.investment_attestation.InvestmentAttestation]"
):
    _token = next_token
    while True:
        _response = await self.list_contractual_investment_attestations(
            contract_arn,
            config_overrides=config_overrides,
            investment_summary_id=investment_summary_id,
            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