enum Period
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Apigatewayv2.Period |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#Period |
Java | software.amazon.awscdk.services.apigatewayv2.Period |
Python | aws_cdk.aws_apigatewayv2.Period |
TypeScript (source) | aws-cdk-lib » aws_apigatewayv2 » Period |
Time period for which quota settings apply.
Example
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
| Name | Description |
|---|---|
| DAY | The quota resets every day. |
| WEEK | The quota resets every week. |
| MONTH | The quota resets every month. |
DAY
The quota resets every day.
WEEK
The quota resets every week.
MONTH
The quota resets every month.

.NET
Go
Java
Python
TypeScript (