Class: AWSCDK::WorkspacesWeb::CfnUserSettings::ToolbarConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnUserSettings::ToolbarConfigurationProperty
- Defined in:
- workspaces_web/cfn_user_settings.rb
Overview
The configuration of the toolbar.
This allows administrators to select the toolbar type and visual mode, set maximum display resolution for sessions, and choose which items are visible to end users during their sessions. If administrators do not modify these settings, end users retain control over their toolbar preferences.
Instance Attribute Summary collapse
-
#hidden_toolbar_items ⇒ Array<String>?
readonly
The list of toolbar items to be hidden.
-
#max_display_resolution ⇒ String?
readonly
The maximum display resolution that is allowed for the session.
-
#toolbar_type ⇒ String?
readonly
The type of toolbar displayed during the session.
-
#visual_mode ⇒ String?
readonly
The visual mode of the toolbar.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hidden_toolbar_items: nil, max_display_resolution: nil, toolbar_type: nil, visual_mode: nil) ⇒ ToolbarConfigurationProperty
constructor
A new instance of ToolbarConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hidden_toolbar_items: nil, max_display_resolution: nil, toolbar_type: nil, visual_mode: nil) ⇒ ToolbarConfigurationProperty
Returns a new instance of ToolbarConfigurationProperty.
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 |
# File 'workspaces_web/cfn_user_settings.rb', line 1142 def initialize(hidden_toolbar_items: nil, max_display_resolution: nil, toolbar_type: nil, visual_mode: nil) @hidden_toolbar_items = Jsii::Type.check_type(@hidden_toolbar_items, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "hiddenToolbarItems") unless @hidden_toolbar_items.nil? @max_display_resolution = max_display_resolution Jsii::Type.check_type(@max_display_resolution, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "maxDisplayResolution") unless @max_display_resolution.nil? @toolbar_type = Jsii::Type.check_type(@toolbar_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "toolbarType") unless @toolbar_type.nil? @visual_mode = visual_mode Jsii::Type.check_type(@visual_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visualMode") unless @visual_mode.nil? end |
Instance Attribute Details
#hidden_toolbar_items ⇒ Array<String>? (readonly)
The list of toolbar items to be hidden.
1157 1158 1159 |
# File 'workspaces_web/cfn_user_settings.rb', line 1157 def @hidden_toolbar_items end |
#max_display_resolution ⇒ String? (readonly)
The maximum display resolution that is allowed for the session.
1162 1163 1164 |
# File 'workspaces_web/cfn_user_settings.rb', line 1162 def max_display_resolution @max_display_resolution end |
#toolbar_type ⇒ String? (readonly)
The type of toolbar displayed during the session.
1167 1168 1169 |
# File 'workspaces_web/cfn_user_settings.rb', line 1167 def @toolbar_type end |
#visual_mode ⇒ String? (readonly)
The visual mode of the toolbar.
1172 1173 1174 |
# File 'workspaces_web/cfn_user_settings.rb', line 1172 def visual_mode @visual_mode end |
Class Method Details
.jsii_properties ⇒ Object
1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'workspaces_web/cfn_user_settings.rb', line 1174 def self.jsii_properties { :hidden_toolbar_items => "hiddenToolbarItems", :max_display_resolution => "maxDisplayResolution", :toolbar_type => "toolbarType", :visual_mode => "visualMode", } end |
Instance Method Details
#to_jsii ⇒ Object
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 |
# File 'workspaces_web/cfn_user_settings.rb', line 1183 def to_jsii result = {} result.merge!({ "hiddenToolbarItems" => @hidden_toolbar_items, "maxDisplayResolution" => @max_display_resolution, "toolbarType" => @toolbar_type, "visualMode" => @visual_mode, }) result.compact end |