Class: AWSCDK::QuickSight::CfnTemplate::GaugeChartColorConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::GaugeChartColorConfigurationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The color configuration of a GaugeChartVisual .
Instance Attribute Summary collapse
-
#background_color ⇒ String?
readonly
The background color configuration of a
GaugeChartVisual. -
#foreground_color ⇒ String?
readonly
The foreground color configuration of a
GaugeChartVisual.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(background_color: nil, foreground_color: nil) ⇒ GaugeChartColorConfigurationProperty
constructor
A new instance of GaugeChartColorConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(background_color: nil, foreground_color: nil) ⇒ GaugeChartColorConfigurationProperty
Returns a new instance of GaugeChartColorConfigurationProperty.
11997 11998 11999 12000 12001 12002 |
# File 'quick_sight/cfn_template.rb', line 11997 def initialize(background_color: nil, foreground_color: nil) @background_color = background_color Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "backgroundColor") unless @background_color.nil? @foreground_color = foreground_color Jsii::Type.check_type(@foreground_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "foregroundColor") unless @foreground_color.nil? end |
Instance Attribute Details
#background_color ⇒ String? (readonly)
The background color configuration of a GaugeChartVisual .
12008 12009 12010 |
# File 'quick_sight/cfn_template.rb', line 12008 def background_color @background_color end |
#foreground_color ⇒ String? (readonly)
The foreground color configuration of a GaugeChartVisual .
12013 12014 12015 |
# File 'quick_sight/cfn_template.rb', line 12013 def foreground_color @foreground_color end |
Class Method Details
.jsii_properties ⇒ Object
12015 12016 12017 12018 12019 12020 |
# File 'quick_sight/cfn_template.rb', line 12015 def self.jsii_properties { :background_color => "backgroundColor", :foreground_color => "foregroundColor", } end |
Instance Method Details
#to_jsii ⇒ Object
12022 12023 12024 12025 12026 12027 12028 12029 |
# File 'quick_sight/cfn_template.rb', line 12022 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "foregroundColor" => @foreground_color, }) result.compact end |