AWS MediaConvert作业设置单元测试

发布于 2025-02-03 05:47:59 字数 263 浏览 4 评论 0原文

我正在使用createJobCommandInputcreateJobCommandMediaConvertClient来自@AWS-SDK/CLIENT-SDK/CLIENT MEDIACONVERT以提交MediaContervert作业。 createJobCommandInput包含许多不同的参数。我想检查这些参数使用某种单元测试是否有效。这可能吗?

I am using CreateJobCommandInput, CreateJobCommand, MediaConvertClient from @aws-sdk/client-mediaconvert to submit MediaConvert job. CreateJobCommandInput contains a lot of different parameters. I would like to check if those parameters are valid using some sort of unit tests. Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尽揽少女心 2025-02-10 05:47:59

感谢您的消息。 AWS MediaConvert在提交时验证作业设置。今天不支持单位测试(单个功能测试)。

但是,您可以将经过验证的输出设置的集合作为输出预设,可以重新使用并堆叠(合并)将来的作业。您可以以这种方式测试,验证和累积输出设置的集合。

其他提示:
[a]测试设置时,您可以使用“输入剪辑”功能仅转换30秒的内容,从而在测试中更快地结果。

[b]所有“创建作业”呼叫都将具有API日志记录,您可以通过AWS CloudTrail检索。执行的作业还将在AWS CloudWatch中获得日志条目。

[c]用云范围发行的S3目标存储桶在您的S3目标存储桶中,您可以在不使S3存储桶本身公共可读的情况下流式传输/访问输出。您可以选择使用AWS Web应用程序防火墙以各种方式限制对CF发行的访问。

您可以使用“ AWS MediaConvert create-job-Generate-cli-skeleton”的命令看到所有可用参数的完整规范'

Thanks for your message. AWS MediaConvert validates job settings upon submittal. Unit testing (individual feature testing) is not supported today.

However, you can save a collection of validated output settings as an output preset which can be re-used and stacked (combined) on future jobs. You can test, validate and accumulate collections of output settings in this way.

Additional tips:
[a] when testing settings, you can use the 'input clipping' function to convert just 30s of content for a quicker result on your tests.

[b] All 'create job' calls will have an API log record which you can retrieve via AWS CloudTrail. Jobs which execute will also get a log entry in AWS CloudWatch.

[c] Fronting your S3 destination bucket with a CloudFront distribution will allow you to stream/access your outputs without making the S3 bucket itself public-readable. You can optionally restrict access to the CF distribution in various ways using AWS Web Application Firewall.

You can see the full specification for all available parameters using a command of the form 'aws mediaconvert create-job --generate-cli-skeleton'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文