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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠