Class: AWSCDK::QuickSight::CfnDashboard::FontSizeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::FontSizeProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The option that determines the text display size.
Instance Attribute Summary collapse
-
#absolute ⇒ String?
readonly
The font size that you want to use in px.
-
#relative ⇒ String?
readonly
The lexical name for the text size, proportional to its surrounding context.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(absolute: nil, relative: nil) ⇒ FontSizeProperty
constructor
A new instance of FontSizeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(absolute: nil, relative: nil) ⇒ FontSizeProperty
Returns a new instance of FontSizeProperty.
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
#absolute ⇒ String? (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 |
#relative ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |