amazonka-rekognition-1.6.1: Amazon Rekognition SDK.

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

Network.AWS.Rekognition.CreateCollection

Contents

Description

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.

Synopsis

Creating a Request

createCollection Source #

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:

data CreateCollection Source #

See: createCollection smart constructor.

Instances
Eq CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Data CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateCollection -> c CreateCollection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateCollection #

toConstr :: CreateCollection -> Constr #

dataTypeOf :: CreateCollection -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateCollection) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateCollection) #

gmapT :: (forall b. Data b => b -> b) -> CreateCollection -> CreateCollection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateCollection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateCollection -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateCollection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateCollection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateCollection -> m CreateCollection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCollection -> m CreateCollection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCollection -> m CreateCollection #

Read CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Show CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Generic CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Associated Types

type Rep CreateCollection :: Type -> Type #

Hashable CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

ToJSON CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

AWSRequest CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Associated Types

type Rs CreateCollection :: Type #

ToHeaders CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

ToPath CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

ToQuery CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

NFData CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Methods

rnf :: CreateCollection -> () #

type Rep CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

type Rep CreateCollection = D1 (MetaData "CreateCollection" "Network.AWS.Rekognition.CreateCollection" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" True) (C1 (MetaCons "CreateCollection'" PrefixI True) (S1 (MetaSel (Just "_ccCollectionId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs CreateCollection Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

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.

Instances
Eq CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Data CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateCollectionResponse -> c CreateCollectionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateCollectionResponse #

toConstr :: CreateCollectionResponse -> Constr #

dataTypeOf :: CreateCollectionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateCollectionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateCollectionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateCollectionResponse -> CreateCollectionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateCollectionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateCollectionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateCollectionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateCollectionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateCollectionResponse -> m CreateCollectionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCollectionResponse -> m CreateCollectionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCollectionResponse -> m CreateCollectionResponse #

Read CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Show CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Generic CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

Associated Types

type Rep CreateCollectionResponse :: Type -> Type #

NFData CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

type Rep CreateCollectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.CreateCollection

type Rep CreateCollectionResponse = D1 (MetaData "CreateCollectionResponse" "Network.AWS.Rekognition.CreateCollection" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "CreateCollectionResponse'" PrefixI True) ((S1 (MetaSel (Just "_ccrsFaceModelVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccrsCollectionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccrsStatusCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.