getCisScanResultDetails method
Retrieves CIS scan result details.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter accountId :
The account ID.
Parameter scanArn :
The scan ARN.
Parameter targetResourceId :
The target resource ID.
Parameter filterCriteria :
The filter criteria.
Parameter maxResults :
The maximum number of CIS scan result details 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 sort by order.
Parameter sortOrder :
The sort order.
Implementation
Future<GetCisScanResultDetailsResponse> getCisScanResultDetails({
required String accountId,
required String scanArn,
required String targetResourceId,
CisScanResultDetailsFilterCriteria? filterCriteria,
int? maxResults,
String? nextToken,
CisScanResultDetailsSortBy? sortBy,
CisSortOrder? sortOrder,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $payload = <String, dynamic>{
'accountId': accountId,
'scanArn': scanArn,
'targetResourceId': targetResourceId,
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-result/details/get',
exceptionFnMap: _exceptionFns,
);
return GetCisScanResultDetailsResponse.fromJson(response);
}