| 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.ListModels
Description
Lists models created with the CreateModel API.
This operation returns paginated results.
Synopsis
- data ListModels = ListModels' {}
- newListModels :: ListModels
- listModels_creationTimeAfter :: Lens' ListModels (Maybe UTCTime)
- listModels_creationTimeBefore :: Lens' ListModels (Maybe UTCTime)
- listModels_maxResults :: Lens' ListModels (Maybe Natural)
- listModels_nameContains :: Lens' ListModels (Maybe Text)
- listModels_nextToken :: Lens' ListModels (Maybe Text)
- listModels_sortBy :: Lens' ListModels (Maybe ModelSortKey)
- listModels_sortOrder :: Lens' ListModels (Maybe OrderKey)
- data ListModelsResponse = ListModelsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- models :: [ModelSummary]
- newListModelsResponse :: Int -> ListModelsResponse
- listModelsResponse_nextToken :: Lens' ListModelsResponse (Maybe Text)
- listModelsResponse_httpStatus :: Lens' ListModelsResponse Int
- listModelsResponse_models :: Lens' ListModelsResponse [ModelSummary]
Creating a Request
data ListModels Source #
See: newListModels smart constructor.
Constructors
| ListModels' | |
Fields
| |
Instances
newListModels :: ListModels Source #
Create a value of ListModels 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:creationTimeAfter:ListModels', listModels_creationTimeAfter - A filter that returns only models with a creation time greater than or
equal to the specified time (timestamp).
$sel:creationTimeBefore:ListModels', listModels_creationTimeBefore - A filter that returns only models created before the specified time
(timestamp).
$sel:maxResults:ListModels', listModels_maxResults - The maximum number of models to return in the response.
$sel:nameContains:ListModels', listModels_nameContains - A string in the model name. This filter returns only models whose name
contains the specified string.
ListModels, listModels_nextToken - If the response to a previous ListModels request was truncated, the
response includes a NextToken. To retrieve the next set of models, use
the token in the next request.
$sel:sortBy:ListModels', listModels_sortBy - Sorts the list of results. The default is CreationTime.
$sel:sortOrder:ListModels', listModels_sortOrder - The sort order for results. The default is Descending.
Request Lenses
listModels_creationTimeAfter :: Lens' ListModels (Maybe UTCTime) Source #
A filter that returns only models with a creation time greater than or equal to the specified time (timestamp).
listModels_creationTimeBefore :: Lens' ListModels (Maybe UTCTime) Source #
A filter that returns only models created before the specified time (timestamp).
listModels_maxResults :: Lens' ListModels (Maybe Natural) Source #
The maximum number of models to return in the response.
listModels_nameContains :: Lens' ListModels (Maybe Text) Source #
A string in the model name. This filter returns only models whose name contains the specified string.
listModels_nextToken :: Lens' ListModels (Maybe Text) Source #
If the response to a previous ListModels request was truncated, the
response includes a NextToken. To retrieve the next set of models, use
the token in the next request.
listModels_sortBy :: Lens' ListModels (Maybe ModelSortKey) Source #
Sorts the list of results. The default is CreationTime.
listModels_sortOrder :: Lens' ListModels (Maybe OrderKey) Source #
The sort order for results. The default is Descending.
Destructuring the Response
data ListModelsResponse Source #
See: newListModelsResponse smart constructor.
Constructors
| ListModelsResponse' | |
Fields
| |
Instances
newListModelsResponse Source #
Arguments
| :: Int | |
| -> ListModelsResponse |
Create a value of ListModelsResponse 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:
ListModels, listModelsResponse_nextToken - If the response is truncated, SageMaker returns this token. To retrieve
the next set of models, use it in the subsequent request.
$sel:httpStatus:ListModelsResponse', listModelsResponse_httpStatus - The response's http status code.
ListModelsResponse, listModelsResponse_models - An array of ModelSummary objects, each of which lists a model.
Response Lenses
listModelsResponse_nextToken :: Lens' ListModelsResponse (Maybe Text) Source #
If the response is truncated, SageMaker returns this token. To retrieve the next set of models, use it in the subsequent request.
listModelsResponse_httpStatus :: Lens' ListModelsResponse Int Source #
The response's http status code.
listModelsResponse_models :: Lens' ListModelsResponse [ModelSummary] Source #
An array of ModelSummary objects, each of which lists a model.