Class: AWSCDK::WorkspacesWeb::CfnUserSettings::LocalizedBrandingStringsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_user_settings.rb

Overview

Localized text strings for a specific language that customize the web portal.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(browser_tab_title:, welcome_text:, contact_button_text: nil, contact_link: nil, loading_text: nil, login_button_text: nil, login_description: nil, login_title: nil) ⇒ LocalizedBrandingStringsProperty

Returns a new instance of LocalizedBrandingStringsProperty.

Parameters:

  • browser_tab_title (String)

    The text displayed in the browser tab title.

  • welcome_text (String)

    The welcome text displayed on the sign-in page.

  • contact_button_text (String, nil) (defaults to: nil)

    The text displayed on the contact button.

  • contact_link (String, nil) (defaults to: nil)

    A contact link URL.

  • loading_text (String, nil) (defaults to: nil)

    The text displayed during session loading.

  • login_button_text (String, nil) (defaults to: nil)

    The text displayed on the login button.

  • login_description (String, nil) (defaults to: nil)

    The description text for the login section.

  • login_title (String, nil) (defaults to: nil)

    The title text for the login section.



1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'workspaces_web/cfn_user_settings.rb', line 1029

def initialize(browser_tab_title:, welcome_text:, contact_button_text: nil, contact_link: nil, loading_text: nil, login_button_text: nil, login_description: nil, login_title: nil)
  @browser_tab_title = browser_tab_title
  Jsii::Type.check_type(@browser_tab_title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "browserTabTitle")
  @welcome_text = welcome_text
  Jsii::Type.check_type(@welcome_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "welcomeText")
  @contact_button_text = contact_button_text
  Jsii::Type.check_type(@contact_button_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactButtonText") unless @contact_button_text.nil?
  @contact_link = contact_link
  Jsii::Type.check_type(@contact_link, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactLink") unless @contact_link.nil?
  @loading_text = loading_text
  Jsii::Type.check_type(@loading_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "loadingText") unless @loading_text.nil?
  @login_button_text = 
  Jsii::Type.check_type(@login_button_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "loginButtonText") unless @login_button_text.nil?
  @login_description = 
  Jsii::Type.check_type(@login_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "loginDescription") unless @login_description.nil?
  @login_title = 
  Jsii::Type.check_type(@login_title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "loginTitle") unless @login_title.nil?
end

Instance Attribute Details

#browser_tab_titleString (readonly)

The text displayed in the browser tab title.



1052
1053
1054
# File 'workspaces_web/cfn_user_settings.rb', line 1052

def browser_tab_title
  @browser_tab_title
end

#contact_button_textString? (readonly)

The text displayed on the contact button.

This field is optional and defaults to "Contact us".



1064
1065
1066
# File 'workspaces_web/cfn_user_settings.rb', line 1064

def contact_button_text
  @contact_button_text
end

A contact link URL.

The URL must start with https:// or mailto: . If not provided, the contact button will be hidden from the web portal screen.



1071
1072
1073
# File 'workspaces_web/cfn_user_settings.rb', line 1071

def contact_link
  @contact_link
end

#loading_textString? (readonly)

The text displayed during session loading.

This field is optional and defaults to "Loading your session".



1078
1079
1080
# File 'workspaces_web/cfn_user_settings.rb', line 1078

def loading_text
  @loading_text
end

#login_button_textString? (readonly)

The text displayed on the login button.

This field is optional and defaults to "Sign In".



1085
1086
1087
# File 'workspaces_web/cfn_user_settings.rb', line 1085

def 
  @login_button_text
end

#login_descriptionString? (readonly)

The description text for the login section.

This field is optional and defaults to "Sign in to your session".



1092
1093
1094
# File 'workspaces_web/cfn_user_settings.rb', line 1092

def 
  @login_description
end

#login_titleString? (readonly)

The title text for the login section.

This field is optional and defaults to "Sign In".



1099
1100
1101
# File 'workspaces_web/cfn_user_settings.rb', line 1099

def 
  @login_title
end

#welcome_textString (readonly)

The welcome text displayed on the sign-in page.



1057
1058
1059
# File 'workspaces_web/cfn_user_settings.rb', line 1057

def welcome_text
  @welcome_text
end

Class Method Details

.jsii_propertiesObject



1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
# File 'workspaces_web/cfn_user_settings.rb', line 1101

def self.jsii_properties
  {
    :browser_tab_title => "browserTabTitle",
    :welcome_text => "welcomeText",
    :contact_button_text => "contactButtonText",
    :contact_link => "contactLink",
    :loading_text => "loadingText",
    :login_button_text => "loginButtonText",
    :login_description => "loginDescription",
    :login_title => "loginTitle",
  }
end

Instance Method Details

#to_jsiiObject



1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
# File 'workspaces_web/cfn_user_settings.rb', line 1114

def to_jsii
  result = {}
  result.merge!({
    "browserTabTitle" => @browser_tab_title,
    "welcomeText" => @welcome_text,
    "contactButtonText" => @contact_button_text,
    "contactLink" => @contact_link,
    "loadingText" => @loading_text,
    "loginButtonText" => @login_button_text,
    "loginDescription" => @login_description,
    "loginTitle" => @login_title,
  })
  result.compact
end