Class: AWSCDK::Budgets::CfnBudget::AutoAdjustDataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
budgets/cfn_budget.rb

Overview

Determine the budget amount for an auto-adjusting budget.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_adjust_type:, historical_options: nil) ⇒ AutoAdjustDataProperty

Returns a new instance of AutoAdjustDataProperty.

Parameters:



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 = historical_options.is_a?(Hash) ? ::AWSCDK::Budgets::CfnBudget::HistoricalOptionsProperty.new(**historical_options.transform_keys(&:to_sym)) : historical_options
  Jsii::Type.check_type(@historical_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19idWRnZXRzLkNmbkJ1ZGdldC5IaXN0b3JpY2FsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "historicalOptions") unless @historical_options.nil?
end

Instance Attribute Details

#auto_adjust_typeString (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_optionsAWSCDK::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
  @historical_options
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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