title: "Invalid lambda function" when trying to configure SES email receiving rule
body: <p>I created simple Lambda function for processing Amazon SES incoming email.</p>
  
  <p>Function works, testing it with SES data works from Lambda editing panel.</p>
  
  <p>When trying to create SES email receiving rule always getting identical errors:</p>
  
  <pre><code>Invalid Lambda function:
  arn:aws:lambda:region:userid:function:functionname
  (Request ID: requestid)
  </code></pre>
  
  <p>Tried to add roles for this lambda via command line:</p>
  
  <pre><code>aws lambda add-permission
  --function-name arn:aws:lambda:region:userid:function:functionname
  --statement-id=GiveSESPermissionToInvokeFunction
  --principal=ses.amazonaws.com
  --action=lambda:InvokeFunction
  --source-account=userid
  --region "region"
  </code></pre>
  
  <p>role is added successfully, but it's not helping.</p>