title: What is trusted entities in resulting role definition of Lambda?
body: <p>Below is the SAM template,</p>
  
  <pre><code>Resources:
    HelloWorldFunction:
      Type: AWS::Serverless::Function 
  Properties:
    CodeUri: hello-world/
    Handler: app.LambdaHandler
    Runtime: nodejs8.10
    Policies:
    - AWSLambdaExecute  
  </code></pre>
  
  <hr>
  
  <p>for which, below is role(JSON) created for Lambda function:</p>
  
  <pre><code>{
    "roleName": "somestack-HelloWorldFunctionRole-AAAAAAAA",
    "policies": [
      {...}, # AWSLambdaExecute
      {...}, # AWSLambdaSQSQueueExecutionRole
      {....} # AWSLambdaBasicExecutionRole
    ],
    "trustedEntities": [
      "lambda.amazonaws.com"
    ]
  }
  </code></pre>
  
  <hr>
  
  <p>What is <code>trustedEntities</code> in this JSON?</p>