Class: AWSCDK::QuickSight::CfnTemplate::WhatIfRangeScenarioProperty

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

Overview

Provides the forecast to meet the target for a particular date range.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_date:, start_date:, value:) ⇒ WhatIfRangeScenarioProperty

Returns a new instance of WhatIfRangeScenarioProperty.

Parameters:

  • end_date (String)

    The end date in the date range that you need the forecast results for.

  • start_date (String)

    The start date in the date range that you need the forecast results for.

  • value (Numeric)

    The target value that you want to meet for the provided date range.



30407
30408
30409
30410
30411
30412
30413
30414
# File 'quick_sight/cfn_template.rb', line 30407

def initialize(end_date:, start_date:, value:)
  @end_date = end_date
  Jsii::Type.check_type(@end_date, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endDate")
  @start_date = start_date
  Jsii::Type.check_type(@start_date, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startDate")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#end_dateString (readonly)

The end date in the date range that you need the forecast results for.



30420
30421
30422
# File 'quick_sight/cfn_template.rb', line 30420

def end_date
  @end_date
end

#start_dateString (readonly)

The start date in the date range that you need the forecast results for.



30425
30426
30427
# File 'quick_sight/cfn_template.rb', line 30425

def start_date
  @start_date
end

#valueNumeric (readonly)

Note:

Default: - 0

The target value that you want to meet for the provided date range.



30431
30432
30433
# File 'quick_sight/cfn_template.rb', line 30431

def value
  @value
end

Class Method Details

.jsii_propertiesObject



30433
30434
30435
30436
30437
30438
30439
# File 'quick_sight/cfn_template.rb', line 30433

def self.jsii_properties
  {
    :end_date => "endDate",
    :start_date => "startDate",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



30441
30442
30443
30444
30445
30446
30447
30448
30449
# File 'quick_sight/cfn_template.rb', line 30441

def to_jsii
  result = {}
  result.merge!({
    "endDate" => @end_date,
    "startDate" => @start_date,
    "value" => @value,
  })
  result.compact
end