- Newest
- Most votes
- Most comments
For HTTP API Gateways, you can specify more granular throttling via the RouteSettings Property (slightly different from the DefaultRouteSettings): https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html#cfn-apigatewayv2-stage-routesettings.
For example, https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-throttling.html shows the throttling at the Get /Pets endpoint. That should do the trick for what you are trying to do! And you can also use the DefaultRouteSettings like you have above. I'm not sure if this can be done via CloudFormation - it looks like AWS API supports it at least.
If you ever use REST APIs, check out usage plans: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html
Relevant content
- Accepted Answerasked 4 years ago
- asked 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Have you specified a
routeKey
for the route you want to throttle? Can you maybe add an anonymized snippet?This is the snippet for creating stage where i only see throttling option
Consider the mentioned Route1,2,3 and ApiGateway exists and is correctly configured