deleteDetectorModel method

Future<void> deleteDetectorModel({
  1. required String detectorModelName,
})

Deletes a detector model. Any active instances of the detector model are also deleted.

May throw InvalidRequestException. May throw ResourceInUseException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException. May throw ServiceUnavailableException.

Parameter detectorModelName : The name of the detector model to be deleted.

Implementation

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