Skip to main content

getUserPolicy()

返回一个内联 JSON 策略,该策略将分配给其凭证用于执行 CLI 命令或调用 Node.JS 函数的 AWS 用户。

🌐 Returns an inline JSON policy to be assigned to the AWS user whose credentials are being used for excuting CLI commands or calling Node.JS functions.

请参阅 设置教程 以从零开始设置 Lambda,或参阅 用户权限 查看带有说明的当前策略文件副本。

🌐 See Setup tutorial for setting up Lambda from scratch or User permissions to see a copy of the current policy file with explanations.

示例

🌐 Example

import {getUserPolicy} from '@remotion/lambda';

console.log(getUserPolicy()); /* `
{
  "Version": "2012-10-17",
  "Statements": [
    // ...
  ]
}
` */

另请参阅

🌐 See also