Class: AWSCDK::Budgets::CfnBudget::HistoricalOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(budget_adjustment_period:) ⇒ HistoricalOptionsProperty

Returns a new instance of HistoricalOptionsProperty.

Parameters:

  • budget_adjustment_period (Numeric)

    The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount.



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_periodNumeric (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 DAILY granularity, the maximum value is 60 .
  • For the MONTHLY granularity, the maximum value is 12 .
  • For the QUARTERLY granularity, the maximum value is 4 .
  • For the ANNUALLY granularity, the maximum value is 1 .


1115
1116
1117
# File 'budgets/cfn_budget.rb', line 1115

def budget_adjustment_period
  @budget_adjustment_period
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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