Class: AWSCDK::QuickSight::CfnTemplate::FontSizeProperty

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

Overview

The option that determines the text display size.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(absolute: nil, relative: nil) ⇒ FontSizeProperty

Returns a new instance of FontSizeProperty.

Parameters:

  • absolute (String, nil) (defaults to: nil)

    The font size that you want to use in px.

  • relative (String, nil) (defaults to: nil)

    The lexical name for the text size, proportional to its surrounding context.



10822
10823
10824
10825
10826
10827
# File 'quick_sight/cfn_template.rb', line 10822

def initialize(absolute: nil, relative: nil)
  @absolute = absolute
  Jsii::Type.check_type(@absolute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "absolute") unless @absolute.nil?
  @relative = relative
  Jsii::Type.check_type(@relative, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "relative") unless @relative.nil?
end

Instance Attribute Details

#absoluteString? (readonly)

The font size that you want to use in px.



10833
10834
10835
# File 'quick_sight/cfn_template.rb', line 10833

def absolute
  @absolute
end

#relativeString? (readonly)

The lexical name for the text size, proportional to its surrounding context.



10838
10839
10840
# File 'quick_sight/cfn_template.rb', line 10838

def relative
  @relative
end

Class Method Details

.jsii_propertiesObject



10840
10841
10842
10843
10844
10845
# File 'quick_sight/cfn_template.rb', line 10840

def self.jsii_properties
  {
    :absolute => "absolute",
    :relative => "relative",
  }
end

Instance Method Details

#to_jsiiObject



10847
10848
10849
10850
10851
10852
10853
10854
# File 'quick_sight/cfn_template.rb', line 10847

def to_jsii
  result = {}
  result.merge!({
    "absolute" => @absolute,
    "relative" => @relative,
  })
  result.compact
end