Class: AWSCDK::QuickSight::CfnTemplate::CustomColorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::CustomColorProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
Determines the color that's applied to a particular data value in a column.
Instance Attribute Summary collapse
-
#color ⇒ String
readonly
The color that is applied to the data value.
-
#field_value ⇒ String?
readonly
The data value that the color is applied to.
-
#special_value ⇒ String?
readonly
The value of a special data value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color:, field_value: nil, special_value: nil) ⇒ CustomColorProperty
constructor
A new instance of CustomColorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(color:, field_value: nil, special_value: nil) ⇒ CustomColorProperty
Returns a new instance of CustomColorProperty.
5520 5521 5522 5523 5524 5525 5526 5527 |
# File 'quick_sight/cfn_template.rb', line 5520 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
#color ⇒ String (readonly)
The color that is applied to the data value.
5533 5534 5535 |
# File 'quick_sight/cfn_template.rb', line 5533 def color @color end |
#field_value ⇒ String? (readonly)
The data value that the color is applied to.
5538 5539 5540 |
# File 'quick_sight/cfn_template.rb', line 5538 def field_value @field_value end |
#special_value ⇒ String? (readonly)
The value of a special data value.
5543 5544 5545 |
# File 'quick_sight/cfn_template.rb', line 5543 def special_value @special_value end |
Class Method Details
.jsii_properties ⇒ Object
5545 5546 5547 5548 5549 5550 5551 |
# File 'quick_sight/cfn_template.rb', line 5545 def self.jsii_properties { :color => "color", :field_value => "fieldValue", :special_value => "specialValue", } end |
Instance Method Details
#to_jsii ⇒ Object
5553 5554 5555 5556 5557 5558 5559 5560 5561 |
# File 'quick_sight/cfn_template.rb', line 5553 def to_jsii result = {} result.merge!({ "color" => @color, "fieldValue" => @field_value, "specialValue" => @special_value, }) result.compact end |