Connect / Client / create_workspace

create_workspace

Connect.Client.create_workspace(**kwargs)

Creates a workspace that defines the user experience by mapping views to pages. Workspaces can be assigned to users or routing profiles.

See also: AWS API Documentation

Request Syntax

response = client.create_workspace(
    InstanceId='string',
    Name='string',
    Description='string',
    Theme={
        'Light': {
            'Palette': {
                'Header': {
                    'Background': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'InvertActionsColors': True|False
                },
                'Navigation': {
                    'Background': 'string',
                    'TextBackgroundHover': 'string',
                    'TextBackgroundActive': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'TextActive': 'string',
                    'InvertActionsColors': True|False
                },
                'Canvas': {
                    'ContainerBackground': 'string',
                    'PageBackground': 'string',
                    'ActiveBackground': 'string'
                },
                'Primary': {
                    'Default': 'string',
                    'Active': 'string',
                    'ContrastText': 'string'
                }
            },
            'Images': {
                'Logo': {
                    'Default': 'string',
                    'Favicon': 'string'
                }
            },
            'Typography': {
                'FontFamily': {
                    'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
                }
            }
        },
        'Dark': {
            'Palette': {
                'Header': {
                    'Background': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'InvertActionsColors': True|False
                },
                'Navigation': {
                    'Background': 'string',
                    'TextBackgroundHover': 'string',
                    'TextBackgroundActive': 'string',
                    'Text': 'string',
                    'TextHover': 'string',
                    'TextActive': 'string',
                    'InvertActionsColors': True|False
                },
                'Canvas': {
                    'ContainerBackground': 'string',
                    'PageBackground': 'string',
                    'ActiveBackground': 'string'
                },
                'Primary': {
                    'Default': 'string',
                    'Active': 'string',
                    'ContrastText': 'string'
                }
            },
            'Images': {
                'Logo': {
                    'Default': 'string',
                    'Favicon': 'string'
                }
            },
            'Typography': {
                'FontFamily': {
                    'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
                }
            }
        }
    },
    Title='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • Name (string) –

    [REQUIRED]

    The name of the workspace. Must be unique within the instance and can contain 1-127 characters.

  • Description (string) – The description of the workspace. Maximum length is 250 characters.

  • Theme (dict) –

    The theme configuration for the workspace, including colors and styling.

    • Light (dict) –

      The theme configuration for light mode.

      • Palette (dict) –

        The color palette configuration for the workspace theme.

        • Header (dict) –

          The color configuration for the header area.

          • Background (string) –

            The background color of the header.

          • Text (string) –

            The text color in the header.

          • TextHover (string) –

            The text color when hovering over header elements.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the header.

        • Navigation (dict) –

          The color configuration for the navigation area.

          • Background (string) –

            The background color of the navigation area.

          • TextBackgroundHover (string) –

            The background color when hovering over navigation text.

          • TextBackgroundActive (string) –

            The background color for active navigation items.

          • Text (string) –

            The text color in the navigation area.

          • TextHover (string) –

            The text color when hovering over navigation items.

          • TextActive (string) –

            The text color for active navigation items.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the navigation area.

        • Canvas (dict) –

          The color configuration for the canvas area.

          • ContainerBackground (string) –

            The background color for container elements.

          • PageBackground (string) –

            The background color for page elements.

          • ActiveBackground (string) –

            The background color for active elements.

        • Primary (dict) –

          The primary color configuration used throughout the workspace.

          • Default (string) –

            The default primary color used throughout the workspace.

          • Active (string) –

            The primary color used for active states.

          • ContrastText (string) –

            The text color that contrasts with the primary color for readability.

      • Images (dict) –

        The image assets used in the workspace theme.

        • Logo (dict) –

          The logo images used in the workspace.

          • Default (string) –

            The default logo image displayed in the workspace.

          • Favicon (string) –

            The favicon image displayed in the browser tab.

      • Typography (dict) –

        The typography configuration for the workspace theme.

        • FontFamily (dict) –

          The font family configuration for text in the workspace.

          • Default (string) –

            The default font family to use in the workspace theme.

    • Dark (dict) –

      The theme configuration for dark mode.

      • Palette (dict) –

        The color palette configuration for the workspace theme.

        • Header (dict) –

          The color configuration for the header area.

          • Background (string) –

            The background color of the header.

          • Text (string) –

            The text color in the header.

          • TextHover (string) –

            The text color when hovering over header elements.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the header.

        • Navigation (dict) –

          The color configuration for the navigation area.

          • Background (string) –

            The background color of the navigation area.

          • TextBackgroundHover (string) –

            The background color when hovering over navigation text.

          • TextBackgroundActive (string) –

            The background color for active navigation items.

          • Text (string) –

            The text color in the navigation area.

          • TextHover (string) –

            The text color when hovering over navigation items.

          • TextActive (string) –

            The text color for active navigation items.

          • InvertActionsColors (boolean) –

            Whether to invert the colors of action buttons in the navigation area.

        • Canvas (dict) –

          The color configuration for the canvas area.

          • ContainerBackground (string) –

            The background color for container elements.

          • PageBackground (string) –

            The background color for page elements.

          • ActiveBackground (string) –

            The background color for active elements.

        • Primary (dict) –

          The primary color configuration used throughout the workspace.

          • Default (string) –

            The default primary color used throughout the workspace.

          • Active (string) –

            The primary color used for active states.

          • ContrastText (string) –

            The text color that contrasts with the primary color for readability.

      • Images (dict) –

        The image assets used in the workspace theme.

        • Logo (dict) –

          The logo images used in the workspace.

          • Default (string) –

            The default logo image displayed in the workspace.

          • Favicon (string) –

            The favicon image displayed in the browser tab.

      • Typography (dict) –

        The typography configuration for the workspace theme.

        • FontFamily (dict) –

          The font family configuration for text in the workspace.

          • Default (string) –

            The default font family to use in the workspace theme.

  • Title (string) – The title displayed for the workspace.

  • Tags (dict) –

    The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'WorkspaceId': 'string',
    'WorkspaceArn': 'string'
}

Response Structure

  • (dict) –

    • WorkspaceId (string) –

      The identifier of the workspace.

    • WorkspaceArn (string) –

      The Amazon Resource Name (ARN) of the workspace.

Exceptions

  • Connect.Client.exceptions.InvalidRequestException

  • Connect.Client.exceptions.DuplicateResourceException

  • Connect.Client.exceptions.ResourceNotFoundException

  • Connect.Client.exceptions.InternalServiceException

  • Connect.Client.exceptions.ThrottlingException

  • Connect.Client.exceptions.AccessDeniedException

  • Connect.Client.exceptions.InvalidParameterException

  • Connect.Client.exceptions.LimitExceededException

  • Connect.Client.exceptions.ServiceQuotaExceededException