Struct aws_sdk_ssm::types::builders::AlarmConfigurationBuilder
source · #[non_exhaustive]pub struct AlarmConfigurationBuilder { /* private fields */ }
Expand description
A builder for AlarmConfiguration
.
Implementations§
source§impl AlarmConfigurationBuilder
impl AlarmConfigurationBuilder
sourcepub fn ignore_poll_alarm_failure(self, input: bool) -> Self
pub fn ignore_poll_alarm_failure(self, input: bool) -> Self
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
sourcepub fn set_ignore_poll_alarm_failure(self, input: Option<bool>) -> Self
pub fn set_ignore_poll_alarm_failure(self, input: Option<bool>) -> Self
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
sourcepub fn get_ignore_poll_alarm_failure(&self) -> &Option<bool>
pub fn get_ignore_poll_alarm_failure(&self) -> &Option<bool>
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
sourcepub fn alarms(self, input: Alarm) -> Self
pub fn alarms(self, input: Alarm) -> Self
Appends an item to alarms
.
To override the contents of this collection use set_alarms
.
The name of the CloudWatch alarm specified in the configuration.
sourcepub fn set_alarms(self, input: Option<Vec<Alarm>>) -> Self
pub fn set_alarms(self, input: Option<Vec<Alarm>>) -> Self
The name of the CloudWatch alarm specified in the configuration.
sourcepub fn get_alarms(&self) -> &Option<Vec<Alarm>>
pub fn get_alarms(&self) -> &Option<Vec<Alarm>>
The name of the CloudWatch alarm specified in the configuration.
sourcepub fn build(self) -> Result<AlarmConfiguration, BuildError>
pub fn build(self) -> Result<AlarmConfiguration, BuildError>
Consumes the builder and constructs a AlarmConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AlarmConfigurationBuilder
impl Clone for AlarmConfigurationBuilder
source§fn clone(&self) -> AlarmConfigurationBuilder
fn clone(&self) -> AlarmConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AlarmConfigurationBuilder
impl Debug for AlarmConfigurationBuilder
source§impl Default for AlarmConfigurationBuilder
impl Default for AlarmConfigurationBuilder
source§fn default() -> AlarmConfigurationBuilder
fn default() -> AlarmConfigurationBuilder
source§impl PartialEq for AlarmConfigurationBuilder
impl PartialEq for AlarmConfigurationBuilder
source§fn eq(&self, other: &AlarmConfigurationBuilder) -> bool
fn eq(&self, other: &AlarmConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.