listScheduledAudits method
Lists all of your scheduled audits.
May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException.
Parameter maxResults
:
The maximum number of results to return at one time. The default is 25.
Parameter nextToken
:
The token for the next set of results.
Implementation
Future<ListScheduledAuditsResponse> listScheduledAudits({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
250,
);
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: '/audit/scheduledaudits',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListScheduledAuditsResponse.fromJson(response);
}