Class: AWSCDK::QuickSight::CfnAnalysis::KPISparklineOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::KPISparklineOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The options that determine the visibility, color, type, and tooltip visibility of the sparkline of a KPI visual.
Instance Attribute Summary collapse
-
#color ⇒ String?
readonly
The color of the sparkline.
-
#tooltip_visibility ⇒ String?
readonly
The tooltip visibility of the sparkline.
-
#type ⇒ String
readonly
The type of the sparkline.
-
#visibility ⇒ String?
readonly
The visibility of the sparkline.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, color: nil, tooltip_visibility: nil, visibility: nil) ⇒ KPISparklineOptionsProperty
constructor
A new instance of KPISparklineOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, color: nil, tooltip_visibility: nil, visibility: nil) ⇒ KPISparklineOptionsProperty
Returns a new instance of KPISparklineOptionsProperty.
16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 |
# File 'quick_sight/cfn_analysis.rb', line 16899 def initialize(type:, color: nil, tooltip_visibility: nil, visibility: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @color = color Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless @color.nil? @tooltip_visibility = tooltip_visibility Jsii::Type.check_type(@tooltip_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tooltipVisibility") unless @tooltip_visibility.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? end |
Instance Attribute Details
#color ⇒ String? (readonly)
The color of the sparkline.
16919 16920 16921 |
# File 'quick_sight/cfn_analysis.rb', line 16919 def color @color end |
#tooltip_visibility ⇒ String? (readonly)
The tooltip visibility of the sparkline.
16924 16925 16926 |
# File 'quick_sight/cfn_analysis.rb', line 16924 def tooltip_visibility @tooltip_visibility end |
#type ⇒ String (readonly)
The type of the sparkline.
16914 16915 16916 |
# File 'quick_sight/cfn_analysis.rb', line 16914 def type @type end |
#visibility ⇒ String? (readonly)
The visibility of the sparkline.
16929 16930 16931 |
# File 'quick_sight/cfn_analysis.rb', line 16929 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
16931 16932 16933 16934 16935 16936 16937 16938 |
# File 'quick_sight/cfn_analysis.rb', line 16931 def self.jsii_properties { :type => "type", :color => "color", :tooltip_visibility => "tooltipVisibility", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 |
# File 'quick_sight/cfn_analysis.rb', line 16940 def to_jsii result = {} result.merge!({ "type" => @type, "color" => @color, "tooltipVisibility" => @tooltip_visibility, "visibility" => @visibility, }) result.compact end |