Interface RequestCountScalingProps

All Superinterfaces:
BaseTargetTrackingProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
RequestCountScalingProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.401Z") @Stability(Stable) public interface RequestCountScalingProps extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
Properties for enabling scaling based on request/second.

Example:

 AutoScalingGroup autoScalingGroup;
 autoScalingGroup.scaleOnRequestCount("LimitRPS", RequestCountScalingProps.builder()
         .targetRequestsPerSecond(1000)
         .build());
 
  • Method Details

    • getTargetRequestsPerMinute

      @Stability(Stable) @Nullable default Number getTargetRequestsPerMinute()
      Target average requests/minute on each instance.

      Default: - Specify exactly one of 'targetRequestsPerMinute' and 'targetRequestsPerSecond'

    • getTargetRequestsPerSecond

      @Stability(Deprecated) @Deprecated @Nullable default Number getTargetRequestsPerSecond()
      Deprecated.
      Use 'targetRequestsPerMinute' instead
      (deprecated) Target average requests/seconds on each instance.

      Default: - Specify exactly one of 'targetRequestsPerMinute' and 'targetRequestsPerSecond'

    • builder

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