Class: AWSCDK::QuickSight::CfnDashboard::FontSizeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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.



11767
11768
11769
11770
11771
11772
# File 'quick_sight/cfn_dashboard.rb', line 11767

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.



11778
11779
11780
# File 'quick_sight/cfn_dashboard.rb', line 11778

def absolute
  @absolute
end

#relativeString? (readonly)

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



11783
11784
11785
# File 'quick_sight/cfn_dashboard.rb', line 11783

def relative
  @relative
end

Class Method Details

.jsii_propertiesObject



11785
11786
11787
11788
11789
11790
# File 'quick_sight/cfn_dashboard.rb', line 11785

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

Instance Method Details

#to_jsiiObject



11792
11793
11794
11795
11796
11797
11798
11799
# File 'quick_sight/cfn_dashboard.rb', line 11792

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