A way to increase the X-Amz-Expires from the TranscriptFileUri attribute?

0

On the transcribe service is there any way to increase that from the response?

Here's a sample of the value of the attribute.
https://s3.amazonaws.com/aws-transcribe-us-east-1-prod/231142459289/5b2d1cc2e2632/asrOutput.json?X-Amz-Security-Token=FQoDYXdzEEoaDJEZ7VTIi%2F3TqMj7UCK3A2WkUFT1pCKYVZPQY8bkBShsl9BL1pfi8QMILQG0HgojhOXluIL4retHNGi2w0C1UHoZ19BZBBKjIlsGhqmqYBDHX1OWijyl0XXlDrlaK1WMCrgBElMtAtCKo0OYgVgcF1BgRpD3iyawipS%2BL7HkxXse8AYSTaova1dgQ%2F8CrxaG0QxxlVxjxoPMPQT1bFVyd%2BBeUoDP8oCxV9SDX%2FtB7fUt2TnJCLUghgwdCC93x%2BCuhrbzyxnx3L2CIYO9oE25M4%2BkJr9uQAPvz6Bb5%2BTMtgQoMCxvlc%2BMjZFl%2F%2B5fPsvo%2BjM7emcNYRQ1ONcgmI3x2kkxGqirTA2x5qzAppsVVO5SVqaeHT5Q2uvOJL%2B7EJCgKwVgtcMd7v5uk5eo3OB6tibT0N0h5ifWlnkYGio2iH9ysJd8HwiHFDnK3DT89Q16D3l4Zj2hwodunsxXmo6J%2BxBgdJsgOBczW2vqRdTx1TpxB0wzVulP7LbeWiwUaiuC0yPakH6SXXTEWl9Tu%2FZOYN4yWsBG%2BJOJjpPmbrCoT0Dod2TsTKYslQ8xnewvbYt2KGbkekV4R4QBkp2Hm8cEnrSPeEkId%2B8o1Ne02QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20180622T180240Z&X-Amz-SignedHeaders=host&X-Amz-Expires=900&X-Amz-Credential=ASIAILEEXY4MGPSUDGWQ%2F20180622%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=e8855b0055c5c380bd447c8e77d9d5cdf9e64cc5c71dd5acd05c408f147b616e

Notice the
X-Amz-Expires=900

For some reason I'm getting a lot of
Client error: GET https://s3.amazonaws.com/aws-transcribe-us-east-1-prod/231142459289/5b2855e9974fc/asrOutput.json?truncated... resulted in a 403 Forbidden response:

<?xml version="1.0" encoding="UTF-8"?>

<Error><Code>AccessDenied</Code><Message>Request has expired</Message><X-Amz-Expi (truncated...)

Any way to avoid that? thanks!

已提问 6 年前2533 查看次数
1 回答
0

X-Amz-Expires=900

TranscriptionFileUri(presigned URL) expires in 15 minutes. There's no way to increase that.

There are two options to solve expiratory problems:

  1. Request GetTranscriptionJob API again

Every time you request GetTranscriptionJob APIs, new presigned URLs are created and that URL is valid for another 15 mins.

  1. Store transcription outputs at your S3 bucket

As of 2018-07-11([1]), transcription outputs can be stored at your own S3 buckets where you can retrieve S3 objects with S3 REST API.

[1] https://aws.amazon.com/blogs/machine-learning/amazon-transcribe-now-lets-you-designate-your-own-amazon-s3-buckets-to-store-transcription-outputs/

已回答 6 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则