Class: AWSCDK::QuickSight::CfnDashboard::MaximumMinimumComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::MaximumMinimumComputationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The maximum and minimum 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.
-
#type ⇒ String
readonly
The type of 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:, type:, name: nil, time: nil, value: nil) ⇒ MaximumMinimumComputationProperty
constructor
A new instance of MaximumMinimumComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, type:, name: nil, time: nil, value: nil) ⇒ MaximumMinimumComputationProperty
Returns a new instance of MaximumMinimumComputationProperty.
19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 |
# File 'quick_sight/cfn_dashboard.rb', line 19663 def initialize(computation_id:, type:, name: nil, time: nil, value: nil) @computation_id = computation_id Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @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.
19680 19681 19682 |
# File 'quick_sight/cfn_dashboard.rb', line 19680 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
19693 19694 19695 |
# File 'quick_sight/cfn_dashboard.rb', line 19693 def name @name end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
19698 19699 19700 |
# File 'quick_sight/cfn_dashboard.rb', line 19698 def time @time end |
#type ⇒ String (readonly)
The type of computation. Choose one of the following options:.
- MAXIMUM: A maximum computation.
- MINIMUM: A minimum computation.
19688 19689 19690 |
# File 'quick_sight/cfn_dashboard.rb', line 19688 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
19703 19704 19705 |
# File 'quick_sight/cfn_dashboard.rb', line 19703 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
19705 19706 19707 19708 19709 19710 19711 19712 19713 |
# File 'quick_sight/cfn_dashboard.rb', line 19705 def self.jsii_properties { :computation_id => "computationId", :type => "type", :name => "name", :time => "time", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 |
# File 'quick_sight/cfn_dashboard.rb', line 19715 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "type" => @type, "name" => @name, "time" => @time, "value" => @value, }) result.compact end |