@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.200Z") @Stability(value=Stable) public interface QuotaSettings extends software.amazon.jsii.JsiiSerializable
Example:
RestApi api;
RateLimitedApiKey key = RateLimitedApiKey.Builder.create(this, "rate-limited-api-key")
.customerId("hello-customer")
.resources(List.of(api))
.quota(QuotaSettings.builder()
.limit(10000)
.period(Period.MONTH)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
QuotaSettings.Builder
A builder for
QuotaSettings |
static class |
QuotaSettings.Jsii$Proxy
An implementation for
QuotaSettings |
| Modifier and Type | Method and Description |
|---|---|
static QuotaSettings.Builder |
builder() |
default Number |
getLimit()
The maximum number of requests that users can make within the specified time period.
|
default Number |
getOffset()
For the initial time period, the number of requests to subtract from the specified limit.
|
default Period |
getPeriod()
The time period for which the maximum limit of requests applies.
|
@Stability(value=Stable) @Nullable default Number getLimit()
Default: none
@Stability(value=Stable) @Nullable default Number getOffset()
Default: none
@Stability(value=Stable) @Nullable default Period getPeriod()
Default: none
@Stability(value=Stable) static QuotaSettings.Builder builder()
QuotaSettings.Builder of QuotaSettingsCopyright © 2022. All rights reserved.