1 個回答
- 最新
- 最多得票
- 最多評論
0
Hi,
Thank you for using Rekognition Video.
Please follow this example to retrieve SQS message body - https://boto3.amazonaws.com/v1/documentation/api/latest/guide/sqs.html#processing-messages
If you are trying to receive video segmentation job completion notification through SNS+SQS, please follow this documentation for configuring role/permissions - https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html.
The resulted SQS message body (from Rekognition Video) will look like:
{
"Type" : "Notification",
"MessageId" : "abcd-efgh-ijkl-mnop",
"TopicArn" : "arn:aws:sns:us-east-1:123456789012:testsns",
"Message" : "{\"JobId\":\"asdfghjklzxcvbnmpoiuytrewq1234567890\",\"Status\":\"SUCCEEDED\",\"API\":\"StartLabelDetection\",\"Timestamp\":1649971127542,\"Video\":{\"S3ObjectName\":\"a.mp4\",\"S3Bucket\":\"testbucket\"}}",
"Timestamp" : "2022-04-14T21:18:47.648Z",
"SignatureVersion" : "1",
"Signature" : "QWERTYUIOPLKJHGFDSAZXCVBNM1234567890",
"SigningCertURL" : "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-1234567890poiuytrewq.pem",
"UnsubscribeURL" : "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:123456789012:testsns:abcd-efgh-ijkl-mnop"
}
已回答 2 年前
相關內容
- 已提問 6 個月前