title: Scripting permissions to execute lambda from aws api gateway
body: <p><a href="https://i.stack.imgur.com/wbo9D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wbo9D.png" alt="enter image description here"></a></p>
  
  <p>In the aws UI, I get this message when I want to add a lambda function to aws api gateway integration request. How can I script this using boto3?</p>
  
  <p>Been struggling with doing it using lambda: add_permission but missing something still. </p>