deleteLogAnomalyDetector method

Future<void> deleteLogAnomalyDetector({
  1. required String anomalyDetectorArn,
})

Deletes the specified CloudWatch Logs anomaly detector.

May throw InvalidParameterException. May throw OperationAbortedException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.

Parameter anomalyDetectorArn : The ARN of the anomaly detector to delete. You can find the ARNs of log anomaly detectors in your account by using the ListLogAnomalyDetectors operation.

Implementation

Future<void> deleteLogAnomalyDetector({
  required String anomalyDetectorArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Logs_20140328.DeleteLogAnomalyDetector'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'anomalyDetectorArn': anomalyDetectorArn,
    },
  );
}