Class: AWSCDK::QuickSight::CfnTemplate::KPIPrimaryValueConditionalFormattingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::KPIPrimaryValueConditionalFormattingProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The conditional formatting for the primary value of a KPI visual.
Instance Attribute Summary collapse
-
#icon ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting of the primary value's icon.
-
#text_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting of the primary value's text color.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(icon: nil, text_color: nil) ⇒ KPIPrimaryValueConditionalFormattingProperty
constructor
A new instance of KPIPrimaryValueConditionalFormattingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(icon: nil, text_color: nil) ⇒ KPIPrimaryValueConditionalFormattingProperty
Returns a new instance of KPIPrimaryValueConditionalFormattingProperty.
15195 15196 15197 15198 15199 15200 |
# File 'quick_sight/cfn_template.rb', line 15195 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 primary value's icon.
15206 15207 15208 |
# File 'quick_sight/cfn_template.rb', line 15206 def icon @icon end |
#text_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting of the primary value's text color.
15211 15212 15213 |
# File 'quick_sight/cfn_template.rb', line 15211 def text_color @text_color end |
Class Method Details
.jsii_properties ⇒ Object
15213 15214 15215 15216 15217 15218 |
# File 'quick_sight/cfn_template.rb', line 15213 def self.jsii_properties { :icon => "icon", :text_color => "textColor", } end |
Instance Method Details
#to_jsii ⇒ Object
15220 15221 15222 15223 15224 15225 15226 15227 |
# File 'quick_sight/cfn_template.rb', line 15220 def to_jsii result = {} result.merge!({ "icon" => @icon, "textColor" => @text_color, }) result.compact end |