QConnect / Client / update_session_data
update_session_data¶
- QConnect.Client.update_session_data(**kwargs)¶
- Updates the data stored on an Amazon Q in Connect Session. - See also: AWS API Documentation - Request Syntax- response = client.update_session_data( assistantId='string', sessionId='string', namespace='Custom', data=[ { 'key': 'string', 'value': { 'stringValue': 'string' } }, ] ) - Parameters:
- assistantId (string) – - [REQUIRED] - The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN. 
- sessionId (string) – - [REQUIRED] - The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN. 
- namespace (string) – The namespace into which the session data is stored. Supported namespaces are: Custom 
- data (list) – - [REQUIRED] - The data stored on the Amazon Q in Connect Session. - (dict) – - The list of key-value pairs that are stored on the session. - key (string) – [REQUIRED] - The key of the data stored on the session. 
- value (dict) – [REQUIRED] - The value of the data stored on the session. - Note- This is a Tagged Union structure. Only one of the following top level keys can be set: - stringValue.- stringValue (string) – - The string value of the data stored on the session. 
 
 
 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'sessionArn': 'string', 'sessionId': 'string', 'namespace': 'Custom', 'data': [ { 'key': 'string', 'value': { 'stringValue': 'string' } }, ] } - Response Structure- (dict) – - sessionArn (string) – - The Amazon Resource Name (ARN) of the session. 
- sessionId (string) – - The identifier of the session. 
- namespace (string) – - The namespace into which the session data is stored. Supported namespaces are: Custom 
- data (list) – - Data stored in the session. - (dict) – - The list of key-value pairs that are stored on the session. - key (string) – - The key of the data stored on the session. 
- value (dict) – - The value of the data stored on the session. - Note- This is a Tagged Union structure. Only one of the following top level keys will be set: - stringValue. If a client receives an unknown member it will set- SDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure of- SDK_UNKNOWN_MEMBERis as follows:- 'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'} - stringValue (string) – - The string value of the data stored on the session. 
 
 
 
 
 
 - Exceptions- QConnect.Client.exceptions.ValidationException
- QConnect.Client.exceptions.UnauthorizedException
- QConnect.Client.exceptions.AccessDeniedException
- QConnect.Client.exceptions.ResourceNotFoundException