QApps / Client / start_q_app_session

start_q_app_session#

QApps.Client.start_q_app_session(**kwargs)#

Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.

Note

Each Q App session will be condensed into a single conversation in the web experience.

See also: AWS API Documentation

Request Syntax

response = client.start_q_app_session(
    instanceId='string',
    appId='string',
    appVersion=123,
    initialValues=[
        {
            'cardId': 'string',
            'value': 'string'
        },
    ],
    tags={
        'string': 'string'
    }
)
Parameters:
  • instanceId (string) –

    [REQUIRED]

    The unique identifier of the Amazon Q Business application environment instance.

  • appId (string) –

    [REQUIRED]

    The unique identifier of the Q App to start a session for.

  • appVersion (integer) –

    [REQUIRED]

    The version of the Q App to use for the session.

  • initialValues (list) –

    Optional initial input values to provide for the Q App session.

    • (dict) –

      The value or result associated with a card in a Amazon Q App session.

      • cardId (string) – [REQUIRED]

        The unique identifier of the card.

      • value (string) – [REQUIRED]

        The value or result associated with the card.

  • tags (dict) –

    Optional tags to associate with the new Q App session.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'sessionId': 'string',
    'sessionArn': 'string'
}

Response Structure

  • (dict) –

    • sessionId (string) –

      The unique identifier of the new Q App session.

    • sessionArn (string) –

      The Amazon Resource Name (ARN) of the new Q App session.

Exceptions