ThrottleSettings Struct
Container for defining throttling parameters to API stages.
Example
ts
const apiKey = new apigwv2.ApiKey(this, "ApiKey");
const usagePlan = new apigwv2.UsagePlan(this, "UsagePlan", {
usagePlanName: "WebSocketUsagePlan",
throttle: {
rateLimit: 10,
burstLimit: 2
}
});
usagePlan.addApiKey(apiKey);
Properties
burstLimitoptionalnumberburst_limitoptionalint | floatburstLimitoptionalNumberBurstLimitoptionaldoubleBurstLimitoptional*float64= none#The maximum API request rate limit over a time ranging from one to a few seconds.
rateLimitoptionalnumberrate_limitoptionalint | floatrateLimitoptionalNumberRateLimitoptionaldoubleRateLimitoptional*float64= none#The API request steady-state rate limit (average requests per second over an extended period of time).