Class: AWSCDK::QuickSight::CfnAnalysis::KPIProgressBarConditionalFormattingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

The conditional formatting for the progress bar of a KPI visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(foreground_color: nil) ⇒ KPIProgressBarConditionalFormattingProperty

Returns a new instance of KPIProgressBarConditionalFormattingProperty.

Parameters:



16830
16831
16832
16833
# File 'quick_sight/cfn_analysis.rb', line 16830

def initialize(foreground_color: nil)
  @foreground_color = foreground_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ConditionalFormattingColorProperty.new(**foreground_color.transform_keys(&:to_sym)) : foreground_color
  Jsii::Type.check_type(@foreground_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "foregroundColor") unless @foreground_color.nil?
end

Instance Attribute Details

#foreground_colorAWSCDK::IResolvable, ... (readonly)

The conditional formatting of the progress bar's foreground color.



16839
16840
16841
# File 'quick_sight/cfn_analysis.rb', line 16839

def foreground_color
  @foreground_color
end

Class Method Details

.jsii_propertiesObject



16841
16842
16843
16844
16845
# File 'quick_sight/cfn_analysis.rb', line 16841

def self.jsii_properties
  {
    :foreground_color => "foregroundColor",
  }
end

Instance Method Details

#to_jsiiObject



16847
16848
16849
16850
16851
16852
16853
# File 'quick_sight/cfn_analysis.rb', line 16847

def to_jsii
  result = {}
  result.merge!({
    "foregroundColor" => @foreground_color,
  })
  result.compact
end