aws_sdk_lookoutmetrics/client/
create_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 [`CreateAnomalyDetector`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`anomaly_detector_name(impl Into<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::anomaly_detector_name) / [`set_anomaly_detector_name(Option<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::set_anomaly_detector_name):<br>required: **true**<br><p>The name of the detector.</p><br>
7    ///   - [`anomaly_detector_description(impl Into<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::anomaly_detector_description) / [`set_anomaly_detector_description(Option<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::set_anomaly_detector_description):<br>required: **false**<br><p>A description of the detector.</p><br>
8    ///   - [`anomaly_detector_config(AnomalyDetectorConfig)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::anomaly_detector_config) / [`set_anomaly_detector_config(Option<AnomalyDetectorConfig>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::set_anomaly_detector_config):<br>required: **true**<br><p>Contains information about the configuration of the anomaly detector.</p><br>
9    ///   - [`kms_key_arn(impl Into<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::set_kms_key_arn):<br>required: **false**<br><p>The ARN of the KMS key to use to encrypt your data.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::set_tags):<br>required: **false**<br><p>A list of <a href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a> to apply to the anomaly detector.</p><br>
11    /// - On success, responds with [`CreateAnomalyDetectorOutput`](crate::operation::create_anomaly_detector::CreateAnomalyDetectorOutput) with field(s):
12    ///   - [`anomaly_detector_arn(Option<String>)`](crate::operation::create_anomaly_detector::CreateAnomalyDetectorOutput::anomaly_detector_arn): <p>The ARN of the detector.</p>
13    /// - On failure, responds with [`SdkError<CreateAnomalyDetectorError>`](crate::operation::create_anomaly_detector::CreateAnomalyDetectorError)
14    pub fn create_anomaly_detector(&self) -> crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder {
15        crate::operation::create_anomaly_detector::builders::CreateAnomalyDetectorFluentBuilder::new(self.handle.clone())
16    }
17}