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 CreateWorkerBlock
operation allows you to prevent a Worker from
working on your HITs. For example, you can block a Worker who is
producing poor quality work. You can block up to 100,000 Workers.
Synopsis
- data CreateWorkerBlock = CreateWorkerBlock' {}
- newCreateWorkerBlock :: Text -> Text -> CreateWorkerBlock
- createWorkerBlock_workerId :: Lens' CreateWorkerBlock Text
- createWorkerBlock_reason :: Lens' CreateWorkerBlock Text
- data CreateWorkerBlockResponse = CreateWorkerBlockResponse' {
- httpStatus :: Int
- newCreateWorkerBlockResponse :: Int -> CreateWorkerBlockResponse
- createWorkerBlockResponse_httpStatus :: Lens' CreateWorkerBlockResponse Int
Creating a Request
data CreateWorkerBlock Source #
See: newCreateWorkerBlock
smart constructor.
Instances
Create a value of CreateWorkerBlock
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:workerId:CreateWorkerBlock'
, createWorkerBlock_workerId
- The ID of the Worker to block.
$sel:reason:CreateWorkerBlock'
, createWorkerBlock_reason
- A message explaining the reason for blocking the Worker. This parameter
enables you to keep track of your Workers. The Worker does not see this
message.
Request Lenses
createWorkerBlock_workerId :: Lens' CreateWorkerBlock Text Source #
The ID of the Worker to block.
createWorkerBlock_reason :: Lens' CreateWorkerBlock Text Source #
A message explaining the reason for blocking the Worker. This parameter enables you to keep track of your Workers. The Worker does not see this message.
Destructuring the Response
data CreateWorkerBlockResponse Source #
See: newCreateWorkerBlockResponse
smart constructor.
CreateWorkerBlockResponse' | |
|
Instances
newCreateWorkerBlockResponse Source #
Create a value of CreateWorkerBlockResponse
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:CreateWorkerBlockResponse'
, createWorkerBlockResponse_httpStatus
- The response's http status code.
Response Lenses
createWorkerBlockResponse_httpStatus :: Lens' CreateWorkerBlockResponse Int Source #
The response's http status code.