Class: AWSCDK::QuickSight::CfnTemplate::ForecastScenarioProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::ForecastScenarioProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The forecast scenario of a forecast in the line chart.
Instance Attribute Summary collapse
-
#what_if_point_scenario ⇒ AWSCDK::IResolvable, ...
readonly
The what-if analysis forecast setup with the target date.
-
#what_if_range_scenario ⇒ AWSCDK::IResolvable, ...
readonly
The what-if analysis forecast setup with the date range.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(what_if_point_scenario: nil, what_if_range_scenario: nil) ⇒ ForecastScenarioProperty
constructor
A new instance of ForecastScenarioProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(what_if_point_scenario: nil, what_if_range_scenario: nil) ⇒ ForecastScenarioProperty
Returns a new instance of ForecastScenarioProperty.
11077 11078 11079 11080 11081 11082 |
# File 'quick_sight/cfn_template.rb', line 11077 def initialize(what_if_point_scenario: nil, what_if_range_scenario: nil) @what_if_point_scenario = what_if_point_scenario.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::WhatIfPointScenarioProperty.new(**what_if_point_scenario.transform_keys(&:to_sym)) : what_if_point_scenario Jsii::Type.check_type(@what_if_point_scenario, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLldoYXRJZlBvaW50U2NlbmFyaW9Qcm9wZXJ0eSJ9XX19")), "whatIfPointScenario") unless @what_if_point_scenario.nil? @what_if_range_scenario = what_if_range_scenario.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::WhatIfRangeScenarioProperty.new(**what_if_range_scenario.transform_keys(&:to_sym)) : what_if_range_scenario Jsii::Type.check_type(@what_if_range_scenario, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLldoYXRJZlJhbmdlU2NlbmFyaW9Qcm9wZXJ0eSJ9XX19")), "whatIfRangeScenario") unless @what_if_range_scenario.nil? end |
Instance Attribute Details
#what_if_point_scenario ⇒ AWSCDK::IResolvable, ... (readonly)
The what-if analysis forecast setup with the target date.
11088 11089 11090 |
# File 'quick_sight/cfn_template.rb', line 11088 def what_if_point_scenario @what_if_point_scenario end |
#what_if_range_scenario ⇒ AWSCDK::IResolvable, ... (readonly)
The what-if analysis forecast setup with the date range.
11093 11094 11095 |
# File 'quick_sight/cfn_template.rb', line 11093 def what_if_range_scenario @what_if_range_scenario end |
Class Method Details
.jsii_properties ⇒ Object
11095 11096 11097 11098 11099 11100 |
# File 'quick_sight/cfn_template.rb', line 11095 def self.jsii_properties { :what_if_point_scenario => "whatIfPointScenario", :what_if_range_scenario => "whatIfRangeScenario", } end |
Instance Method Details
#to_jsii ⇒ Object
11102 11103 11104 11105 11106 11107 11108 11109 |
# File 'quick_sight/cfn_template.rb', line 11102 def to_jsii result = {} result.merge!({ "whatIfPointScenario" => @what_if_point_scenario, "whatIfRangeScenario" => @what_if_range_scenario, }) result.compact end |