Class: AWSCDK::QuickSight::CfnTemplate::TopBottomRankedComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::TopBottomRankedComputationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The top ranked and bottom ranked computation configuration.
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.
-
#name ⇒ String?
readonly
The name of a computation.
-
#result_size ⇒ Numeric?
readonly
The result size of a top and bottom ranked 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, name: nil, result_size: nil, value: nil) ⇒ TopBottomRankedComputationProperty
constructor
A new instance of TopBottomRankedComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, type:, category: nil, name: nil, result_size: nil, value: nil) ⇒ TopBottomRankedComputationProperty
Returns a new instance of TopBottomRankedComputationProperty.
28296 28297 28298 28299 28300 28301 28302 28303 28304 28305 28306 28307 28308 28309 |
# File 'quick_sight/cfn_template.rb', line 28296 def initialize(computation_id:, type:, category: nil, name: nil, result_size: 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? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @result_size = result_size Jsii::Type.check_type(@result_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "resultSize") unless @result_size.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.
28328 28329 28330 |
# File 'quick_sight/cfn_template.rb', line 28328 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
28315 28316 28317 |
# File 'quick_sight/cfn_template.rb', line 28315 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
28333 28334 28335 |
# File 'quick_sight/cfn_template.rb', line 28333 def name @name end |
#result_size ⇒ Numeric? (readonly)
Note:
Default: - 0
The result size of a top and bottom ranked computation.
28339 28340 28341 |
# File 'quick_sight/cfn_template.rb', line 28339 def result_size @result_size end |
#type ⇒ String (readonly)
The computation type. Choose one of the following options:.
- TOP: A top ranked computation.
- BOTTOM: A bottom ranked computation.
28323 28324 28325 |
# File 'quick_sight/cfn_template.rb', line 28323 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
28344 28345 28346 |
# File 'quick_sight/cfn_template.rb', line 28344 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 |
# File 'quick_sight/cfn_template.rb', line 28346 def self.jsii_properties { :computation_id => "computationId", :type => "type", :category => "category", :name => "name", :result_size => "resultSize", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 |
# File 'quick_sight/cfn_template.rb', line 28357 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "type" => @type, "category" => @category, "name" => @name, "resultSize" => @result_size, "value" => @value, }) result.compact end |