Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data SendTestEventNotification = SendTestEventNotification' {}
- newSendTestEventNotification :: NotificationSpecification -> EventType -> SendTestEventNotification
- sendTestEventNotification_notification :: Lens' SendTestEventNotification NotificationSpecification
- sendTestEventNotification_testEventType :: Lens' SendTestEventNotification EventType
- data SendTestEventNotificationResponse = SendTestEventNotificationResponse' {
- httpStatus :: Int
- newSendTestEventNotificationResponse :: Int -> SendTestEventNotificationResponse
- sendTestEventNotificationResponse_httpStatus :: Lens' SendTestEventNotificationResponse Int
Creating a Request
data SendTestEventNotification Source #
See: newSendTestEventNotification
smart constructor.
SendTestEventNotification' | |
|
Instances
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.
SendTestEventNotificationResponse' | |
|
Instances
Eq SendTestEventNotificationResponse Source # | |
Read SendTestEventNotificationResponse Source # | |
Show SendTestEventNotificationResponse Source # | |
Generic SendTestEventNotificationResponse Source # | |
NFData SendTestEventNotificationResponse Source # | |
Defined in Amazonka.MechanicalTurk.SendTestEventNotification rnf :: SendTestEventNotificationResponse -> () # | |
type Rep SendTestEventNotificationResponse Source # | |
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
sendTestEventNotificationResponse_httpStatus :: Lens' SendTestEventNotificationResponse Int Source #
The response's http status code.