Class: AWSCDK::QuickSight::CfnDashboard::GaugeChartColorConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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 .



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



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_jsiiObject



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