Class: AWSCDK::QuickSight::CfnAnalysis::ShapeConditionalFormatProperty

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



25927
25928
25929
25930
# File 'quick_sight/cfn_analysis.rb', line 25927

def initialize(background_color:)
  @background_color = background_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ConditionalFormattingColorProperty.new(**background_color.transform_keys(&:to_sym)) : background_color
  Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNvbmRpdGlvbmFsRm9ybWF0dGluZ0NvbG9yUHJvcGVydHkifV19fQ==")), "backgroundColor")
end

Instance Attribute Details

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

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



25936
25937
25938
# File 'quick_sight/cfn_analysis.rb', line 25936

def background_color
  @background_color
end

Class Method Details

.jsii_propertiesObject



25938
25939
25940
25941
25942
# File 'quick_sight/cfn_analysis.rb', line 25938

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

Instance Method Details

#to_jsiiObject



25944
25945
25946
25947
25948
25949
25950
# File 'quick_sight/cfn_analysis.rb', line 25944

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