amazonka-mechanicalturk-1.5.0: Amazon Mechanical Turk SDK.

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

Network.AWS.MechanicalTurk.UpdateNotificationSettings

Contents

Description

The UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings .

Synopsis

Creating a Request

updateNotificationSettings Source #

Creates a value of UpdateNotificationSettings with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • unsNotification - The notification specification for the HIT type.
  • unsActive - Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.
  • unsHITTypeId - The ID of the HIT type whose notification specification is being updated.

data UpdateNotificationSettings Source #

See: updateNotificationSettings smart constructor.

Instances

Eq UpdateNotificationSettings Source # 
Data UpdateNotificationSettings Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateNotificationSettings -> c UpdateNotificationSettings #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateNotificationSettings #

toConstr :: UpdateNotificationSettings -> Constr #

dataTypeOf :: UpdateNotificationSettings -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateNotificationSettings) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateNotificationSettings) #

gmapT :: (forall b. Data b => b -> b) -> UpdateNotificationSettings -> UpdateNotificationSettings #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNotificationSettings -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNotificationSettings -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateNotificationSettings -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateNotificationSettings -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateNotificationSettings -> m UpdateNotificationSettings #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNotificationSettings -> m UpdateNotificationSettings #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNotificationSettings -> m UpdateNotificationSettings #

Read UpdateNotificationSettings Source # 
Show UpdateNotificationSettings Source # 
Generic UpdateNotificationSettings Source # 
Hashable UpdateNotificationSettings Source # 
ToJSON UpdateNotificationSettings Source # 
NFData UpdateNotificationSettings Source # 
AWSRequest UpdateNotificationSettings Source # 
ToQuery UpdateNotificationSettings Source # 
ToPath UpdateNotificationSettings Source # 
ToHeaders UpdateNotificationSettings Source # 
type Rep UpdateNotificationSettings Source # 
type Rep UpdateNotificationSettings = D1 (MetaData "UpdateNotificationSettings" "Network.AWS.MechanicalTurk.UpdateNotificationSettings" "amazonka-mechanicalturk-1.5.0-FaPkjSp7Fzg9knquA94uxS" False) (C1 (MetaCons "UpdateNotificationSettings'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_unsNotification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NotificationSpecification))) ((:*:) (S1 (MetaSel (Just Symbol "_unsActive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_unsHITTypeId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateNotificationSettings Source # 

Request Lenses

unsNotification :: Lens' UpdateNotificationSettings (Maybe NotificationSpecification) Source #

The notification specification for the HIT type.

unsActive :: Lens' UpdateNotificationSettings (Maybe Bool) Source #

Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.

unsHITTypeId :: Lens' UpdateNotificationSettings Text Source #

The ID of the HIT type whose notification specification is being updated.

Destructuring the Response

updateNotificationSettingsResponse Source #

Creates a value of UpdateNotificationSettingsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateNotificationSettingsResponse Source #

See: updateNotificationSettingsResponse smart constructor.

Instances

Eq UpdateNotificationSettingsResponse Source # 
Data UpdateNotificationSettingsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateNotificationSettingsResponse -> c UpdateNotificationSettingsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateNotificationSettingsResponse #

toConstr :: UpdateNotificationSettingsResponse -> Constr #

dataTypeOf :: UpdateNotificationSettingsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateNotificationSettingsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateNotificationSettingsResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateNotificationSettingsResponse -> UpdateNotificationSettingsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNotificationSettingsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNotificationSettingsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateNotificationSettingsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateNotificationSettingsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateNotificationSettingsResponse -> m UpdateNotificationSettingsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNotificationSettingsResponse -> m UpdateNotificationSettingsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNotificationSettingsResponse -> m UpdateNotificationSettingsResponse #

Read UpdateNotificationSettingsResponse Source # 
Show UpdateNotificationSettingsResponse Source # 
Generic UpdateNotificationSettingsResponse Source # 
NFData UpdateNotificationSettingsResponse Source # 
type Rep UpdateNotificationSettingsResponse Source # 
type Rep UpdateNotificationSettingsResponse = D1 (MetaData "UpdateNotificationSettingsResponse" "Network.AWS.MechanicalTurk.UpdateNotificationSettings" "amazonka-mechanicalturk-1.5.0-FaPkjSp7Fzg9knquA94uxS" True) (C1 (MetaCons "UpdateNotificationSettingsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_unsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses