Class: AWSCDK::QuickSight::CfnAnalysis::ForecastScenarioProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::ForecastScenarioProperty
- Defined in:
- quick_sight/cfn_analysis.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.
11269 11270 11271 11272 11273 11274 |
# File 'quick_sight/cfn_analysis.rb', line 11269 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::CfnAnalysis::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLldoYXRJZlBvaW50U2NlbmFyaW9Qcm9wZXJ0eSJ9XX19")), "whatIfPointScenario") unless @what_if_point_scenario.nil? @what_if_range_scenario = what_if_range_scenario.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLldoYXRJZlJhbmdlU2NlbmFyaW9Qcm9wZXJ0eSJ9XX19")), "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.
11280 11281 11282 |
# File 'quick_sight/cfn_analysis.rb', line 11280 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.
11285 11286 11287 |
# File 'quick_sight/cfn_analysis.rb', line 11285 def what_if_range_scenario @what_if_range_scenario end |
Class Method Details
.jsii_properties ⇒ Object
11287 11288 11289 11290 11291 11292 |
# File 'quick_sight/cfn_analysis.rb', line 11287 def self.jsii_properties { :what_if_point_scenario => "whatIfPointScenario", :what_if_range_scenario => "whatIfRangeScenario", } end |
Instance Method Details
#to_jsii ⇒ Object
11294 11295 11296 11297 11298 11299 11300 11301 |
# File 'quick_sight/cfn_analysis.rb', line 11294 def to_jsii result = {} result.merge!({ "whatIfPointScenario" => @what_if_point_scenario, "whatIfRangeScenario" => @what_if_range_scenario, }) result.compact end |