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
impl StructuralPartialEq for AlarmConfigurationBuilder
Auto Trait Implementations§
impl Freeze for AlarmConfigurationBuilder
impl RefUnwindSafe for AlarmConfigurationBuilder
impl Send for AlarmConfigurationBuilder
impl Sync for AlarmConfigurationBuilder
impl Unpin for AlarmConfigurationBuilder
impl UnwindSafe for AlarmConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more