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 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.
Synopsis
- data NotifyWorkers = NotifyWorkers' {}
- newNotifyWorkers :: Text -> Text -> NotifyWorkers
- notifyWorkers_subject :: Lens' NotifyWorkers Text
- notifyWorkers_messageText :: Lens' NotifyWorkers Text
- notifyWorkers_workerIds :: Lens' NotifyWorkers [Text]
- data NotifyWorkersResponse = NotifyWorkersResponse' {}
- newNotifyWorkersResponse :: Int -> NotifyWorkersResponse
- notifyWorkersResponse_notifyWorkersFailureStatuses :: Lens' NotifyWorkersResponse (Maybe [NotifyWorkersFailureStatus])
- notifyWorkersResponse_httpStatus :: Lens' NotifyWorkersResponse Int
Creating a Request
data NotifyWorkers Source #
See: newNotifyWorkers
smart constructor.
Instances
Create a value of NotifyWorkers
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:subject:NotifyWorkers'
, notifyWorkers_subject
- The subject line of the email message to send. Can include up to 200
characters.
$sel:messageText:NotifyWorkers'
, notifyWorkers_messageText
- The text of the email message to send. Can include up to 4,096
characters
$sel:workerIds:NotifyWorkers'
, notifyWorkers_workerIds
- A list of Worker IDs you wish to notify. You can notify upto 100 Workers
at a time.
Request Lenses
notifyWorkers_subject :: Lens' NotifyWorkers Text Source #
The subject line of the email message to send. Can include up to 200 characters.
notifyWorkers_messageText :: Lens' NotifyWorkers Text Source #
The text of the email message to send. Can include up to 4,096 characters
notifyWorkers_workerIds :: 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
data NotifyWorkersResponse Source #
See: newNotifyWorkersResponse
smart constructor.
NotifyWorkersResponse' | |
|
Instances
newNotifyWorkersResponse Source #
Create a value of NotifyWorkersResponse
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:notifyWorkersFailureStatuses:NotifyWorkersResponse'
, notifyWorkersResponse_notifyWorkersFailureStatuses
- When MTurk sends notifications to the list of Workers, it returns back
any failures it encounters in this list of NotifyWorkersFailureStatus
objects.
$sel:httpStatus:NotifyWorkersResponse'
, notifyWorkersResponse_httpStatus
- The response's http status code.
Response Lenses
notifyWorkersResponse_notifyWorkersFailureStatuses :: Lens' NotifyWorkersResponse (Maybe [NotifyWorkersFailureStatus]) Source #
When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.
notifyWorkersResponse_httpStatus :: Lens' NotifyWorkersResponse Int Source #
The response's http status code.