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.
Parameter findingIds
:
The IDs of the findings to unarchive.
Implementation
Future<void> unarchiveFindings({
required String detectorId,
required List<String> findingIds,
}) async {
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
ArgumentError.checkNotNull(findingIds, 'findingIds');
final $payload = <String, dynamic>{
'findingIds': findingIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/findings/unarchive',
exceptionFnMap: _exceptionFns,
);
}