getSession method
Gets a session.
May throw AccessDeniedException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter farmId :
The farm ID for the session.
Parameter jobId :
The job ID for the session.
Parameter queueId :
The queue ID for the session.
Parameter sessionId :
The session ID.
Implementation
Future<GetSessionResponse> getSession({
required String farmId,
required String jobId,
required String queueId,
required String sessionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2023-10-12/farms/${Uri.encodeComponent(farmId)}/queues/${Uri.encodeComponent(queueId)}/jobs/${Uri.encodeComponent(jobId)}/sessions/${Uri.encodeComponent(sessionId)}',
exceptionFnMap: _exceptionFns,
);
return GetSessionResponse.fromJson(response);
}