I want to control access to my api gateway fronting lambda with iam permissions: https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html
I have seen no examples of how to configure this in a sam template. What does a sam template look like that has authorizationType property set to AWS_IAM?
I think I read somewhere that Sam doesn't support this directly but you can do it with swagger? Can I use swagger to get around this limitation? I haven't found a simple example of that.