listWorkloads method
Paginated list of workloads.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of results to return for this request.
Implementation
Future<ListWorkloadsOutput> listWorkloads({
int? maxResults,
String? nextToken,
String? workloadNamePrefix,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (workloadNamePrefix != null) 'WorkloadNamePrefix': workloadNamePrefix,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/workloadsSummaries',
exceptionFnMap: _exceptionFns,
);
return ListWorkloadsOutput.fromJson(response);
}