Package org.cdk8s.plus24
Interface ScalingPolicy
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ScalingPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-07-08T00:25:14.290Z") @Stability(Stable) public interface ScalingPolicy extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ScalingPolicy.Builder
A builder forScalingPolicy
static class
ScalingPolicy.Jsii$Proxy
An implementation forScalingPolicy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ScalingPolicy.Builder
builder()
default org.cdk8s.Duration
getDuration()
The amount of time the scaling policy has to continue scaling before the target metric must be revalidated.Replicas
getReplicas()
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.Builder
ofScalingPolicy
-
-