Class: AWSCDK::QuickSight::CfnAnalysis::TopBottomMoversComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::TopBottomMoversComputationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
29909 29910 29911 29912 29913 29914 29915 29916 29917 29918 29919 29920 29921 29922 29923 29924 29925 29926 |
# File 'quick_sight/cfn_analysis.rb', line 29909 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::CfnAnalysis::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "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::CfnAnalysis::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "time") unless @time.nil? @value = value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::MeasureFieldProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "value") unless @value.nil? end |
Instance Attribute Details
#category ⇒ AWSCDK::IResolvable, ... (readonly)
The category field that is used in a computation.
29945 29946 29947 |
# File 'quick_sight/cfn_analysis.rb', line 29945 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
29932 29933 29934 |
# File 'quick_sight/cfn_analysis.rb', line 29932 def computation_id @computation_id end |
#mover_size ⇒ Numeric? (readonly)
Default: - 0
The mover size setup of the top and bottom movers computation.
29951 29952 29953 |
# File 'quick_sight/cfn_analysis.rb', line 29951 def mover_size @mover_size end |
#name ⇒ String? (readonly)
The name of a computation.
29956 29957 29958 |
# File 'quick_sight/cfn_analysis.rb', line 29956 def name @name end |
#sort_order ⇒ String? (readonly)
The sort order setup of the top and bottom movers computation.
29961 29962 29963 |
# File 'quick_sight/cfn_analysis.rb', line 29961 def sort_order @sort_order end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
29966 29967 29968 |
# File 'quick_sight/cfn_analysis.rb', line 29966 def time @time end |
#type ⇒ String (readonly)
The computation type. Choose from the following options:.
- TOP: Top movers computation.
- BOTTOM: Bottom movers computation.
29940 29941 29942 |
# File 'quick_sight/cfn_analysis.rb', line 29940 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
29971 29972 29973 |
# File 'quick_sight/cfn_analysis.rb', line 29971 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 |
# File 'quick_sight/cfn_analysis.rb', line 29973 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
29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 |
# File 'quick_sight/cfn_analysis.rb', line 29986 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 |