Class: AWSCDK::QuickSight::CfnDashboard::GaugeChartOptionsProperty

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

Overview

The options that determine the presentation of the GaugeChartVisual .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arc: nil, arc_axis: nil, comparison: nil, primary_value_display_type: nil, primary_value_font_configuration: nil) ⇒ GaugeChartOptionsProperty

Returns a new instance of GaugeChartOptionsProperty.

Parameters:



13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
# File 'quick_sight/cfn_dashboard.rb', line 13230

def initialize(arc: nil, arc_axis: nil, comparison: nil, primary_value_display_type: nil, primary_value_font_configuration: nil)
  @arc = arc.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ArcConfigurationProperty.new(**arc.transform_keys(&:to_sym)) : arc
  Jsii::Type.check_type(@arc, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BcmNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "arc") unless @arc.nil?
  @arc_axis = arc_axis.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ArcAxisConfigurationProperty.new(**arc_axis.transform_keys(&:to_sym)) : arc_axis
  Jsii::Type.check_type(@arc_axis, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BcmNBeGlzQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "arcAxis") unless @arc_axis.nil?
  @comparison = comparison.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ComparisonConfigurationProperty.new(**comparison.transform_keys(&:to_sym)) : comparison
  Jsii::Type.check_type(@comparison, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db21wYXJpc29uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "comparison") unless @comparison.nil?
  @primary_value_display_type = primary_value_display_type
  Jsii::Type.check_type(@primary_value_display_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primaryValueDisplayType") unless @primary_value_display_type.nil?
  @primary_value_font_configuration = primary_value_font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FontConfigurationProperty.new(**primary_value_font_configuration.transform_keys(&:to_sym)) : primary_value_font_configuration
  Jsii::Type.check_type(@primary_value_font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Gb250Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "primaryValueFontConfiguration") unless @primary_value_font_configuration.nil?
end

Instance Attribute Details

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

The arc configuration of a GaugeChartVisual .



13247
13248
13249
# File 'quick_sight/cfn_dashboard.rb', line 13247

def arc
  @arc
end

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

The arc axis configuration of a GaugeChartVisual .



13252
13253
13254
# File 'quick_sight/cfn_dashboard.rb', line 13252

def arc_axis
  @arc_axis
end

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

The comparison configuration of a GaugeChartVisual .



13257
13258
13259
# File 'quick_sight/cfn_dashboard.rb', line 13257

def comparison
  @comparison
end

#primary_value_display_typeString? (readonly)

The options that determine the primary value display type.



13262
13263
13264
# File 'quick_sight/cfn_dashboard.rb', line 13262

def primary_value_display_type
  @primary_value_display_type
end

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

The options that determine the primary value font configuration.



13267
13268
13269
# File 'quick_sight/cfn_dashboard.rb', line 13267

def primary_value_font_configuration
  @primary_value_font_configuration
end

Class Method Details

.jsii_propertiesObject



13269
13270
13271
13272
13273
13274
13275
13276
13277
# File 'quick_sight/cfn_dashboard.rb', line 13269

def self.jsii_properties
  {
    :arc => "arc",
    :arc_axis => "arcAxis",
    :comparison => "comparison",
    :primary_value_display_type => "primaryValueDisplayType",
    :primary_value_font_configuration => "primaryValueFontConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
# File 'quick_sight/cfn_dashboard.rb', line 13279

def to_jsii
  result = {}
  result.merge!({
    "arc" => @arc,
    "arcAxis" => @arc_axis,
    "comparison" => @comparison,
    "primaryValueDisplayType" => @primary_value_display_type,
    "primaryValueFontConfiguration" => @primary_value_font_configuration,
  })
  result.compact
end