Class: AWSCDK::QuickSight::CfnDashboard::CustomColorProperty

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

Overview

Determines the color that's applied to a particular data value in a column.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color:, field_value: nil, special_value: nil) ⇒ CustomColorProperty

Returns a new instance of CustomColorProperty.

Parameters:

  • color (String)

    The color that is applied to the data value.

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

    The data value that the color is applied to.

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

    The value of a special data value.



5535
5536
5537
5538
5539
5540
5541
5542
# File 'quick_sight/cfn_dashboard.rb', line 5535

def initialize(color:, field_value: nil, special_value: nil)
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color")
  @field_value = field_value
  Jsii::Type.check_type(@field_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldValue") unless @field_value.nil?
  @special_value = special_value
  Jsii::Type.check_type(@special_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "specialValue") unless @special_value.nil?
end

Instance Attribute Details

#colorString (readonly)

The color that is applied to the data value.



5548
5549
5550
# File 'quick_sight/cfn_dashboard.rb', line 5548

def color
  @color
end

#field_valueString? (readonly)

The data value that the color is applied to.



5553
5554
5555
# File 'quick_sight/cfn_dashboard.rb', line 5553

def field_value
  @field_value
end

#special_valueString? (readonly)

The value of a special data value.



5558
5559
5560
# File 'quick_sight/cfn_dashboard.rb', line 5558

def special_value
  @special_value
end

Class Method Details

.jsii_propertiesObject



5560
5561
5562
5563
5564
5565
5566
# File 'quick_sight/cfn_dashboard.rb', line 5560

def self.jsii_properties
  {
    :color => "color",
    :field_value => "fieldValue",
    :special_value => "specialValue",
  }
end

Instance Method Details

#to_jsiiObject



5568
5569
5570
5571
5572
5573
5574
5575
5576
# File 'quick_sight/cfn_dashboard.rb', line 5568

def to_jsii
  result = {}
  result.merge!({
    "color" => @color,
    "fieldValue" => @field_value,
    "specialValue" => @special_value,
  })
  result.compact
end