Class: AWSCDK::QuickSight::CfnDashboard::DataPathColorProperty

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

Overview

The color map that determines the color options for a particular element.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color:, element:, time_granularity: nil) ⇒ DataPathColorProperty

Returns a new instance of DataPathColorProperty.

Parameters:



6992
6993
6994
6995
6996
6997
6998
6999
# File 'quick_sight/cfn_dashboard.rb', line 6992

def initialize(color:, element:, time_granularity: nil)
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color")
  @element = element.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DataPathValueProperty.new(**element.transform_keys(&:to_sym)) : element
  Jsii::Type.check_type(@element, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EYXRhUGF0aFZhbHVlUHJvcGVydHkifV19fQ==")), "element")
  @time_granularity = time_granularity
  Jsii::Type.check_type(@time_granularity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timeGranularity") unless @time_granularity.nil?
end

Instance Attribute Details

#colorString (readonly)

The color that needs to be applied to the element.



7005
7006
7007
# File 'quick_sight/cfn_dashboard.rb', line 7005

def color
  @color
end

#time_granularityString? (readonly)

The time granularity of the field that the color needs to be applied to.



7015
7016
7017
# File 'quick_sight/cfn_dashboard.rb', line 7015

def time_granularity
  @time_granularity
end

Class Method Details

.jsii_propertiesObject



7017
7018
7019
7020
7021
7022
7023
# File 'quick_sight/cfn_dashboard.rb', line 7017

def self.jsii_properties
  {
    :color => "color",
    :element => "element",
    :time_granularity => "timeGranularity",
  }
end

Instance Method Details

#to_jsiiObject



7025
7026
7027
7028
7029
7030
7031
7032
7033
# File 'quick_sight/cfn_dashboard.rb', line 7025

def to_jsii
  result = {}
  result.merge!({
    "color" => @color,
    "element" => @element,
    "timeGranularity" => @time_granularity,
  })
  result.compact
end