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 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.
- deleteWorkerBlock :: Text -> DeleteWorkerBlock
- data DeleteWorkerBlock
- dwbReason :: Lens' DeleteWorkerBlock (Maybe Text)
- dwbWorkerId :: Lens' DeleteWorkerBlock Text
- deleteWorkerBlockResponse :: Int -> DeleteWorkerBlockResponse
- data DeleteWorkerBlockResponse
- dwbrsResponseStatus :: Lens' DeleteWorkerBlockResponse Int
Creating a Request
Creates a value of DeleteWorkerBlock
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dwbReason
- A message that explains the reason for unblocking the Worker. The Worker does not see this message.dwbWorkerId
- The ID of the Worker to unblock.
data DeleteWorkerBlock Source #
See: deleteWorkerBlock
smart constructor.
Request Lenses
dwbReason :: Lens' DeleteWorkerBlock (Maybe Text) Source #
A message that explains the reason for unblocking the Worker. The Worker does not see this message.
dwbWorkerId :: Lens' DeleteWorkerBlock Text Source #
The ID of the Worker to unblock.
Destructuring the Response
deleteWorkerBlockResponse Source #
Creates a value of DeleteWorkerBlockResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dwbrsResponseStatus
- -- | The response status code.
data DeleteWorkerBlockResponse Source #
See: deleteWorkerBlockResponse
smart constructor.
Response Lenses
dwbrsResponseStatus :: Lens' DeleteWorkerBlockResponse Int Source #
- - | The response status code.