batchGetFindings method

Future<BatchGetFindingsResponse> batchGetFindings({
  1. required List<FindingIdentifier> findingIdentifiers,
})

Returns a list of requested findings from standard scans.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter findingIdentifiers : A list of finding identifiers. Each identifier consists of a scanName and a findingId. You retrieve the findingId when you call GetFindings.

Implementation

Future<BatchGetFindingsResponse> batchGetFindings({
  required List<FindingIdentifier> findingIdentifiers,
}) async {
  final $payload = <String, dynamic>{
    'findingIdentifiers': findingIdentifiers,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/batchGetFindings',
    exceptionFnMap: _exceptionFns,
  );
  return BatchGetFindingsResponse.fromJson(response);
}