| 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 |
Network.AWS.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 'list-collection-procedure' .
This operation requires permissions to perform the rekognition:ListCollections action.
This operation returns paginated results.
Synopsis
- listCollections :: ListCollections
- data ListCollections
- lcNextToken :: Lens' ListCollections (Maybe Text)
- lcMaxResults :: Lens' ListCollections (Maybe Natural)
- listCollectionsResponse :: Int -> ListCollectionsResponse
- data ListCollectionsResponse
- lcrsCollectionIds :: Lens' ListCollectionsResponse [Text]
- lcrsNextToken :: Lens' ListCollectionsResponse (Maybe Text)
- lcrsFaceModelVersions :: Lens' ListCollectionsResponse [Text]
- lcrsResponseStatus :: Lens' ListCollectionsResponse Int
Creating a Request
listCollections :: ListCollections Source #
Creates a value of ListCollections with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcNextToken- Pagination token from the previous response.lcMaxResults- Maximum number of collection IDs to return.
data ListCollections Source #
See: listCollections smart constructor.
Instances
Request Lenses
lcNextToken :: Lens' ListCollections (Maybe Text) Source #
Pagination token from the previous response.
lcMaxResults :: Lens' ListCollections (Maybe Natural) Source #
Maximum number of collection IDs to return.
Destructuring the Response
listCollectionsResponse Source #
Arguments
| :: Int | |
| -> ListCollectionsResponse |
Creates a value of ListCollectionsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcrsCollectionIds- An array of collection IDs.lcrsNextToken- If the result is truncated, the response provides aNextTokenthat you can use in the subsequent request to fetch the next set of collection IDs.lcrsFaceModelVersions- Version numbers of the face detection models associated with the collections in the arrayCollectionIds. For example, the value ofFaceModelVersions[2]is the version number for the face detection model used by the collection inCollectionId[2].lcrsResponseStatus- -- | The response status code.
data ListCollectionsResponse Source #
See: listCollectionsResponse smart constructor.
Instances
Response Lenses
lcrsCollectionIds :: Lens' ListCollectionsResponse [Text] Source #
An array of collection IDs.
lcrsNextToken :: 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.
lcrsFaceModelVersions :: Lens' ListCollectionsResponse [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] .
lcrsResponseStatus :: Lens' ListCollectionsResponse Int Source #
- - | The response status code.