sam 模板中可能策略的完整列表

Complete list of possible policies in a sam template

我正在尝试查找可以添加到 sam 模板的完整政策列表,但我在亚马逊的官方文档或谷歌搜索中都找不到任何信息。

我正在将 lambda 应用程序转换为 sam,它需要很多策略,因此我需要一个包含哪些策略及其名称的列表。那么您可以对 sam 应用程序设置哪些可能的策略?

我的模板:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
    AWS Serverless Application

    Sample SAM Template for AWS Serverless Application

Globals:
    Function:
        Timeout: 20
        Runtime: java8


Resources:
    example:
        Type: AWS::Serverless::Function
        Properties:
            CodeUri: target/aws-lambda.zip
            Handler: com.example.ExampleRequestHandler::handleRequest
            Events:
                example:
                    Type: Api
                    Properties:
                        Path: /example
                        Method: post
            Policies: # <- This field
                - AmazonDynamoDBFullAccess

all_aws_managed_policies.json

所有 AWS 托管策略的列表,它们是 [原文如此] 策略文档以及用于生成列表的简短脚本。

I [wrote] this code so that I could easily see the details of the managed policies since AWS doesn't publish them.