Class: AWSCDK::QuickSight::CfnDashboard::AxisDisplayRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::AxisDisplayRangeProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The range setup of a numeric axis display range.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
Instance Attribute Summary collapse
-
#data_driven ⇒ Object?
readonly
The data-driven setup of an axis display range.
-
#min_max ⇒ AWSCDK::IResolvable, ...
readonly
The minimum and maximum setup of an axis display range.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_driven: nil, min_max: nil) ⇒ AxisDisplayRangeProperty
constructor
A new instance of AxisDisplayRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_driven: nil, min_max: nil) ⇒ AxisDisplayRangeProperty
Returns a new instance of AxisDisplayRangeProperty.
1482 1483 1484 1485 1486 1487 |
# File 'quick_sight/cfn_dashboard.rb', line 1482 def initialize(data_driven: nil, min_max: nil) @data_driven = data_driven Jsii::Type.check_type(@data_driven, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "dataDriven") unless @data_driven.nil? @min_max = min_max.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::AxisDisplayMinMaxRangeProperty.new(**min_max.transform_keys(&:to_sym)) : min_max Jsii::Type.check_type(@min_max, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BeGlzRGlzcGxheU1pbk1heFJhbmdlUHJvcGVydHkifV19fQ==")), "minMax") unless @min_max.nil? end |
Instance Attribute Details
#data_driven ⇒ Object? (readonly)
The data-driven setup of an axis display range.
1493 1494 1495 |
# File 'quick_sight/cfn_dashboard.rb', line 1493 def data_driven @data_driven end |
#min_max ⇒ AWSCDK::IResolvable, ... (readonly)
The minimum and maximum setup of an axis display range.
1498 1499 1500 |
# File 'quick_sight/cfn_dashboard.rb', line 1498 def min_max @min_max end |
Class Method Details
.jsii_properties ⇒ Object
1500 1501 1502 1503 1504 1505 |
# File 'quick_sight/cfn_dashboard.rb', line 1500 def self.jsii_properties { :data_driven => "dataDriven", :min_max => "minMax", } end |
Instance Method Details
#to_jsii ⇒ Object
1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'quick_sight/cfn_dashboard.rb', line 1507 def to_jsii result = {} result.merge!({ "dataDriven" => @data_driven, "minMax" => @min_max, }) result.compact end |