I am creating quite a lot of API Gateway Methods. I would like to add a HTTP Method Response to each of the methods, like “200”. This is possible via the console but I would much prefer to handle this using the serverless.yml but I cannot find any documentation around this. Is there documentation around this that I am missing somewhere? This is an example of my serverless.yml:
functions:
things:
handler: things.lambda_handler
environment:
SOME_VAR: heresavar
package:
artifact: things_code.zip
events:
- http:
path: /things
method: get
request:
parameters:
querystrings:
updated_at: false
headers:
Authorization: true
cors: true
authorizer:
arn: arn:aws:cognito-idp:us-west-2:1234123412134:userpool/us-west-2_1231123123
scopes:
- thing_scope/read_things