Interface ThrottleSettings

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ThrottleSettings.Jsii$Proxy

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-25T11:29:00.628Z") @Stability(Stable) public interface ThrottleSettings extends software.amazon.jsii.JsiiSerializable
Container for defining throttling parameters to API stages.

Example:

 ApiKey apiKey = new ApiKey(this, "ApiKey");
 UsagePlan usagePlan = UsagePlan.Builder.create(this, "UsagePlan")
         .usagePlanName("WebSocketUsagePlan")
         .throttle(ThrottleSettings.builder()
                 .rateLimit(10)
                 .burstLimit(2)
                 .build())
         .build();
 usagePlan.addApiKey(apiKey);
 
  • Method Details

    • getBurstLimit

      @Stability(Stable) @Nullable default Number getBurstLimit()
      The maximum API request rate limit over a time ranging from one to a few seconds.

      Default: none

    • getRateLimit

      @Stability(Stable) @Nullable default Number getRateLimit()
      The API request steady-state rate limit (average requests per second over an extended period of time).

      Default: none

    • builder

      @Stability(Stable) static ThrottleSettings.Builder builder()
      Returns:
      a ThrottleSettings.Builder of ThrottleSettings