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 the versions of a model in an Amazon Lookout for Vision project.
This operation requires permissions to perform the
lookoutvision:ListModels
operation.
This operation returns paginated results.
Synopsis
- data ListModels = ListModels' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- projectName :: Text
- newListModels :: Text -> ListModels
- listModels_nextToken :: Lens' ListModels (Maybe Text)
- listModels_maxResults :: Lens' ListModels (Maybe Natural)
- listModels_projectName :: Lens' ListModels Text
- data ListModelsResponse = ListModelsResponse' {
- nextToken :: Maybe Text
- models :: Maybe [ModelMetadata]
- httpStatus :: Int
- newListModelsResponse :: Int -> ListModelsResponse
- listModelsResponse_nextToken :: Lens' ListModelsResponse (Maybe Text)
- listModelsResponse_models :: Lens' ListModelsResponse (Maybe [ModelMetadata])
- listModelsResponse_httpStatus :: Lens' ListModelsResponse Int
Creating a Request
data ListModels Source #
See: newListModels
smart constructor.
ListModels' | |
|
Instances
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:nextToken:ListModels'
, listModels_nextToken
- If the previous response was incomplete (because there is more data to
retrieve), Amazon Lookout for Vision returns a pagination token in the
response. You can use this pagination token to retrieve the next set of
models.
$sel:maxResults:ListModels'
, listModels_maxResults
- The maximum number of results to return per paginated call. The largest
value you can specify is 100. If you specify a value greater than 100, a
ValidationException error occurs. The default value is 100.
$sel:projectName:ListModels'
, listModels_projectName
- The name of the project that contains the model versions that you want
to list.
Request Lenses
listModels_nextToken :: Lens' ListModels (Maybe Text) Source #
If the previous response was incomplete (because there is more data to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of models.
listModels_maxResults :: Lens' ListModels (Maybe Natural) Source #
The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
listModels_projectName :: Lens' ListModels Text Source #
The name of the project that contains the model versions that you want to list.
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 Lookout for Vision returns this
token that you can use in the subsequent request to retrieve the next
set of models.
$sel:models:ListModelsResponse'
, listModelsResponse_models
- A list of model versions in the specified project.
$sel:httpStatus:ListModelsResponse'
, listModelsResponse_httpStatus
- The response's http status code.
Response Lenses
listModelsResponse_nextToken :: Lens' ListModelsResponse (Maybe Text) Source #
If the response is truncated, Amazon Lookout for Vision returns this token that you can use in the subsequent request to retrieve the next set of models.
listModelsResponse_models :: Lens' ListModelsResponse (Maybe [ModelMetadata]) Source #
A list of model versions in the specified project.
listModelsResponse_httpStatus :: Lens' ListModelsResponse Int Source #
The response's http status code.