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 ListWorkersBlocks
operation retrieves a list of Workers who are
blocked from working on your HITs.
This operation returns paginated results.
Synopsis
- data ListWorkerBlocks = ListWorkerBlocks' {}
- newListWorkerBlocks :: ListWorkerBlocks
- listWorkerBlocks_nextToken :: Lens' ListWorkerBlocks (Maybe Text)
- listWorkerBlocks_maxResults :: Lens' ListWorkerBlocks (Maybe Natural)
- data ListWorkerBlocksResponse = ListWorkerBlocksResponse' {
- workerBlocks :: Maybe [WorkerBlock]
- nextToken :: Maybe Text
- numResults :: Maybe Int
- httpStatus :: Int
- newListWorkerBlocksResponse :: Int -> ListWorkerBlocksResponse
- listWorkerBlocksResponse_workerBlocks :: Lens' ListWorkerBlocksResponse (Maybe [WorkerBlock])
- listWorkerBlocksResponse_nextToken :: Lens' ListWorkerBlocksResponse (Maybe Text)
- listWorkerBlocksResponse_numResults :: Lens' ListWorkerBlocksResponse (Maybe Int)
- listWorkerBlocksResponse_httpStatus :: Lens' ListWorkerBlocksResponse Int
Creating a Request
data ListWorkerBlocks Source #
See: newListWorkerBlocks
smart constructor.
Instances
newListWorkerBlocks :: ListWorkerBlocks Source #
Create a value of ListWorkerBlocks
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:nextToken:ListWorkerBlocks'
, listWorkerBlocks_nextToken
- Pagination token
$sel:maxResults:ListWorkerBlocks'
, listWorkerBlocks_maxResults
- Undocumented member.
Request Lenses
listWorkerBlocks_nextToken :: Lens' ListWorkerBlocks (Maybe Text) Source #
Pagination token
listWorkerBlocks_maxResults :: Lens' ListWorkerBlocks (Maybe Natural) Source #
Undocumented member.
Destructuring the Response
data ListWorkerBlocksResponse Source #
See: newListWorkerBlocksResponse
smart constructor.
ListWorkerBlocksResponse' | |
|
Instances
newListWorkerBlocksResponse Source #
Create a value of ListWorkerBlocksResponse
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:workerBlocks:ListWorkerBlocksResponse'
, listWorkerBlocksResponse_workerBlocks
- The list of WorkerBlocks, containing the collection of Worker IDs and
reasons for blocking.
$sel:nextToken:ListWorkerBlocks'
, listWorkerBlocksResponse_nextToken
- Undocumented member.
$sel:numResults:ListWorkerBlocksResponse'
, listWorkerBlocksResponse_numResults
- The number of assignments on the page in the filtered results list,
equivalent to the number of assignments returned by this call.
$sel:httpStatus:ListWorkerBlocksResponse'
, listWorkerBlocksResponse_httpStatus
- The response's http status code.
Response Lenses
listWorkerBlocksResponse_workerBlocks :: Lens' ListWorkerBlocksResponse (Maybe [WorkerBlock]) Source #
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
listWorkerBlocksResponse_nextToken :: Lens' ListWorkerBlocksResponse (Maybe Text) Source #
Undocumented member.
listWorkerBlocksResponse_numResults :: Lens' ListWorkerBlocksResponse (Maybe Int) Source #
The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.
listWorkerBlocksResponse_httpStatus :: Lens' ListWorkerBlocksResponse Int Source #
The response's http status code.