Struct aws_sdk_iotevents::types::NotificationAction
source · #[non_exhaustive]pub struct NotificationAction {
pub action: Option<NotificationTargetActions>,
pub sms_configurations: Option<Vec<SmsConfiguration>>,
pub email_configurations: Option<Vec<EmailConfiguration>>,
}
Expand description
Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.action: Option<NotificationTargetActions>
Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.
sms_configurations: Option<Vec<SmsConfiguration>>
Contains the configuration information of SMS notifications.
email_configurations: Option<Vec<EmailConfiguration>>
Contains the configuration information of email notifications.
Implementations§
source§impl NotificationAction
impl NotificationAction
sourcepub fn action(&self) -> Option<&NotificationTargetActions>
pub fn action(&self) -> Option<&NotificationTargetActions>
Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.
sourcepub fn sms_configurations(&self) -> &[SmsConfiguration]
pub fn sms_configurations(&self) -> &[SmsConfiguration]
Contains the configuration information of SMS notifications.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sms_configurations.is_none()
.
sourcepub fn email_configurations(&self) -> &[EmailConfiguration]
pub fn email_configurations(&self) -> &[EmailConfiguration]
Contains the configuration information of email notifications.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .email_configurations.is_none()
.
source§impl NotificationAction
impl NotificationAction
sourcepub fn builder() -> NotificationActionBuilder
pub fn builder() -> NotificationActionBuilder
Creates a new builder-style object to manufacture NotificationAction
.
Trait Implementations§
source§impl Clone for NotificationAction
impl Clone for NotificationAction
source§fn clone(&self) -> NotificationAction
fn clone(&self) -> NotificationAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationAction
impl Debug for NotificationAction
source§impl PartialEq for NotificationAction
impl PartialEq for NotificationAction
source§fn eq(&self, other: &NotificationAction) -> bool
fn eq(&self, other: &NotificationAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationAction
Auto Trait Implementations§
impl Freeze for NotificationAction
impl RefUnwindSafe for NotificationAction
impl Send for NotificationAction
impl Sync for NotificationAction
impl Unpin for NotificationAction
impl UnwindSafe for NotificationAction
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> 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