Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 example1
.
This operation requires permissions to perform the rekognition:ListCollections
action.
- 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)
- 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.
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 #
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 aNextToken
that you can use in the subsequent request to fetch the next set of collection IDs.lcrsResponseStatus
- -- | The response status code.
data ListCollectionsResponse Source #
See: listCollectionsResponse
smart constructor.
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.
lcrsResponseStatus :: Lens' ListCollectionsResponse Int Source #
- - | The response status code.