Skip to content

ExecuteBudgetAction

Source: src/AWS/Budgets/ExecuteBudgetAction.ts

Runtime binding for budgets:ExecuteBudgetAction.

Bind this operation to a BudgetAction to approve, retry, reverse, or reset it from inside a function runtime — e.g. an approval workflow that approves a pending kill-switch, or an automated recovery that reverses it at the start of a new period. Provide the implementation with Effect.provide(AWS.Budgets.ExecuteBudgetActionHttp).

Approve a Pending Action

// init — bind the operation to the action
const execute = yield* AWS.Budgets.ExecuteBudgetAction(action);
// runtime
yield* execute({ ExecutionType: "APPROVE_BUDGET_ACTION" });

Reverse an Executed Action

yield* execute({ ExecutionType: "REVERSE_BUDGET_ACTION" });