Skip to content
v2.274.0

SpendProperty Struct ​

The amount of cost or usage that's measured for a budget.

Cost example: A Spend for 3 USD of costs has the following parameters:

  • An Amount of 3
  • A Unit of USD

Usage example: A Spend for 3 GB of S3 usage has the following parameters:

  • An Amount of 3
  • A Unit of GB

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_budgets as budgets } from 'aws-cdk-lib';
const spendProperty: budgets.CfnBudget.SpendProperty = {
  amount: 123,
  unit: 'unit',
};

Properties ​

amountnumberamountint | floatamountNumberAmountdoubleAmount*float64required#
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
unitstringunitstrunitStringUnitstringUnit*stringrequired#
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.