Class: AWSCDK::QuickSight::CfnDashboard::FontConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::FontConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
Configures the display properties of the given text.
Instance Attribute Summary collapse
-
#font_color ⇒ String?
readonly
Determines the color of the text.
-
#font_decoration ⇒ String?
readonly
Determines the appearance of decorative lines on the text.
-
#font_family ⇒ String?
readonly
The font family that you want to use.
-
#font_size ⇒ AWSCDK::IResolvable, ...
readonly
The option that determines the text display size.
-
#font_style ⇒ String?
readonly
Determines the text display face that is inherited by the given font family.
-
#font_weight ⇒ AWSCDK::IResolvable, ...
readonly
The option that determines the text display weight, or boldness.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(font_color: nil, font_decoration: nil, font_family: nil, font_size: nil, font_style: nil, font_weight: nil) ⇒ FontConfigurationProperty
constructor
A new instance of FontConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(font_color: nil, font_decoration: nil, font_family: nil, font_size: nil, font_style: nil, font_weight: nil) ⇒ FontConfigurationProperty
Returns a new instance of FontConfigurationProperty.
11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 |
# File 'quick_sight/cfn_dashboard.rb', line 11688 def initialize(font_color: nil, font_decoration: nil, font_family: nil, font_size: nil, font_style: nil, font_weight: nil) @font_color = font_color Jsii::Type.check_type(@font_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontColor") unless @font_color.nil? @font_decoration = font_decoration Jsii::Type.check_type(@font_decoration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontDecoration") unless @font_decoration.nil? @font_family = font_family Jsii::Type.check_type(@font_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontFamily") unless @font_family.nil? @font_size = font_size.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FontSizeProperty.new(**font_size.transform_keys(&:to_sym)) : font_size Jsii::Type.check_type(@font_size, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Gb250U2l6ZVByb3BlcnR5In1dfX0=")), "fontSize") unless @font_size.nil? @font_style = font_style Jsii::Type.check_type(@font_style, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontStyle") unless @font_style.nil? @font_weight = font_weight.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FontWeightProperty.new(**font_weight.transform_keys(&:to_sym)) : font_weight Jsii::Type.check_type(@font_weight, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Gb250V2VpZ2h0UHJvcGVydHkifV19fQ==")), "fontWeight") unless @font_weight.nil? end |
Instance Attribute Details
#font_color ⇒ String? (readonly)
Determines the color of the text.
11707 11708 11709 |
# File 'quick_sight/cfn_dashboard.rb', line 11707 def font_color @font_color end |
#font_decoration ⇒ String? (readonly)
Determines the appearance of decorative lines on the text.
11712 11713 11714 |
# File 'quick_sight/cfn_dashboard.rb', line 11712 def font_decoration @font_decoration end |
#font_family ⇒ String? (readonly)
The font family that you want to use.
11717 11718 11719 |
# File 'quick_sight/cfn_dashboard.rb', line 11717 def font_family @font_family end |
#font_size ⇒ AWSCDK::IResolvable, ... (readonly)
The option that determines the text display size.
11722 11723 11724 |
# File 'quick_sight/cfn_dashboard.rb', line 11722 def font_size @font_size end |
#font_style ⇒ String? (readonly)
Determines the text display face that is inherited by the given font family.
11727 11728 11729 |
# File 'quick_sight/cfn_dashboard.rb', line 11727 def font_style @font_style end |
#font_weight ⇒ AWSCDK::IResolvable, ... (readonly)
The option that determines the text display weight, or boldness.
11732 11733 11734 |
# File 'quick_sight/cfn_dashboard.rb', line 11732 def font_weight @font_weight end |
Class Method Details
.jsii_properties ⇒ Object
11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 |
# File 'quick_sight/cfn_dashboard.rb', line 11734 def self.jsii_properties { :font_color => "fontColor", :font_decoration => "fontDecoration", :font_family => "fontFamily", :font_size => "fontSize", :font_style => "fontStyle", :font_weight => "fontWeight", } end |
Instance Method Details
#to_jsii ⇒ Object
11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 |
# File 'quick_sight/cfn_dashboard.rb', line 11745 def to_jsii result = {} result.merge!({ "fontColor" => @font_color, "fontDecoration" => @font_decoration, "fontFamily" => @font_family, "fontSize" => @font_size, "fontStyle" => @font_style, "fontWeight" => @font_weight, }) result.compact end |