amazonka-rekognition-1.6.0: 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 # 
Data CreateCollection Source # 

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 # 
Show CreateCollection Source # 
Generic CreateCollection Source # 
Hashable CreateCollection Source # 
ToJSON CreateCollection Source # 
NFData CreateCollection Source # 

Methods

rnf :: CreateCollection -> () #

AWSRequest CreateCollection Source # 
ToHeaders CreateCollection Source # 
ToPath CreateCollection Source # 
ToQuery CreateCollection Source # 
type Rep CreateCollection Source # 
type Rep CreateCollection = D1 * (MetaData "CreateCollection" "Network.AWS.Rekognition.CreateCollection" "amazonka-rekognition-1.6.0-3jgXZy5HWud2mYhTRx5OTT" True) (C1 * (MetaCons "CreateCollection'" PrefixI True) (S1 * (MetaSel (Just Symbol "_ccCollectionId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs CreateCollection Source # 

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 # 
Data CreateCollectionResponse Source # 

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 # 
Show CreateCollectionResponse Source # 
Generic CreateCollectionResponse Source # 
NFData CreateCollectionResponse Source # 
type Rep CreateCollectionResponse Source # 
type Rep CreateCollectionResponse = D1 * (MetaData "CreateCollectionResponse" "Network.AWS.Rekognition.CreateCollection" "amazonka-rekognition-1.6.0-3jgXZy5HWud2mYhTRx5OTT" False) (C1 * (MetaCons "CreateCollectionResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ccrsFaceModelVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ccrsCollectionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ccrsStatusCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_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.