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.

feita há 3 anos234 visualizações
1 Resposta
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'
respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas