Copyright | (c) 2013-2017 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 NotifyWorkers
operation sends an email to one or more Workers that you specify with the Worker ID. You can specify up to 100 Worker IDs to send the same message with a single call to the NotifyWorkers operation. The NotifyWorkers operation will send a notification email to a Worker only if you have previously approved or rejected work from the Worker.
- notifyWorkers :: Text -> Text -> NotifyWorkers
- data NotifyWorkers
- nwSubject :: Lens' NotifyWorkers Text
- nwMessageText :: Lens' NotifyWorkers Text
- nwWorkerIds :: Lens' NotifyWorkers [Text]
- notifyWorkersResponse :: Int -> NotifyWorkersResponse
- data NotifyWorkersResponse
- nwrsNotifyWorkersFailureStatuses :: Lens' NotifyWorkersResponse [NotifyWorkersFailureStatus]
- nwrsResponseStatus :: Lens' NotifyWorkersResponse Int
Creating a Request
Creates a value of NotifyWorkers
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
nwSubject
- The subject line of the email message to send. Can include up to 200 characters.nwMessageText
- The text of the email message to send. Can include up to 4,096 charactersnwWorkerIds
- A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time.
data NotifyWorkers Source #
See: notifyWorkers
smart constructor.
Request Lenses
nwSubject :: Lens' NotifyWorkers Text Source #
The subject line of the email message to send. Can include up to 200 characters.
nwMessageText :: Lens' NotifyWorkers Text Source #
The text of the email message to send. Can include up to 4,096 characters
nwWorkerIds :: Lens' NotifyWorkers [Text] Source #
A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time.
Destructuring the Response
notifyWorkersResponse Source #
Creates a value of NotifyWorkersResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
nwrsNotifyWorkersFailureStatuses
- When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.nwrsResponseStatus
- -- | The response status code.
data NotifyWorkersResponse Source #
See: notifyWorkersResponse
smart constructor.
Response Lenses
nwrsNotifyWorkersFailureStatuses :: Lens' NotifyWorkersResponse [NotifyWorkersFailureStatus] Source #
When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.
nwrsResponseStatus :: Lens' NotifyWorkersResponse Int Source #
- - | The response status code.