Class: AWSCDK::QuickSight::CfnDashboard::VisualPaletteProperty

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

Overview

The visual display options for the visual palette.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chart_color: nil, color_map: nil) ⇒ VisualPaletteProperty

Returns a new instance of VisualPaletteProperty.

Parameters:



32225
32226
32227
32228
32229
32230
# File 'quick_sight/cfn_dashboard.rb', line 32225

def initialize(chart_color: nil, color_map: nil)
  @chart_color = chart_color
  Jsii::Type.check_type(@chart_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "chartColor") unless @chart_color.nil?
  @color_map = color_map
  Jsii::Type.check_type(@color_map, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuRGF0YVBhdGhDb2xvclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "colorMap") unless @color_map.nil?
end

Instance Attribute Details

#chart_colorString? (readonly)

The chart color options for the visual palette.



32236
32237
32238
# File 'quick_sight/cfn_dashboard.rb', line 32236

def chart_color
  @chart_color
end

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

The color map options for the visual palette.



32241
32242
32243
# File 'quick_sight/cfn_dashboard.rb', line 32241

def color_map
  @color_map
end

Class Method Details

.jsii_propertiesObject



32243
32244
32245
32246
32247
32248
# File 'quick_sight/cfn_dashboard.rb', line 32243

def self.jsii_properties
  {
    :chart_color => "chartColor",
    :color_map => "colorMap",
  }
end

Instance Method Details

#to_jsiiObject



32250
32251
32252
32253
32254
32255
32256
32257
# File 'quick_sight/cfn_dashboard.rb', line 32250

def to_jsii
  result = {}
  result.merge!({
    "chartColor" => @chart_color,
    "colorMap" => @color_map,
  })
  result.compact
end