Class: AWSCDK::QuickSight::CfnTemplate::TextConditionalFormatProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::TextConditionalFormatProperty
- Defined in:
- quick_sight/cfn_template.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.
27360 27361 27362 27363 27364 27365 27366 27367 |
# File 'quick_sight/cfn_template.rb', line 27360 def initialize(background_color: nil, icon: nil, text_color: nil) @background_color = background_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingColorProperty.new(**background_color.transform_keys(&:to_sym)) : background_color Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "backgroundColor") unless @background_color.nil? @icon = icon.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingIconProperty.new(**icon.transform_keys(&:to_sym)) : icon Jsii::Type.check_type(@icon, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0ljb25Qcm9wZXJ0eSJ9XX19")), "icon") unless @icon.nil? @text_color = text_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingColorProperty.new(**text_color.transform_keys(&:to_sym)) : text_color Jsii::Type.check_type(@text_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "textColor") unless @text_color.nil? end |
Instance Attribute Details
#background_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting for the text background color.
27373 27374 27375 |
# File 'quick_sight/cfn_template.rb', line 27373 def background_color @background_color end |
#icon ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting for the icon.
27378 27379 27380 |
# File 'quick_sight/cfn_template.rb', line 27378 def icon @icon end |
#text_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting for the text color.
27383 27384 27385 |
# File 'quick_sight/cfn_template.rb', line 27383 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
27385 27386 27387 27388 27389 27390 27391 |
# File 'quick_sight/cfn_template.rb', line 27385 def self.jsii_properties { :background_color => "backgroundColor", :icon => "icon", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
27393 27394 27395 27396 27397 27398 27399 27400 27401 |
# File 'quick_sight/cfn_template.rb', line 27393 def to_jsii result = {} result.merge!({ "backgroundColor" => @background_color, "icon" => @icon, "textColor" => @text_color, }) result.compact end |