Class: AWSCDK::Budgets::CfnBudget::HistoricalOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudget::HistoricalOptionsProperty
- Defined in:
- budgets/cfn_budget.rb
Overview
The parameters that define or describe the historical data that your auto-adjusting budget is based on.
Instance Attribute Summary collapse
-
#budget_adjustment_period ⇒ Numeric
readonly
The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(budget_adjustment_period:) ⇒ HistoricalOptionsProperty
constructor
A new instance of HistoricalOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(budget_adjustment_period:) ⇒ HistoricalOptionsProperty
Returns a new instance of HistoricalOptionsProperty.
1099 1100 1101 1102 |
# File 'budgets/cfn_budget.rb', line 1099 def initialize(budget_adjustment_period:) @budget_adjustment_period = budget_adjustment_period Jsii::Type.check_type(@budget_adjustment_period, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "budgetAdjustmentPeriod") end |
Instance Attribute Details
#budget_adjustment_period ⇒ Numeric (readonly)
The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount.
The maximum value depends on the TimeUnit granularity of the budget:
- For the
DAILYgranularity, the maximum value is60. - For the
MONTHLYgranularity, the maximum value is12. - For the
QUARTERLYgranularity, the maximum value is4. - For the
ANNUALLYgranularity, the maximum value is1.
1115 1116 1117 |
# File 'budgets/cfn_budget.rb', line 1115 def budget_adjustment_period @budget_adjustment_period end |
Class Method Details
.jsii_properties ⇒ Object
1117 1118 1119 1120 1121 |
# File 'budgets/cfn_budget.rb', line 1117 def self.jsii_properties { :budget_adjustment_period => "budgetAdjustmentPeriod", } end |
Instance Method Details
#to_jsii ⇒ Object
1123 1124 1125 1126 1127 1128 1129 |
# File 'budgets/cfn_budget.rb', line 1123 def to_jsii result = {} result.merge!({ "budgetAdjustmentPeriod" => @budget_adjustment_period, }) result.compact end |