deleteDetector method

Future<void> deleteDetector({
  1. required String detectorId,
})

Deletes an Amazon GuardDuty detector that is specified by the detector ID.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter detectorId : The unique ID of the detector that you want to delete.

Implementation

Future<void> deleteDetector({
  required String detectorId,
}) async {
  ArgumentError.checkNotNull(detectorId, 'detectorId');
  _s.validateStringLength(
    'detectorId',
    detectorId,
    1,
    300,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/detector/${Uri.encodeComponent(detectorId)}',
    exceptionFnMap: _exceptionFns,
  );
}