Skip to content
v2.278.0

BrandingConfigurationProperty Struct ​

The branding configuration that customizes the appearance of the web portal for end users.

This includes a custom logo, favicon, wallpaper, localized strings, color theme, and an optional terms of service.

The LogoMetadata , FaviconMetadata , and WallpaperMetadata properties are read-only and cannot be specified in your template. They are automatically populated by the service after you upload images and can be retrieved using the Fn::GetAtt intrinsic function.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const brandingConfigurationProperty: workspacesweb.CfnUserSettings.BrandingConfigurationProperty = {
  colorTheme: 'colorTheme',
  favicon: 'favicon',
  faviconMetadata: {
    fileExtension: 'fileExtension',
    lastUploadTimestamp: 'lastUploadTimestamp',
    mimeType: 'mimeType',
  },
  localizedStrings: {
    localizedStringsKey: {
      browserTabTitle: 'browserTabTitle',
      welcomeText: 'welcomeText',

      // the properties below are optional
      contactButtonText: 'contactButtonText',
      contactLink: 'contactLink',
      loadingText: 'loadingText',
      loginButtonText: 'loginButtonText',
      loginDescription: 'loginDescription',
      loginTitle: 'loginTitle',
    },
  },
  logo: 'logo',
  logoMetadata: {
    fileExtension: 'fileExtension',
    lastUploadTimestamp: 'lastUploadTimestamp',
    mimeType: 'mimeType',
  },
  termsOfService: 'termsOfService',
  wallpaper: 'wallpaper',
  wallpaperMetadata: {
    fileExtension: 'fileExtension',
    lastUploadTimestamp: 'lastUploadTimestamp',
    mimeType: 'mimeType',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_workspacesweb as workspacesweb

branding_configuration_property = workspacesweb.CfnUserSettings.BrandingConfigurationProperty(
    color_theme="colorTheme",
    favicon="favicon",
    favicon_metadata=workspacesweb.CfnUserSettings.ImageMetadataProperty(
        file_extension="fileExtension",
        last_upload_timestamp="lastUploadTimestamp",
        mime_type="mimeType"
    ),
    localized_strings={
        "localized_strings_key": workspacesweb.CfnUserSettings.LocalizedBrandingStringsProperty(
            browser_tab_title="browserTabTitle",
            welcome_text="welcomeText",

            # the properties below are optional
            contact_button_text="contactButtonText",
            contact_link="contactLink",
            loading_text="loadingText",
            login_button_text="loginButtonText",
            login_description="loginDescription",
            login_title="loginTitle"
        )
    },
    logo="logo",
    logo_metadata=workspacesweb.CfnUserSettings.ImageMetadataProperty(
        file_extension="fileExtension",
        last_upload_timestamp="lastUploadTimestamp",
        mime_type="mimeType"
    ),
    terms_of_service="termsOfService",
    wallpaper="wallpaper",
    wallpaper_metadata=workspacesweb.CfnUserSettings.ImageMetadataProperty(
        file_extension="fileExtension",
        last_upload_timestamp="lastUploadTimestamp",
        mime_type="mimeType"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.workspacesweb.*;

BrandingConfigurationProperty brandingConfigurationProperty = BrandingConfigurationProperty.builder()
        .colorTheme("colorTheme")
        .favicon("favicon")
        .faviconMetadata(ImageMetadataProperty.builder()
                .fileExtension("fileExtension")
                .lastUploadTimestamp("lastUploadTimestamp")
                .mimeType("mimeType")
                .build())
        .localizedStrings(Map.of(
                "localizedStringsKey", LocalizedBrandingStringsProperty.builder()
                        .browserTabTitle("browserTabTitle")
                        .welcomeText("welcomeText")

                        // the properties below are optional
                        .contactButtonText("contactButtonText")
                        .contactLink("contactLink")
                        .loadingText("loadingText")
                        .loginButtonText("loginButtonText")
                        .loginDescription("loginDescription")
                        .loginTitle("loginTitle")
                        .build()))
        .logo("logo")
        .logoMetadata(ImageMetadataProperty.builder()
                .fileExtension("fileExtension")
                .lastUploadTimestamp("lastUploadTimestamp")
                .mimeType("mimeType")
                .build())
        .termsOfService("termsOfService")
        .wallpaper("wallpaper")
        .wallpaperMetadata(ImageMetadataProperty.builder()
                .fileExtension("fileExtension")
                .lastUploadTimestamp("lastUploadTimestamp")
                .mimeType("mimeType")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WorkSpacesWeb;

var brandingConfigurationProperty = new BrandingConfigurationProperty {
    ColorTheme = "colorTheme",
    Favicon = "favicon",
    FaviconMetadata = new ImageMetadataProperty {
        FileExtension = "fileExtension",
        LastUploadTimestamp = "lastUploadTimestamp",
        MimeType = "mimeType"
    },
    LocalizedStrings = new Dictionary<string, object> {
        { "localizedStringsKey", new LocalizedBrandingStringsProperty {
            BrowserTabTitle = "browserTabTitle",
            WelcomeText = "welcomeText",

            // the properties below are optional
            ContactButtonText = "contactButtonText",
            ContactLink = "contactLink",
            LoadingText = "loadingText",
            LoginButtonText = "loginButtonText",
            LoginDescription = "loginDescription",
            LoginTitle = "loginTitle"
        } }
    },
    Logo = "logo",
    LogoMetadata = new ImageMetadataProperty {
        FileExtension = "fileExtension",
        LastUploadTimestamp = "lastUploadTimestamp",
        MimeType = "mimeType"
    },
    TermsOfService = "termsOfService",
    Wallpaper = "wallpaper",
    WallpaperMetadata = new ImageMetadataProperty {
        FileExtension = "fileExtension",
        LastUploadTimestamp = "lastUploadTimestamp",
        MimeType = "mimeType"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

brandingConfigurationProperty := &BrandingConfigurationProperty{
	ColorTheme: jsii.String("colorTheme"),
	Favicon: jsii.String("favicon"),
	FaviconMetadata: &ImageMetadataProperty{
		FileExtension: jsii.String("fileExtension"),
		LastUploadTimestamp: jsii.String("lastUploadTimestamp"),
		MimeType: jsii.String("mimeType"),
	},
	LocalizedStrings: map[string]interface{}{
		"localizedStringsKey": &LocalizedBrandingStringsProperty{
			"browserTabTitle": jsii.String("browserTabTitle"),
			"welcomeText": jsii.String("welcomeText"),

			// the properties below are optional
			"contactButtonText": jsii.String("contactButtonText"),
			"contactLink": jsii.String("contactLink"),
			"loadingText": jsii.String("loadingText"),
			"loginButtonText": jsii.String("loginButtonText"),
			"loginDescription": jsii.String("loginDescription"),
			"loginTitle": jsii.String("loginTitle"),
		},
	},
	Logo: jsii.String("logo"),
	LogoMetadata: &ImageMetadataProperty{
		FileExtension: jsii.String("fileExtension"),
		LastUploadTimestamp: jsii.String("lastUploadTimestamp"),
		MimeType: jsii.String("mimeType"),
	},
	TermsOfService: jsii.String("termsOfService"),
	Wallpaper: jsii.String("wallpaper"),
	WallpaperMetadata: &ImageMetadataProperty{
		FileExtension: jsii.String("fileExtension"),
		LastUploadTimestamp: jsii.String("lastUploadTimestamp"),
		MimeType: jsii.String("mimeType"),
	},
}

Properties ​

colorThemeoptionalstringcolor_themeoptionalstrcolorThemeoptionalStringColorThemeoptionalstringColorThemeoptional*string #
The color theme for components on the web portal.

Choose Light if you upload a dark wallpaper, or Dark for a light wallpaper.

faviconoptionalstringfaviconoptionalstrfaviconoptionalStringFaviconoptionalstringFaviconoptional*string #
The favicon image for the portal.

Provide either a binary image file or an S3 URI pointing to the image file. Maximum 100 KB in JPEG, PNG, or ICO format.

faviconMetadataoptionalIResolvable | CfnUserSettings.ImageMetadataPropertyfavicon_metadataoptionaltyping.Union[IResolvable, ImageMetadataProperty]faviconMetadataoptionalIResolvableFaviconMetadataoptionalIResolvableFaviconMetadataoptionalinterface{} #
Read-only.
notes

Metadata for the favicon image file, including the MIME type, file extension, and upload timestamp. This property is automatically populated by the service and cannot be specified in your template. It can be retrieved using the Fn::GetAtt intrinsic function.

localizedStringsoptionalIResolvable | { [key: string]: IResolvable | CfnUserSettings.LocalizedBrandingStringsProperty }localized_stringsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, LocalizedBrandingStringsProperty]]]localizedStringsoptionalIResolvableLocalizedStringsoptionalIResolvableLocalizedStringsoptionalinterface{} #
A map of localized text strings for different languages, allowing the portal to display content in the user's preferred language.
logoMetadataoptionalIResolvable | CfnUserSettings.ImageMetadataPropertylogo_metadataoptionaltyping.Union[IResolvable, ImageMetadataProperty]logoMetadataoptionalIResolvableLogoMetadataoptionalIResolvableLogoMetadataoptionalinterface{} #
Read-only.
notes

Metadata for the logo image file, including the MIME type, file extension, and upload timestamp. This property is automatically populated by the service and cannot be specified in your template. It can be retrieved using the Fn::GetAtt intrinsic function.

termsOfServiceoptionalstringterms_of_serviceoptionalstrtermsOfServiceoptionalStringTermsOfServiceoptionalstringTermsOfServiceoptional*string #
The terms of service text in Markdown format that users must accept before accessing the portal.
wallpaperoptionalstringwallpaperoptionalstrwallpaperoptionalStringWallpaperoptionalstringWallpaperoptional*string #
The wallpaper image for the portal.

Provide either a binary image file or an S3 URI pointing to the image file. Maximum 5 MB in JPEG or PNG format.

wallpaperMetadataoptionalIResolvable | CfnUserSettings.ImageMetadataPropertywallpaper_metadataoptionaltyping.Union[IResolvable, ImageMetadataProperty]wallpaperMetadataoptionalIResolvableWallpaperMetadataoptionalIResolvableWallpaperMetadataoptionalinterface{} #
Read-only.
notes

Metadata for the wallpaper image file, including the MIME type, file extension, and upload timestamp. This property is automatically populated by the service and cannot be specified in your template. It can be retrieved using the Fn::GetAtt intrinsic function.