Class: AWSCDK::QuickSight::CfnDashboard::PeriodOverPeriodComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::PeriodOverPeriodComputationProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
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_id ⇒ String (readonly)
The ID for a computation.
21997 21998 21999 |
# File 'quick_sight/cfn_dashboard.rb', line 21997 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
22002 22003 22004 |
# File 'quick_sight/cfn_dashboard.rb', line 22002 def name @name end |
#time ⇒ AWSCDK::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 |
#value ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |