Interface QuotaSettings
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
QuotaSettings.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:25.541Z")
@Stability(Stable)
public interface QuotaSettings
extends software.amazon.jsii.JsiiSerializable
Specifies the maximum number of requests that clients can make to API Gateway APIs.
Example:
RestApi api; RateLimitedApiKey key = RateLimitedApiKey.Builder.create(this, "rate-limited-api-key") .customerId("hello-customer") .stages(List.of(api.getDeploymentStage())) .quota(QuotaSettings.builder() .limit(10000) .period(Period.MONTH) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forQuotaSettings
static final class
An implementation forQuotaSettings
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuotaSettings.Builder
builder()
default Number
getLimit()
The maximum number of requests that users can make within the specified time period.default Number
For the initial time period, the number of requests to subtract from the specified limit.default Period
The time period for which the maximum limit of requests applies.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLimit
The maximum number of requests that users can make within the specified time period.Default: none
-
getOffset
For the initial time period, the number of requests to subtract from the specified limit.Default: none
-
getPeriod
The time period for which the maximum limit of requests applies.Default: none
-
builder
- Returns:
- a
QuotaSettings.Builder
ofQuotaSettings
-