Class: AWSCDK::Budgets::CfnBudget::AutoAdjustDataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudget::AutoAdjustDataProperty
- Defined in:
- budgets/cfn_budget.rb
Overview
Determine the budget amount for an auto-adjusting budget.
Instance Attribute Summary collapse
-
#auto_adjust_type ⇒ String
readonly
The string that defines whether your budget auto-adjusts based on historical or forecasted data.
-
#historical_options ⇒ AWSCDK::IResolvable, ...
readonly
The parameters that define or describe the historical data that your auto-adjusting budget is based on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_adjust_type:, historical_options: nil) ⇒ AutoAdjustDataProperty
constructor
A new instance of AutoAdjustDataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_adjust_type:, historical_options: nil) ⇒ AutoAdjustDataProperty
Returns a new instance of AutoAdjustDataProperty.
528 529 530 531 532 533 |
# File 'budgets/cfn_budget.rb', line 528 def initialize(auto_adjust_type:, historical_options: nil) @auto_adjust_type = auto_adjust_type Jsii::Type.check_type(@auto_adjust_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "autoAdjustType") @historical_options = .is_a?(Hash) ? ::AWSCDK::Budgets::CfnBudget::HistoricalOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@historical_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19idWRnZXRzLkNmbkJ1ZGdldC5IaXN0b3JpY2FsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "historicalOptions") unless @historical_options.nil? end |
Instance Attribute Details
#auto_adjust_type ⇒ String (readonly)
The string that defines whether your budget auto-adjusts based on historical or forecasted data.
539 540 541 |
# File 'budgets/cfn_budget.rb', line 539 def auto_adjust_type @auto_adjust_type end |
#historical_options ⇒ AWSCDK::IResolvable, ... (readonly)
The parameters that define or describe the historical data that your auto-adjusting budget is based on.
544 545 546 |
# File 'budgets/cfn_budget.rb', line 544 def @historical_options end |
Class Method Details
.jsii_properties ⇒ Object
546 547 548 549 550 551 |
# File 'budgets/cfn_budget.rb', line 546 def self.jsii_properties { :auto_adjust_type => "autoAdjustType", :historical_options => "historicalOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
553 554 555 556 557 558 559 560 |
# File 'budgets/cfn_budget.rb', line 553 def to_jsii result = {} result.merge!({ "autoAdjustType" => @auto_adjust_type, "historicalOptions" => @historical_options, }) result.compact end |