listApps method
Returns a list of the existing Amplify apps.
May throw BadRequestException. May throw UnauthorizedException. May throw InternalFailureException.
Parameter maxResults
:
The maximum number of records to list in a single response.
Parameter nextToken
:
A pagination token. If non-null, the pagination token is returned in a
result. Pass its value in another request to retrieve more entries.
Implementation
Future<ListAppsResult> listApps({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
0,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
2000,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/apps',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListAppsResult.fromJson(response);
}