在下面的 API 使用 cft 中,我无法参数化 api 资源和方法。
ApiUsagePlan:
Type: "AWS::ApiGateway::UsagePlan"
Properties:
Throttle:
RateLimit: 1000
BurstLimit: 5000
ApiStages:
- ApiId: !Ref MyApiGatewayApi
Stage: !Ref MyApiStage
Throttle:
"/hello/world/GET": <--- How to get this parameterised
RateLimit: 50
BurstLimit: 50
我遇到了以下错误
esource handler returned message: "Invalid patch path '/apiStages/sk4knm4yub:ppe-auth/throttle/!Ref MethodName/burstLimit' specified for op 'replace'. Must be one of:
[/name, /description, /productCode, /quota/period, /quota/limit, /quota/offset, /throttle/rateLimit, /throttle/burstLimit, /apiStages/<apidId:stageName>/throttle/<resourcePath>/<httpMethod>/rateLimit, /apiStages/<apidId:stageName>/throttle/<resourcePath>/<httpMethod>/burstLimit, /apiStages/<apidId:stageName>/throttle] (Service: ApiGateway, Status Code: 400, Request ID: 5ff7c212-bb69-4284-9a4b-6fa2305d5945)" (RequestToken: 7ae87cae-198e-01d7-ef3e-afdfa2a6472b, HandlerErrorCode: InvalidRequest)
期望应用资源和方法的输入参数