libZSservicesZSamazonka-lookoutvisionZSamazonka-lookoutvision
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LookoutVision.ListModels

Description

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

Creating a Request

data ListModels Source #

See: newListModels smart constructor.

Constructors

ListModels' 

Fields

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

    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.

  • projectName :: Text

    The name of the project that contains the model versions that you want to list.

Instances

Instances details
Eq ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Read ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Show ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Generic ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Associated Types

type Rep ListModels :: Type -> Type #

NFData ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Methods

rnf :: ListModels -> () #

Hashable ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

AWSPager ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

AWSRequest ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Associated Types

type AWSResponse ListModels #

ToHeaders ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Methods

toHeaders :: ListModels -> [Header] #

ToPath ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

ToQuery ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

type Rep ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

type Rep ListModels = D1 ('MetaData "ListModels" "Amazonka.LookoutVision.ListModels" "libZSservicesZSamazonka-lookoutvisionZSamazonka-lookoutvision" 'False) (C1 ('MetaCons "ListModels'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListModels Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

newListModels 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: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.

Constructors

ListModelsResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • models :: Maybe [ModelMetadata]

    A list of model versions in the specified project.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListModelsResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Read ListModelsResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Show ListModelsResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Generic ListModelsResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Associated Types

type Rep ListModelsResponse :: Type -> Type #

NFData ListModelsResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

Methods

rnf :: ListModelsResponse -> () #

type Rep ListModelsResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.ListModels

type Rep ListModelsResponse = D1 ('MetaData "ListModelsResponse" "Amazonka.LookoutVision.ListModels" "libZSservicesZSamazonka-lookoutvisionZSamazonka-lookoutvision" 'False) (C1 ('MetaCons "ListModelsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "models") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ModelMetadata])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.