listApplications method
Lists the applications registered with the IAM user or AWS account.
May throw InvalidNextTokenException.
Parameter nextToken
:
An identifier returned from the previous list applications call. It can be
used to return the next set of applications in the list.
Implementation
Future<ListApplicationsOutput> listApplications({
String? nextToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.ListApplications'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (nextToken != null) 'nextToken': nextToken,
},
);
return ListApplicationsOutput.fromJson(jsonResponse.body);
}