getRolePolicy()
返回一个内联 JSON 策略,该策略将分配给需要在你的 AWS 账户中创建的 'remotion-lambda-role' 角色。
🌐 Returns an inline JSON policy to be assigned to the 'remotion-lambda-role' role that needs to be created in your AWS account.
这些权限将授予 Lambda 函数本身。
🌐 These permissions will be given to the Lambda function itself.
请参阅 设置教程 以从零开始设置 Lambda,或参阅 角色权限 查看带有解释的当前策略文件副本。
🌐 See Setup tutorial for setting up Lambda from scratch or Role permissions to see a copy of the current policy file with explanations.
示例
🌐 Example
import {getRolePolicy } from '@remotion/lambda';
console .log (getRolePolicy ()); /* `
{
"Version": "2012-10-17",
"Statements": [
// ...
]
}
` */另请参阅
🌐 See also