amazonka-mechanicalturk-1.6.1: Amazon Mechanical Turk SDK.

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Data UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

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 # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Show UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Generic UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Associated Types

type Rep UpdateNotificationSettings :: Type -> Type #

Hashable UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

ToJSON UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

AWSRequest UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Associated Types

type Rs UpdateNotificationSettings :: Type #

ToHeaders UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

ToPath UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

ToQuery UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

NFData UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

type Rep UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

type Rep UpdateNotificationSettings = D1 (MetaData "UpdateNotificationSettings" "Network.AWS.MechanicalTurk.UpdateNotificationSettings" "amazonka-mechanicalturk-1.6.1-GV5ehA4FkQY3BZvWX2sEC2" False) (C1 (MetaCons "UpdateNotificationSettings'" PrefixI True) (S1 (MetaSel (Just "_unsNotification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NotificationSpecification)) :*: (S1 (MetaSel (Just "_unsActive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_unsHITTypeId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateNotificationSettings Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

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 # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Data UpdateNotificationSettingsResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

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 # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Show UpdateNotificationSettingsResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Generic UpdateNotificationSettingsResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

Associated Types

type Rep UpdateNotificationSettingsResponse :: Type -> Type #

NFData UpdateNotificationSettingsResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

type Rep UpdateNotificationSettingsResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.UpdateNotificationSettings

type Rep UpdateNotificationSettingsResponse = D1 (MetaData "UpdateNotificationSettingsResponse" "Network.AWS.MechanicalTurk.UpdateNotificationSettings" "amazonka-mechanicalturk-1.6.1-GV5ehA4FkQY3BZvWX2sEC2" True) (C1 (MetaCons "UpdateNotificationSettingsResponse'" PrefixI True) (S1 (MetaSel (Just "_unsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses