Class: AWSCDK::QuickSight::CfnAnalysis::CustomColorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::CustomColorProperty
- Defined in:
- quick_sight/cfn_analysis.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.
5669 5670 5671 5672 5673 5674 5675 5676 |
# File 'quick_sight/cfn_analysis.rb', line 5669 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.
5682 5683 5684 |
# File 'quick_sight/cfn_analysis.rb', line 5682 def color @color end |
#field_value ⇒ String? (readonly)
The data value that the color is applied to.
5687 5688 5689 |
# File 'quick_sight/cfn_analysis.rb', line 5687 def field_value @field_value end |
#special_value ⇒ String? (readonly)
The value of a special data value.
5692 5693 5694 |
# File 'quick_sight/cfn_analysis.rb', line 5692 def special_value @special_value end |
Class Method Details
.jsii_properties ⇒ Object
5694 5695 5696 5697 5698 5699 5700 |
# File 'quick_sight/cfn_analysis.rb', line 5694 def self.jsii_properties { :color => "color", :field_value => "fieldValue", :special_value => "specialValue", } end |
Instance Method Details
#to_jsii ⇒ Object
5702 5703 5704 5705 5706 5707 5708 5709 5710 |
# File 'quick_sight/cfn_analysis.rb', line 5702 def to_jsii result = {} result.merge!({ "color" => @color, "fieldValue" => @field_value, "specialValue" => @special_value, }) result.compact end |