Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Notification = Notification' {
- notifyAll :: Maybe Bool
- snsTopicARN :: Maybe Text
- jobStatesToNotify :: Maybe [JobState]
- newNotification :: Notification
- notification_notifyAll :: Lens' Notification (Maybe Bool)
- notification_snsTopicARN :: Lens' Notification (Maybe Text)
- notification_jobStatesToNotify :: Lens' Notification (Maybe [JobState])
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.
Notification' | |
|
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: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 AWS Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
$sel:jobStatesToNotify:Notification'
, notification_jobStatesToNotify
- 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 AWS 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.