Class: AWSCDK::QuickSight::CfnDashboard::NumericAxisOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::NumericAxisOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options for an axis with a numeric field.
Instance Attribute Summary collapse
-
#range ⇒ AWSCDK::IResolvable, ...
readonly
The range setup of a numeric axis.
-
#scale ⇒ AWSCDK::IResolvable, ...
readonly
The scale setup of a numeric axis.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(range: nil, scale: nil) ⇒ NumericAxisOptionsProperty
constructor
A new instance of NumericAxisOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(range: nil, scale: nil) ⇒ NumericAxisOptionsProperty
Returns a new instance of NumericAxisOptionsProperty.
20198 20199 20200 20201 20202 20203 |
# File 'quick_sight/cfn_dashboard.rb', line 20198 def initialize(range: nil, scale: nil) @range = range.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::AxisDisplayRangeProperty.new(**range.transform_keys(&:to_sym)) : range Jsii::Type.check_type(@range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BeGlzRGlzcGxheVJhbmdlUHJvcGVydHkifV19fQ==")), "range") unless @range.nil? @scale = scale.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::AxisScaleProperty.new(**scale.transform_keys(&:to_sym)) : scale Jsii::Type.check_type(@scale, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BeGlzU2NhbGVQcm9wZXJ0eSJ9XX19")), "scale") unless @scale.nil? end |
Instance Attribute Details
#range ⇒ AWSCDK::IResolvable, ... (readonly)
The range setup of a numeric axis.
20209 20210 20211 |
# File 'quick_sight/cfn_dashboard.rb', line 20209 def range @range end |
#scale ⇒ AWSCDK::IResolvable, ... (readonly)
The scale setup of a numeric axis.
20214 20215 20216 |
# File 'quick_sight/cfn_dashboard.rb', line 20214 def scale @scale end |
Class Method Details
.jsii_properties ⇒ Object
20216 20217 20218 20219 20220 20221 |
# File 'quick_sight/cfn_dashboard.rb', line 20216 def self.jsii_properties { :range => "range", :scale => "scale", } end |
Instance Method Details
#to_jsii ⇒ Object
20223 20224 20225 20226 20227 20228 20229 20230 |
# File 'quick_sight/cfn_dashboard.rb', line 20223 def to_jsii result = {} result.merge!({ "range" => @range, "scale" => @scale, }) result.compact end |