Class: AWSCDK::QuickSight::CfnDashboard::TopBottomRankedComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::TopBottomRankedComputationProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 |
# File 'quick_sight/cfn_dashboard.rb', line 31052 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::CfnDashboard::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EaW1lbnNpb25GaWVsZFByb3BlcnR5In1dfX0=")), "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::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
#category ⇒ AWSCDK::IResolvable, ... (readonly)
The category field that is used in a computation.
31084 31085 31086 |
# File 'quick_sight/cfn_dashboard.rb', line 31084 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
31071 31072 31073 |
# File 'quick_sight/cfn_dashboard.rb', line 31071 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
31089 31090 31091 |
# File 'quick_sight/cfn_dashboard.rb', line 31089 def name @name end |
#result_size ⇒ Numeric? (readonly)
Note:
Default: - 0
The result size of a top and bottom ranked computation.
31095 31096 31097 |
# File 'quick_sight/cfn_dashboard.rb', line 31095 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.
31079 31080 31081 |
# File 'quick_sight/cfn_dashboard.rb', line 31079 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
31100 31101 31102 |
# File 'quick_sight/cfn_dashboard.rb', line 31100 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 |
# File 'quick_sight/cfn_dashboard.rb', line 31102 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
31113 31114 31115 31116 31117 31118 31119 31120 31121 31122 31123 31124 |
# File 'quick_sight/cfn_dashboard.rb', line 31113 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "type" => @type, "category" => @category, "name" => @name, "resultSize" => @result_size, "value" => @value, }) result.compact end |