libZSservicesZSamazonka-rekognitionZSamazonka-rekognition
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.Rekognition.ListCollections

Description

Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

For an example, see Listing Collections in the Amazon Rekognition Developer Guide.

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

This operation returns paginated results.

Synopsis

Creating a Request

data ListCollections Source #

See: newListCollections smart constructor.

Constructors

ListCollections' 

Fields

Instances

Instances details
Eq ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Read ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Show ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Generic ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Associated Types

type Rep ListCollections :: Type -> Type #

NFData ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Methods

rnf :: ListCollections -> () #

Hashable ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

ToJSON ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

AWSPager ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

AWSRequest ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Associated Types

type AWSResponse ListCollections #

ToHeaders ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

ToPath ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

ToQuery ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

type Rep ListCollections Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

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

Defined in Amazonka.Rekognition.ListCollections

newListCollections :: ListCollections Source #

Create a value of ListCollections 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:ListCollections', listCollections_nextToken - Pagination token from the previous response.

$sel:maxResults:ListCollections', listCollections_maxResults - Maximum number of collection IDs to return.

Request Lenses

listCollections_nextToken :: Lens' ListCollections (Maybe Text) Source #

Pagination token from the previous response.

listCollections_maxResults :: Lens' ListCollections (Maybe Natural) Source #

Maximum number of collection IDs to return.

Destructuring the Response

data ListCollectionsResponse Source #

See: newListCollectionsResponse smart constructor.

Constructors

ListCollectionsResponse' 

Fields

  • collectionIds :: Maybe [Text]

    An array of collection IDs.

  • nextToken :: Maybe Text

    If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

  • faceModelVersions :: Maybe [Text]

    Version numbers of the face detection models associated with the collections in the array CollectionIds. For example, the value of FaceModelVersions[2] is the version number for the face detection model used by the collection in CollectionId[2].

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Read ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Show ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Generic ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Associated Types

type Rep ListCollectionsResponse :: Type -> Type #

NFData ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

Methods

rnf :: ListCollectionsResponse -> () #

type Rep ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListCollections

type Rep ListCollectionsResponse = D1 ('MetaData "ListCollectionsResponse" "Amazonka.Rekognition.ListCollections" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "ListCollectionsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "collectionIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "faceModelVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCollectionsResponse Source #

Create a value of ListCollectionsResponse 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:collectionIds:ListCollectionsResponse', listCollectionsResponse_collectionIds - An array of collection IDs.

$sel:nextToken:ListCollections', listCollectionsResponse_nextToken - If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

$sel:faceModelVersions:ListCollectionsResponse', listCollectionsResponse_faceModelVersions - Version numbers of the face detection models associated with the collections in the array CollectionIds. For example, the value of FaceModelVersions[2] is the version number for the face detection model used by the collection in CollectionId[2].

$sel:httpStatus:ListCollectionsResponse', listCollectionsResponse_httpStatus - The response's http status code.

Response Lenses

listCollectionsResponse_nextToken :: Lens' ListCollectionsResponse (Maybe Text) Source #

If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

listCollectionsResponse_faceModelVersions :: Lens' ListCollectionsResponse (Maybe [Text]) Source #

Version numbers of the face detection models associated with the collections in the array CollectionIds. For example, the value of FaceModelVersions[2] is the version number for the face detection model used by the collection in CollectionId[2].