Interface CfnBudget.SpendProperty
- All Superinterfaces:
 software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
 CfnBudget.SpendProperty.Jsii$Proxy
- Enclosing class:
 - CfnBudget
 
@Stability(Stable)
public static interface CfnBudget.SpendProperty
extends software.amazon.jsii.JsiiSerializable
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 
Amountof3 - A 
unitofGB 
Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.budgets.*;
 SpendProperty spendProperty = SpendProperty.builder()
         .amount(123)
         .unit("unit")
         .build();
 - 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBudget.SpendPropertystatic final classAn implementation forCfnBudget.SpendProperty - 
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Method Details
- 
getAmount
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold. - 
getUnit
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP. - 
builder
- Returns:
 - a 
CfnBudget.SpendProperty.BuilderofCfnBudget.SpendProperty 
 
 -