listMissionProfiles method
Returns a list of mission profiles.
May throw DependencyException.
May throw InvalidParameterException.
May throw ResourceNotFoundException.
Parameter maxResults :
Maximum number of mission profiles returned.
Parameter nextToken :
Next token returned in the request of a previous
ListMissionProfiles call. Used to get the next page of
results.
Implementation
Future<ListMissionProfilesResponse> listMissionProfiles({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
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: '/missionprofile',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListMissionProfilesResponse.fromJson(response);
}