Interface UsagePlanPerApiStage
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UsagePlanPerApiStage.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:02.694Z")
@Stability(Stable)
public interface UsagePlanPerApiStage
extends software.amazon.jsii.JsiiSerializable
Represents the API stages that a usage plan applies to.
Example:
UsagePlan plan;
RestApi api;
Method echoMethod;
plan.addApiStage(UsagePlanPerApiStage.builder()
.stage(api.getDeploymentStage())
.throttle(List.of(ThrottlingPerMethod.builder()
.method(echoMethod)
.throttle(ThrottleSettings.builder()
.rateLimit(10)
.burstLimit(2)
.build())
.build()))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forUsagePlanPerApiStagestatic final classAn implementation forUsagePlanPerApiStage -
Method Summary
Modifier and TypeMethodDescriptionstatic UsagePlanPerApiStage.Builderbuilder()default IRestApigetApi()Default: nonedefault StagegetStage()[disable-awslint:ref-via-interface].default List<ThrottlingPerMethod>Default: noneMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApi
Default: none -
getStage
[disable-awslint:ref-via-interface].Default: none
-
getThrottle
Default: none -
builder
- Returns:
- a
UsagePlanPerApiStage.BuilderofUsagePlanPerApiStage
-