Class: AWSCDK::QuickSight::CfnTemplate::AxisDisplayRangeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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:



1338
1339
1340
1341
1342
1343
# File 'quick_sight/cfn_template.rb', line 1338

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::CfnTemplate::AxisDisplayMinMaxRangeProperty.new(**min_max.transform_keys(&:to_sym)) : min_max
  Jsii::Type.check_type(@min_max, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkF4aXNEaXNwbGF5TWluTWF4UmFuZ2VQcm9wZXJ0eSJ9XX19")), "minMax") unless @min_max.nil?
end

Instance Attribute Details

#data_drivenObject? (readonly)

The data-driven setup of an axis display range.



1349
1350
1351
# File 'quick_sight/cfn_template.rb', line 1349

def data_driven
  @data_driven
end

#min_maxAWSCDK::IResolvable, ... (readonly)

The minimum and maximum setup of an axis display range.



1354
1355
1356
# File 'quick_sight/cfn_template.rb', line 1354

def min_max
  @min_max
end

Class Method Details

.jsii_propertiesObject



1356
1357
1358
1359
1360
1361
# File 'quick_sight/cfn_template.rb', line 1356

def self.jsii_properties
  {
    :data_driven => "dataDriven",
    :min_max => "minMax",
  }
end

Instance Method Details

#to_jsiiObject



1363
1364
1365
1366
1367
1368
1369
1370
# File 'quick_sight/cfn_template.rb', line 1363

def to_jsii
  result = {}
  result.merge!({
    "dataDriven" => @data_driven,
    "minMax" => @min_max,
  })
  result.compact
end