Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists models created with the CreateModel API.
This operation returns paginated results.
- listModels :: ListModels
- data ListModels
- lmNameContains :: Lens' ListModels (Maybe Text)
- lmCreationTimeAfter :: Lens' ListModels (Maybe UTCTime)
- lmNextToken :: Lens' ListModels (Maybe Text)
- lmSortOrder :: Lens' ListModels (Maybe OrderKey)
- lmCreationTimeBefore :: Lens' ListModels (Maybe UTCTime)
- lmMaxResults :: Lens' ListModels (Maybe Natural)
- lmSortBy :: Lens' ListModels (Maybe ModelSortKey)
- listModelsResponse :: Int -> ListModelsResponse
- data ListModelsResponse
- lmrsNextToken :: Lens' ListModelsResponse (Maybe Text)
- lmrsResponseStatus :: Lens' ListModelsResponse Int
- lmrsModels :: Lens' ListModelsResponse [ModelSummary]
Creating a Request
listModels :: ListModels Source #
Creates a value of ListModels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lmNameContains
- A string in the training job name. This filter returns only models in the training job whose name contains the specified string.lmCreationTimeAfter
- A filter that returns only models created after the specified time (timestamp).lmNextToken
- If the response to a previousListModels
request was truncated, the response includes aNextToken
. To retrieve the next set of models, use the token in the next request.lmSortOrder
- The sort order for results. The default isAscending
.lmCreationTimeBefore
- A filter that returns only models created before the specified time (timestamp).lmMaxResults
- The maximum number of models to return in the response.lmSortBy
- Sorts the list of results. The default isCreationTime
.
data ListModels Source #
See: listModels
smart constructor.
Request Lenses
lmNameContains :: Lens' ListModels (Maybe Text) Source #
A string in the training job name. This filter returns only models in the training job whose name contains the specified string.
lmCreationTimeAfter :: Lens' ListModels (Maybe UTCTime) Source #
A filter that returns only models created after the specified time (timestamp).
lmNextToken :: 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.
lmSortOrder :: Lens' ListModels (Maybe OrderKey) Source #
The sort order for results. The default is Ascending
.
lmCreationTimeBefore :: Lens' ListModels (Maybe UTCTime) Source #
A filter that returns only models created before the specified time (timestamp).
lmMaxResults :: Lens' ListModels (Maybe Natural) Source #
The maximum number of models to return in the response.
lmSortBy :: Lens' ListModels (Maybe ModelSortKey) Source #
Sorts the list of results. The default is CreationTime
.
Destructuring the Response
Creates a value of ListModelsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lmrsNextToken
- If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of models, use it in the subsequent request.lmrsResponseStatus
- -- | The response status code.lmrsModels
- An array ofModelSummary
objects, each of which lists a model.
data ListModelsResponse Source #
See: listModelsResponse
smart constructor.
Response Lenses
lmrsNextToken :: 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.
lmrsResponseStatus :: Lens' ListModelsResponse Int Source #
- - | The response status code.
lmrsModels :: Lens' ListModelsResponse [ModelSummary] Source #
An array of ModelSummary
objects, each of which lists a model.