getSession method
Retrieves information for a specified session.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter assistantId :
The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
Parameter sessionId :
The identifier of the session. Can be either the ID or the ARN. URLs
cannot contain the ARN.
Implementation
Future<GetSessionResponse> getSession({
required String assistantId,
required String sessionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/assistants/${Uri.encodeComponent(assistantId)}/sessions/${Uri.encodeComponent(sessionId)}',
exceptionFnMap: _exceptionFns,
);
return GetSessionResponse.fromJson(response);
}