getSession method

Future<GetSessionResponse> getSession({
  1. required String sessionArn,
})

Returns details for an approval session. For more information, see Session in the Multi-party approval User Guide.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter sessionArn : Amazon Resource Name (ARN) for the session.

Implementation

Future<GetSessionResponse> getSession({
  required String sessionArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/sessions/${Uri.encodeComponent(sessionArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSessionResponse.fromJson(response);
}