I have many lambda functions using the ‘lambda’ integration type in api gateway, and all have these status code headers:
statusCodes:
200:
pattern: '' # JSON response
headers:
Access-Control-Allow-Headers: "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,Cache-Control'"
Access-Control-Allow-Methods: "'*'"
Access-Control-Allow-Origin: "'*'"
Is there a way in this framework to set a default status code for all the functions so I don’t have to repeat this block 100 times?