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.StartFaceSearch

Contents

Description

Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.

The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartFaceSearch returns a job identifier (JobId ) which you use to get the search results once the search has completed. When searching is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel . To get the search results, first check that the status value published to the Amazon SNS topic is SUCCEEDED . If so, call and pass the job identifier (JobId ) from the initial call to StartFaceSearch . For more information, see 'collections-search-person' .

Synopsis

Creating a Request

startFaceSearch Source #

Creates a value of StartFaceSearch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • sfsFaceMatchThreshold - The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
  • sfsJobTag - Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
  • sfsNotificationChannel - The ARN of the Amazon SNS topic to which you want Rekognition Video to publish the completion status of the search.
  • sfsClientRequestToken - Idempotent token used to identify the start request. If you use the same token with multiple StartFaceSearch requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidently started more than once.
  • sfsVideo - The video you want to search. The video must be stored in an Amazon S3 bucket.
  • sfsCollectionId - ID of the collection that contains the faces you want to search for.

data StartFaceSearch Source #

See: startFaceSearch smart constructor.

Instances
Eq StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Data StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Methods

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

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

toConstr :: StartFaceSearch -> Constr #

dataTypeOf :: StartFaceSearch -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Show StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Generic StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Associated Types

type Rep StartFaceSearch :: Type -> Type #

Hashable StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

ToJSON StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

AWSRequest StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Associated Types

type Rs StartFaceSearch :: Type #

ToHeaders StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

ToPath StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

ToQuery StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

NFData StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Methods

rnf :: StartFaceSearch -> () #

type Rep StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

type Rep StartFaceSearch = D1 (MetaData "StartFaceSearch" "Network.AWS.Rekognition.StartFaceSearch" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "StartFaceSearch'" PrefixI True) ((S1 (MetaSel (Just "_sfsFaceMatchThreshold") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 (MetaSel (Just "_sfsJobTag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sfsNotificationChannel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NotificationChannel)))) :*: (S1 (MetaSel (Just "_sfsClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sfsVideo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Video) :*: S1 (MetaSel (Just "_sfsCollectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs StartFaceSearch Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Request Lenses

sfsFaceMatchThreshold :: Lens' StartFaceSearch (Maybe Double) Source #

The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.

sfsJobTag :: Lens' StartFaceSearch (Maybe Text) Source #

Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.

sfsNotificationChannel :: Lens' StartFaceSearch (Maybe NotificationChannel) Source #

The ARN of the Amazon SNS topic to which you want Rekognition Video to publish the completion status of the search.

sfsClientRequestToken :: Lens' StartFaceSearch (Maybe Text) Source #

Idempotent token used to identify the start request. If you use the same token with multiple StartFaceSearch requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidently started more than once.

sfsVideo :: Lens' StartFaceSearch Video Source #

The video you want to search. The video must be stored in an Amazon S3 bucket.

sfsCollectionId :: Lens' StartFaceSearch Text Source #

ID of the collection that contains the faces you want to search for.

Destructuring the Response

startFaceSearchResponse Source #

Creates a value of StartFaceSearchResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • sfsrsJobId - The identifier for the search job. Use JobId to identify the job in a subsequent call to GetFaceSearch .
  • sfsrsResponseStatus - -- | The response status code.

data StartFaceSearchResponse Source #

See: startFaceSearchResponse smart constructor.

Instances
Eq StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Data StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Methods

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

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

toConstr :: StartFaceSearchResponse -> Constr #

dataTypeOf :: StartFaceSearchResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Show StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Generic StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Associated Types

type Rep StartFaceSearchResponse :: Type -> Type #

NFData StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

Methods

rnf :: StartFaceSearchResponse -> () #

type Rep StartFaceSearchResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.StartFaceSearch

type Rep StartFaceSearchResponse = D1 (MetaData "StartFaceSearchResponse" "Network.AWS.Rekognition.StartFaceSearch" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "StartFaceSearchResponse'" PrefixI True) (S1 (MetaSel (Just "_sfsrsJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sfsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

sfsrsJobId :: Lens' StartFaceSearchResponse (Maybe Text) Source #

The identifier for the search job. Use JobId to identify the job in a subsequent call to GetFaceSearch .