Class: AWSCDK::QuickSight::CfnDashboard::TableRowConditionalFormattingProperty

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

Overview

The conditional formatting of a table row.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(background_color: nil, text_color: nil) ⇒ TableRowConditionalFormattingProperty

Returns a new instance of TableRowConditionalFormattingProperty.

Parameters:



29728
29729
29730
29731
29732
29733
# File 'quick_sight/cfn_dashboard.rb', line 29728

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

Instance Attribute Details

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

The conditional formatting color (solid, gradient) of the background for a table row.



29739
29740
29741
# File 'quick_sight/cfn_dashboard.rb', line 29739

def background_color
  @background_color
end

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

The conditional formatting color (solid, gradient) of the text for a table row.



29744
29745
29746
# File 'quick_sight/cfn_dashboard.rb', line 29744

def text_color
  @text_color
end

Class Method Details

.jsii_propertiesObject



29746
29747
29748
29749
29750
29751
# File 'quick_sight/cfn_dashboard.rb', line 29746

def self.jsii_properties
  {
    :background_color => "backgroundColor",
    :text_color => "textColor",
  }
end

Instance Method Details

#to_jsiiObject



29753
29754
29755
29756
29757
29758
29759
29760
# File 'quick_sight/cfn_dashboard.rb', line 29753

def to_jsii
  result = {}
  result.merge!({
    "backgroundColor" => @background_color,
    "textColor" => @text_color,
  })
  result.compact
end