aws_sdk_networkmonitor/client/update_monitor.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 [`UpdateMonitor`](crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`UpdateMonitorOutput`](crate::operation::update_monitor::UpdateMonitorOutput) with field(s):
9 /// - [`monitor_arn(String)`](crate::operation::update_monitor::UpdateMonitorOutput::monitor_arn): <p>The ARN of the monitor that was updated.</p>
10 /// - [`monitor_name(String)`](crate::operation::update_monitor::UpdateMonitorOutput::monitor_name): <p>The name of the monitor that was updated.</p>
11 /// - [`state(MonitorState)`](crate::operation::update_monitor::UpdateMonitorOutput::state): <p>The state of the updated monitor.</p>
12 /// - [`aggregation_period(Option<i64>)`](crate::operation::update_monitor::UpdateMonitorOutput::aggregation_period): <p>The changed aggregation period.</p>
13 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::update_monitor::UpdateMonitorOutput::tags): <p>The list of key-value pairs associated with the monitor.</p>
14 /// - On failure, responds with [`SdkError<UpdateMonitorError>`](crate::operation::update_monitor::UpdateMonitorError)
15 pub fn update_monitor(&self) -> crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder {
16 crate::operation::update_monitor::builders::UpdateMonitorFluentBuilder::new(self.handle.clone())
17 }
18}