1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`TestAlarm`](crate::operation::test_alarm::builders::TestAlarmFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`alarm_name(impl Into<String>)`](crate::operation::test_alarm::builders::TestAlarmFluentBuilder::alarm_name) / [`set_alarm_name(Option<String>)`](crate::operation::test_alarm::builders::TestAlarmFluentBuilder::set_alarm_name): <p>The name of the alarm to test.</p>
    ///   - [`state(AlarmState)`](crate::operation::test_alarm::builders::TestAlarmFluentBuilder::state) / [`set_state(Option<AlarmState>)`](crate::operation::test_alarm::builders::TestAlarmFluentBuilder::set_state): <p>The alarm state to test.</p>  <p>An alarm has the following possible states that can be tested:</p>  <ul>   <li> <p> <code>ALARM</code> - The metric is outside of the defined threshold.</p> </li>   <li> <p> <code>INSUFFICIENT_DATA</code> - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.</p> </li>   <li> <p> <code>OK</code> - The metric is within the defined threshold.</p> </li>  </ul>
    /// - On success, responds with [`TestAlarmOutput`](crate::operation::test_alarm::TestAlarmOutput) with field(s):
    ///   - [`operations(Option<Vec<Operation>>)`](crate::operation::test_alarm::TestAlarmOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
    /// - On failure, responds with [`SdkError<TestAlarmError>`](crate::operation::test_alarm::TestAlarmError)
    pub fn test_alarm(&self) -> crate::operation::test_alarm::builders::TestAlarmFluentBuilder {
        crate::operation::test_alarm::builders::TestAlarmFluentBuilder::new(self.handle.clone())
    }
}