Class: AWSCDK::QuickSight::CfnDashboard::KPISparklineOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::KPISparklineOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 |
# File 'quick_sight/cfn_dashboard.rb', line 17838 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.
17858 17859 17860 |
# File 'quick_sight/cfn_dashboard.rb', line 17858 def color @color end |
#tooltip_visibility ⇒ String? (readonly)
The tooltip visibility of the sparkline.
17863 17864 17865 |
# File 'quick_sight/cfn_dashboard.rb', line 17863 def tooltip_visibility @tooltip_visibility end |
#type ⇒ String (readonly)
The type of the sparkline.
17853 17854 17855 |
# File 'quick_sight/cfn_dashboard.rb', line 17853 def type @type end |
#visibility ⇒ String? (readonly)
The visibility of the sparkline.
17868 17869 17870 |
# File 'quick_sight/cfn_dashboard.rb', line 17868 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
17870 17871 17872 17873 17874 17875 17876 17877 |
# File 'quick_sight/cfn_dashboard.rb', line 17870 def self.jsii_properties { :type => "type", :color => "color", :tooltip_visibility => "tooltipVisibility", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 |
# File 'quick_sight/cfn_dashboard.rb', line 17879 def to_jsii result = {} result.merge!({ "type" => @type, "color" => @color, "tooltipVisibility" => @tooltip_visibility, "visibility" => @visibility, }) result.compact end |