Class: AWSCDK::QuickSight::CfnAnalysis::GrowthRateComputationProperty

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

Overview

The growth rate computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, name: nil, period_size: nil, time: nil, value: nil) ⇒ GrowthRateComputationProperty

Returns a new instance of GrowthRateComputationProperty.

Parameters:



14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
# File 'quick_sight/cfn_analysis.rb', line 14881

def initialize(computation_id:, name: nil, period_size: nil, time: nil, value: nil)
  @computation_id = computation_id
  Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @period_size = period_size
  Jsii::Type.check_type(@period_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "periodSize") unless @period_size.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?
  @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.



14898
14899
14900
# File 'quick_sight/cfn_analysis.rb', line 14898

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



14903
14904
14905
# File 'quick_sight/cfn_analysis.rb', line 14903

def name
  @name
end

#period_sizeNumeric? (readonly)

Note:

Default: - 0

The period size setup of a growth rate computation.



14909
14910
14911
# File 'quick_sight/cfn_analysis.rb', line 14909

def period_size
  @period_size
end

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

The time field that is used in a computation.



14914
14915
14916
# File 'quick_sight/cfn_analysis.rb', line 14914

def time
  @time
end

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

The value field that is used in a computation.



14919
14920
14921
# File 'quick_sight/cfn_analysis.rb', line 14919

def value
  @value
end

Class Method Details

.jsii_propertiesObject



14921
14922
14923
14924
14925
14926
14927
14928
14929
# File 'quick_sight/cfn_analysis.rb', line 14921

def self.jsii_properties
  {
    :computation_id => "computationId",
    :name => "name",
    :period_size => "periodSize",
    :time => "time",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
# File 'quick_sight/cfn_analysis.rb', line 14931

def to_jsii
  result = {}
  result.merge!({
    "computationId" => @computation_id,
    "name" => @name,
    "periodSize" => @period_size,
    "time" => @time,
    "value" => @value,
  })
  result.compact
end