listUsers method
Lists all available users in FinSpace.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of results per page.
Parameter nextToken :
A token that indicates where a results page should begin.
Implementation
Future<ListUsersResponse> listUsers({
required int maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
isRequired: true,
);
final $query = <String, List<String>>{
'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/user',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListUsersResponse.fromJson(response);
}