Skip to main content

AWS Budget

A Wing library for working with AWS Budgets

Prerequisites

Installation

npm i @winglibs/budget

Usage

⚠️ The budget refers to the entire account and not just for the current project!

Add your budget alert to the code:

bring budget;

new budget.Alert(
name: "Test",
amount: 10,
emailAddresses: ["your@email.com"],
);

Note: ​The budget amount is in USD.

You get an alert when your monthly payment goes over your budget.

TODO

  • Set a budget alert only for resources with certain tags.
  • Allow to perform automatic actions when the budget runs out.

License

This library is licensed under the MIT License.

API Reference

Table of Contents

Alert (preflight class)

No description

Constructor

new(props: AlertProps): Alert

Properties

No properties

Methods

No methods

AlertTfAws (preflight class)

No description

Constructor

new(props: AlertProps): AlertTfAws

Properties

No properties

Methods

No methods

AlertSim (preflight class)

No description

Constructor

new(props: AlertProps): AlertSim

Properties

No properties

Methods

No methods

Util (preflight class)

No description

Constructor

new(): Util

Properties

No properties

Methods

SignatureDescription
static timeUnitToStr(timeUnit: TimeUnit): strNo description

IAlert (interface)

No description

Properties

No properties

Methods

No methods

AlertProps (struct)

No description

Properties

NameTypeDescription
amountnumNo description
emailAddresses
Array
No description
namestrNo description
timeUnitTimeUnit?No description

TimeUnit (enum)

No description

Values

NameDescription
DAILYNo description
MONTHLYNo description
ANNUALLYNo description