Class: AWSCDK::QuickSight::CfnDashboard::AxisDisplayRangeProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_driven: nil, min_max: nil) ⇒ AxisDisplayRangeProperty

Returns a new instance of AxisDisplayRangeProperty.

Parameters:



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_drivenObject? (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_maxAWSCDK::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_propertiesObject



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_jsiiObject



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