unarchiveFindings method
Unarchives GuardDuty findings specified by the findingIds.
May throw BadRequestException.
May throw InternalServerErrorException.
Parameter detectorId :
The ID of the detector associated with the findings to unarchive.
To find the detectorId in the current Region, see the
Settings page in the GuardDuty console, or run the ListDetectors
API.
Parameter findingIds :
The IDs of the findings to unarchive.
Implementation
Future<void> unarchiveFindings({
required String detectorId,
required List<String> findingIds,
}) async {
final $payload = <String, dynamic>{
'findingIds': findingIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/findings/unarchive',
exceptionFnMap: _exceptionFns,
);
}