Class: AWSCDK::QuickSight::CfnAnalysis::ForecastComputationProperty

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

Overview

The forecast computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, custom_seasonality_value: nil, lower_boundary: nil, name: nil, periods_backward: nil, periods_forward: nil, prediction_interval: nil, seasonality: nil, time: nil, upper_boundary: nil, value: nil) ⇒ ForecastComputationProperty

Returns a new instance of ForecastComputationProperty.

Parameters:

  • computation_id (String)

    The ID for a computation.

  • custom_seasonality_value (Numeric, nil) (defaults to: nil)

    The custom seasonality value setup of a forecast computation.

  • lower_boundary (Numeric, nil) (defaults to: nil)

    The lower boundary setup of a forecast computation.

  • name (String, nil) (defaults to: nil)

    The name of a computation.

  • periods_backward (Numeric, nil) (defaults to: nil)

    The periods backward setup of a forecast computation.

  • periods_forward (Numeric, nil) (defaults to: nil)

    The periods forward setup of a forecast computation.

  • prediction_interval (Numeric, nil) (defaults to: nil)

    The prediction interval setup of a forecast computation.

  • seasonality (String, nil) (defaults to: nil)

    The seasonality setup of a forecast computation. Choose one of the following options:.

  • time (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::DimensionFieldProperty, nil) (defaults to: nil)

    The time field that is used in a computation.

  • upper_boundary (Numeric, nil) (defaults to: nil)

    The upper boundary setup of a forecast computation.

  • value (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::MeasureFieldProperty, nil) (defaults to: nil)

    The value field that is used in a computation.



11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
# File 'quick_sight/cfn_analysis.rb', line 11099

def initialize(computation_id:, custom_seasonality_value: nil, lower_boundary: nil, name: nil, periods_backward: nil, periods_forward: nil, prediction_interval: nil, seasonality: nil, time: nil, upper_boundary: nil, value: nil)
  @computation_id = computation_id
  Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId")
  @custom_seasonality_value = custom_seasonality_value
  Jsii::Type.check_type(@custom_seasonality_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "customSeasonalityValue") unless @custom_seasonality_value.nil?
  @lower_boundary = lower_boundary
  Jsii::Type.check_type(@lower_boundary, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lowerBoundary") unless @lower_boundary.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @periods_backward = periods_backward
  Jsii::Type.check_type(@periods_backward, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "periodsBackward") unless @periods_backward.nil?
  @periods_forward = periods_forward
  Jsii::Type.check_type(@periods_forward, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "periodsForward") unless @periods_forward.nil?
  @prediction_interval = prediction_interval
  Jsii::Type.check_type(@prediction_interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "predictionInterval") unless @prediction_interval.nil?
  @seasonality = seasonality
  Jsii::Type.check_type(@seasonality, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "seasonality") unless @seasonality.nil?
  @time = time.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time
  Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "time") unless @time.nil?
  @upper_boundary = upper_boundary
  Jsii::Type.check_type(@upper_boundary, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "upperBoundary") unless @upper_boundary.nil?
  @value = value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::MeasureFieldProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "value") unless @value.nil?
end

Instance Attribute Details

#computation_idString (readonly)

The ID for a computation.



11128
11129
11130
# File 'quick_sight/cfn_analysis.rb', line 11128

def computation_id
  @computation_id
end

#custom_seasonality_valueNumeric? (readonly)

The custom seasonality value setup of a forecast computation.



11133
11134
11135
# File 'quick_sight/cfn_analysis.rb', line 11133

def custom_seasonality_value
  @custom_seasonality_value
end

#lower_boundaryNumeric? (readonly)

The lower boundary setup of a forecast computation.



11138
11139
11140
# File 'quick_sight/cfn_analysis.rb', line 11138

def lower_boundary
  @lower_boundary
end

#nameString? (readonly)

The name of a computation.



11143
11144
11145
# File 'quick_sight/cfn_analysis.rb', line 11143

def name
  @name
end

#periods_backwardNumeric? (readonly)

The periods backward setup of a forecast computation.



11148
11149
11150
# File 'quick_sight/cfn_analysis.rb', line 11148

def periods_backward
  @periods_backward
end

#periods_forwardNumeric? (readonly)

The periods forward setup of a forecast computation.



11153
11154
11155
# File 'quick_sight/cfn_analysis.rb', line 11153

def periods_forward
  @periods_forward
end

#prediction_intervalNumeric? (readonly)

The prediction interval setup of a forecast computation.



11158
11159
11160
# File 'quick_sight/cfn_analysis.rb', line 11158

def prediction_interval
  @prediction_interval
end

#seasonalityString? (readonly)

The seasonality setup of a forecast computation. Choose one of the following options:.

  • AUTOMATIC
  • CUSTOM : Checks the custom seasonality value.


11166
11167
11168
# File 'quick_sight/cfn_analysis.rb', line 11166

def seasonality
  @seasonality
end

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

The time field that is used in a computation.



11171
11172
11173
# File 'quick_sight/cfn_analysis.rb', line 11171

def time
  @time
end

#upper_boundaryNumeric? (readonly)

The upper boundary setup of a forecast computation.



11176
11177
11178
# File 'quick_sight/cfn_analysis.rb', line 11176

def upper_boundary
  @upper_boundary
end

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

The value field that is used in a computation.



11181
11182
11183
# File 'quick_sight/cfn_analysis.rb', line 11181

def value
  @value
end

Class Method Details

.jsii_propertiesObject



11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
# File 'quick_sight/cfn_analysis.rb', line 11183

def self.jsii_properties
  {
    :computation_id => "computationId",
    :custom_seasonality_value => "customSeasonalityValue",
    :lower_boundary => "lowerBoundary",
    :name => "name",
    :periods_backward => "periodsBackward",
    :periods_forward => "periodsForward",
    :prediction_interval => "predictionInterval",
    :seasonality => "seasonality",
    :time => "time",
    :upper_boundary => "upperBoundary",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
# File 'quick_sight/cfn_analysis.rb', line 11199

def to_jsii
  result = {}
  result.merge!({
    "computationId" => @computation_id,
    "customSeasonalityValue" => @custom_seasonality_value,
    "lowerBoundary" => @lower_boundary,
    "name" => @name,
    "periodsBackward" => @periods_backward,
    "periodsForward" => @periods_forward,
    "predictionInterval" => @prediction_interval,
    "seasonality" => @seasonality,
    "time" => @time,
    "upperBoundary" => @upper_boundary,
    "value" => @value,
  })
  result.compact
end