Class: AWSCDK::Connect::CfnWorkspace::WorkspaceThemeTypographyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_workspace.rb

Overview

Contains typography configuration for a workspace theme.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(font_family: nil) ⇒ WorkspaceThemeTypographyProperty

Returns a new instance of WorkspaceThemeTypographyProperty.

Parameters:



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_familyAWSCDK::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_propertiesObject



1208
1209
1210
1211
1212
# File 'connect/cfn_workspace.rb', line 1208

def self.jsii_properties
  {
    :font_family => "fontFamily",
  }
end

Instance Method Details

#to_jsiiObject



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