WorkSpaces / Client / import_client_branding

import_client_branding#

WorkSpaces.Client.import_client_branding(**kwargs)#

Imports client branding. Client branding allows you to customize your WorkSpace’s client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.

After you import client branding, the default branding experience for the specified platform type is replaced with the imported experience

Note

  • You must specify at least one platform type when importing client branding.

  • You can import up to 6 MB of data with each request. If your request exceeds this limit, you can import client branding for different platform types using separate requests.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify only one parameter for each platform type, but not both.

  • Imported data can take up to a minute to appear in the WorkSpaces client.

See also: AWS API Documentation

Request Syntax

response = client.import_client_branding(
    ResourceId='string',
    DeviceTypeWindows={
        'Logo': b'bytes',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    DeviceTypeOsx={
        'Logo': b'bytes',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    DeviceTypeAndroid={
        'Logo': b'bytes',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    DeviceTypeIos={
        'Logo': b'bytes',
        'Logo2x': b'bytes',
        'Logo3x': b'bytes',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    DeviceTypeLinux={
        'Logo': b'bytes',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    DeviceTypeWeb={
        'Logo': b'bytes',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    }
)
Parameters:
  • ResourceId (string) –

    [REQUIRED]

    The directory identifier of the WorkSpace for which you want to import client branding.

  • DeviceTypeWindows (dict) –

    The branding information to import for Windows devices.

    • Logo (bytes) –

      The logo. The only image format accepted is a binary data object that is converted from a .png file.

    • SupportEmail (string) –

      The support email. The company’s customer support email address.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default email is workspaces-feedback@amazon.com.

    • SupportLink (string) –

      The support link. The link for the company’s customer support page for their WorkSpace.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default support link is workspaces-feedback@amazon.com.

    • ForgotPasswordLink (string) –

      The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

    • LoginMessage (dict) –

      The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

      • (string) –

        • (string) –

  • DeviceTypeOsx (dict) –

    The branding information to import for macOS devices.

    • Logo (bytes) –

      The logo. The only image format accepted is a binary data object that is converted from a .png file.

    • SupportEmail (string) –

      The support email. The company’s customer support email address.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default email is workspaces-feedback@amazon.com.

    • SupportLink (string) –

      The support link. The link for the company’s customer support page for their WorkSpace.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default support link is workspaces-feedback@amazon.com.

    • ForgotPasswordLink (string) –

      The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

    • LoginMessage (dict) –

      The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

      • (string) –

        • (string) –

  • DeviceTypeAndroid (dict) –

    The branding information to import for Android devices.

    • Logo (bytes) –

      The logo. The only image format accepted is a binary data object that is converted from a .png file.

    • SupportEmail (string) –

      The support email. The company’s customer support email address.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default email is workspaces-feedback@amazon.com.

    • SupportLink (string) –

      The support link. The link for the company’s customer support page for their WorkSpace.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default support link is workspaces-feedback@amazon.com.

    • ForgotPasswordLink (string) –

      The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

    • LoginMessage (dict) –

      The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

      • (string) –

        • (string) –

  • DeviceTypeIos (dict) –

    The branding information to import for iOS devices.

    • Logo (bytes) –

      The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a .png file.

    • Logo2x (bytes) –

      The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a .png file.

      Note

      For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

    • Logo3x (bytes) –

      The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x). The only image format accepted is a binary data object that is converted from a .png file.

      Note

      For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

    • SupportEmail (string) –

      The support email. The company’s customer support email address.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default email is workspaces-feedback@amazon.com.

    • SupportLink (string) –

      The support link. The link for the company’s customer support page for their WorkSpace.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default support link is workspaces-feedback@amazon.com.

    • ForgotPasswordLink (string) –

      The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

    • LoginMessage (dict) –

      The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

      • (string) –

        • (string) –

  • DeviceTypeLinux (dict) –

    The branding information to import for Linux devices.

    • Logo (bytes) –

      The logo. The only image format accepted is a binary data object that is converted from a .png file.

    • SupportEmail (string) –

      The support email. The company’s customer support email address.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default email is workspaces-feedback@amazon.com.

    • SupportLink (string) –

      The support link. The link for the company’s customer support page for their WorkSpace.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default support link is workspaces-feedback@amazon.com.

    • ForgotPasswordLink (string) –

      The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

    • LoginMessage (dict) –

      The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

      • (string) –

        • (string) –

  • DeviceTypeWeb (dict) –

    The branding information to import for web access.

    • Logo (bytes) –

      The logo. The only image format accepted is a binary data object that is converted from a .png file.

    • SupportEmail (string) –

      The support email. The company’s customer support email address.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default email is workspaces-feedback@amazon.com.

    • SupportLink (string) –

      The support link. The link for the company’s customer support page for their WorkSpace.

      Note

      • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

      • The default support link is workspaces-feedback@amazon.com.

    • ForgotPasswordLink (string) –

      The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

    • LoginMessage (dict) –

      The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

      • (string) –

        • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'DeviceTypeWindows': {
        'LogoUrl': 'string',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    'DeviceTypeOsx': {
        'LogoUrl': 'string',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    'DeviceTypeAndroid': {
        'LogoUrl': 'string',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    'DeviceTypeIos': {
        'LogoUrl': 'string',
        'Logo2xUrl': 'string',
        'Logo3xUrl': 'string',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    'DeviceTypeLinux': {
        'LogoUrl': 'string',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    },
    'DeviceTypeWeb': {
        'LogoUrl': 'string',
        'SupportEmail': 'string',
        'SupportLink': 'string',
        'ForgotPasswordLink': 'string',
        'LoginMessage': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • DeviceTypeWindows (dict) –

      The branding information configured for Windows devices.

      • LogoUrl (string) –

        The logo. The only image format accepted is a binary data object that is converted from a .png file.

      • SupportEmail (string) –

        The support email. The company’s customer support email address.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default email is workspaces-feedback@amazon.com.

      • SupportLink (string) –

        The support link. The link for the company’s customer support page for their WorkSpace.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.

        • The default support link is workspaces-feedback@amazon.com.

      • ForgotPasswordLink (string) –

        The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

      • LoginMessage (dict) –

        The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

        • (string) –

          • (string) –

    • DeviceTypeOsx (dict) –

      The branding information configured for macOS devices.

      • LogoUrl (string) –

        The logo. The only image format accepted is a binary data object that is converted from a .png file.

      • SupportEmail (string) –

        The support email. The company’s customer support email address.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default email is workspaces-feedback@amazon.com.

      • SupportLink (string) –

        The support link. The link for the company’s customer support page for their WorkSpace.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.

        • The default support link is workspaces-feedback@amazon.com.

      • ForgotPasswordLink (string) –

        The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

      • LoginMessage (dict) –

        The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

        • (string) –

          • (string) –

    • DeviceTypeAndroid (dict) –

      The branding information configured for Android devices.

      • LogoUrl (string) –

        The logo. The only image format accepted is a binary data object that is converted from a .png file.

      • SupportEmail (string) –

        The support email. The company’s customer support email address.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default email is workspaces-feedback@amazon.com.

      • SupportLink (string) –

        The support link. The link for the company’s customer support page for their WorkSpace.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.

        • The default support link is workspaces-feedback@amazon.com.

      • ForgotPasswordLink (string) –

        The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

      • LoginMessage (dict) –

        The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

        • (string) –

          • (string) –

    • DeviceTypeIos (dict) –

      The branding information configured for iOS devices.

      • LogoUrl (string) –

        The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a .png file.

      • Logo2xUrl (string) –

        The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a .png file.

        Note

        For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

      • Logo3xUrl (string) –

        The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x).The only image format accepted is a binary data object that is converted from a .png file.

        Note

        For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

      • SupportEmail (string) –

        The support email. The company’s customer support email address.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default email is workspaces-feedback@amazon.com.

      • SupportLink (string) –

        The support link. The link for the company’s customer support page for their WorkSpace.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default support link is workspaces-feedback@amazon.com.

      • ForgotPasswordLink (string) –

        The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

      • LoginMessage (dict) –

        The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

        • (string) –

          • (string) –

    • DeviceTypeLinux (dict) –

      The branding information configured for Linux devices.

      • LogoUrl (string) –

        The logo. The only image format accepted is a binary data object that is converted from a .png file.

      • SupportEmail (string) –

        The support email. The company’s customer support email address.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default email is workspaces-feedback@amazon.com.

      • SupportLink (string) –

        The support link. The link for the company’s customer support page for their WorkSpace.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.

        • The default support link is workspaces-feedback@amazon.com.

      • ForgotPasswordLink (string) –

        The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

      • LoginMessage (dict) –

        The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

        • (string) –

          • (string) –

    • DeviceTypeWeb (dict) –

      The branding information configured for web access.

      • LogoUrl (string) –

        The logo. The only image format accepted is a binary data object that is converted from a .png file.

      • SupportEmail (string) –

        The support email. The company’s customer support email address.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

        • The default email is workspaces-feedback@amazon.com.

      • SupportLink (string) –

        The support link. The link for the company’s customer support page for their WorkSpace.

        Note

        • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.

        • The default support link is workspaces-feedback@amazon.com.

      • ForgotPasswordLink (string) –

        The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

      • LoginMessage (dict) –

        The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

        • (string) –

          • (string) –

Exceptions

  • WorkSpaces.Client.exceptions.InvalidParameterValuesException

  • WorkSpaces.Client.exceptions.ResourceLimitExceededException

  • WorkSpaces.Client.exceptions.ResourceNotFoundException

  • WorkSpaces.Client.exceptions.AccessDeniedException