Class: AWSCDK::QuickSight::CfnTemplate::DataColorProperty

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

Overview

Determines the color that is applied to a particular data value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color: nil, data_value: nil) ⇒ DataColorProperty

Returns a new instance of DataColorProperty.

Parameters:

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

    The color that is applied to the data value.

  • data_value (Numeric, nil) (defaults to: nil)

    The data value that the color is applied to.



6084
6085
6086
6087
6088
6089
# File 'quick_sight/cfn_template.rb', line 6084

def initialize(color: nil, data_value: nil)
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless @color.nil?
  @data_value = data_value
  Jsii::Type.check_type(@data_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dataValue") unless @data_value.nil?
end

Instance Attribute Details

#colorString? (readonly)

The color that is applied to the data value.



6095
6096
6097
# File 'quick_sight/cfn_template.rb', line 6095

def color
  @color
end

#data_valueNumeric? (readonly)

The data value that the color is applied to.



6100
6101
6102
# File 'quick_sight/cfn_template.rb', line 6100

def data_value
  @data_value
end

Class Method Details

.jsii_propertiesObject



6102
6103
6104
6105
6106
6107
# File 'quick_sight/cfn_template.rb', line 6102

def self.jsii_properties
  {
    :color => "color",
    :data_value => "dataValue",
  }
end

Instance Method Details

#to_jsiiObject



6109
6110
6111
6112
6113
6114
6115
6116
# File 'quick_sight/cfn_template.rb', line 6109

def to_jsii
  result = {}
  result.merge!({
    "color" => @color,
    "dataValue" => @data_value,
  })
  result.compact
end