Throttle API Stage

0

I am finding the documentation a little confusing. I am trying to throttle a method and do not know how to do this in cloud formation:

ProviderAPIUsagePlan:
Type: 'AWS::ApiGateway::UsagePlan'
Properties:
ApiStages:
- ApiId: !Ref ProviderAPIGatewayID
Stage: Prod
Throttle:
'/route/{routeId}/PATCH'
BurstLimit: 30
RateLimit: 30
Description: Provider API usage plan
Quota:
Limit: 100000
Period: WEEK
UsagePlanName: !Sub
- 'bill-usage'
On the Stage I need to specify the path and method but I also need to specify the BurstLimit and RateLimit.

已提問 3 年前檢視次數 234 次
1 個回答
0

I did it like this:
ProviderAPIUsagePlan:
Type: 'AWS::ApiGateway::UsagePlan'
Properties:
ApiStages:

  • ApiId: !Ref ProviderAPIGatewayID
    Stage: Prod
    Throttle:
    '/route/{routeId}/PATCH':
    BurstLimit: 30
    RateLimit: 30
    Description: Provider API usage plan
    Quota:
    Limit: 100000
    Period: WEEK
    UsagePlanName: !Sub
  • 'bill-usage'
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南