Package org.cdk8s.plus25
Interface ScalingPolicy
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ScalingPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.411Z") @Stability(Stable) public interface ScalingPolicy extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classScalingPolicy.BuilderA builder forScalingPolicystatic classScalingPolicy.Jsii$ProxyAn implementation forScalingPolicy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ScalingPolicy.Builderbuilder()default org.cdk8s.DurationgetDuration()The amount of time the scaling policy has to continue scaling before the target metric must be revalidated.ReplicasgetReplicas()The type and quantity of replicas to change.
-
-
-
Method Detail
-
getReplicas
@Stability(Stable) @NotNull Replicas getReplicas()
The type and quantity of replicas to change.
-
getDuration
@Stability(Stable) @Nullable default org.cdk8s.Duration getDuration()
The amount of time the scaling policy has to continue scaling before the target metric must be revalidated.Must be greater than 0 seconds and no longer than 30 minutes.
Default: - 15 seconds
-
builder
@Stability(Stable) static ScalingPolicy.Builder builder()
- Returns:
- a
ScalingPolicy.BuilderofScalingPolicy
-
-