Interface UsagePlanPerApiStage
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UsagePlanPerApiStage.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.132Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forUsagePlanPerApiStage
static final class
An implementation forUsagePlanPerApiStage
-
Method Summary
Modifier and TypeMethodDescriptionstatic UsagePlanPerApiStage.Builder
builder()
default IRestApi
getApi()
Default: nonedefault Stage
getStage()
[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.Builder
ofUsagePlanPerApiStage
-