Class: AWSCDK::QuickSight::CfnAnalysis::FontSizeProperty

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



11014
11015
11016
11017
11018
11019
# File 'quick_sight/cfn_analysis.rb', line 11014

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.



11025
11026
11027
# File 'quick_sight/cfn_analysis.rb', line 11025

def absolute
  @absolute
end

#relativeString? (readonly)

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



11030
11031
11032
# File 'quick_sight/cfn_analysis.rb', line 11030

def relative
  @relative
end

Class Method Details

.jsii_propertiesObject



11032
11033
11034
11035
11036
11037
# File 'quick_sight/cfn_analysis.rb', line 11032

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

Instance Method Details

#to_jsiiObject



11039
11040
11041
11042
11043
11044
11045
11046
# File 'quick_sight/cfn_analysis.rb', line 11039

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