Class: AWSCDK::QuickSight::CfnTemplate::KPIProgressBarConditionalFormattingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::KPIProgressBarConditionalFormattingProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The conditional formatting for the progress bar of a KPI visual.
Instance Attribute Summary collapse
-
#foreground_color ⇒ AWSCDK::IResolvable, ...
readonly
The conditional formatting of the progress bar's foreground color.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(foreground_color: nil) ⇒ KPIProgressBarConditionalFormattingProperty
constructor
A new instance of KPIProgressBarConditionalFormattingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(foreground_color: nil) ⇒ KPIProgressBarConditionalFormattingProperty
Returns a new instance of KPIProgressBarConditionalFormattingProperty.
15237 15238 15239 15240 |
# File 'quick_sight/cfn_template.rb', line 15237 def initialize(foreground_color: nil) @foreground_color = foreground_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingColorProperty.new(**foreground_color.transform_keys(&:to_sym)) : foreground_color Jsii::Type.check_type(@foreground_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "foregroundColor") unless @foreground_color.nil? end |
Instance Attribute Details
#foreground_color ⇒ AWSCDK::IResolvable, ... (readonly)
The conditional formatting of the progress bar's foreground color.
15246 15247 15248 |
# File 'quick_sight/cfn_template.rb', line 15246 def foreground_color @foreground_color end |
Class Method Details
.jsii_properties ⇒ Object
15248 15249 15250 15251 15252 |
# File 'quick_sight/cfn_template.rb', line 15248 def self.jsii_properties { :foreground_color => "foregroundColor", } end |
Instance Method Details
#to_jsii ⇒ Object
15254 15255 15256 15257 15258 15259 15260 |
# File 'quick_sight/cfn_template.rb', line 15254 def to_jsii result = {} result.merge!({ "foregroundColor" => @foreground_color, }) result.compact end |