amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.DescribeProjectVersions

Description

Lists and describes the versions of a model in an Amazon Rekognition Custom Labels project. You can specify up to 10 model versions in ProjectVersionArns. If you don't specify a value, descriptions for all model versions in the project are returned.

This operation requires permissions to perform the rekognition:DescribeProjectVersions action.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeProjectVersions Source #

See: newDescribeProjectVersions smart constructor.

Constructors

DescribeProjectVersions' 

Fields

  • 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.

  • nextToken :: Maybe Text

    If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

  • versionNames :: Maybe (NonEmpty Text)

    A list of model version names that you want to describe. You can add up to 10 model version names to the list. If you don't specify a value, all model descriptions are returned. A version name is part of a model (ProjectVersion) ARN. For example, my-model.2020-01-21T09.10.15 is the version name in the following ARN. arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123.

  • projectArn :: Text

    The Amazon Resource Name (ARN) of the project that contains the models you want to describe.

Instances

Instances details
ToJSON DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

ToHeaders DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

ToPath DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

ToQuery DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

AWSPager DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

AWSRequest DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Generic DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Associated Types

type Rep DescribeProjectVersions :: Type -> Type #

Read DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Show DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

NFData DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Methods

rnf :: DescribeProjectVersions -> () #

Eq DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Hashable DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

type AWSResponse DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

type Rep DescribeProjectVersions Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

type Rep DescribeProjectVersions = D1 ('MetaData "DescribeProjectVersions" "Amazonka.Rekognition.DescribeProjectVersions" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "DescribeProjectVersions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "versionNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDescribeProjectVersions Source #

Create a value of DescribeProjectVersions 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:maxResults:DescribeProjectVersions', describeProjectVersions_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.

DescribeProjectVersions, describeProjectVersions_nextToken - If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

$sel:versionNames:DescribeProjectVersions', describeProjectVersions_versionNames - A list of model version names that you want to describe. You can add up to 10 model version names to the list. If you don't specify a value, all model descriptions are returned. A version name is part of a model (ProjectVersion) ARN. For example, my-model.2020-01-21T09.10.15 is the version name in the following ARN. arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123.

DescribeProjectVersions, describeProjectVersions_projectArn - The Amazon Resource Name (ARN) of the project that contains the models you want to describe.

Request Lenses

describeProjectVersions_maxResults :: Lens' DescribeProjectVersions (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.

describeProjectVersions_nextToken :: Lens' DescribeProjectVersions (Maybe Text) Source #

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

describeProjectVersions_versionNames :: Lens' DescribeProjectVersions (Maybe (NonEmpty Text)) Source #

A list of model version names that you want to describe. You can add up to 10 model version names to the list. If you don't specify a value, all model descriptions are returned. A version name is part of a model (ProjectVersion) ARN. For example, my-model.2020-01-21T09.10.15 is the version name in the following ARN. arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123.

describeProjectVersions_projectArn :: Lens' DescribeProjectVersions Text Source #

The Amazon Resource Name (ARN) of the project that contains the models you want to describe.

Destructuring the Response

data DescribeProjectVersionsResponse Source #

See: newDescribeProjectVersionsResponse smart constructor.

Constructors

DescribeProjectVersionsResponse' 

Fields

  • nextToken :: Maybe Text

    If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

  • projectVersionDescriptions :: Maybe [ProjectVersionDescription]

    A list of model descriptions. The list is sorted by the creation date and time of the model versions, latest to earliest.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeProjectVersionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Associated Types

type Rep DescribeProjectVersionsResponse :: Type -> Type #

Read DescribeProjectVersionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Show DescribeProjectVersionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

NFData DescribeProjectVersionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

Eq DescribeProjectVersionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

type Rep DescribeProjectVersionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DescribeProjectVersions

type Rep DescribeProjectVersionsResponse = D1 ('MetaData "DescribeProjectVersionsResponse" "Amazonka.Rekognition.DescribeProjectVersions" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "DescribeProjectVersionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "projectVersionDescriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectVersionDescription])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeProjectVersionsResponse Source #

Create a value of DescribeProjectVersionsResponse 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:

DescribeProjectVersions, describeProjectVersionsResponse_nextToken - If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

$sel:projectVersionDescriptions:DescribeProjectVersionsResponse', describeProjectVersionsResponse_projectVersionDescriptions - A list of model descriptions. The list is sorted by the creation date and time of the model versions, latest to earliest.

$sel:httpStatus:DescribeProjectVersionsResponse', describeProjectVersionsResponse_httpStatus - The response's http status code.

Response Lenses

describeProjectVersionsResponse_nextToken :: Lens' DescribeProjectVersionsResponse (Maybe Text) Source #

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

describeProjectVersionsResponse_projectVersionDescriptions :: Lens' DescribeProjectVersionsResponse (Maybe [ProjectVersionDescription]) Source #

A list of model descriptions. The list is sorted by the creation date and time of the model versions, latest to earliest.