Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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
- sendTestEventNotification :: NotificationSpecification -> EventType -> SendTestEventNotification
- data SendTestEventNotification
- stenNotification :: Lens' SendTestEventNotification NotificationSpecification
- stenTestEventType :: Lens' SendTestEventNotification EventType
- sendTestEventNotificationResponse :: Int -> SendTestEventNotificationResponse
- data SendTestEventNotificationResponse
- stenrsResponseStatus :: Lens' SendTestEventNotificationResponse Int
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
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:
stenrsResponseStatus
- -- | The response status code.
data SendTestEventNotificationResponse Source #
See: sendTestEventNotificationResponse
smart constructor.
Instances
Response Lenses
stenrsResponseStatus :: Lens' SendTestEventNotificationResponse Int Source #
- - | The response status code.