aws-cdk-lib.aws_budgets.CfnBudget.SpendProperty

interface SpendProperty

LanguageType name
.NETAmazon.CDK.AWS.Budgets.CfnBudget.SpendProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbudgets#CfnBudget_SpendProperty
Javasoftware.amazon.awscdk.services.budgets.CfnBudget.SpendProperty
Pythonaws_cdk.aws_budgets.CfnBudget.SpendProperty
TypeScript aws-cdk-lib » aws_budgets » CfnBudget » SpendProperty

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

For example, a Spend for 3 GB of S3 usage has the following parameters:

  • An Amount of 3
  • A unit of GB

Example

// 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

NameTypeDescription
amountnumberThe cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
unitstringThe unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.

amount

Type: number

The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.


unit

Type: string

The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.