libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk
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.MechanicalTurk.SendTestEventNotification

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

data SendTestEventNotification Source #

See: newSendTestEventNotification smart constructor.

Constructors

SendTestEventNotification' 

Fields

  • notification :: NotificationSpecification

    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.

  • testEventType :: EventType

    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.

Instances

Instances details
Eq SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Read SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Show SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Generic SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Associated Types

type Rep SendTestEventNotification :: Type -> Type #

NFData SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Hashable SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

ToJSON SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

AWSRequest SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

ToHeaders SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

ToPath SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

ToQuery SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotification = D1 ('MetaData "SendTestEventNotification" "Amazonka.MechanicalTurk.SendTestEventNotification" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "SendTestEventNotification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NotificationSpecification) :*: S1 ('MetaSel ('Just "testEventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EventType)))
type AWSResponse SendTestEventNotification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

newSendTestEventNotification Source #

Create a value of SendTestEventNotification 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:notification:SendTestEventNotification', sendTestEventNotification_notification - 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.

$sel:testEventType:SendTestEventNotification', sendTestEventNotification_testEventType - 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.

Request Lenses

sendTestEventNotification_notification :: 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.

sendTestEventNotification_testEventType :: 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

data SendTestEventNotificationResponse Source #

See: newSendTestEventNotificationResponse smart constructor.

Constructors

SendTestEventNotificationResponse' 

Fields

Instances

Instances details
Eq SendTestEventNotificationResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Read SendTestEventNotificationResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Show SendTestEventNotificationResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Generic SendTestEventNotificationResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

Associated Types

type Rep SendTestEventNotificationResponse :: Type -> Type #

NFData SendTestEventNotificationResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotificationResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.SendTestEventNotification

type Rep SendTestEventNotificationResponse = D1 ('MetaData "SendTestEventNotificationResponse" "Amazonka.MechanicalTurk.SendTestEventNotification" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "SendTestEventNotificationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSendTestEventNotificationResponse Source #

Create a value of SendTestEventNotificationResponse 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:httpStatus:SendTestEventNotificationResponse', sendTestEventNotificationResponse_httpStatus - The response's http status code.

Response Lenses