Class: AWSCDK::Connect::CfnWorkspace::WorkspaceThemeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnWorkspace::WorkspaceThemeConfigProperty
- Defined in:
- connect/cfn_workspace.rb
Overview
Contains detailed theme configuration for a workspace, including colors, images, and typography.
Instance Attribute Summary collapse
-
#palette ⇒ AWSCDK::IResolvable, ...
readonly
The color palette configuration for the workspace theme.
-
#typography ⇒ AWSCDK::IResolvable, ...
readonly
The typography configuration for the workspace theme.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(palette: nil, typography: nil) ⇒ WorkspaceThemeConfigProperty
constructor
A new instance of WorkspaceThemeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(palette: nil, typography: nil) ⇒ WorkspaceThemeConfigProperty
Returns a new instance of WorkspaceThemeConfigProperty.
1049 1050 1051 1052 1053 1054 |
# File 'connect/cfn_workspace.rb', line 1049 def initialize(palette: nil, typography: nil) @palette = palette.is_a?(Hash) ? ::AWSCDK::Connect::CfnWorkspace::WorkspaceThemePaletteProperty.new(**palette.transform_keys(&:to_sym)) : palette Jsii::Type.check_type(@palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbldvcmtzcGFjZS5Xb3Jrc3BhY2VUaGVtZVBhbGV0dGVQcm9wZXJ0eSJ9XX19")), "palette") unless @palette.nil? @typography = typography.is_a?(Hash) ? ::AWSCDK::Connect::CfnWorkspace::WorkspaceThemeTypographyProperty.new(**typography.transform_keys(&:to_sym)) : typography Jsii::Type.check_type(@typography, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbldvcmtzcGFjZS5Xb3Jrc3BhY2VUaGVtZVR5cG9ncmFwaHlQcm9wZXJ0eSJ9XX19")), "typography") unless @typography.nil? end |
Instance Attribute Details
#palette ⇒ AWSCDK::IResolvable, ... (readonly)
The color palette configuration for the workspace theme.
1060 1061 1062 |
# File 'connect/cfn_workspace.rb', line 1060 def palette @palette end |
#typography ⇒ AWSCDK::IResolvable, ... (readonly)
The typography configuration for the workspace theme.
1065 1066 1067 |
# File 'connect/cfn_workspace.rb', line 1065 def typography @typography end |
Class Method Details
.jsii_properties ⇒ Object
1067 1068 1069 1070 1071 1072 |
# File 'connect/cfn_workspace.rb', line 1067 def self.jsii_properties { :palette => "palette", :typography => "typography", } end |
Instance Method Details
#to_jsii ⇒ Object
1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'connect/cfn_workspace.rb', line 1074 def to_jsii result = {} result.merge!({ "palette" => @palette, "typography" => @typography, }) result.compact end |