Class: AWSCDK::QuickSight::CfnAnalysis::PeriodOverPeriodComputationProperty

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

Overview

The period over period computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PeriodOverPeriodComputationProperty.

Parameters:



21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
# File 'quick_sight/cfn_analysis.rb', line 21010

def initialize(computation_id:, name: 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?
  @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.



21025
21026
21027
# File 'quick_sight/cfn_analysis.rb', line 21025

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



21030
21031
21032
# File 'quick_sight/cfn_analysis.rb', line 21030

def name
  @name
end

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

The time field that is used in a computation.



21035
21036
21037
# File 'quick_sight/cfn_analysis.rb', line 21035

def time
  @time
end

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

The value field that is used in a computation.



21040
21041
21042
# File 'quick_sight/cfn_analysis.rb', line 21040

def value
  @value
end

Class Method Details

.jsii_propertiesObject



21042
21043
21044
21045
21046
21047
21048
21049
# File 'quick_sight/cfn_analysis.rb', line 21042

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

Instance Method Details

#to_jsiiObject



21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
# File 'quick_sight/cfn_analysis.rb', line 21051

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