Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces in a streaming video.
Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. Rekognition Video sends analysis results to Amazon Kinesis Data Streams.
You provide as input a Kinesis video stream (Input
) and a Kinesis data stream (Output
) stream. You also specify the face recognition criteria in Settings
. For example, the collection containing faces that you want to recognize. Use Name
to assign an identifier for the stream processor. You use Name
to manage the stream processor. For example, you can start processing the source video by calling with the Name
field.
After you have finished analyzing a streaming video, use to stop processing. You can delete the stream processor by calling .
- createStreamProcessor :: StreamProcessorInput -> StreamProcessorOutput -> Text -> StreamProcessorSettings -> Text -> CreateStreamProcessor
- data CreateStreamProcessor
- cspInput :: Lens' CreateStreamProcessor StreamProcessorInput
- cspOutput :: Lens' CreateStreamProcessor StreamProcessorOutput
- cspName :: Lens' CreateStreamProcessor Text
- cspSettings :: Lens' CreateStreamProcessor StreamProcessorSettings
- cspRoleARN :: Lens' CreateStreamProcessor Text
- createStreamProcessorResponse :: Int -> CreateStreamProcessorResponse
- data CreateStreamProcessorResponse
- csprsStreamProcessorARN :: Lens' CreateStreamProcessorResponse (Maybe Text)
- csprsResponseStatus :: Lens' CreateStreamProcessorResponse Int
Creating a Request
createStreamProcessor Source #
:: StreamProcessorInput | |
-> StreamProcessorOutput | |
-> Text | |
-> StreamProcessorSettings | |
-> Text | |
-> CreateStreamProcessor |
Creates a value of CreateStreamProcessor
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cspInput
- Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name isStreamProcessorInput
.cspOutput
- Kinesis data stream stream to which Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name isStreamProcessorOutput
.cspName
- An identifier you assign to the stream processor. You can useName
to manage the stream processor. For example, you can get the current status of the stream processor by calling .Name
is idempotent.cspSettings
- Face recognition input parameters to be used by the stream processor. Includes the collection to use for face recognition and the face attributes to detect.cspRoleARN
- ARN of the IAM role that allows access to the stream processor.
data CreateStreamProcessor Source #
See: createStreamProcessor
smart constructor.
Request Lenses
cspInput :: Lens' CreateStreamProcessor StreamProcessorInput Source #
Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name is StreamProcessorInput
.
cspOutput :: Lens' CreateStreamProcessor StreamProcessorOutput Source #
Kinesis data stream stream to which Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name is StreamProcessorOutput
.
cspName :: Lens' CreateStreamProcessor Text Source #
An identifier you assign to the stream processor. You can use Name
to manage the stream processor. For example, you can get the current status of the stream processor by calling . Name
is idempotent.
cspSettings :: Lens' CreateStreamProcessor StreamProcessorSettings Source #
Face recognition input parameters to be used by the stream processor. Includes the collection to use for face recognition and the face attributes to detect.
cspRoleARN :: Lens' CreateStreamProcessor Text Source #
ARN of the IAM role that allows access to the stream processor.
Destructuring the Response
createStreamProcessorResponse Source #
Creates a value of CreateStreamProcessorResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csprsStreamProcessorARN
- ARN for the newly create stream processor.csprsResponseStatus
- -- | The response status code.
data CreateStreamProcessorResponse Source #
See: createStreamProcessorResponse
smart constructor.
Response Lenses
csprsStreamProcessorARN :: Lens' CreateStreamProcessorResponse (Maybe Text) Source #
ARN for the newly create stream processor.
csprsResponseStatus :: Lens' CreateStreamProcessorResponse Int Source #
- - | The response status code.