Class: AWSCDK::QuickSight::CfnDashboard::GaugeChartConditionalFormattingOptionProperty

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

Overview

Conditional formatting options of a GaugeChartVisual .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arc: nil, primary_value: nil) ⇒ GaugeChartConditionalFormattingOptionProperty

Returns a new instance of GaugeChartConditionalFormattingOptionProperty.

Parameters:



13015
13016
13017
13018
13019
13020
# File 'quick_sight/cfn_dashboard.rb', line 13015

def initialize(arc: nil, primary_value: nil)
  @arc = arc.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GaugeChartArcConditionalFormattingProperty.new(**arc.transform_keys(&:to_sym)) : arc
  Jsii::Type.check_type(@arc, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HYXVnZUNoYXJ0QXJjQ29uZGl0aW9uYWxGb3JtYXR0aW5nUHJvcGVydHkifV19fQ==")), "arc") unless @arc.nil?
  @primary_value = primary_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GaugeChartPrimaryValueConditionalFormattingProperty.new(**primary_value.transform_keys(&:to_sym)) : primary_value
  Jsii::Type.check_type(@primary_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HYXVnZUNoYXJ0UHJpbWFyeVZhbHVlQ29uZGl0aW9uYWxGb3JtYXR0aW5nUHJvcGVydHkifV19fQ==")), "primaryValue") unless @primary_value.nil?
end

Instance Attribute Details

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

The options that determine the presentation of the arc of a GaugeChartVisual .



13026
13027
13028
# File 'quick_sight/cfn_dashboard.rb', line 13026

def arc
  @arc
end

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

The conditional formatting for the primary value of a GaugeChartVisual .



13031
13032
13033
# File 'quick_sight/cfn_dashboard.rb', line 13031

def primary_value
  @primary_value
end

Class Method Details

.jsii_propertiesObject



13033
13034
13035
13036
13037
13038
# File 'quick_sight/cfn_dashboard.rb', line 13033

def self.jsii_properties
  {
    :arc => "arc",
    :primary_value => "primaryValue",
  }
end

Instance Method Details

#to_jsiiObject



13040
13041
13042
13043
13044
13045
13046
13047
# File 'quick_sight/cfn_dashboard.rb', line 13040

def to_jsii
  result = {}
  result.merge!({
    "arc" => @arc,
    "primaryValue" => @primary_value,
  })
  result.compact
end