Class: AWSCDK::QuickSight::CfnAnalysis::GaugeChartColorConfigurationProperty

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

Overview

The color configuration of a GaugeChartVisual .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(background_color: nil, foreground_color: nil) ⇒ GaugeChartColorConfigurationProperty

Returns a new instance of GaugeChartColorConfigurationProperty.

Parameters:

  • background_color (String, nil) (defaults to: nil)

    The background color configuration of a GaugeChartVisual .

  • foreground_color (String, nil) (defaults to: nil)

    The foreground color configuration of a GaugeChartVisual .



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_colorString? (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_colorString? (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_propertiesObject



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_jsiiObject



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