'Custom Lambda Authorizer Event Payload type

I am trying to create a custom lambda authorizer with the lambda event payload type as "REQUEST". the serverless.yml is pretty simple

functions:
  authorizer:
    handler: src/authorizer.handler
    type: REQUEST

Whenever I deploy this yaml file it creates an authorizer with a TOKEN-based Event Payload instead of REQUEST-based.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source