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 |
Gets a list of private work teams that you have defined in a region. The
list may be empty if no work team satisfies the filter specified in the
NameContains
parameter.
This operation returns paginated results.
Synopsis
- data ListWorkteams = ListWorkteams' {}
- newListWorkteams :: ListWorkteams
- listWorkteams_nameContains :: Lens' ListWorkteams (Maybe Text)
- listWorkteams_nextToken :: Lens' ListWorkteams (Maybe Text)
- listWorkteams_sortOrder :: Lens' ListWorkteams (Maybe SortOrder)
- listWorkteams_maxResults :: Lens' ListWorkteams (Maybe Natural)
- listWorkteams_sortBy :: Lens' ListWorkteams (Maybe ListWorkteamsSortByOptions)
- data ListWorkteamsResponse = ListWorkteamsResponse' {}
- newListWorkteamsResponse :: Int -> ListWorkteamsResponse
- listWorkteamsResponse_nextToken :: Lens' ListWorkteamsResponse (Maybe Text)
- listWorkteamsResponse_httpStatus :: Lens' ListWorkteamsResponse Int
- listWorkteamsResponse_workteams :: Lens' ListWorkteamsResponse [Workteam]
Creating a Request
data ListWorkteams Source #
See: newListWorkteams
smart constructor.
ListWorkteams' | |
|
Instances
newListWorkteams :: ListWorkteams Source #
Create a value of ListWorkteams
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:ListWorkteams'
, listWorkteams_nameContains
- A string in the work team's name. This filter returns only work teams
whose name contains the specified string.
$sel:nextToken:ListWorkteams'
, listWorkteams_nextToken
- If the result of the previous ListWorkteams
request was truncated, the
response includes a NextToken
. To retrieve the next set of labeling
jobs, use the token in the next request.
$sel:sortOrder:ListWorkteams'
, listWorkteams_sortOrder
- The sort order for results. The default is Ascending
.
$sel:maxResults:ListWorkteams'
, listWorkteams_maxResults
- The maximum number of work teams to return in each page of the response.
$sel:sortBy:ListWorkteams'
, listWorkteams_sortBy
- The field to sort results by. The default is CreationTime
.
Request Lenses
listWorkteams_nameContains :: Lens' ListWorkteams (Maybe Text) Source #
A string in the work team's name. This filter returns only work teams whose name contains the specified string.
listWorkteams_nextToken :: Lens' ListWorkteams (Maybe Text) Source #
If the result of the previous ListWorkteams
request was truncated, the
response includes a NextToken
. To retrieve the next set of labeling
jobs, use the token in the next request.
listWorkteams_sortOrder :: Lens' ListWorkteams (Maybe SortOrder) Source #
The sort order for results. The default is Ascending
.
listWorkteams_maxResults :: Lens' ListWorkteams (Maybe Natural) Source #
The maximum number of work teams to return in each page of the response.
listWorkteams_sortBy :: Lens' ListWorkteams (Maybe ListWorkteamsSortByOptions) Source #
The field to sort results by. The default is CreationTime
.
Destructuring the Response
data ListWorkteamsResponse Source #
See: newListWorkteamsResponse
smart constructor.
Instances
newListWorkteamsResponse Source #
Create a value of ListWorkteamsResponse
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:ListWorkteams'
, listWorkteamsResponse_nextToken
- If the response is truncated, Amazon SageMaker returns this token. To
retrieve the next set of work teams, use it in the subsequent request.
$sel:httpStatus:ListWorkteamsResponse'
, listWorkteamsResponse_httpStatus
- The response's http status code.
$sel:workteams:ListWorkteamsResponse'
, listWorkteamsResponse_workteams
- An array of Workteam
objects, each describing a work team.
Response Lenses
listWorkteamsResponse_nextToken :: Lens' ListWorkteamsResponse (Maybe Text) Source #
If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of work teams, use it in the subsequent request.
listWorkteamsResponse_httpStatus :: Lens' ListWorkteamsResponse Int Source #
The response's http status code.
listWorkteamsResponse_workteams :: Lens' ListWorkteamsResponse [Workteam] Source #
An array of Workteam
objects, each describing a work team.