Class: AWSCDK::QuickSight::CfnTemplate::GaugeChartOptionsProperty

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



12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
# File 'quick_sight/cfn_template.rb', line 12255

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::CfnTemplate::ArcConfigurationProperty.new(**arc.transform_keys(&:to_sym)) : arc
  Jsii::Type.check_type(@arc, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkFyY0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "arc") unless @arc.nil?
  @arc_axis = arc_axis.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ArcAxisConfigurationProperty.new(**arc_axis.transform_keys(&:to_sym)) : arc_axis
  Jsii::Type.check_type(@arc_axis, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkFyY0F4aXNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "arcAxis") unless @arc_axis.nil?
  @comparison = comparison.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ComparisonConfigurationProperty.new(**comparison.transform_keys(&:to_sym)) : comparison
  Jsii::Type.check_type(@comparison, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbXBhcmlzb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "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::CfnTemplate::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "primaryValueFontConfiguration") unless @primary_value_font_configuration.nil?
end

Instance Attribute Details

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

The arc configuration of a GaugeChartVisual .



12272
12273
12274
# File 'quick_sight/cfn_template.rb', line 12272

def arc
  @arc
end

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

The arc axis configuration of a GaugeChartVisual .



12277
12278
12279
# File 'quick_sight/cfn_template.rb', line 12277

def arc_axis
  @arc_axis
end

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

The comparison configuration of a GaugeChartVisual .



12282
12283
12284
# File 'quick_sight/cfn_template.rb', line 12282

def comparison
  @comparison
end

#primary_value_display_typeString? (readonly)

The options that determine the primary value display type.



12287
12288
12289
# File 'quick_sight/cfn_template.rb', line 12287

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.



12292
12293
12294
# File 'quick_sight/cfn_template.rb', line 12292

def primary_value_font_configuration
  @primary_value_font_configuration
end

Class Method Details

.jsii_propertiesObject



12294
12295
12296
12297
12298
12299
12300
12301
12302
# File 'quick_sight/cfn_template.rb', line 12294

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



12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
# File 'quick_sight/cfn_template.rb', line 12304

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