listApplications method
Lists the IDs of the applications that you are monitoring.
May throw ValidationException. May throw InternalServerException.
Parameter maxResults
:
The maximum number of results to return in a single call. To retrieve the
remaining results, make another call with the returned
NextToken
value.
Parameter nextToken
:
The token to request the next page of results.
Implementation
Future<ListApplicationsResponse> listApplications({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
40,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
1024,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'EC2WindowsBarleyService.ListApplications'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListApplicationsResponse.fromJson(jsonResponse.body);
}