aws_sdk_lookoutmetrics/client/update_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 [`UpdateAnomalyDetector`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`anomaly_detector_arn(impl Into<String>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::anomaly_detector_arn) / [`set_anomaly_detector_arn(Option<String>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::set_anomaly_detector_arn):<br>required: **true**<br><p>The ARN of the detector to update.</p><br>
7 /// - [`kms_key_arn(impl Into<String>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::set_kms_key_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of an AWS KMS encryption key.</p><br>
8 /// - [`anomaly_detector_description(impl Into<String>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::anomaly_detector_description) / [`set_anomaly_detector_description(Option<String>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::set_anomaly_detector_description):<br>required: **false**<br><p>The updated detector description.</p><br>
9 /// - [`anomaly_detector_config(AnomalyDetectorConfig)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::anomaly_detector_config) / [`set_anomaly_detector_config(Option<AnomalyDetectorConfig>)`](crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::set_anomaly_detector_config):<br>required: **false**<br><p>Contains information about the configuration to which the detector will be updated.</p><br>
10 /// - On success, responds with [`UpdateAnomalyDetectorOutput`](crate::operation::update_anomaly_detector::UpdateAnomalyDetectorOutput) with field(s):
11 /// - [`anomaly_detector_arn(Option<String>)`](crate::operation::update_anomaly_detector::UpdateAnomalyDetectorOutput::anomaly_detector_arn): <p>The ARN of the updated detector.</p>
12 /// - On failure, responds with [`SdkError<UpdateAnomalyDetectorError>`](crate::operation::update_anomaly_detector::UpdateAnomalyDetectorError)
13 pub fn update_anomaly_detector(&self) -> crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder {
14 crate::operation::update_anomaly_detector::builders::UpdateAnomalyDetectorFluentBuilder::new(self.handle.clone())
15 }
16}