Skip to main content

workspaces

Creates, updates, deletes, gets or lists a workspaces resource.

Overview

Nameworkspaces
TypeResource
Idaws.connect.workspaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the workspace.
descriptionstringThe description of the workspace. (pattern: <code>^[\P{C}\r\n\t]*$</code>)
idstringThe unique identifier of the workspace.
last_modified_regionstringThe Amazon Web Services Region where the workspace was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when the workspace was last modified.
namestringThe name of the workspace. (pattern: <code>.\S.</code>)
tagsobjectThe tags used to organize, track, or control access for the workspace.
themeobjectContains theme configuration for a workspace, supporting both light and dark modes.
titlestringThe title displayed for the workspace. (pattern: <code>^[\P{C}]*$</code>)
visibilitystringControls who can access the workspace. Valid values are: ALL (all users), ASSIGNED (only assigned users and routing profiles), and NONE (not visible). (ALL, ASSIGNED, NONE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workspaceselectinstance_id, workspace_id, regionRetrieves details about a workspace, including its configuration and metadata.
list_workspacesselectinstance_id, regionnextToken, maxResultsLists the workspaces in an Amazon Connect instance.
search_workspacesselectregionSearches workspaces based on name, description, visibility, or tags.
create_workspaceinsertinstance_id, regionCreates a workspace that defines the user experience by mapping views to pages. Workspaces can be assigned to users or routing profiles.
associate_workspaceupdateinstance_id, workspace_id, region, ResourceArnsAssociates a workspace with one or more users or routing profiles, allowing them to access the workspace's configured views and pages.
update_workspace_metadataupdateinstance_id, workspace_id, regionUpdates the metadata of a workspace, such as its name and description.
delete_workspacedeleteinstance_id, workspace_id, regionDeletes a workspace and removes all associated view and resource assignments.
import_workspace_mediaexecinstance_id, workspace_id, region, MediaType, MediaSourceImports a media asset (such as a logo) for use in a workspace.
disassociate_workspaceexecinstance_id, workspace_id, region, ResourceArnsRemoves the association between a workspace and one or more users or routing profiles.
update_workspace_themeexecinstance_id, workspace_id, regionUpdates the theme configuration for a workspace, including colors and styling.
update_workspace_visibilityexecinstance_id, workspace_id, regionUpdates the visibility setting of a workspace, controlling whether it is available to all users, assigned users only, or none.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instance_idstringThe identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
workspace_idstringThe identifier of the workspace.
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Retrieves details about a workspace, including its configuration and metadata.

SELECT
arn,
description,
id,
last_modified_region,
last_modified_time,
name,
tags,
theme,
title,
visibility
FROM aws.connect.workspaces
WHERE instance_id = '{{ instance_id }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.connect.workspaces (
Name,
Description,
Theme,
Title,
Tags,
instance_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Theme }}',
'{{ Title }}',
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
workspace_arn,
workspace_id
;

UPDATE examples

Associates a workspace with one or more users or routing profiles, allowing them to access the workspace's configured views and pages.

UPDATE aws.connect.workspaces
SET
ResourceArns = '{{ ResourceArns }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND region = '{{ region }}' --required
AND ResourceArns = '{{ ResourceArns }}' --required
RETURNING
failed_list,
successful_list;

DELETE examples

Deletes a workspace and removes all associated view and resource assignments.

DELETE FROM aws.connect.workspaces
WHERE instance_id = '{{ instance_id }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Imports a media asset (such as a logo) for use in a workspace.

EXEC aws.connect.workspaces.import_workspace_media
@instance_id='{{ instance_id }}' --required,
@workspace_id='{{ workspace_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"MediaType": "{{ MediaType }}",
"MediaSource": "{{ MediaSource }}"
}'
;