'How to define different quotas to different endpoints in AWS API Gateway

Quotas are associated with "Usage Plans", but the "Usage Plan" applies to all endpoints in a Stage.

Is there any way to define different quotas to different endpoints in my API using AWS API Gateway?

Example for one user with an APIKey:

  • POST myapi.domain.com/v1/articles --> 100 requests/month
  • GET myapi.domain.com/v1/articles --> 1,000 requests/month
  • POST myapi.domain.com/v1/comments --> 1,000 requests/month
  • GET myapi.domain.com/v1/comments --> no limit


Sources

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

Source: Stack Overflow

Solution Source