Skip to content
v2.275.0

Period Enum ​

Time period for which quota settings apply.

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
  }
});

Members ​

MemberDescription
DAYThe quota resets every day.
WEEKThe quota resets every week.
MONTHThe quota resets every month.

Referenced by ​