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 |
Starts asynchronous detection of explicit or suggestive adult content in a stored video.
Rekognition Video can moderate content in a video stored in an Amazon S3 bucket. Use Video
to specify the bucket name and the filename of the video. StartContentModeration
returns a job identifier (JobId
) which you use to get the results of the analysis. When content moderation 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 content moderation 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 StartContentModeration
. For more information, see moderation
.
- startContentModeration :: Video -> StartContentModeration
- data StartContentModeration
- scmJobTag :: Lens' StartContentModeration (Maybe Text)
- scmNotificationChannel :: Lens' StartContentModeration (Maybe NotificationChannel)
- scmClientRequestToken :: Lens' StartContentModeration (Maybe Text)
- scmMinConfidence :: Lens' StartContentModeration (Maybe Double)
- scmVideo :: Lens' StartContentModeration Video
- startContentModerationResponse :: Int -> StartContentModerationResponse
- data StartContentModerationResponse
- scmrsJobId :: Lens' StartContentModerationResponse (Maybe Text)
- scmrsResponseStatus :: Lens' StartContentModerationResponse Int
Creating a Request
startContentModeration Source #
Creates a value of StartContentModeration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scmJobTag
- Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.scmNotificationChannel
- The Amazon SNS topic ARN that you want Rekognition Video to publish the completion status of the content moderation analysis to.scmClientRequestToken
- Idempotent token used to identify the start request. If you use the same token with multipleStartContentModeration
requests, the sameJobId
is returned. UseClientRequestToken
to prevent the same job from being accidently started more than once.scmMinConfidence
- Specifies the minimum confidence that Amazon Rekognition must have in order to return a moderated content label. Confidence represents how certain Amazon Rekognition is that the moderated content is correctly identified. 0 is the lowest confidence. 100 is the highest confidence. Amazon Rekognition doesn't return any moderated content labels with a confidence level lower than this specified value.scmVideo
- The video in which you want to moderate content. The video must be stored in an Amazon S3 bucket.
data StartContentModeration Source #
See: startContentModeration
smart constructor.
Request Lenses
scmJobTag :: Lens' StartContentModeration (Maybe Text) Source #
Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
scmNotificationChannel :: Lens' StartContentModeration (Maybe NotificationChannel) Source #
The Amazon SNS topic ARN that you want Rekognition Video to publish the completion status of the content moderation analysis to.
scmClientRequestToken :: Lens' StartContentModeration (Maybe Text) Source #
Idempotent token used to identify the start request. If you use the same token with multiple StartContentModeration
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidently started more than once.
scmMinConfidence :: Lens' StartContentModeration (Maybe Double) Source #
Specifies the minimum confidence that Amazon Rekognition must have in order to return a moderated content label. Confidence represents how certain Amazon Rekognition is that the moderated content is correctly identified. 0 is the lowest confidence. 100 is the highest confidence. Amazon Rekognition doesn't return any moderated content labels with a confidence level lower than this specified value.
scmVideo :: Lens' StartContentModeration Video Source #
The video in which you want to moderate content. The video must be stored in an Amazon S3 bucket.
Destructuring the Response
startContentModerationResponse Source #
Creates a value of StartContentModerationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scmrsJobId
- The identifier for the content moderation analysis job. UseJobId
to identify the job in a subsequent call toGetContentModeration
.scmrsResponseStatus
- -- | The response status code.
data StartContentModerationResponse Source #
See: startContentModerationResponse
smart constructor.
Response Lenses
scmrsJobId :: Lens' StartContentModerationResponse (Maybe Text) Source #
The identifier for the content moderation analysis job. Use JobId
to identify the job in a subsequent call to GetContentModeration
.
scmrsResponseStatus :: Lens' StartContentModerationResponse Int Source #
- - | The response status code.