Class: AWSCDK::QuickSight::CfnAnalysis::GaugeChartOptionsProperty

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



12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
# File 'quick_sight/cfn_analysis.rb', line 12447

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

Instance Attribute Details

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

The arc configuration of a GaugeChartVisual .



12464
12465
12466
# File 'quick_sight/cfn_analysis.rb', line 12464

def arc
  @arc
end

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

The arc axis configuration of a GaugeChartVisual .



12469
12470
12471
# File 'quick_sight/cfn_analysis.rb', line 12469

def arc_axis
  @arc_axis
end

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

The comparison configuration of a GaugeChartVisual .



12474
12475
12476
# File 'quick_sight/cfn_analysis.rb', line 12474

def comparison
  @comparison
end

#primary_value_display_typeString? (readonly)

The options that determine the primary value display type.



12479
12480
12481
# File 'quick_sight/cfn_analysis.rb', line 12479

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.



12484
12485
12486
# File 'quick_sight/cfn_analysis.rb', line 12484

def primary_value_font_configuration
  @primary_value_font_configuration
end

Class Method Details

.jsii_propertiesObject



12486
12487
12488
12489
12490
12491
12492
12493
12494
# File 'quick_sight/cfn_analysis.rb', line 12486

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



12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
# File 'quick_sight/cfn_analysis.rb', line 12496

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