libZSservicesZSamazonka-snowballZSamazonka-snowball
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Snowball.Types.Notification

Description

 
Synopsis

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

  • notifyAll :: Maybe Bool

    Any change in job state will trigger a notification for this job.

  • snsTopicARN :: Maybe Text

    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.

  • jobStatesToNotify :: Maybe [JobState]

    The list of job states that will trigger a notification for this job.

Instances

Instances details
Eq Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

Read Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

Show Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

Generic Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

Associated Types

type Rep Notification :: Type -> Type #

NFData Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

Methods

rnf :: Notification -> () #

Hashable Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

ToJSON Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

FromJSON Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

type Rep Notification Source # 
Instance details

Defined in Amazonka.Snowball.Types.Notification

type Rep Notification = D1 ('MetaData "Notification" "Amazonka.Snowball.Types.Notification" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "Notification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "notifyAll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "snsTopicARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jobStatesToNotify") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobState])))))

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.