Skip to main content

sessions

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

Overview

Namesessions
TypeResource
Idaws.nova_act.sessions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
session_idstringThe unique identifier of the session. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_sessionsselectworkflow_definition_name, workflow_run_id, regionmaxResults, nextTokenLists all sessions within a specific workflow run.
create_sessioninsertworkflow_definition_name, workflow_run_id, regionCreates a new session context within a workflow run to manage conversation state and acts.

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
regionstringAWS region (default: us-east-1)
workflow_definition_namestringThe name of the workflow definition containing the workflow run.
workflow_run_idstringThe unique identifier of the workflow run to create the session in.
maxResultsintegerThe maximum number of sessions to return in a single response.
nextTokenstringThe token for retrieving the next page of results.

SELECT examples

Lists all sessions within a specific workflow run.

SELECT
session_id
FROM aws.nova_act.sessions
WHERE workflow_definition_name = '{{ workflow_definition_name }}' -- required
AND workflow_run_id = '{{ workflow_run_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates a new session context within a workflow run to manage conversation state and acts.

INSERT INTO aws.nova_act.sessions (
clientToken,
workflow_definition_name,
workflow_run_id,
region
)
SELECT
'{{ clientToken }}',
'{{ workflow_definition_name }}',
'{{ workflow_run_id }}',
'{{ region }}'
RETURNING
session_id
;