Class: AWSCDK::QuickSight::CfnDashboard::PeriodOverPeriodComputationProperty

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



21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
# File 'quick_sight/cfn_dashboard.rb', line 21982

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

Instance Attribute Details

#computation_idString (readonly)

The ID for a computation.



21997
21998
21999
# File 'quick_sight/cfn_dashboard.rb', line 21997

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



22002
22003
22004
# File 'quick_sight/cfn_dashboard.rb', line 22002

def name
  @name
end

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

The time field that is used in a computation.



22007
22008
22009
# File 'quick_sight/cfn_dashboard.rb', line 22007

def time
  @time
end

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

The value field that is used in a computation.



22012
22013
22014
# File 'quick_sight/cfn_dashboard.rb', line 22012

def value
  @value
end

Class Method Details

.jsii_propertiesObject



22014
22015
22016
22017
22018
22019
22020
22021
# File 'quick_sight/cfn_dashboard.rb', line 22014

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

Instance Method Details

#to_jsiiObject



22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
# File 'quick_sight/cfn_dashboard.rb', line 22023

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