Copyright | (c) 2013-2021 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 |
Starts asynchronous detection of segment detection in a stored video.
Amazon Rekognition Video can detect segments in a video stored in an
Amazon S3 bucket. Use Video to specify the bucket name and the filename
of the video. StartSegmentDetection
returns a job identifier (JobId
)
which you use to get the results of the operation. When segment
detection is finished, Amazon Rekognition Video publishes a completion
status to the Amazon Simple Notification Service topic that you specify
in NotificationChannel
.
You can use the Filters
(StartSegmentDetectionFilters) input parameter
to specify the minimum detection confidence returned in the response.
Within Filters
, use ShotFilter
(StartShotDetectionFilter) to filter
detected shots. Use TechnicalCueFilter
(StartTechnicalCueDetectionFilter) to filter technical cues.
To get the results of the segment detection operation, first check that
the status value published to the Amazon SNS topic is SUCCEEDED
. if
so, call GetSegmentDetection and pass the job identifier (JobId
) from
the initial call to StartSegmentDetection
.
For more information, see Detecting Video Segments in Stored Video in the Amazon Rekognition Developer Guide.
Synopsis
- data StartSegmentDetection = StartSegmentDetection' {}
- newStartSegmentDetection :: Video -> NonEmpty SegmentType -> StartSegmentDetection
- startSegmentDetection_jobTag :: Lens' StartSegmentDetection (Maybe Text)
- startSegmentDetection_filters :: Lens' StartSegmentDetection (Maybe StartSegmentDetectionFilters)
- startSegmentDetection_notificationChannel :: Lens' StartSegmentDetection (Maybe NotificationChannel)
- startSegmentDetection_clientRequestToken :: Lens' StartSegmentDetection (Maybe Text)
- startSegmentDetection_video :: Lens' StartSegmentDetection Video
- startSegmentDetection_segmentTypes :: Lens' StartSegmentDetection (NonEmpty SegmentType)
- data StartSegmentDetectionResponse = StartSegmentDetectionResponse' {
- jobId :: Maybe Text
- httpStatus :: Int
- newStartSegmentDetectionResponse :: Int -> StartSegmentDetectionResponse
- startSegmentDetectionResponse_jobId :: Lens' StartSegmentDetectionResponse (Maybe Text)
- startSegmentDetectionResponse_httpStatus :: Lens' StartSegmentDetectionResponse Int
Creating a Request
data StartSegmentDetection Source #
See: newStartSegmentDetection
smart constructor.
StartSegmentDetection' | |
|
Instances
newStartSegmentDetection Source #
Create a value of StartSegmentDetection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobTag:StartSegmentDetection'
, startSegmentDetection_jobTag
- An identifier you specify that's returned in the completion
notification that's published to your Amazon Simple Notification
Service topic. For example, you can use JobTag
to group related jobs
and identify them in the completion notification.
$sel:filters:StartSegmentDetection'
, startSegmentDetection_filters
- Filters for technical cue or shot detection.
$sel:notificationChannel:StartSegmentDetection'
, startSegmentDetection_notificationChannel
- The ARN of the Amazon SNS topic to which you want Amazon Rekognition
Video to publish the completion status of the segment detection
operation. Note that the Amazon SNS topic must have a topic name that
begins with AmazonRekognition if you are using the
AmazonRekognitionServiceRole permissions policy to access the topic.
$sel:clientRequestToken:StartSegmentDetection'
, startSegmentDetection_clientRequestToken
- Idempotent token used to identify the start request. If you use the same
token with multiple StartSegmentDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being
accidently started more than once.
$sel:video:StartSegmentDetection'
, startSegmentDetection_video
- Undocumented member.
$sel:segmentTypes:StartSegmentDetection'
, startSegmentDetection_segmentTypes
- An array of segment types to detect in the video. Valid values are
TECHNICAL_CUE and SHOT.
Request Lenses
startSegmentDetection_jobTag :: Lens' StartSegmentDetection (Maybe Text) Source #
An identifier you specify that's returned in the completion
notification that's published to your Amazon Simple Notification
Service topic. For example, you can use JobTag
to group related jobs
and identify them in the completion notification.
startSegmentDetection_filters :: Lens' StartSegmentDetection (Maybe StartSegmentDetectionFilters) Source #
Filters for technical cue or shot detection.
startSegmentDetection_notificationChannel :: Lens' StartSegmentDetection (Maybe NotificationChannel) Source #
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the segment detection operation. Note that the Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic.
startSegmentDetection_clientRequestToken :: Lens' StartSegmentDetection (Maybe Text) Source #
Idempotent token used to identify the start request. If you use the same
token with multiple StartSegmentDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being
accidently started more than once.
startSegmentDetection_video :: Lens' StartSegmentDetection Video Source #
Undocumented member.
startSegmentDetection_segmentTypes :: Lens' StartSegmentDetection (NonEmpty SegmentType) Source #
An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
Destructuring the Response
data StartSegmentDetectionResponse Source #
See: newStartSegmentDetectionResponse
smart constructor.
StartSegmentDetectionResponse' | |
|
Instances
newStartSegmentDetectionResponse Source #
Create a value of StartSegmentDetectionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:StartSegmentDetectionResponse'
, startSegmentDetectionResponse_jobId
- Unique identifier for the segment detection job. The JobId
is returned
from StartSegmentDetection
.
$sel:httpStatus:StartSegmentDetectionResponse'
, startSegmentDetectionResponse_httpStatus
- The response's http status code.
Response Lenses
startSegmentDetectionResponse_jobId :: Lens' StartSegmentDetectionResponse (Maybe Text) Source #
Unique identifier for the segment detection job. The JobId
is returned
from StartSegmentDetection
.
startSegmentDetectionResponse_httpStatus :: Lens' StartSegmentDetectionResponse Int Source #
The response's http status code.