1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateAnomaly`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`anomaly_id(impl Into<String>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::anomaly_id) / [`set_anomaly_id(Option<String>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::set_anomaly_id):<br>required: **false**<br><p>If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html">ListAnomalies</a> operation.</p><br>
    ///   - [`pattern_id(impl Into<String>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::pattern_id) / [`set_pattern_id(Option<String>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::set_pattern_id):<br>required: **false**<br><p>If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html">ListAnomalies</a> operation.</p><br>
    ///   - [`anomaly_detector_arn(impl Into<String>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::anomaly_detector_arn) / [`set_anomaly_detector_arn(Option<String>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::set_anomaly_detector_arn):<br>required: **true**<br><p>The ARN of the anomaly detector that this operation is to act on.</p><br>
    ///   - [`suppression_type(SuppressionType)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::suppression_type) / [`set_suppression_type(Option<SuppressionType>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::set_suppression_type):<br>required: **false**<br><p>Use this to specify whether the suppression to be temporary or infinite. If you specify <code>LIMITED</code>, you must also specify a <code>suppressionPeriod</code>. If you specify <code>INFINITE</code>, any value for <code>suppressionPeriod</code> is ignored.</p><br>
    ///   - [`suppression_period(SuppressionPeriod)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::suppression_period) / [`set_suppression_period(Option<SuppressionPeriod>)`](crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::set_suppression_period):<br>required: **false**<br><p>If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.</p><br>
    /// - On success, responds with [`UpdateAnomalyOutput`](crate::operation::update_anomaly::UpdateAnomalyOutput)
    /// - On failure, responds with [`SdkError<UpdateAnomalyError>`](crate::operation::update_anomaly::UpdateAnomalyError)
    pub fn update_anomaly(&self) -> crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder {
        crate::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder::new(self.handle.clone())
    }
}