Struct aws_sdk_iot::types::CloudwatchAlarmAction
source · #[non_exhaustive]pub struct CloudwatchAlarmAction {
pub role_arn: String,
pub alarm_name: String,
pub state_reason: String,
pub state_value: String,
}
Expand description
Describes an action that updates a CloudWatch alarm.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.role_arn: String
The IAM role that allows access to the CloudWatch alarm.
alarm_name: String
The CloudWatch alarm name.
state_reason: String
The reason for the alarm change.
state_value: String
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
Implementations§
source§impl CloudwatchAlarmAction
impl CloudwatchAlarmAction
sourcepub fn alarm_name(&self) -> &str
pub fn alarm_name(&self) -> &str
The CloudWatch alarm name.
sourcepub fn state_reason(&self) -> &str
pub fn state_reason(&self) -> &str
The reason for the alarm change.
sourcepub fn state_value(&self) -> &str
pub fn state_value(&self) -> &str
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
source§impl CloudwatchAlarmAction
impl CloudwatchAlarmAction
sourcepub fn builder() -> CloudwatchAlarmActionBuilder
pub fn builder() -> CloudwatchAlarmActionBuilder
Creates a new builder-style object to manufacture CloudwatchAlarmAction
.
Trait Implementations§
source§impl Clone for CloudwatchAlarmAction
impl Clone for CloudwatchAlarmAction
source§fn clone(&self) -> CloudwatchAlarmAction
fn clone(&self) -> CloudwatchAlarmAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CloudwatchAlarmAction
impl Debug for CloudwatchAlarmAction
source§impl PartialEq for CloudwatchAlarmAction
impl PartialEq for CloudwatchAlarmAction
source§fn eq(&self, other: &CloudwatchAlarmAction) -> bool
fn eq(&self, other: &CloudwatchAlarmAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudwatchAlarmAction
Auto Trait Implementations§
impl Freeze for CloudwatchAlarmAction
impl RefUnwindSafe for CloudwatchAlarmAction
impl Send for CloudwatchAlarmAction
impl Sync for CloudwatchAlarmAction
impl Unpin for CloudwatchAlarmAction
impl UnwindSafe for CloudwatchAlarmAction
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.