I am trying to programmatically create a POST method from an AWS API gateway which invokes a lambda function. However I don\'t know how to do this. This is what I have tried: