1 Answer
- Newest
- Most votes
- Most comments
0
You can't do that directly; but what you could do is use a custom authorizer which stores the number of calls from each client in a persistent manner (DynamoDB perhaps?) and then allows or disallows access based on the number of requests.
It's extra work to do; the alternative is to use the REST API Gateway service.
Relevant content
- asked 5 months ago
- Accepted Answerasked 4 years ago
- asked 9 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
This will only work if you disable authorization caching, which will increase the cost as API GW will invoke the Lambda function for each request.