Class: AWSCDK::QuickSight::CfnTemplate::TableRowConditionalFormattingProperty

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



26558
26559
26560
26561
26562
26563
# File 'quick_sight/cfn_template.rb', line 26558

def initialize(background_color: nil, text_color: nil)
  @background_color = background_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingColorProperty.new(**background_color.transform_keys(&:to_sym)) : background_color
  Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "backgroundColor") unless @background_color.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

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

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



26569
26570
26571
# File 'quick_sight/cfn_template.rb', line 26569

def background_color
  @background_color
end

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

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



26574
26575
26576
# File 'quick_sight/cfn_template.rb', line 26574

def text_color
  @text_color
end

Class Method Details

.jsii_propertiesObject



26576
26577
26578
26579
26580
26581
# File 'quick_sight/cfn_template.rb', line 26576

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

Instance Method Details

#to_jsiiObject



26583
26584
26585
26586
26587
26588
26589
26590
# File 'quick_sight/cfn_template.rb', line 26583

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