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

Contents

Description

Starts asynchronous recognition of celebrities in a stored video.

Rekognition Video can detect celebrities in a video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartCelebrityRecognition returns a job identifier (JobId ) which you use to get the results of the analysis. When celebrity recognition analysis is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel . To get the results of the celebrity recognition analysis, 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 StartCelebrityRecognition . For more information, see celebrities .

Synopsis

Creating a Request

startCelebrityRecognition Source #

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

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

  • scrJobTag - Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
  • scrNotificationChannel - The Amazon SNS topic ARN that you want Rekognition Video to publish the completion status of the celebrity recognition analysis to.
  • scrClientRequestToken - Idempotent token used to identify the start request. If you use the same token with multiple StartCelebrityRecognition requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidently started more than once.
  • scrVideo - The video in which you want to recognize celebrities. The video must be stored in an Amazon S3 bucket.

data StartCelebrityRecognition Source #

See: startCelebrityRecognition smart constructor.

Instances

Eq StartCelebrityRecognition Source # 
Data StartCelebrityRecognition Source # 

Methods

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

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

toConstr :: StartCelebrityRecognition -> Constr #

dataTypeOf :: StartCelebrityRecognition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartCelebrityRecognition Source # 
Show StartCelebrityRecognition Source # 
Generic StartCelebrityRecognition Source # 
Hashable StartCelebrityRecognition Source # 
ToJSON StartCelebrityRecognition Source # 
NFData StartCelebrityRecognition Source # 
AWSRequest StartCelebrityRecognition Source # 
ToHeaders StartCelebrityRecognition Source # 
ToPath StartCelebrityRecognition Source # 
ToQuery StartCelebrityRecognition Source # 
type Rep StartCelebrityRecognition Source # 
type Rep StartCelebrityRecognition = D1 * (MetaData "StartCelebrityRecognition" "Network.AWS.Rekognition.StartCelebrityRecognition" "amazonka-rekognition-1.6.0-3jgXZy5HWud2mYhTRx5OTT" False) (C1 * (MetaCons "StartCelebrityRecognition'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_scrJobTag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_scrNotificationChannel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe NotificationChannel)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_scrClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_scrVideo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Video)))))
type Rs StartCelebrityRecognition Source # 

Request Lenses

scrJobTag :: Lens' StartCelebrityRecognition (Maybe Text) Source #

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

scrNotificationChannel :: Lens' StartCelebrityRecognition (Maybe NotificationChannel) Source #

The Amazon SNS topic ARN that you want Rekognition Video to publish the completion status of the celebrity recognition analysis to.

scrClientRequestToken :: Lens' StartCelebrityRecognition (Maybe Text) Source #

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

scrVideo :: Lens' StartCelebrityRecognition Video Source #

The video in which you want to recognize celebrities. The video must be stored in an Amazon S3 bucket.

Destructuring the Response

startCelebrityRecognitionResponse Source #

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

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

  • scrrsJobId - The identifier for the celebrity recognition analysis job. Use JobId to identify the job in a subsequent call to GetCelebrityRecognition .
  • scrrsResponseStatus - -- | The response status code.

data StartCelebrityRecognitionResponse Source #

See: startCelebrityRecognitionResponse smart constructor.

Instances

Eq StartCelebrityRecognitionResponse Source # 
Data StartCelebrityRecognitionResponse Source # 

Methods

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

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

toConstr :: StartCelebrityRecognitionResponse -> Constr #

dataTypeOf :: StartCelebrityRecognitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartCelebrityRecognitionResponse Source # 
Show StartCelebrityRecognitionResponse Source # 
Generic StartCelebrityRecognitionResponse Source # 
NFData StartCelebrityRecognitionResponse Source # 
type Rep StartCelebrityRecognitionResponse Source # 
type Rep StartCelebrityRecognitionResponse = D1 * (MetaData "StartCelebrityRecognitionResponse" "Network.AWS.Rekognition.StartCelebrityRecognition" "amazonka-rekognition-1.6.0-3jgXZy5HWud2mYhTRx5OTT" False) (C1 * (MetaCons "StartCelebrityRecognitionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_scrrsJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_scrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

scrrsJobId :: Lens' StartCelebrityRecognitionResponse (Maybe Text) Source #

The identifier for the celebrity recognition analysis job. Use JobId to identify the job in a subsequent call to GetCelebrityRecognition .