aws-sdk-cloudwatch 1.109.0

AWS SDK for Amazon CloudWatch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAlarmMuteRule`](crate::operation::get_alarm_mute_rule::builders::GetAlarmMuteRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`alarm_mute_rule_name(impl Into<String>)`](crate::operation::get_alarm_mute_rule::builders::GetAlarmMuteRuleFluentBuilder::alarm_mute_rule_name) / [`set_alarm_mute_rule_name(Option<String>)`](crate::operation::get_alarm_mute_rule::builders::GetAlarmMuteRuleFluentBuilder::set_alarm_mute_rule_name):<br>required: **true**<br><p>The name of the alarm mute rule to retrieve.</p><br>
    /// - On success, responds with [`GetAlarmMuteRuleOutput`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput) with field(s):
    ///   - [`name(Option<String>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::name): <p>The name of the alarm mute rule.</p>
    ///   - [`alarm_mute_rule_arn(Option<String>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::alarm_mute_rule_arn): <p>The Amazon Resource Name (ARN) of the alarm mute rule.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::description): <p>The description of the alarm mute rule.</p>
    ///   - [`rule(Option<Rule>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::rule): <p>The configuration that defines when and how long alarms are muted.</p>
    ///   - [`mute_targets(Option<MuteTargets>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::mute_targets): <p>Specifies which alarms this rule applies to.</p>
    ///   - [`start_date(Option<DateTime>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::start_date): <p>The date and time when the mute rule becomes active. If not set, the rule is active immediately.</p>
    ///   - [`expire_date(Option<DateTime>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::expire_date): <p>The date and time when the mute rule expires and is no longer evaluated.</p>
    ///   - [`status(Option<AlarmMuteRuleStatus>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::status): <p>The current status of the alarm mute rule. Valid values are <code>SCHEDULED</code>, <code>ACTIVE</code>, or <code>EXPIRED</code>.</p>
    ///   - [`last_updated_timestamp(Option<DateTime>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::last_updated_timestamp): <p>The date and time when the mute rule was last updated.</p>
    ///   - [`mute_type(Option<String>)`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleOutput::mute_type): <p>Indicates whether the mute rule is one-time or recurring. Valid values are <code>ONE_TIME</code> or <code>RECURRING</code>.</p>
    /// - On failure, responds with [`SdkError<GetAlarmMuteRuleError>`](crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError)
    pub fn get_alarm_mute_rule(&self) -> crate::operation::get_alarm_mute_rule::builders::GetAlarmMuteRuleFluentBuilder {
        crate::operation::get_alarm_mute_rule::builders::GetAlarmMuteRuleFluentBuilder::new(self.handle.clone())
    }
}