interface SpendProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Budgets.Mixins.CfnBudgetPropsMixin.SpendProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbudgets/mixins#CfnBudgetPropsMixin_SpendProperty |
Java | software.amazon.awscdk.mixins.preview.services.budgets.mixins.CfnBudgetPropsMixin.SpendProperty |
Python | aws_cdk.mixins_preview.aws_budgets.mixins.CfnBudgetPropsMixin.SpendProperty |
TypeScript | @aws-cdk/mixins-preview » aws_budgets » mixins » CfnBudgetPropsMixin » 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 { mixins as budgets_mixins } from '@aws-cdk/mixins-preview/aws-budgets';
const spendProperty: budgets_mixins.CfnBudgetPropsMixin.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
(optional)
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
unit?
Type:
string
(optional)
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.

.NET
Go
Java
Python
TypeScript