Class: AWSCDK::QuickSight::CfnTemplate::DataColorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::DataColorProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
Determines the color that is applied to a particular data value.
Instance Attribute Summary collapse
-
#color ⇒ String?
readonly
The color that is applied to the data value.
-
#data_value ⇒ Numeric?
readonly
The data value that the color is applied to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color: nil, data_value: nil) ⇒ DataColorProperty
constructor
A new instance of DataColorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(color: nil, data_value: nil) ⇒ DataColorProperty
Returns a new instance of DataColorProperty.
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
#color ⇒ String? (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_value ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |