listAuditSuppressions method
Future<ListAuditSuppressionsResponse>
listAuditSuppressions({
- bool? ascendingOrder,
- String? checkName,
- int? maxResults,
- String? nextToken,
- ResourceIdentifier? resourceIdentifier,
Lists your Device Defender audit listings.
May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException.
Parameter ascendingOrder
:
Determines whether suppressions are listed in ascending order by
expiration date or not. If parameter isn't provided,
ascendingOrder=true
.
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<ListAuditSuppressionsResponse> listAuditSuppressions({
bool? ascendingOrder,
String? checkName,
int? maxResults,
String? nextToken,
ResourceIdentifier? resourceIdentifier,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
250,
);
final $payload = <String, dynamic>{
if (ascendingOrder != null) 'ascendingOrder': ascendingOrder,
if (checkName != null) 'checkName': checkName,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
if (resourceIdentifier != null) 'resourceIdentifier': resourceIdentifier,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/audit/suppressions/list',
exceptionFnMap: _exceptionFns,
);
return ListAuditSuppressionsResponse.fromJson(response);
}