interface SpendProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Budgets.CfnBudget.SpendProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbudgets#CfnBudget_SpendProperty |
Java | software.amazon.awscdk.services.budgets.CfnBudget.SpendProperty |
Python | aws_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.
Cost example: A Spend for 3 USD of costs has the following parameters:
- An
Amountof3 - A
UnitofUSD
Usage example: A Spend for 3 GB of S3 usage has the following parameters:
- An
Amountof3 - A
UnitofGB
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
| Name | Type | Description |
|---|---|---|
| amount | number | The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold. |
| unit | string | The unit of measurement that's used for the budget forecast, actual spend, or budget threshold. |
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.

.NET
Go
Java
Python
TypeScript