@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.243Z") @Stability(value=Stable) public interface UsagePlanProps extends software.amazon.jsii.JsiiSerializable
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);
| Modifier and Type | Interface and Description |
|---|---|
static class |
UsagePlanProps.Builder
A builder for
UsagePlanProps |
static class |
UsagePlanProps.Jsii$Proxy
An implementation for
UsagePlanProps |
| Modifier and Type | Method and Description |
|---|---|
static UsagePlanProps.Builder |
builder() |
default List<UsagePlanPerApiStage> |
getApiStages()
API Stages to be associated with the usage plan.
|
default String |
getDescription()
Represents usage plan purpose.
|
default String |
getName()
Name for this usage plan.
|
default QuotaSettings |
getQuota()
Number of requests clients can make in a given time period.
|
default ThrottleSettings |
getThrottle()
Overall throttle settings for the API.
|
@Stability(value=Stable) @Nullable default List<UsagePlanPerApiStage> getApiStages()
Default: none
@Stability(value=Stable) @Nullable default String getDescription()
Default: none
@Stability(value=Stable) @Nullable default String getName()
Default: none
@Stability(value=Stable) @Nullable default QuotaSettings getQuota()
Default: none
@Stability(value=Stable) @Nullable default ThrottleSettings getThrottle()
Default: none
@Stability(value=Stable) static UsagePlanProps.Builder builder()
UsagePlanProps.Builder of UsagePlanPropsCopyright © 2022. All rights reserved.