getUser method
Retrieves details for a specific user.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter userId :
The unique identifier of the user to get data for.
Implementation
Future<GetUserResponse> getUser({
required String userId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/user/${Uri.encodeComponent(userId)}',
exceptionFnMap: _exceptionFns,
);
return GetUserResponse.fromJson(response);
}