Class: AWSCDK::QuickSight::CfnTemplate::TextConditionalFormatProperty

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

Overview

The conditional formatting for the text.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(background_color: nil, icon: nil, text_color: nil) ⇒ TextConditionalFormatProperty

Returns a new instance of TextConditionalFormatProperty.

Parameters:



27360
27361
27362
27363
27364
27365
27366
27367
# File 'quick_sight/cfn_template.rb', line 27360

def initialize(background_color: nil, icon: 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?
  @icon = icon.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingIconProperty.new(**icon.transform_keys(&:to_sym)) : icon
  Jsii::Type.check_type(@icon, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0ljb25Qcm9wZXJ0eSJ9XX19")), "icon") unless @icon.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 for the text background color.



27373
27374
27375
# File 'quick_sight/cfn_template.rb', line 27373

def background_color
  @background_color
end

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

The conditional formatting for the text color.



27383
27384
27385
# File 'quick_sight/cfn_template.rb', line 27383

def text_color
  @text_color
end

Class Method Details

.jsii_propertiesObject



27385
27386
27387
27388
27389
27390
27391
# File 'quick_sight/cfn_template.rb', line 27385

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

Instance Method Details

#to_jsiiObject



27393
27394
27395
27396
27397
27398
27399
27400
27401
# File 'quick_sight/cfn_template.rb', line 27393

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