Class: AWSCDK::QuickSight::CfnDashboard::GaugeChartColorConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GaugeChartColorConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
12972 12973 12974 12975 12976 12977 |
# File 'quick_sight/cfn_dashboard.rb', line 12972 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 .
12983 12984 12985 |
# File 'quick_sight/cfn_dashboard.rb', line 12983 def background_color @background_color end |
#foreground_color ⇒ String? (readonly)
The foreground color configuration of a GaugeChartVisual .
12988 12989 12990 |
# File 'quick_sight/cfn_dashboard.rb', line 12988 def foreground_color @foreground_color end |
Class Method Details
.jsii_properties ⇒ Object
12990 12991 12992 12993 12994 12995 |
# File 'quick_sight/cfn_dashboard.rb', line 12990 def self.jsii_properties { :background_color => "backgroundColor", :foreground_color => "foregroundColor", } end |
Instance Method Details
#to_jsii ⇒ Object
12997 12998 12999 13000 13001 13002 13003 13004 |
# File 'quick_sight/cfn_dashboard.rb', line 12997 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "foregroundColor" => @foreground_color, }) result.compact end |