Class: AWSCDK::QuickSight::CfnTemplate::KPISparklineOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::KPISparklineOptionsProperty
- Defined in:
- quick_sight/cfn_template.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.
15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 |
# File 'quick_sight/cfn_template.rb', line 15306 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.
15326 15327 15328 |
# File 'quick_sight/cfn_template.rb', line 15326 def color @color end |
#tooltip_visibility ⇒ String? (readonly)
The tooltip visibility of the sparkline.
15331 15332 15333 |
# File 'quick_sight/cfn_template.rb', line 15331 def tooltip_visibility @tooltip_visibility end |
#type ⇒ String (readonly)
The type of the sparkline.
15321 15322 15323 |
# File 'quick_sight/cfn_template.rb', line 15321 def type @type end |
#visibility ⇒ String? (readonly)
The visibility of the sparkline.
15336 15337 15338 |
# File 'quick_sight/cfn_template.rb', line 15336 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
15338 15339 15340 15341 15342 15343 15344 15345 |
# File 'quick_sight/cfn_template.rb', line 15338 def self.jsii_properties { :type => "type", :color => "color", :tooltip_visibility => "tooltipVisibility", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 |
# File 'quick_sight/cfn_template.rb', line 15347 def to_jsii result = {} result.merge!({ "type" => @type, "color" => @color, "tooltipVisibility" => @tooltip_visibility, "visibility" => @visibility, }) result.compact end |