Class: AWSCDK::QuickSight::CfnDashboard::TextConditionalFormatProperty

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



30116
30117
30118
30119
30120
30121
30122
30123
# File 'quick_sight/cfn_dashboard.rb', line 30116

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



30129
30130
30131
# File 'quick_sight/cfn_dashboard.rb', line 30129

def background_color
  @background_color
end

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

The conditional formatting for the text color.



30139
30140
30141
# File 'quick_sight/cfn_dashboard.rb', line 30139

def text_color
  @text_color
end

Class Method Details

.jsii_propertiesObject



30141
30142
30143
30144
30145
30146
30147
# File 'quick_sight/cfn_dashboard.rb', line 30141

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

Instance Method Details

#to_jsiiObject



30149
30150
30151
30152
30153
30154
30155
30156
30157
# File 'quick_sight/cfn_dashboard.rb', line 30149

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