Skip to main content

sessions

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

Overview

Namesessions
TypeResource
Idaws.qconnect.sessions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the session. (pattern: <code>[a-zA-Z0-9\s_.,-]+.*</code>)
ai_agent_configurationobjectThe configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that should be used by Amazon Q in Connect for this Session.
descriptionstringThe description of the session. (pattern: <code>[a-zA-Z0-9\s_.,-]+.*</code>)
integration_configurationobjectThe configuration information for the session integration.
orchestrator_configuration_listarrayThe list of orchestrator configurations for the session.
originstringThe origin of the Session to be listed. SYSTEM for a default Session created by Amazon Q in Connect or CUSTOMER for a Session created by calling CreateSession API. (SYSTEM, CUSTOMER)
session_arnstringThe Amazon Resource Name (ARN) of the session. (pattern: <code>arn:[a-z-]?:wisdom:[a-z0-9-]?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}</code>)
session_idstringThe identifier of the session. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
tag_filterobjectAn object that can be used to specify Tag conditions.
tagsobjectThe tags used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sessionselectassistant_id, session_id, regionRetrieves information for a specified session.
search_sessionsselectassistant_id, regionnextToken, maxResultsSearches for sessions.
create_sessioninsertassistant_id, region, nameCreates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.
update_session_dataupdateassistant_id, session_id, region, dataUpdates the data stored on an Amazon Q in Connect Session.
update_sessionupdateassistant_id, session_id, regionUpdates a session. A session is a contextual container used for generating recommendations. Amazon Connect updates the existing Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.

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
assistant_idstringThe identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
regionstringAWS region (default: us-east-1)
session_idstringThe identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
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 information for a specified session.

SELECT
name,
ai_agent_configuration,
description,
integration_configuration,
orchestrator_configuration_list,
origin,
session_arn,
session_id,
tag_filter,
tags
FROM aws.qconnect.sessions
WHERE assistant_id = '{{ assistant_id }}' -- required
AND session_id = '{{ session_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.

INSERT INTO aws.qconnect.sessions (
clientToken,
name,
description,
tags,
tagFilter,
aiAgentConfiguration,
contactArn,
orchestratorConfigurationList,
removeOrchestratorConfigurationList,
assistant_id,
region
)
SELECT
'{{ clientToken }}',
'{{ name }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ tagFilter }}',
'{{ aiAgentConfiguration }}',
'{{ contactArn }}',
'{{ orchestratorConfigurationList }}',
{{ removeOrchestratorConfigurationList }},
'{{ assistant_id }}',
'{{ region }}'
RETURNING
session
;

UPDATE examples

Updates the data stored on an Amazon Q in Connect Session.

UPDATE aws.qconnect.sessions
SET
namespace = '{{ namespace }}',
data = '{{ data }}'
WHERE
assistant_id = '{{ assistant_id }}' --required
AND session_id = '{{ session_id }}' --required
AND region = '{{ region }}' --required
AND data = '{{ data }}' --required
RETURNING
data,
namespace,
session_arn,
session_id;