Class: AWSCDK::QuickSight::CfnTemplate::ShapeConditionalFormatProperty

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

Overview

The shape conditional formatting of a filled map visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(background_color:) ⇒ ShapeConditionalFormatProperty

Returns a new instance of ShapeConditionalFormatProperty.

Parameters:



24053
24054
24055
24056
# File 'quick_sight/cfn_template.rb', line 24053

def initialize(background_color:)
  @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")
end

Instance Attribute Details

#background_colorAWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::ConditionalFormattingColorProperty (readonly)

The conditional formatting for the shape background color of a filled map visual.



24062
24063
24064
# File 'quick_sight/cfn_template.rb', line 24062

def background_color
  @background_color
end

Class Method Details

.jsii_propertiesObject



24064
24065
24066
24067
24068
# File 'quick_sight/cfn_template.rb', line 24064

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

Instance Method Details

#to_jsiiObject



24070
24071
24072
24073
24074
24075
24076
# File 'quick_sight/cfn_template.rb', line 24070

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