Values.GetContentModerationResponseSourceGets the inappropriate, unwanted, or offensive content analysis results for a Amazon Rekognition Video analysis started by StartContentModeration. For a list of moderation labels in Amazon Rekognition, see Using the image and video moderation APIs. Amazon Rekognition Video inappropriate or offensive content detection in a stored video is an asynchronous operation. You start analysis by calling StartContentModeration which returns a job identifier (JobId). When analysis finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartContentModeration. To get the results of the content analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetContentModeration and pass the job identifier (JobId) from the initial call to StartContentModeration. For more information, see Working with Stored Videos in the Amazon Rekognition Devlopers Guide. GetContentModeration returns detected inappropriate, unwanted, or offensive content moderation labels, and the time they are detected, in an array, ModerationLabels, of ContentModerationDetection objects. By default, the moderated labels are returned sorted by time, in milliseconds from the start of the video. You can also sort them by moderated label by specifying NAME for the SortBy input parameter. Since video analysis can return a large number of results, use the MaxResults parameter to limit the number of labels returned in a single call to GetContentModeration. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetContentModeration and populate the NextToken request parameter with the value of NextToken returned from the previous call to GetContentModeration. For more information, see moderating content in the Amazon Rekognition Developer Guide.
type nonrec t = {jobStatus : VideoJobStatus.t option;The current status of the content moderation analysis job.
*)statusMessage : StatusMessage.t option;If the job fails, StatusMessage provides a descriptive error message.
*)videoMetadata : VideoMetadata.t option;Information about a video that Amazon Rekognition analyzed. Videometadata is returned in every page of paginated responses from GetContentModeration.
*)moderationLabels : ContentModerationDetections.t option;The detected inappropriate, unwanted, or offensive content moderation labels and the time(s) they were detected.
*)nextToken : PaginationToken.t option;If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of content moderation labels.
*)moderationModelVersion : String_.t option;Version number of the moderation detection model that was used to detect inappropriate, unwanted, or offensive content.
*)jobId : JobId.t option;Job identifier for the content moderation operation for which you want to obtain results. The job identifer is returned by an initial call to StartContentModeration.
*)video : Video.t option;jobTag : JobTag.t option;A job identifier specified in the call to StartContentModeration and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
*)getRequestMetadata : GetContentModerationRequestMetadata.t option;Information about the paramters used when getting a response. Includes information on aggregation and sorting methods.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerError of InternalServerError.t| `InvalidPaginationTokenException of InvalidPaginationTokenException.t| `InvalidParameterException of InvalidParameterException.t| `ProvisionedThroughputExceededException of
ProvisionedThroughputExceededException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `ThrottlingException of ThrottlingException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of unit
| `InternalServerError of unit
| `InvalidPaginationTokenException of unit
| `InvalidParameterException of unit
| `ProvisionedThroughputExceededException of unit
| `ResourceNotFoundException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of unit
| `InternalServerError of unit
| `InvalidPaginationTokenException of unit
| `InvalidParameterException of unit
| `ProvisionedThroughputExceededException of unit
| `ResourceNotFoundException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Float of Percent.t
| `String of String_.t ])
list ]
list
| `Long of Timestamp.t
| `Structure of
(string
* [> `Float of Percent.t
| `Integer of UInteger.t
| `String of String_.t ])
list ])
list ]
list
| `String of StatusMessage.t
| `Structure of
(string
* [> `Enum of string
| `Float of Float_.t
| `Long of ULong.t
| `String of String_.t
| `Structure of (string * [> `String of S3Bucket.t ]) list ])
list ])
list ]