Skip to content

DescribeBudgetPerformanceHistory

Source: src/AWS/Budgets/DescribeBudgetPerformanceHistory.ts

Runtime binding for budgets:ViewBudget via DescribeBudgetPerformanceHistory.

Bind this operation to a Budget to read its budgeted-vs-actual amounts for past periods — e.g. to render a spend trend or detect consistently blown budgets. Provide the implementation with Effect.provide(AWS.Budgets.DescribeBudgetPerformanceHistoryHttp).

// init — bind the operation to the budget
const history = yield* AWS.Budgets.DescribeBudgetPerformanceHistory(budget);
// runtime
const result = yield* history();
const periods =
result.BudgetPerformanceHistory?.BudgetedAndActualAmountsList ?? [];