Class: AWSCDK::QuickSight::CfnDashboard::ArcAxisConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

The arc axis configuration of a GaugeChartVisual .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range: nil, reserve_range: nil) ⇒ ArcAxisConfigurationProperty

Returns a new instance of ArcAxisConfigurationProperty.

Parameters:



1036
1037
1038
1039
1040
1041
# File 'quick_sight/cfn_dashboard.rb', line 1036

def initialize(range: nil, reserve_range: nil)
  @range = range.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ArcAxisDisplayRangeProperty.new(**range.transform_keys(&:to_sym)) : range
  Jsii::Type.check_type(@range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BcmNBeGlzRGlzcGxheVJhbmdlUHJvcGVydHkifV19fQ==")), "range") unless @range.nil?
  @reserve_range = reserve_range
  Jsii::Type.check_type(@reserve_range, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "reserveRange") unless @reserve_range.nil?
end

Instance Attribute Details

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

The arc axis range of a GaugeChartVisual .



1047
1048
1049
# File 'quick_sight/cfn_dashboard.rb', line 1047

def range
  @range
end

#reserve_rangeNumeric? (readonly)

Note:

Default: - 0

The reserved range of the arc axis.



1053
1054
1055
# File 'quick_sight/cfn_dashboard.rb', line 1053

def reserve_range
  @reserve_range
end

Class Method Details

.jsii_propertiesObject



1055
1056
1057
1058
1059
1060
# File 'quick_sight/cfn_dashboard.rb', line 1055

def self.jsii_properties
  {
    :range => "range",
    :reserve_range => "reserveRange",
  }
end

Instance Method Details

#to_jsiiObject



1062
1063
1064
1065
1066
1067
1068
1069
# File 'quick_sight/cfn_dashboard.rb', line 1062

def to_jsii
  result = {}
  result.merge!({
    "range" => @range,
    "reserveRange" => @reserve_range,
  })
  result.compact
end