Class: AWSCDK::QuickSight::CfnTemplate::LegendOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::LegendOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The options for the legend setup of a visual.
Instance Attribute Summary collapse
-
#height ⇒ String?
readonly
The height of the legend.
-
#position ⇒ String?
readonly
The positions for the legend.
-
#title ⇒ AWSCDK::IResolvable, ...
readonly
The custom title for the legend.
- #value_font_configuration ⇒ AWSCDK::IResolvable, ... readonly
-
#visibility ⇒ String?
readonly
Determines whether or not the legend is visible.
-
#width ⇒ String?
readonly
The width of the legend.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(height: nil, position: nil, title: nil, value_font_configuration: nil, visibility: nil, width: nil) ⇒ LegendOptionsProperty
constructor
A new instance of LegendOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(height: nil, position: nil, title: nil, value_font_configuration: nil, visibility: nil, width: nil) ⇒ LegendOptionsProperty
Returns a new instance of LegendOptionsProperty.
15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 |
# File 'quick_sight/cfn_template.rb', line 15691 def initialize(height: nil, position: nil, title: nil, value_font_configuration: nil, visibility: nil, width: nil) @height = height Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "height") unless @height.nil? @position = position Jsii::Type.check_type(@position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "position") unless @position.nil? @title = title.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::LabelOptionsProperty.new(**title.transform_keys(&:to_sym)) : title Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkxhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "title") unless @title.nil? @value_font_configuration = value_font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FontConfigurationProperty.new(**value_font_configuration.transform_keys(&:to_sym)) : value_font_configuration Jsii::Type.check_type(@value_font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "valueFontConfiguration") unless @value_font_configuration.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? @width = width Jsii::Type.check_type(@width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "width") unless @width.nil? end |
Instance Attribute Details
#height ⇒ String? (readonly)
The height of the legend.
If this value is omitted, a default height is used when rendering.
15712 15713 15714 |
# File 'quick_sight/cfn_template.rb', line 15712 def height @height end |
#position ⇒ String? (readonly)
The positions for the legend. Choose one of the following options:.
AUTORIGHTBOTTOMLEFT
15722 15723 15724 |
# File 'quick_sight/cfn_template.rb', line 15722 def position @position end |
#title ⇒ AWSCDK::IResolvable, ... (readonly)
The custom title for the legend.
15727 15728 15729 |
# File 'quick_sight/cfn_template.rb', line 15727 def title @title end |
#value_font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
15730 15731 15732 |
# File 'quick_sight/cfn_template.rb', line 15730 def value_font_configuration @value_font_configuration end |
#visibility ⇒ String? (readonly)
Determines whether or not the legend is visible.
15735 15736 15737 |
# File 'quick_sight/cfn_template.rb', line 15735 def visibility @visibility end |
#width ⇒ String? (readonly)
The width of the legend.
If this value is omitted, a default width is used when rendering.
15742 15743 15744 |
# File 'quick_sight/cfn_template.rb', line 15742 def width @width end |
Class Method Details
.jsii_properties ⇒ Object
15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 |
# File 'quick_sight/cfn_template.rb', line 15744 def self.jsii_properties { :height => "height", :position => "position", :title => "title", :value_font_configuration => "valueFontConfiguration", :visibility => "visibility", :width => "width", } end |
Instance Method Details
#to_jsii ⇒ Object
15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 |
# File 'quick_sight/cfn_template.rb', line 15755 def to_jsii result = {} result.merge!({ "height" => @height, "position" => @position, "title" => @title, "valueFontConfiguration" => @value_font_configuration, "visibility" => @visibility, "width" => @width, }) result.compact end |