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.SendTestEventNotification

Contents

Description

The SendTestEventNotification operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. This allows you to test notifications without setting up notifications for a real HIT type and trying to trigger them using the website. When you call this operation, the service attempts to send the test notification immediately.

Synopsis

Creating a Request

sendTestEventNotification Source #

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

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

  • stenNotification - The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.
  • stenTestEventType - The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.

data SendTestEventNotification Source #

See: sendTestEventNotification smart constructor.

Instances
Eq SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Data SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Methods

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

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

toConstr :: SendTestEventNotification -> Constr #

dataTypeOf :: SendTestEventNotification -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Show SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Generic SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Associated Types

type Rep SendTestEventNotification :: Type -> Type #

Hashable SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

ToJSON SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

AWSRequest SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Associated Types

type Rs SendTestEventNotification :: Type #

ToHeaders SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

ToPath SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

ToQuery SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

NFData SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotification = D1 (MetaData "SendTestEventNotification" "Network.AWS.MechanicalTurk.SendTestEventNotification" "amazonka-mechanicalturk-1.6.1-GV5ehA4FkQY3BZvWX2sEC2" False) (C1 (MetaCons "SendTestEventNotification'" PrefixI True) (S1 (MetaSel (Just "_stenNotification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 NotificationSpecification) :*: S1 (MetaSel (Just "_stenTestEventType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EventType)))
type Rs SendTestEventNotification Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Request Lenses

stenNotification :: Lens' SendTestEventNotification NotificationSpecification Source #

The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.

stenTestEventType :: Lens' SendTestEventNotification EventType Source #

The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.

Destructuring the Response

sendTestEventNotificationResponse Source #

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

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

data SendTestEventNotificationResponse Source #

See: sendTestEventNotificationResponse smart constructor.

Instances
Eq SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Data SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Methods

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

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

toConstr :: SendTestEventNotificationResponse -> Constr #

dataTypeOf :: SendTestEventNotificationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Show SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Generic SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

Associated Types

type Rep SendTestEventNotificationResponse :: Type -> Type #

NFData SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotificationResponse Source # 
Instance details

Defined in Network.AWS.MechanicalTurk.SendTestEventNotification

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

Response Lenses