Skip to content

iter_describe_budget_notifications_for_account

iter_describe_budget_notifications_for_account(
    account_id: AccountId,
    *,
    config_overrides: Optional[BudgetsClientConfig] = None,
    max_results: Optional[MaxResultsBudgetNotifications] = None,
    next_token: Optional[GenericString] = None,
) -> Iterator[BudgetNotificationsForAccount]
Source code in docs_src/capo_budgets/_services/budgets.py
def iter_describe_budget_notifications_for_account(
    self,
    account_id: "capo_budgets.types.account_id.AccountId",
    *,
    config_overrides: Optional[BudgetsClientConfig] = None,
    max_results: Optional[
        "capo_budgets.types.max_results_budget_notifications.MaxResultsBudgetNotifications"
    ] = None,
    next_token: Optional["capo_budgets.types.generic_string.GenericString"] = None,
) -> "Iterator[capo_budgets.types.budget_notifications_for_account.BudgetNotificationsForAccount]":
    _token = next_token
    while True:
        _response = self.describe_budget_notifications_for_account(
            account_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("budget_notifications_for_account",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break