| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.SageMaker.ListWorkteams
Description
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_maxResults :: Lens' ListWorkteams (Maybe Natural)
 - listWorkteams_nameContains :: Lens' ListWorkteams (Maybe Text)
 - listWorkteams_nextToken :: Lens' ListWorkteams (Maybe Text)
 - listWorkteams_sortBy :: Lens' ListWorkteams (Maybe ListWorkteamsSortByOptions)
 - listWorkteams_sortOrder :: Lens' ListWorkteams (Maybe SortOrder)
 - 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.
Constructors
| ListWorkteams' | |
Fields 
  | |
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:maxResults:ListWorkteams', listWorkteams_maxResults - The maximum number of work teams to return in each page of the response.
$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.
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:sortBy:ListWorkteams', listWorkteams_sortBy - The field to sort results by. The default is CreationTime.
$sel:sortOrder:ListWorkteams', listWorkteams_sortOrder - The sort order for results. The default is Ascending.
Request Lenses
listWorkteams_maxResults :: Lens' ListWorkteams (Maybe Natural) Source #
The maximum number of work teams to return in each page of the response.
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_sortBy :: Lens' ListWorkteams (Maybe ListWorkteamsSortByOptions) Source #
The field to sort results by. The default is CreationTime.
listWorkteams_sortOrder :: Lens' ListWorkteams (Maybe SortOrder) Source #
The sort order for results. The default is Ascending.
Destructuring the Response
data ListWorkteamsResponse Source #
See: newListWorkteamsResponse smart constructor.
Constructors
| ListWorkteamsResponse' | |
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:
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.