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 |
Lists models created with the CreateModel
API.
This operation returns paginated results.
Synopsis
- data ListModels = ListModels' {}
- newListModels :: ListModels
- listModels_nameContains :: Lens' ListModels (Maybe Text)
- listModels_creationTimeAfter :: Lens' ListModels (Maybe UTCTime)
- listModels_nextToken :: Lens' ListModels (Maybe Text)
- listModels_sortOrder :: Lens' ListModels (Maybe OrderKey)
- listModels_creationTimeBefore :: Lens' ListModels (Maybe UTCTime)
- listModels_maxResults :: Lens' ListModels (Maybe Natural)
- listModels_sortBy :: Lens' ListModels (Maybe ModelSortKey)
- 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.
ListModels' | |
|
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:nameContains:ListModels'
, listModels_nameContains
- A string in the model name. This filter returns only models whose name
contains the specified string.
$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:nextToken: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:sortOrder:ListModels'
, listModels_sortOrder
- The sort order for results. The default is Descending
.
$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:sortBy:ListModels'
, listModels_sortBy
- Sorts the list of results. The default is CreationTime
.
Request Lenses
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_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_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_sortOrder :: Lens' ListModels (Maybe OrderKey) Source #
The sort order for results. The default is Descending
.
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_sortBy :: Lens' ListModels (Maybe ModelSortKey) Source #
Sorts the list of results. The default is CreationTime
.
Destructuring the Response
data ListModelsResponse Source #
See: newListModelsResponse
smart constructor.
ListModelsResponse' | |
|
Instances
newListModelsResponse Source #
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:
$sel:nextToken:ListModels'
, listModelsResponse_nextToken
- If the response is truncated, Amazon 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.
$sel:models: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, Amazon 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.