Class: AWSCDK::QuickSight::CfnAnalysis::FontConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::FontConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 |
# File 'quick_sight/cfn_analysis.rb', line 10935 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::CfnAnalysis::FontSizeProperty.new(**font_size.transform_keys(&:to_sym)) : font_size Jsii::Type.check_type(@font_size, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZvbnRTaXplUHJvcGVydHkifV19fQ==")), "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::CfnAnalysis::FontWeightProperty.new(**font_weight.transform_keys(&:to_sym)) : font_weight Jsii::Type.check_type(@font_weight, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZvbnRXZWlnaHRQcm9wZXJ0eSJ9XX19")), "fontWeight") unless @font_weight.nil? end |
Instance Attribute Details
#font_color ⇒ String? (readonly)
Determines the color of the text.
10954 10955 10956 |
# File 'quick_sight/cfn_analysis.rb', line 10954 def font_color @font_color end |
#font_decoration ⇒ String? (readonly)
Determines the appearance of decorative lines on the text.
10959 10960 10961 |
# File 'quick_sight/cfn_analysis.rb', line 10959 def font_decoration @font_decoration end |
#font_family ⇒ String? (readonly)
The font family that you want to use.
10964 10965 10966 |
# File 'quick_sight/cfn_analysis.rb', line 10964 def font_family @font_family end |
#font_size ⇒ AWSCDK::IResolvable, ... (readonly)
The option that determines the text display size.
10969 10970 10971 |
# File 'quick_sight/cfn_analysis.rb', line 10969 def font_size @font_size end |
#font_style ⇒ String? (readonly)
Determines the text display face that is inherited by the given font family.
10974 10975 10976 |
# File 'quick_sight/cfn_analysis.rb', line 10974 def font_style @font_style end |
#font_weight ⇒ AWSCDK::IResolvable, ... (readonly)
The option that determines the text display weight, or boldness.
10979 10980 10981 |
# File 'quick_sight/cfn_analysis.rb', line 10979 def font_weight @font_weight end |
Class Method Details
.jsii_properties ⇒ Object
10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 |
# File 'quick_sight/cfn_analysis.rb', line 10981 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
10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 |
# File 'quick_sight/cfn_analysis.rb', line 10992 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 |