Class: AWSCDK::QuickSight::CfnTemplate::TopBottomMoversComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::TopBottomMoversComputationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The top movers and bottom movers computation setup.
Instance Attribute Summary collapse
-
#category ⇒ AWSCDK::IResolvable, ...
readonly
The category field that is used in a computation.
-
#computation_id ⇒ String
readonly
The ID for a computation.
-
#mover_size ⇒ Numeric?
readonly
The mover size setup of the top and bottom movers computation.
-
#name ⇒ String?
readonly
The name of a computation.
-
#sort_order ⇒ String?
readonly
The sort order setup of the top and bottom movers computation.
-
#time ⇒ AWSCDK::IResolvable, ...
readonly
The time field that is used in a computation.
-
#type ⇒ String
readonly
The computation type.
-
#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:, category: nil, mover_size: nil, name: nil, sort_order: nil, time: nil, value: nil) ⇒ TopBottomMoversComputationProperty
constructor
A new instance of TopBottomMoversComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, type:, category: nil, mover_size: nil, name: nil, sort_order: nil, time: nil, value: nil) ⇒ TopBottomMoversComputationProperty
Returns a new instance of TopBottomMoversComputationProperty.
28191 28192 28193 28194 28195 28196 28197 28198 28199 28200 28201 28202 28203 28204 28205 28206 28207 28208 |
# File 'quick_sight/cfn_template.rb', line 28191 def initialize(computation_id:, type:, category: nil, mover_size: nil, name: nil, sort_order: 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") @category = category.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "category") unless @category.nil? @mover_size = mover_size Jsii::Type.check_type(@mover_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "moverSize") unless @mover_size.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @sort_order = sort_order Jsii::Type.check_type(@sort_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sortOrder") unless @sort_order.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
#category ⇒ AWSCDK::IResolvable, ... (readonly)
The category field that is used in a computation.
28227 28228 28229 |
# File 'quick_sight/cfn_template.rb', line 28227 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
28214 28215 28216 |
# File 'quick_sight/cfn_template.rb', line 28214 def computation_id @computation_id end |
#mover_size ⇒ Numeric? (readonly)
Default: - 0
The mover size setup of the top and bottom movers computation.
28233 28234 28235 |
# File 'quick_sight/cfn_template.rb', line 28233 def mover_size @mover_size end |
#name ⇒ String? (readonly)
The name of a computation.
28238 28239 28240 |
# File 'quick_sight/cfn_template.rb', line 28238 def name @name end |
#sort_order ⇒ String? (readonly)
The sort order setup of the top and bottom movers computation.
28243 28244 28245 |
# File 'quick_sight/cfn_template.rb', line 28243 def sort_order @sort_order end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
28248 28249 28250 |
# File 'quick_sight/cfn_template.rb', line 28248 def time @time end |
#type ⇒ String (readonly)
The computation type. Choose from the following options:.
- TOP: Top movers computation.
- BOTTOM: Bottom movers computation.
28222 28223 28224 |
# File 'quick_sight/cfn_template.rb', line 28222 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
28253 28254 28255 |
# File 'quick_sight/cfn_template.rb', line 28253 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 |
# File 'quick_sight/cfn_template.rb', line 28255 def self.jsii_properties { :computation_id => "computationId", :type => "type", :category => "category", :mover_size => "moverSize", :name => "name", :sort_order => "sortOrder", :time => "time", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
28268 28269 28270 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 |
# File 'quick_sight/cfn_template.rb', line 28268 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "type" => @type, "category" => @category, "moverSize" => @mover_size, "name" => @name, "sortOrder" => @sort_order, "time" => @time, "value" => @value, }) result.compact end |