| 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 |
Amazonka.Rekognition.CreateCollection
Description
Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces 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.
When you create a collection, it is associated with the latest version of the face model version.
Collection names are case-sensitive.
This operation requires permissions to perform the
rekognition:CreateCollection action. If you want to tag your
collection, you also require permission to perform the
rekognition:TagResource operation.
Synopsis
- data CreateCollection = CreateCollection' {}
- newCreateCollection :: Text -> CreateCollection
- createCollection_tags :: Lens' CreateCollection (Maybe (HashMap Text Text))
- createCollection_collectionId :: Lens' CreateCollection Text
- data CreateCollectionResponse = CreateCollectionResponse' {}
- newCreateCollectionResponse :: Int -> CreateCollectionResponse
- createCollectionResponse_collectionArn :: Lens' CreateCollectionResponse (Maybe Text)
- createCollectionResponse_faceModelVersion :: Lens' CreateCollectionResponse (Maybe Text)
- createCollectionResponse_statusCode :: Lens' CreateCollectionResponse (Maybe Natural)
- createCollectionResponse_httpStatus :: Lens' CreateCollectionResponse Int
Creating a Request
data CreateCollection Source #
See: newCreateCollection smart constructor.
Constructors
| CreateCollection' | |
Instances
Arguments
| :: Text | |
| -> CreateCollection |
Create a value of CreateCollection 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:tags:CreateCollection', createCollection_tags - A set of tags (key-value pairs) that you want to attach to the
collection.
CreateCollection, createCollection_collectionId - ID for the collection that you are creating.
Request Lenses
createCollection_tags :: Lens' CreateCollection (Maybe (HashMap Text Text)) Source #
A set of tags (key-value pairs) that you want to attach to the collection.
createCollection_collectionId :: Lens' CreateCollection Text Source #
ID for the collection that you are creating.
Destructuring the Response
data CreateCollectionResponse Source #
See: newCreateCollectionResponse smart constructor.
Constructors
| CreateCollectionResponse' | |
Fields
| |
Instances
newCreateCollectionResponse Source #
Create a value of CreateCollectionResponse 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:collectionArn:CreateCollectionResponse', createCollectionResponse_collectionArn - Amazon Resource Name (ARN) of the collection. You can use this to manage
permissions on your resources.
$sel:faceModelVersion:CreateCollectionResponse', createCollectionResponse_faceModelVersion - Version number of the face detection model associated with the
collection you are creating.
$sel:statusCode:CreateCollectionResponse', createCollectionResponse_statusCode - HTTP status code indicating the result of the operation.
$sel:httpStatus:CreateCollectionResponse', createCollectionResponse_httpStatus - The response's http status code.
Response Lenses
createCollectionResponse_collectionArn :: Lens' CreateCollectionResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.
createCollectionResponse_faceModelVersion :: Lens' CreateCollectionResponse (Maybe Text) Source #
Version number of the face detection model associated with the collection you are creating.
createCollectionResponse_statusCode :: Lens' CreateCollectionResponse (Maybe Natural) Source #
HTTP status code indicating the result of the operation.
createCollectionResponse_httpStatus :: Lens' CreateCollectionResponse Int Source #
The response's http status code.