Class: AWSCDK::QuickSight::CfnDashboard::TopBottomMoversComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::TopBottomMoversComputationProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
30947 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 30964 |
# File 'quick_sight/cfn_dashboard.rb', line 30947 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::CfnDashboard::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EaW1lbnNpb25GaWVsZFByb3BlcnR5In1dfX0=")), "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::CfnDashboard::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EaW1lbnNpb25GaWVsZFByb3BlcnR5In1dfX0=")), "time") unless @time.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.
30983 30984 30985 |
# File 'quick_sight/cfn_dashboard.rb', line 30983 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
30970 30971 30972 |
# File 'quick_sight/cfn_dashboard.rb', line 30970 def computation_id @computation_id end |
#mover_size ⇒ Numeric? (readonly)
Default: - 0
The mover size setup of the top and bottom movers computation.
30989 30990 30991 |
# File 'quick_sight/cfn_dashboard.rb', line 30989 def mover_size @mover_size end |
#name ⇒ String? (readonly)
The name of a computation.
30994 30995 30996 |
# File 'quick_sight/cfn_dashboard.rb', line 30994 def name @name end |
#sort_order ⇒ String? (readonly)
The sort order setup of the top and bottom movers computation.
30999 31000 31001 |
# File 'quick_sight/cfn_dashboard.rb', line 30999 def sort_order @sort_order end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
31004 31005 31006 |
# File 'quick_sight/cfn_dashboard.rb', line 31004 def time @time end |
#type ⇒ String (readonly)
The computation type. Choose from the following options:.
- TOP: Top movers computation.
- BOTTOM: Bottom movers computation.
30978 30979 30980 |
# File 'quick_sight/cfn_dashboard.rb', line 30978 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
31009 31010 31011 |
# File 'quick_sight/cfn_dashboard.rb', line 31009 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
31011 31012 31013 31014 31015 31016 31017 31018 31019 31020 31021 31022 |
# File 'quick_sight/cfn_dashboard.rb', line 31011 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
31024 31025 31026 31027 31028 31029 31030 31031 31032 31033 31034 31035 31036 31037 |
# File 'quick_sight/cfn_dashboard.rb', line 31024 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 |