QuotaSettings Struct
Specifies the maximum number of requests that clients can make to API Gateway APIs.
Example
ts
declare const api: apigwv2.WebSocketApi;
declare const stage: apigwv2.WebSocketStage;
const key = new apigwv2.RateLimitedApiKey(this, 'rate-limited-api-key', {
customerId: 'test-customer',
apiStages: [{
api: api,
stage: stage
}],
quota: {
limit: 10000,
period: apigwv2.Period.MONTH
},
throttle: {
rateLimit: 100,
burstLimit: 200
}
});
Properties
The maximum number of requests that users can make within the specified time period.
For the initial time period, the number of requests to subtract from the specified limit.