Interface RateLimitedApiKeyProps
- All Superinterfaces:
ApiKeyOptions,ApiKeyProps,software.amazon.jsii.JsiiSerializable,ResourceOptions
- All Known Implementing Classes:
RateLimitedApiKeyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:31.555Z")
@Stability(Stable)
public interface RateLimitedApiKeyProps
extends software.amazon.jsii.JsiiSerializable, ApiKeyProps
RateLimitedApiKey properties.
Example:
RestApi api;
RateLimitedApiKey key = RateLimitedApiKey.Builder.create(this, "rate-limited-api-key")
.customerId("hello-customer")
.apiStages(List.of(UsagePlanPerApiStage.builder().stage(api.getDeploymentStage()).build()))
.quota(QuotaSettings.builder()
.limit(10000)
.period(Period.MONTH)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRateLimitedApiKeyPropsstatic final classAn implementation forRateLimitedApiKeyProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default List<UsagePlanPerApiStage> API Stages to be associated with the RateLimitedApiKey.default QuotaSettingsgetQuota()Number of requests clients can make in a given time period.default ThrottleSettingsOverall throttle settings for the API.Methods inherited from interface software.amazon.awscdk.services.apigateway.ApiKeyOptions
getApiKeyName, getDescription, getValueMethods inherited from interface software.amazon.awscdk.services.apigateway.ApiKeyProps
getCustomerId, getEnabled, getGenerateDistinctId, getResources, getStagesMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.apigateway.ResourceOptions
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions
-
Method Details
-
getApiStages
API Stages to be associated with the RateLimitedApiKey.If you already prepared UsagePlan resource explicitly, you should use
stagesproperty. If you prefer to prepare UsagePlan resource implicitly via RateLimitedApiKey, or you should specify throttle settings at each stage individually, you should useapiStagesproperty.Default: none
-
getQuota
Number of requests clients can make in a given time period.Default: none
-
getThrottle
Overall throttle settings for the API.Default: none
-
builder
- Returns:
- a
RateLimitedApiKeyProps.BuilderofRateLimitedApiKeyProps
-