Class: AWSCDK::QuickSight::CfnDashboard::ForecastScenarioProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

The forecast scenario of a forecast in the line chart.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(what_if_point_scenario: nil, what_if_range_scenario: nil) ⇒ ForecastScenarioProperty

Returns a new instance of ForecastScenarioProperty.

Parameters:



12022
12023
12024
12025
12026
12027
# File 'quick_sight/cfn_dashboard.rb', line 12022

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::CfnDashboard::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5XaGF0SWZQb2ludFNjZW5hcmlvUHJvcGVydHkifV19fQ==")), "whatIfPointScenario") unless @what_if_point_scenario.nil?
  @what_if_range_scenario = what_if_range_scenario.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5XaGF0SWZSYW5nZVNjZW5hcmlvUHJvcGVydHkifV19fQ==")), "whatIfRangeScenario") unless @what_if_range_scenario.nil?
end

Instance Attribute Details

#what_if_point_scenarioAWSCDK::IResolvable, ... (readonly)

The what-if analysis forecast setup with the target date.



12033
12034
12035
# File 'quick_sight/cfn_dashboard.rb', line 12033

def what_if_point_scenario
  @what_if_point_scenario
end

#what_if_range_scenarioAWSCDK::IResolvable, ... (readonly)

The what-if analysis forecast setup with the date range.



12038
12039
12040
# File 'quick_sight/cfn_dashboard.rb', line 12038

def what_if_range_scenario
  @what_if_range_scenario
end

Class Method Details

.jsii_propertiesObject



12040
12041
12042
12043
12044
12045
# File 'quick_sight/cfn_dashboard.rb', line 12040

def self.jsii_properties
  {
    :what_if_point_scenario => "whatIfPointScenario",
    :what_if_range_scenario => "whatIfRangeScenario",
  }
end

Instance Method Details

#to_jsiiObject



12047
12048
12049
12050
12051
12052
12053
12054
# File 'quick_sight/cfn_dashboard.rb', line 12047

def to_jsii
  result = {}
  result.merge!({
    "whatIfPointScenario" => @what_if_point_scenario,
    "whatIfRangeScenario" => @what_if_range_scenario,
  })
  result.compact
end