Class: AWSCDK::QuickSight::CfnDashboard::KPIProgressBarConditionalFormattingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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:



17769
17770
17771
17772
# File 'quick_sight/cfn_dashboard.rb', line 17769

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

Instance Attribute Details

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

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



17778
17779
17780
# File 'quick_sight/cfn_dashboard.rb', line 17778

def foreground_color
  @foreground_color
end

Class Method Details

.jsii_propertiesObject



17780
17781
17782
17783
17784
# File 'quick_sight/cfn_dashboard.rb', line 17780

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

Instance Method Details

#to_jsiiObject



17786
17787
17788
17789
17790
17791
17792
# File 'quick_sight/cfn_dashboard.rb', line 17786

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