Class: AWSCDK::QuickSight::CfnTemplate::PeriodOverPeriodComputationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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:



19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
# File 'quick_sight/cfn_template.rb', line 19136

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::CfnTemplate::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time
  Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "time") unless @time.nil?
  @value = value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::MeasureFieldProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "value") unless @value.nil?
end

Instance Attribute Details

#computation_idString (readonly)

The ID for a computation.



19151
19152
19153
# File 'quick_sight/cfn_template.rb', line 19151

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



19156
19157
19158
# File 'quick_sight/cfn_template.rb', line 19156

def name
  @name
end

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

The time field that is used in a computation.



19161
19162
19163
# File 'quick_sight/cfn_template.rb', line 19161

def time
  @time
end

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

The value field that is used in a computation.



19166
19167
19168
# File 'quick_sight/cfn_template.rb', line 19166

def value
  @value
end

Class Method Details

.jsii_propertiesObject



19168
19169
19170
19171
19172
19173
19174
19175
# File 'quick_sight/cfn_template.rb', line 19168

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

Instance Method Details

#to_jsiiObject



19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
# File 'quick_sight/cfn_template.rb', line 19177

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