Class: AWSCDK::QuickSight::CfnTemplate::GaugeChartArcConditionalFormattingProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(foreground_color: nil) ⇒ GaugeChartArcConditionalFormattingProperty

Returns a new instance of GaugeChartArcConditionalFormattingProperty.

Parameters:



11963
11964
11965
11966
# File 'quick_sight/cfn_template.rb', line 11963

def initialize(foreground_color: nil)
  @foreground_color = foreground_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingColorProperty.new(**foreground_color.transform_keys(&:to_sym)) : foreground_color
  Jsii::Type.check_type(@foreground_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "foregroundColor") unless @foreground_color.nil?
end

Instance Attribute Details

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

The conditional formatting of the arc foreground color.



11972
11973
11974
# File 'quick_sight/cfn_template.rb', line 11972

def foreground_color
  @foreground_color
end

Class Method Details

.jsii_propertiesObject



11974
11975
11976
11977
11978
# File 'quick_sight/cfn_template.rb', line 11974

def self.jsii_properties
  {
    :foreground_color => "foregroundColor",
  }
end

Instance Method Details

#to_jsiiObject



11980
11981
11982
11983
11984
11985
11986
# File 'quick_sight/cfn_template.rb', line 11980

def to_jsii
  result = {}
  result.merge!({
    "foregroundColor" => @foreground_color,
  })
  result.compact
end