Class: AWSCDK::QuickSight::CfnDashboard::TextConditionalFormatProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::TextConditionalFormatProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The conditional formatting for the text.
Instance Attribute Summary collapse
-
#background_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting for the text background color.
-
#icon ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting for the icon.
-
#text_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting for the text color.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(background_color: nil, icon: nil, text_color: nil) ⇒ TextConditionalFormatProperty
constructor
A new instance of TextConditionalFormatProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(background_color: nil, icon: nil, text_color: nil) ⇒ TextConditionalFormatProperty
Returns a new instance of TextConditionalFormatProperty.
30116 30117 30118 30119 30120 30121 30122 30123 |
# File 'quick_sight/cfn_dashboard.rb', line 30116 def initialize(background_color: nil, icon: 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? @icon = icon.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ConditionalFormattingIconProperty.new(**icon.transform_keys(&:to_sym)) : icon Jsii::Type.check_type(@icon, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db25kaXRpb25hbEZvcm1hdHRpbmdJY29uUHJvcGVydHkifV19fQ==")), "icon") unless @icon.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 for the text background color.
30129 30130 30131 |
# File 'quick_sight/cfn_dashboard.rb', line 30129 def background_color @background_color end |
#icon ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting for the icon.
30134 30135 30136 |
# File 'quick_sight/cfn_dashboard.rb', line 30134 def icon @icon end |
#text_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting for the text color.
30139 30140 30141 |
# File 'quick_sight/cfn_dashboard.rb', line 30139 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
30141 30142 30143 30144 30145 30146 30147 |
# File 'quick_sight/cfn_dashboard.rb', line 30141 def self.jsii_properties { :background_color => "backgroundColor", :icon => "icon", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
30149 30150 30151 30152 30153 30154 30155 30156 30157 |
# File 'quick_sight/cfn_dashboard.rb', line 30149 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "icon" => @icon, "textColor" => @text_color, }) result.compact end |