listCisScanConfigurations method
Lists CIS scan configurations.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter filterCriteria :
The CIS scan configuration filter criteria.
Parameter maxResults :
The maximum number of CIS scan configurations to be returned in a single
page of results.
Parameter nextToken :
The pagination token from a previous request that's used to retrieve the
next page of results.
Parameter sortBy :
The CIS scan configuration sort by order.
Parameter sortOrder :
The CIS scan configuration sort order order.
Implementation
Future<ListCisScanConfigurationsResponse> listCisScanConfigurations({
ListCisScanConfigurationsFilterCriteria? filterCriteria,
int? maxResults,
String? nextToken,
CisScanConfigurationsSortBy? sortBy,
CisSortOrder? sortOrder,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (filterCriteria != null) 'filterCriteria': filterCriteria,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
if (sortBy != null) 'sortBy': sortBy.value,
if (sortOrder != null) 'sortOrder': sortOrder.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/cis/scan-configuration/list',
exceptionFnMap: _exceptionFns,
);
return ListCisScanConfigurationsResponse.fromJson(response);
}