Interface UsagePlanProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UsagePlanProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:57.957Z")
@Stability(Stable)
public interface UsagePlanProps
extends software.amazon.jsii.JsiiSerializable
Example:
LambdaIntegration integration;
RestApi api = new RestApi(this, "hello-api");
Resource v1 = api.root.addResource("v1");
Resource echo = v1.addResource("echo");
Method echoMethod = echo.addMethod("GET", integration, MethodOptions.builder().apiKeyRequired(true).build());
UsagePlan plan = api.addUsagePlan("UsagePlan", UsagePlanProps.builder()
.name("Easy")
.throttle(ThrottleSettings.builder()
.rateLimit(10)
.burstLimit(2)
.build())
.build());
IApiKey key = api.addApiKey("ApiKey");
plan.addApiKey(key);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forUsagePlanPropsstatic final classAn implementation forUsagePlanProps -
Method Summary
Modifier and TypeMethodDescriptionstatic UsagePlanProps.Builderbuilder()default List<UsagePlanPerApiStage> API Stages to be associated with the usage plan.default StringRepresents usage plan purpose.default StringgetName()Name for this usage plan.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.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiStages
API Stages to be associated with the usage plan.Default: none
-
getDescription
Represents usage plan purpose.Default: none
-
getName
Name for this usage plan.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
UsagePlanProps.BuilderofUsagePlanProps
-