Class: AWSCDK::QuickSight::CfnDashboard::TableRowConditionalFormattingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::TableRowConditionalFormattingProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
29728 29729 29730 29731 29732 29733 |
# File 'quick_sight/cfn_dashboard.rb', line 29728 def initialize(background_color: nil, text_color: nil) @background_color = background_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ConditionalFormattingColorProperty.new(**background_color.transform_keys(&:to_sym)) : background_color Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db25kaXRpb25hbEZvcm1hdHRpbmdDb2xvclByb3BlcnR5In1dfX0=")), "backgroundColor") unless @background_color.nil? @text_color = text_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ConditionalFormattingColorProperty.new(**text_color.transform_keys(&:to_sym)) : text_color Jsii::Type.check_type(@text_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db25kaXRpb25hbEZvcm1hdHRpbmdDb2xvclByb3BlcnR5In1dfX0=")), "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.
29739 29740 29741 |
# File 'quick_sight/cfn_dashboard.rb', line 29739 def background_color @background_color end |
#text_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting color (solid, gradient) of the text for a table row.
29744 29745 29746 |
# File 'quick_sight/cfn_dashboard.rb', line 29744 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
29746 29747 29748 29749 29750 29751 |
# File 'quick_sight/cfn_dashboard.rb', line 29746 def self.jsii_properties { :background_color => "backgroundColor", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
29753 29754 29755 29756 29757 29758 29759 29760 |
# File 'quick_sight/cfn_dashboard.rb', line 29753 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "textColor" => @text_color, }) result.compact end |