Class: AWSCDK::QuickSight::CfnAnalysis::DataPathColorProperty

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



6538
6539
6540
6541
6542
6543
6544
6545
# File 'quick_sight/cfn_analysis.rb', line 6538

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::CfnAnalysis::DataPathValueProperty.new(**element.transform_keys(&:to_sym)) : element
  Jsii::Type.check_type(@element, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRhdGFQYXRoVmFsdWVQcm9wZXJ0eSJ9XX19")), "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.



6551
6552
6553
# File 'quick_sight/cfn_analysis.rb', line 6551

def color
  @color
end

#time_granularityString? (readonly)

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



6561
6562
6563
# File 'quick_sight/cfn_analysis.rb', line 6561

def time_granularity
  @time_granularity
end

Class Method Details

.jsii_propertiesObject



6563
6564
6565
6566
6567
6568
6569
# File 'quick_sight/cfn_analysis.rb', line 6563

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

Instance Method Details

#to_jsiiObject



6571
6572
6573
6574
6575
6576
6577
6578
6579
# File 'quick_sight/cfn_analysis.rb', line 6571

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