libZSservicesZSamazonka-rekognitionZSamazonka-rekognition
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateCollection Source #

See: newCreateCollection smart constructor.

Constructors

CreateCollection' 

Fields

Instances

Instances details
Eq CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Read CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Show CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Generic CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Associated Types

type Rep CreateCollection :: Type -> Type #

NFData CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Methods

rnf :: CreateCollection -> () #

Hashable CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

ToJSON CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

AWSRequest CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Associated Types

type AWSResponse CreateCollection #

ToHeaders CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

ToPath CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

ToQuery CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

type Rep CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

type Rep CreateCollection = D1 ('MetaData "CreateCollection" "Amazonka.Rekognition.CreateCollection" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "CreateCollection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "collectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateCollection Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

newCreateCollection Source #

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.

$sel:collectionId: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

Instances details
Eq CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Read CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Show CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Generic CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

Associated Types

type Rep CreateCollectionResponse :: Type -> Type #

NFData CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

type Rep CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateCollection

type Rep CreateCollectionResponse = D1 ('MetaData "CreateCollectionResponse" "Amazonka.Rekognition.CreateCollection" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "CreateCollectionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "faceModelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "collectionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:faceModelVersion:CreateCollectionResponse', createCollectionResponse_faceModelVersion - Version number of the face detection model associated with the collection you are creating.

$sel:collectionArn:CreateCollectionResponse', createCollectionResponse_collectionArn - Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.

$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_faceModelVersion :: Lens' CreateCollectionResponse (Maybe Text) Source #

Version number of the face detection model associated with the collection you are creating.

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_statusCode :: Lens' CreateCollectionResponse (Maybe Natural) Source #

HTTP status code indicating the result of the operation.