Skip to content

iter_describe_notifications_for_budget async

iter_describe_notifications_for_budget(
    account_id: AccountId,
    budget_name: BudgetName,
    *,
    config_overrides: Optional[AsyncBudgetsClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[GenericString] = None,
) -> AsyncIterator[Notification]
Source code in docs_src/capo_budgets/_services/async_budgets.py
async def iter_describe_notifications_for_budget(
    self,
    account_id: "capo_budgets.types.account_id.AccountId",
    budget_name: "capo_budgets.types.budget_name.BudgetName",
    *,
    config_overrides: Optional[AsyncBudgetsClientConfig] = None,
    max_results: Optional["capo_budgets.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_budgets.types.generic_string.GenericString"] = None,
) -> "AsyncIterator[capo_budgets.types.notification.Notification]":
    _token = next_token
    while True:
        _response = await self.describe_notifications_for_budget(
            account_id,
            budget_name,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("notifications",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break