Class: AWSCDK::QuickSight::CfnAnalysis::DataPathColorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::DataPathColorProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The color map that determines the color options for a particular element.
Instance Attribute Summary collapse
-
#color ⇒ String
readonly
The color that needs to be applied to the element.
-
#element ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::DataPathValueProperty
readonly
The element that the color needs to be applied to.
-
#time_granularity ⇒ String?
readonly
The time granularity of the field that the color needs to be applied to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color:, element:, time_granularity: nil) ⇒ DataPathColorProperty
constructor
A new instance of DataPathColorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(color:, element:, time_granularity: nil) ⇒ DataPathColorProperty
Returns a new instance of DataPathColorProperty.
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
#color ⇒ String (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 |
#element ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::DataPathValueProperty (readonly)
The element that the color needs to be applied to.
6556 6557 6558 |
# File 'quick_sight/cfn_analysis.rb', line 6556 def element @element end |
#time_granularity ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |