Class: AWSCDK::QuickSight::CfnAnalysis::PeriodOverPeriodComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::PeriodOverPeriodComputationProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The period over period computation configuration.
Instance Attribute Summary collapse
-
#computation_id ⇒ String
readonly
The ID for a computation.
-
#name ⇒ String?
readonly
The name of a computation.
-
#time ⇒ AWSCDK::IResolvable, ...
readonly
The time field that is used in a computation.
-
#value ⇒ AWSCDK::IResolvable, ...
readonly
The value field that is used in a computation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(computation_id:, name: nil, time: nil, value: nil) ⇒ PeriodOverPeriodComputationProperty
constructor
A new instance of PeriodOverPeriodComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, name: nil, time: nil, value: nil) ⇒ PeriodOverPeriodComputationProperty
Returns a new instance of PeriodOverPeriodComputationProperty.
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_id ⇒ String (readonly)
The ID for a computation.
21025 21026 21027 |
# File 'quick_sight/cfn_analysis.rb', line 21025 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
21030 21031 21032 |
# File 'quick_sight/cfn_analysis.rb', line 21030 def name @name end |
#time ⇒ AWSCDK::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 |
#value ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |