Struct aws_sdk_snowball::types::Notification
source · #[non_exhaustive]pub struct Notification {
pub sns_topic_arn: Option<String>,
pub job_states_to_notify: Option<Vec<JobState>>,
pub notify_all: bool,
pub device_pickup_sns_topic_arn: Option<String>,
}
Expand description
The Amazon Simple Notification Service (Amazon SNS) notification settings associated with a specific job. The Notification
object is returned as a part of the response syntax of the DescribeJob
action in the JobMetadata
data type.
When the notification settings are defined during job creation, you can choose to notify based on a specific set of job states using the JobStatesToNotify
array of strings, or you can specify that you want to have Amazon SNS notifications sent out for all job states with NotifyAll
set to true.
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.sns_topic_arn: Option<String>
The new SNS TopicArn
that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
job_states_to_notify: Option<Vec<JobState>>
The list of job states that will trigger a notification for this job.
notify_all: bool
Any change in job state will trigger a notification for this job.
device_pickup_sns_topic_arn: Option<String>
Used to send SNS notifications for the person picking up the device (identified during job creation).
Implementations§
source§impl Notification
impl Notification
sourcepub fn sns_topic_arn(&self) -> Option<&str>
pub fn sns_topic_arn(&self) -> Option<&str>
The new SNS TopicArn
that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
sourcepub fn job_states_to_notify(&self) -> &[JobState]
pub fn job_states_to_notify(&self) -> &[JobState]
The list of job states that will trigger a notification for this job.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .job_states_to_notify.is_none()
.
sourcepub fn notify_all(&self) -> bool
pub fn notify_all(&self) -> bool
Any change in job state will trigger a notification for this job.
sourcepub fn device_pickup_sns_topic_arn(&self) -> Option<&str>
pub fn device_pickup_sns_topic_arn(&self) -> Option<&str>
Used to send SNS notifications for the person picking up the device (identified during job creation).
source§impl Notification
impl Notification
sourcepub fn builder() -> NotificationBuilder
pub fn builder() -> NotificationBuilder
Creates a new builder-style object to manufacture Notification
.
Trait Implementations§
source§impl Clone for Notification
impl Clone for Notification
source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Notification
impl Debug for Notification
source§impl PartialEq for Notification
impl PartialEq for Notification
source§fn eq(&self, other: &Notification) -> bool
fn eq(&self, other: &Notification) -> bool
self
and other
values to be equal, and is used
by ==
.