Interface UsagePlanProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UsagePlanProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:05.003Z")
@Stability(Stable)
public interface UsagePlanProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining an API Gateway Usage Plan for WebSocket APIs.
Example:
WebSocketApi api = new WebSocketApi(this, "my-api");
WebSocketStage stage = WebSocketStage.Builder.create(this, "my-stage")
.webSocketApi(api)
.stageName("dev")
.build();
UsagePlan usagePlan = UsagePlan.Builder.create(this, "my-usage-plan")
.usagePlanName("Basic")
.build();
usagePlan.addApiStage(UsagePlanPerApiStage.builder()
.api(api)
.stage(stage)
.build());
-
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 QuotaSettingsgetQuota()Number of requests clients can make in a given time period.default ThrottleSettingsOverall throttle settings for the API.default StringName for this usage plan.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
-
getQuota
Number of requests clients can make in a given time period.Default: none
-
getThrottle
Overall throttle settings for the API.Default: none
-
getUsagePlanName
Name for this usage plan.Default: none
-
builder
- Returns:
- a
UsagePlanProps.BuilderofUsagePlanProps
-