aws_sdk_cloudwatch/client/delete_anomaly_detector.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DeleteAnomalyDetector`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`namespace(impl Into<String>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::set_namespace):<br>required: **false**<br><p>The namespace associated with the anomaly detection model to delete.</p><br>
7 /// - [`metric_name(impl Into<String>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::metric_name) / [`set_metric_name(Option<String>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::set_metric_name):<br>required: **false**<br><p>The metric name associated with the anomaly detection model to delete.</p><br>
8 /// - [`dimensions(Dimension)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::dimensions) / [`set_dimensions(Option<Vec::<Dimension>>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::set_dimensions):<br>required: **false**<br><p>The metric dimensions associated with the anomaly detection model to delete.</p><br>
9 /// - [`stat(impl Into<String>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::stat) / [`set_stat(Option<String>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::set_stat):<br>required: **false**<br><p>The statistic associated with the anomaly detection model to delete.</p><br>
10 /// - [`single_metric_anomaly_detector(SingleMetricAnomalyDetector)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::single_metric_anomaly_detector) / [`set_single_metric_anomaly_detector(Option<SingleMetricAnomalyDetector>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::set_single_metric_anomaly_detector):<br>required: **false**<br><p>A single metric anomaly detector to be deleted.</p> <p>When using <code>SingleMetricAnomalyDetector</code>, you cannot include the following parameters in the same operation:</p> <ul> <li> <p><code>Dimensions</code>,</p></li> <li> <p><code>MetricName</code></p></li> <li> <p><code>Namespace</code></p></li> <li> <p><code>Stat</code></p></li> <li> <p>the <code>MetricMathAnomalyDetector</code> parameters of <code>DeleteAnomalyDetectorInput</code></p></li> </ul> <p>Instead, specify the single metric anomaly detector attributes as part of the <code>SingleMetricAnomalyDetector</code> property.</p><br>
11 /// - [`metric_math_anomaly_detector(MetricMathAnomalyDetector)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::metric_math_anomaly_detector) / [`set_metric_math_anomaly_detector(Option<MetricMathAnomalyDetector>)`](crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::set_metric_math_anomaly_detector):<br>required: **false**<br><p>The metric math anomaly detector to be deleted.</p> <p>When using <code>MetricMathAnomalyDetector</code>, you cannot include following parameters in the same operation:</p> <ul> <li> <p><code>Dimensions</code>,</p></li> <li> <p><code>MetricName</code></p></li> <li> <p><code>Namespace</code></p></li> <li> <p><code>Stat</code></p></li> <li> <p>the <code>SingleMetricAnomalyDetector</code> parameters of <code>DeleteAnomalyDetectorInput</code></p></li> </ul> <p>Instead, specify the metric math anomaly detector attributes as part of the <code>MetricMathAnomalyDetector</code> property.</p><br>
12 /// - On success, responds with [`DeleteAnomalyDetectorOutput`](crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorOutput)
13 /// - On failure, responds with [`SdkError<DeleteAnomalyDetectorError>`](crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError)
14 pub fn delete_anomaly_detector(&self) -> crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder {
15 crate::operation::delete_anomaly_detector::builders::DeleteAnomalyDetectorFluentBuilder::new(self.handle.clone())
16 }
17}