Class: AWSCDK::QuickSight::CfnTemplate::LegendOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.rb

Overview

The options for the legend setup of a visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(height: nil, position: nil, title: nil, value_font_configuration: nil, visibility: nil, width: nil) ⇒ LegendOptionsProperty

Returns a new instance of LegendOptionsProperty.

Parameters:



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

#heightString? (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

#positionString? (readonly)

The positions for the legend. Choose one of the following options:.

  • AUTO
  • RIGHT
  • BOTTOM
  • LEFT


15722
15723
15724
# File 'quick_sight/cfn_template.rb', line 15722

def position
  @position
end

#titleAWSCDK::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_configurationAWSCDK::IResolvable, ... (readonly)



15730
15731
15732
# File 'quick_sight/cfn_template.rb', line 15730

def value_font_configuration
  @value_font_configuration
end

#visibilityString? (readonly)

Determines whether or not the legend is visible.



15735
15736
15737
# File 'quick_sight/cfn_template.rb', line 15735

def visibility
  @visibility
end

#widthString? (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_propertiesObject



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_jsiiObject



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