How to create 'integration' request details on a Serverless function event in YAML?

To achieve programmatic setting of the integration request header I had to package the code using serverless, then use a python script to manually set the hard coded value within the cloudformation then use serverless to deploy the updated package.

Thread here