Class: AWSCDK::Connect::CfnWorkspace::WorkspaceThemeTypographyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnWorkspace::WorkspaceThemeTypographyProperty
- Defined in:
- connect/cfn_workspace.rb
Overview
Contains typography configuration for a workspace theme.
Instance Attribute Summary collapse
-
#font_family ⇒ AWSCDK::IResolvable, ...
readonly
The font family configuration for text in the workspace.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(font_family: nil) ⇒ WorkspaceThemeTypographyProperty
constructor
A new instance of WorkspaceThemeTypographyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(font_family: nil) ⇒ WorkspaceThemeTypographyProperty
Returns a new instance of WorkspaceThemeTypographyProperty.
1197 1198 1199 1200 |
# File 'connect/cfn_workspace.rb', line 1197 def initialize(font_family: nil) @font_family = font_family.is_a?(Hash) ? ::AWSCDK::Connect::CfnWorkspace::FontFamilyProperty.new(**font_family.transform_keys(&:to_sym)) : font_family Jsii::Type.check_type(@font_family, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbldvcmtzcGFjZS5Gb250RmFtaWx5UHJvcGVydHkifV19fQ==")), "fontFamily") unless @font_family.nil? end |
Instance Attribute Details
#font_family ⇒ AWSCDK::IResolvable, ... (readonly)
The font family configuration for text in the workspace.
1206 1207 1208 |
# File 'connect/cfn_workspace.rb', line 1206 def font_family @font_family end |
Class Method Details
.jsii_properties ⇒ Object
1208 1209 1210 1211 1212 |
# File 'connect/cfn_workspace.rb', line 1208 def self.jsii_properties { :font_family => "fontFamily", } end |
Instance Method Details
#to_jsii ⇒ Object
1214 1215 1216 1217 1218 1219 1220 |
# File 'connect/cfn_workspace.rb', line 1214 def to_jsii result = {} result.merge!({ "fontFamily" => @font_family, }) result.compact end |