Skip to main content

sessions

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

Overview

Namesessions
TypeResource
Idaws.wisdom.sessions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the session. (pattern: <code>^[a-zA-Z0-9\s_.,-]+</code>)
descriptionstringThe description of the session. (pattern: <code>^[a-zA-Z0-9\s_.,-]+</code>)
integration_configurationobjectThe configuration information for the session integration.
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})?$</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>)
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, regionmaxResults, nextTokenSearches for sessions.
create_sessioninsertassistant_id, region, nameCreates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Wisdom session for each contact on which Wisdom 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 Wisdom 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,
description,
integration_configuration,
session_arn,
session_id,
tags
FROM aws.wisdom.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 Wisdom session for each contact on which Wisdom is enabled.

INSERT INTO aws.wisdom.sessions (
clientToken,
description,
name,
tags,
assistant_id,
region
)
SELECT
'{{ clientToken }}',
'{{ description }}',
'{{ name }}' /* required */,
'{{ tags }}',
'{{ assistant_id }}',
'{{ region }}'
RETURNING
session
;