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 DeleteWorkerBlock
operation allows you to reinstate a blocked
Worker to work on your HITs. This operation reverses the effects of the
CreateWorkerBlock operation. You need the Worker ID to use this
operation. If the Worker ID is missing or invalid, this operation fails
and returns the message “WorkerId is invalid.” If the specified Worker
is not blocked, this operation returns successfully.
Synopsis
- data DeleteWorkerBlock = DeleteWorkerBlock' {}
- newDeleteWorkerBlock :: Text -> DeleteWorkerBlock
- deleteWorkerBlock_reason :: Lens' DeleteWorkerBlock (Maybe Text)
- deleteWorkerBlock_workerId :: Lens' DeleteWorkerBlock Text
- data DeleteWorkerBlockResponse = DeleteWorkerBlockResponse' {
- httpStatus :: Int
- newDeleteWorkerBlockResponse :: Int -> DeleteWorkerBlockResponse
- deleteWorkerBlockResponse_httpStatus :: Lens' DeleteWorkerBlockResponse Int
Creating a Request
data DeleteWorkerBlock Source #
See: newDeleteWorkerBlock
smart constructor.
Instances
Create a value of DeleteWorkerBlock
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:reason:DeleteWorkerBlock'
, deleteWorkerBlock_reason
- A message that explains the reason for unblocking the Worker. The Worker
does not see this message.
$sel:workerId:DeleteWorkerBlock'
, deleteWorkerBlock_workerId
- The ID of the Worker to unblock.
Request Lenses
deleteWorkerBlock_reason :: Lens' DeleteWorkerBlock (Maybe Text) Source #
A message that explains the reason for unblocking the Worker. The Worker does not see this message.
deleteWorkerBlock_workerId :: Lens' DeleteWorkerBlock Text Source #
The ID of the Worker to unblock.
Destructuring the Response
data DeleteWorkerBlockResponse Source #
See: newDeleteWorkerBlockResponse
smart constructor.
DeleteWorkerBlockResponse' | |
|
Instances
newDeleteWorkerBlockResponse Source #
Create a value of DeleteWorkerBlockResponse
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:DeleteWorkerBlockResponse'
, deleteWorkerBlockResponse_httpStatus
- The response's http status code.
Response Lenses
deleteWorkerBlockResponse_httpStatus :: Lens' DeleteWorkerBlockResponse Int Source #
The response's http status code.