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 |
Creates a collection in an AWS Region. You can add faces to the collection using the operation.
For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces
operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container.
This operation requires permissions to perform the rekognition:CreateCollection
action.
- createCollection :: Text -> CreateCollection
- data CreateCollection
- ccCollectionId :: Lens' CreateCollection Text
- createCollectionResponse :: Int -> CreateCollectionResponse
- data CreateCollectionResponse
- ccrsFaceModelVersion :: Lens' CreateCollectionResponse (Maybe Text)
- ccrsCollectionARN :: Lens' CreateCollectionResponse (Maybe Text)
- ccrsStatusCode :: Lens' CreateCollectionResponse (Maybe Natural)
- ccrsResponseStatus :: Lens' CreateCollectionResponse Int
Creating a Request
Creates a value of CreateCollection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccCollectionId
- ID for the collection that you are creating.
data CreateCollection Source #
See: createCollection
smart constructor.
Request Lenses
ccCollectionId :: Lens' CreateCollection Text Source #
ID for the collection that you are creating.
Destructuring the Response
createCollectionResponse Source #
Creates a value of CreateCollectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccrsFaceModelVersion
- Version number of the face detection model associated with the collection you are creating.ccrsCollectionARN
- Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.ccrsStatusCode
- HTTP status code indicating the result of the operation.ccrsResponseStatus
- -- | The response status code.
data CreateCollectionResponse Source #
See: createCollectionResponse
smart constructor.
Response Lenses
ccrsFaceModelVersion :: Lens' CreateCollectionResponse (Maybe Text) Source #
Version number of the face detection model associated with the collection you are creating.
ccrsCollectionARN :: Lens' CreateCollectionResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.
ccrsStatusCode :: Lens' CreateCollectionResponse (Maybe Natural) Source #
HTTP status code indicating the result of the operation.
ccrsResponseStatus :: Lens' CreateCollectionResponse Int Source #
- - | The response status code.