NovaActService / Client / create_session

create_session

NovaActService.Client.create_session(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.create_session(
    workflowDefinitionName='string',
    workflowRunId='string',
    clientToken='string'
)
Parameters:
  • workflowDefinitionName (string) –

    [REQUIRED]

    The name of the workflow definition containing the workflow run.

  • workflowRunId (string) –

    [REQUIRED]

    The unique identifier of the workflow run to create the session in.

  • clientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'sessionId': 'string'
}

Response Structure

  • (dict) –

    • sessionId (string) –

      The unique identifier for the created session.

Exceptions

  • NovaActService.Client.exceptions.ServiceQuotaExceededException

  • NovaActService.Client.exceptions.AccessDeniedException

  • NovaActService.Client.exceptions.ConflictException

  • NovaActService.Client.exceptions.ThrottlingException

  • NovaActService.Client.exceptions.ResourceNotFoundException

  • NovaActService.Client.exceptions.InternalServerException

  • NovaActService.Client.exceptions.ValidationException