Skip to content

describe_budget_notifications_for_account

describe_budget_notifications_for_account(
    account_id: AccountId,
    *,
    config_overrides: Optional[BudgetsClientConfig] = None,
    max_results: Optional[MaxResultsBudgetNotifications] = None,
    next_token: Optional[GenericString] = None,
) -> DescribeBudgetNotificationsForAccountResponse

Lists the budget names and notifications that are associated with an account.

Parameters:

Raises:

Source code in docs_src/capo_budgets/_services/budgets.py
def 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,
) -> "capo_budgets.types.describe_budget_notifications_for_account_response.DescribeBudgetNotificationsForAccountResponse":
    """<p> Lists the budget names and notifications that are associated with an account. </p>

    Args:
        max_results: <p> An integer that represents how many budgets a paginated response contains. The default is 50. </p>

    Raises:
        capo_budgets.errors.access_denied_exception.AccessDeniedException: <p>You are not authorized to use this operation with the given parameters.</p>
        capo_budgets.errors.expired_next_token_exception.ExpiredNextTokenException: <p>The pagination token expired.</p>
        capo_budgets.errors.internal_error_exception.InternalErrorException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
        capo_budgets.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The pagination token is invalid.</p>
        capo_budgets.errors.invalid_parameter_exception.InvalidParameterException: <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
        capo_budgets.errors.not_found_exception.NotFoundException: <p>We can’t locate the resource that you specified.</p>
        capo_budgets.errors.throttling_exception.ThrottlingException: <p>The number of API requests has exceeded the maximum allowed API request throttling limit for the account.</p>
        capo_budgets.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_budgets.types.describe_budget_notifications_for_account_request.DescribeBudgetNotificationsForAccountRequest]",
    ) -> OperationResponse[
        "capo_budgets.types.describe_budget_notifications_for_account_response.DescribeBudgetNotificationsForAccountResponse"
    ]:
        import capo_budgets._operations.aws_budget_service_gateway.describe_budget_notifications_for_account

        output, http_response = (
            capo_budgets._operations.aws_budget_service_gateway.describe_budget_notifications_for_account.describe_budget_notifications_for_account(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeBudgetNotificationsForAccount")
    )
    input_: capo_budgets.types.describe_budget_notifications_for_account_request.DescribeBudgetNotificationsForAccountRequest = {
        "account_id": account_id
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output