| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Snowball.Types.Notification
Description
Synopsis
- data Notification = Notification' {
- jobStatesToNotify :: Maybe [JobState]
- notifyAll :: Maybe Bool
- snsTopicARN :: Maybe Text
- newNotification :: Notification
- notification_jobStatesToNotify :: Lens' Notification (Maybe [JobState])
- notification_notifyAll :: Lens' Notification (Maybe Bool)
- notification_snsTopicARN :: Lens' Notification (Maybe Text)
Documentation
data Notification Source #
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.
See: newNotification smart constructor.
Constructors
| Notification' | |
Fields
| |
Instances
newNotification :: Notification Source #
Create a value of Notification with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobStatesToNotify:Notification', notification_jobStatesToNotify - The list of job states that will trigger a notification for this job.
$sel:notifyAll:Notification', notification_notifyAll - Any change in job state will trigger a notification for this job.
$sel:snsTopicARN:Notification', notification_snsTopicARN - 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.
notification_jobStatesToNotify :: Lens' Notification (Maybe [JobState]) Source #
The list of job states that will trigger a notification for this job.
notification_notifyAll :: Lens' Notification (Maybe Bool) Source #
Any change in job state will trigger a notification for this job.
notification_snsTopicARN :: Lens' Notification (Maybe Text) Source #
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.