listAppInstanceUsers method
List all AppInstanceUsers
created under a single app
instance.
May throw BadRequestException. May throw ForbiddenException. May throw ThrottledClientException. May throw UnauthorizedClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter appInstanceArn
:
The ARN of the app instance.
Parameter maxResults
:
The maximum number of requests that you want returned.
Parameter nextToken
:
The token passed by previous API calls until all requested users are
returned.
Implementation
Future<ListAppInstanceUsersResponse> listAppInstanceUsers({
required String appInstanceArn,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(appInstanceArn, 'appInstanceArn');
_s.validateStringLength(
'appInstanceArn',
appInstanceArn,
5,
1600,
isRequired: true,
);
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
2048,
);
final $query = <String, List<String>>{
'app-instance-arn': [appInstanceArn],
if (maxResults != null) 'max-results': [maxResults.toString()],
if (nextToken != null) 'next-token': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/app-instance-users',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListAppInstanceUsersResponse.fromJson(response);
}