Skip to main content

workspace_pages

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

Overview

Nameworkspace_pages
TypeResource
Idaws.connect.workspace_pages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
input_datastringA JSON string containing input parameters passed to the view when the page is rendered.
pagestringThe page identifier. System pages include HOME and AGENT_EXPERIENCE. (pattern: <code>^(?!\.$)(?!\.\.$)[\p{L}\p{Z}\p{N}\-_.:=@'|]+$</code>)
resource_arnstringThe Amazon Resource Name (ARN) of the view associated with this page.
slugstringThe URL-friendly identifier for the page. (pattern: <code>^$|^[\p{L}\p{Z}\p{N}\-_.:=@'|]{3,}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_workspace_pagesselectinstance_id, workspace_id, regionnextToken, maxResultsLists the page configurations in a workspace, including the views assigned to each page.
create_workspace_pageinsertinstance_id, workspace_id, region, ResourceArnAssociates a view with a page in a workspace, defining what users see when they navigate to that page.
update_workspace_pageupdateinstance_id, workspace_id, page, regionUpdates the configuration of a page in a workspace, including the associated view and input data.
delete_workspace_pagedeleteinstance_id, workspace_id, page, regionRemoves the association between a view and a page in a workspace. The page will display the default view after deletion.

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.
pagestringThe page identifier.
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

Lists the page configurations in a workspace, including the views assigned to each page.

SELECT
input_data,
page,
resource_arn,
slug
FROM aws.connect.workspace_pages
WHERE instance_id = '{{ instance_id }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

Associates a view with a page in a workspace, defining what users see when they navigate to that page.

INSERT INTO aws.connect.workspace_pages (
ResourceArn,
Page,
Slug,
InputData,
instance_id,
workspace_id,
region
)
SELECT
'{{ ResourceArn }}' /* required */,
'{{ Page }}',
'{{ Slug }}',
'{{ InputData }}',
'{{ instance_id }}',
'{{ workspace_id }}',
'{{ region }}'
;

UPDATE examples

Updates the configuration of a page in a workspace, including the associated view and input data.

UPDATE aws.connect.workspace_pages
SET
NewPage = '{{ NewPage }}',
ResourceArn = '{{ ResourceArn }}',
Slug = '{{ Slug }}',
InputData = '{{ InputData }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND page = '{{ page }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Removes the association between a view and a page in a workspace. The page will display the default view after deletion.

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