Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ListCollections = ListCollections' {}
- newListCollections :: ListCollections
- listCollections_maxResults :: Lens' ListCollections (Maybe Natural)
- listCollections_nextToken :: Lens' ListCollections (Maybe Text)
- data ListCollectionsResponse = ListCollectionsResponse' {
- collectionIds :: Maybe [Text]
- faceModelVersions :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListCollectionsResponse :: Int -> ListCollectionsResponse
- listCollectionsResponse_collectionIds :: Lens' ListCollectionsResponse (Maybe [Text])
- listCollectionsResponse_faceModelVersions :: Lens' ListCollectionsResponse (Maybe [Text])
- listCollectionsResponse_nextToken :: Lens' ListCollectionsResponse (Maybe Text)
- listCollectionsResponse_httpStatus :: Lens' ListCollectionsResponse Int
Creating a Request
data ListCollections Source #
See: newListCollections
smart constructor.
Instances
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:maxResults:ListCollections'
, listCollections_maxResults
- Maximum number of collection IDs to return.
ListCollections
, listCollections_nextToken
- Pagination token from the previous response.
Request Lenses
listCollections_maxResults :: Lens' ListCollections (Maybe Natural) Source #
Maximum number of collection IDs to return.
listCollections_nextToken :: Lens' ListCollections (Maybe Text) Source #
Pagination token from the previous response.
Destructuring the Response
data ListCollectionsResponse Source #
See: newListCollectionsResponse
smart constructor.
ListCollectionsResponse' | |
|
Instances
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: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]
.
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:httpStatus:ListCollectionsResponse'
, listCollectionsResponse_httpStatus
- The response's http status code.
Response Lenses
listCollectionsResponse_collectionIds :: Lens' ListCollectionsResponse (Maybe [Text]) Source #
An array 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]
.
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_httpStatus :: Lens' ListCollectionsResponse Int Source #
The response's http status code.