Class: AWSCDK::QuickSight::CfnTemplate::MaximumMinimumComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::MaximumMinimumComputationProperty
- Defined in:
- quick_sight/cfn_template.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.
16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 |
# File 'quick_sight/cfn_template.rb', line 16880 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::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_id ⇒ String (readonly)
The ID for a computation.
16897 16898 16899 |
# File 'quick_sight/cfn_template.rb', line 16897 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
16910 16911 16912 |
# File 'quick_sight/cfn_template.rb', line 16910 def name @name end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
16915 16916 16917 |
# File 'quick_sight/cfn_template.rb', line 16915 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.
16905 16906 16907 |
# File 'quick_sight/cfn_template.rb', line 16905 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
16920 16921 16922 |
# File 'quick_sight/cfn_template.rb', line 16920 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
16922 16923 16924 16925 16926 16927 16928 16929 16930 |
# File 'quick_sight/cfn_template.rb', line 16922 def self.jsii_properties { :computation_id => "computationId", :type => "type", :name => "name", :time => "time", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 |
# File 'quick_sight/cfn_template.rb', line 16932 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "type" => @type, "name" => @name, "time" => @time, "value" => @value, }) result.compact end |