#[non_exhaustive]pub struct DeleteAnomalyDetectorInput { /* private fields */ }Implementations§
source§impl DeleteAnomalyDetectorInput
impl DeleteAnomalyDetectorInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteAnomalyDetector, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteAnomalyDetector, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteAnomalyDetector>
Examples found in repository?
739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteAnomalyDetector,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteAnomalyDetectorError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteAnomalyDetectorOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteAnomalyDetectorError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DeleteAnomalyDetectorInput.
source§impl DeleteAnomalyDetectorInput
impl DeleteAnomalyDetectorInput
sourcepub fn namespace(&self) -> Option<&str>
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn namespace(&self) -> Option<&str>
The namespace associated with the anomaly detection model to delete.
sourcepub fn metric_name(&self) -> Option<&str>
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn metric_name(&self) -> Option<&str>
The metric name associated with the anomaly detection model to delete.
sourcepub fn dimensions(&self) -> Option<&[Dimension]>
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn dimensions(&self) -> Option<&[Dimension]>
The metric dimensions associated with the anomaly detection model to delete.
sourcepub fn stat(&self) -> Option<&str>
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn stat(&self) -> Option<&str>
The statistic associated with the anomaly detection model to delete.
sourcepub fn single_metric_anomaly_detector(
&self
) -> Option<&SingleMetricAnomalyDetector>
pub fn single_metric_anomaly_detector(
&self
) -> Option<&SingleMetricAnomalyDetector>
A single metric anomaly detector to be deleted.
When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:
-
Dimensions, -
MetricName -
Namespace -
Stat -
the
MetricMathAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.
sourcepub fn metric_math_anomaly_detector(&self) -> Option<&MetricMathAnomalyDetector>
pub fn metric_math_anomaly_detector(&self) -> Option<&MetricMathAnomalyDetector>
The metric math anomaly detector to be deleted.
When using MetricMathAnomalyDetector, you cannot include following parameters in the same operation:
-
Dimensions, -
MetricName -
Namespace -
Stat -
the
SingleMetricAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.
Trait Implementations§
source§impl Clone for DeleteAnomalyDetectorInput
impl Clone for DeleteAnomalyDetectorInput
source§fn clone(&self) -> DeleteAnomalyDetectorInput
fn clone(&self) -> DeleteAnomalyDetectorInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more