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 |
Use this operation to list all private and vendor workforces in an Amazon Web Services Region. Note that you can only have one private workforce per Amazon Web Services Region.
This operation returns paginated results.
Synopsis
- data ListWorkforces = ListWorkforces' {}
- newListWorkforces :: ListWorkforces
- listWorkforces_nameContains :: Lens' ListWorkforces (Maybe Text)
- listWorkforces_nextToken :: Lens' ListWorkforces (Maybe Text)
- listWorkforces_sortOrder :: Lens' ListWorkforces (Maybe SortOrder)
- listWorkforces_maxResults :: Lens' ListWorkforces (Maybe Natural)
- listWorkforces_sortBy :: Lens' ListWorkforces (Maybe ListWorkforcesSortByOptions)
- data ListWorkforcesResponse = ListWorkforcesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- workforces :: [Workforce]
- newListWorkforcesResponse :: Int -> ListWorkforcesResponse
- listWorkforcesResponse_nextToken :: Lens' ListWorkforcesResponse (Maybe Text)
- listWorkforcesResponse_httpStatus :: Lens' ListWorkforcesResponse Int
- listWorkforcesResponse_workforces :: Lens' ListWorkforcesResponse [Workforce]
Creating a Request
data ListWorkforces Source #
See: newListWorkforces
smart constructor.
ListWorkforces' | |
|
Instances
newListWorkforces :: ListWorkforces Source #
Create a value of ListWorkforces
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:nameContains:ListWorkforces'
, listWorkforces_nameContains
- A filter you can use to search for workforces using part of the
workforce name.
$sel:nextToken:ListWorkforces'
, listWorkforces_nextToken
- A token to resume pagination.
$sel:sortOrder:ListWorkforces'
, listWorkforces_sortOrder
- Sort workforces in ascending or descending order.
$sel:maxResults:ListWorkforces'
, listWorkforces_maxResults
- The maximum number of workforces returned in the response.
$sel:sortBy:ListWorkforces'
, listWorkforces_sortBy
- Sort workforces using the workforce name or creation date.
Request Lenses
listWorkforces_nameContains :: Lens' ListWorkforces (Maybe Text) Source #
A filter you can use to search for workforces using part of the workforce name.
listWorkforces_nextToken :: Lens' ListWorkforces (Maybe Text) Source #
A token to resume pagination.
listWorkforces_sortOrder :: Lens' ListWorkforces (Maybe SortOrder) Source #
Sort workforces in ascending or descending order.
listWorkforces_maxResults :: Lens' ListWorkforces (Maybe Natural) Source #
The maximum number of workforces returned in the response.
listWorkforces_sortBy :: Lens' ListWorkforces (Maybe ListWorkforcesSortByOptions) Source #
Sort workforces using the workforce name or creation date.
Destructuring the Response
data ListWorkforcesResponse Source #
See: newListWorkforcesResponse
smart constructor.
ListWorkforcesResponse' | |
|
Instances
newListWorkforcesResponse Source #
Create a value of ListWorkforcesResponse
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:ListWorkforces'
, listWorkforcesResponse_nextToken
- A token to resume pagination.
$sel:httpStatus:ListWorkforcesResponse'
, listWorkforcesResponse_httpStatus
- The response's http status code.
$sel:workforces:ListWorkforcesResponse'
, listWorkforcesResponse_workforces
- A list containing information about your workforce.
Response Lenses
listWorkforcesResponse_nextToken :: Lens' ListWorkforcesResponse (Maybe Text) Source #
A token to resume pagination.
listWorkforcesResponse_httpStatus :: Lens' ListWorkforcesResponse Int Source #
The response's http status code.
listWorkforcesResponse_workforces :: Lens' ListWorkforcesResponse [Workforce] Source #
A list containing information about your workforce.