Copyright | (c) 2013-2021 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 |
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_nextToken :: Lens' ListCollections (Maybe Text)
- listCollections_maxResults :: Lens' ListCollections (Maybe Natural)
- data ListCollectionsResponse = ListCollectionsResponse' {
- collectionIds :: Maybe [Text]
- nextToken :: Maybe Text
- faceModelVersions :: Maybe [Text]
- httpStatus :: Int
- newListCollectionsResponse :: Int -> ListCollectionsResponse
- listCollectionsResponse_collectionIds :: Lens' ListCollectionsResponse (Maybe [Text])
- listCollectionsResponse_nextToken :: Lens' ListCollectionsResponse (Maybe Text)
- listCollectionsResponse_faceModelVersions :: 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: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.
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: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_collectionIds :: Lens' ListCollectionsResponse (Maybe [Text]) Source #
An array of collection IDs.
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]
.
listCollectionsResponse_httpStatus :: Lens' ListCollectionsResponse Int Source #
The response's http status code.