Class: AWSCDK::QuickSight::CfnAnalysis::GaugeChartColorConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::GaugeChartColorConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
12189 12190 12191 12192 12193 12194 |
# File 'quick_sight/cfn_analysis.rb', line 12189 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 .
12200 12201 12202 |
# File 'quick_sight/cfn_analysis.rb', line 12200 def background_color @background_color end |
#foreground_color ⇒ String? (readonly)
The foreground color configuration of a GaugeChartVisual .
12205 12206 12207 |
# File 'quick_sight/cfn_analysis.rb', line 12205 def foreground_color @foreground_color end |
Class Method Details
.jsii_properties ⇒ Object
12207 12208 12209 12210 12211 12212 |
# File 'quick_sight/cfn_analysis.rb', line 12207 def self.jsii_properties { :background_color => "backgroundColor", :foreground_color => "foregroundColor", } end |
Instance Method Details
#to_jsii ⇒ Object
12214 12215 12216 12217 12218 12219 12220 12221 |
# File 'quick_sight/cfn_analysis.rb', line 12214 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "foregroundColor" => @foreground_color, }) result.compact end |