ml-summit-2021/code/Textract-Comprehend-A2I.yaml [539:568]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - PolicyName: "ComprehendCreateEntityRecognizerPermission"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              Effect: "Allow"
              Action: "comprehend:CreateEntityRecognizer"
              "Resource": "*"
        - PolicyName: "EnableDisableCWEventForTrainingCER"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              Effect: "Allow"
              Action:
                - "events:EnableRule"
                - "events:DisableRule"
              Resource: "*"
        - PolicyName: "ListCWEventsRules"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              Effect: "Allow"
              Action: "events:ListRules"
              Resource: "*"
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole

  NewEntityCheckLambda:
    Type: AWS::Serverless::Function
    DependsOn: "NewEntityCheckLambdaRole"
    Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/Textract-Comprehend-A2I.yaml [576:605]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - PolicyName: "ComprehendCreateEntityRecognizerPermission"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              Effect: "Allow"
              Action: "comprehend:CreateEntityRecognizer"
              "Resource": "*"
        - PolicyName: "EnableDisableCWEventForTrainingCER"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              Effect: "Allow"
              Action:
                - "events:EnableRule"
                - "events:DisableRule"
              Resource: "*"
        - PolicyName: "ListCWEventsRules"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              Effect: "Allow"
              Action: "events:ListRules"
              Resource: "*"
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole

  NewEntityCheckLambda:
    Type: AWS::Serverless::Function
    DependsOn: "NewEntityCheckLambdaRole"
    Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



