1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateMonitor`](crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`monitor_name(impl Into<String>)`](crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder::monitor_name) / [`set_monitor_name(Option<String>)`](crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder::set_monitor_name):<br>required: **true**<br><p>The name of the monitor to update.</p><br>
    ///   - [`aggregation_period(i64)`](crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder::aggregation_period) / [`set_aggregation_period(Option<i64>)`](crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder::set_aggregation_period):<br>required: **true**<br><p>The aggregation time, in seconds, to change to. This must be either <code>30</code> or <code>60</code>.</p><br>
    /// - On success, responds with [`UpdateMonitorOutput`](crate::operation::update_monitor::UpdateMonitorOutput) with field(s):
    ///   - [`monitor_arn(String)`](crate::operation::update_monitor::UpdateMonitorOutput::monitor_arn): <p>The ARN of the monitor that was updated.</p>
    ///   - [`monitor_name(String)`](crate::operation::update_monitor::UpdateMonitorOutput::monitor_name): <p>The name of the monitor that was updated.</p>
    ///   - [`state(MonitorState)`](crate::operation::update_monitor::UpdateMonitorOutput::state): <p>The state of the updated monitor.</p>
    ///   - [`aggregation_period(Option<i64>)`](crate::operation::update_monitor::UpdateMonitorOutput::aggregation_period): <p>The changed aggregation period.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::update_monitor::UpdateMonitorOutput::tags): <p>The list of key-value pairs associated with the monitor.</p>
    /// - On failure, responds with [`SdkError<UpdateMonitorError>`](crate::operation::update_monitor::UpdateMonitorError)
    pub fn update_monitor(&self) -> crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder {
        crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder::new(self.handle.clone())
    }
}