Class: AWSCDK::QuickSight::CfnAnalysis::TableRowConditionalFormattingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::TableRowConditionalFormattingProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The conditional formatting of a table row.
Instance Attribute Summary collapse
-
#background_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting color (solid, gradient) of the background for a table row.
-
#text_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting color (solid, gradient) of the text for a table row.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(background_color: nil, text_color: nil) ⇒ TableRowConditionalFormattingProperty
constructor
A new instance of TableRowConditionalFormattingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(background_color: nil, text_color: nil) ⇒ TableRowConditionalFormattingProperty
Returns a new instance of TableRowConditionalFormattingProperty.
28690 28691 28692 28693 28694 28695 |
# File 'quick_sight/cfn_analysis.rb', line 28690 def initialize(background_color: nil, text_color: nil) @background_color = background_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ConditionalFormattingColorProperty.new(**background_color.transform_keys(&:to_sym)) : background_color Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "backgroundColor") unless @background_color.nil? @text_color = text_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ConditionalFormattingColorProperty.new(**text_color.transform_keys(&:to_sym)) : text_color Jsii::Type.check_type(@text_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "textColor") unless @text_color.nil? end |
Instance Attribute Details
#background_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting color (solid, gradient) of the background for a table row.
28701 28702 28703 |
# File 'quick_sight/cfn_analysis.rb', line 28701 def background_color @background_color end |
#text_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting color (solid, gradient) of the text for a table row.
28706 28707 28708 |
# File 'quick_sight/cfn_analysis.rb', line 28706 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
28708 28709 28710 28711 28712 28713 |
# File 'quick_sight/cfn_analysis.rb', line 28708 def self.jsii_properties { :background_color => "backgroundColor", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
28715 28716 28717 28718 28719 28720 28721 28722 |
# File 'quick_sight/cfn_analysis.rb', line 28715 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "textColor" => @text_color, }) result.compact end |