ConnectWisdomService.Client.
search_sessions
(**kwargs)¶Searches for sessions.
See also: AWS API Documentation
Request Syntax
response = client.search_sessions(
assistantId='string',
maxResults=123,
nextToken='string',
searchExpression={
'filters': [
{
'field': 'NAME',
'operator': 'EQUALS',
'value': 'string'
},
]
}
)
[REQUIRED]
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
[REQUIRED]
The search expression to filter results.
The search expression filters.
A search filter.
The field on which to filter.
The operator to use for comparing the field’s value with the provided value.
The desired field value on which to filter.
dict
Response Syntax
{
'nextToken': 'string',
'sessionSummaries': [
{
'assistantArn': 'string',
'assistantId': 'string',
'sessionArn': 'string',
'sessionId': 'string'
},
]
}
Response Structure
(dict) --
nextToken (string) --
If there are additional results, this is the token for the next set of results.
sessionSummaries (list) --
Summary information about the sessions.
(dict) --
Summary information about the session.
assistantArn (string) --
The Amazon Resource Name (ARN) of the Wisdom assistant.
assistantId (string) --
The identifier of the Wisdom assistant.
sessionArn (string) --
The Amazon Resource Name (ARN) of the session.
sessionId (string) --
The identifier of the session.
Exceptions
ConnectWisdomService.Client.exceptions.ValidationException
ConnectWisdomService.Client.exceptions.AccessDeniedException
ConnectWisdomService.Client.exceptions.ResourceNotFoundException