Class: AWSCDK::QuickSight::CfnTemplate::KPIActualValueConditionalFormattingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::KPIActualValueConditionalFormattingProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The conditional formatting for the actual value of a KPI visual.
Instance Attribute Summary collapse
-
#icon ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting of the actual value's icon.
-
#text_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting of the actual value's text color.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(icon: nil, text_color: nil) ⇒ KPIActualValueConditionalFormattingProperty
constructor
A new instance of KPIActualValueConditionalFormattingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(icon: nil, text_color: nil) ⇒ KPIActualValueConditionalFormattingProperty
Returns a new instance of KPIActualValueConditionalFormattingProperty.
14784 14785 14786 14787 14788 14789 |
# File 'quick_sight/cfn_template.rb', line 14784 def initialize(icon: nil, text_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
#icon ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting of the actual value's icon.
14795 14796 14797 |
# File 'quick_sight/cfn_template.rb', line 14795 def icon @icon end |
#text_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting of the actual value's text color.
14800 14801 14802 |
# File 'quick_sight/cfn_template.rb', line 14800 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
14802 14803 14804 14805 14806 14807 |
# File 'quick_sight/cfn_template.rb', line 14802 def self.jsii_properties { :icon => "icon", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
14809 14810 14811 14812 14813 14814 14815 14816 |
# File 'quick_sight/cfn_template.rb', line 14809 def to_jsii result = {} result.merge!({ "icon" => @icon, "textColor" => @text_color, }) result.compact end |