Package org.cdk8s.plus24
Class HorizontalPodAutoscalerProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.HorizontalPodAutoscalerProps.Jsii$Proxy
-
- All Implemented Interfaces:
HorizontalPodAutoscalerProps
,ResourceProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- HorizontalPodAutoscalerProps
@Stability(Stable) @Internal public static final class HorizontalPodAutoscalerProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HorizontalPodAutoscalerProps
An implementation forHorizontalPodAutoscalerProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.HorizontalPodAutoscalerProps
HorizontalPodAutoscalerProps.Builder, HorizontalPodAutoscalerProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(HorizontalPodAutoscalerProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerProps.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
Number
getMaxReplicas()
The maximum number of replicas that can be scaled up to.org.cdk8s.ApiObjectMetadata
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.List<Metric>
getMetrics()
The metric conditions that trigger a scale up or scale down.Number
getMinReplicas()
The minimum number of replicas that can be scaled down to.ScalingRules
getScaleDown()
The scaling behavior when scaling down.ScalingRules
getScaleUp()
The scaling behavior when scaling up.IScalable
getTarget()
The workload to scale up or down.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(HorizontalPodAutoscalerProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerProps.Builder
.
-
-
Method Detail
-
getMaxReplicas
public final Number getMaxReplicas()
Description copied from interface:HorizontalPodAutoscalerProps
The maximum number of replicas that can be scaled up to.- Specified by:
getMaxReplicas
in interfaceHorizontalPodAutoscalerProps
-
getTarget
public final IScalable getTarget()
Description copied from interface:HorizontalPodAutoscalerProps
The workload to scale up or down.Scalable workload types:
- Deployment
- StatefulSet
- Specified by:
getTarget
in interfaceHorizontalPodAutoscalerProps
-
getMetrics
public final List<Metric> getMetrics()
Description copied from interface:HorizontalPodAutoscalerProps
The metric conditions that trigger a scale up or scale down.Default: - If metrics are not provided, then the target resource constraints (e.g. cpu limit) will be used as scaling metrics.
- Specified by:
getMetrics
in interfaceHorizontalPodAutoscalerProps
-
getMinReplicas
public final Number getMinReplicas()
Description copied from interface:HorizontalPodAutoscalerProps
The minimum number of replicas that can be scaled down to.Can be set to 0 if the alpha feature gate
HPAScaleToZero
is enabled and at least one Object or External metric is configured.Default: 1
- Specified by:
getMinReplicas
in interfaceHorizontalPodAutoscalerProps
-
getScaleDown
public final ScalingRules getScaleDown()
Description copied from interface:HorizontalPodAutoscalerProps
The scaling behavior when scaling down.Default: - Scale down to minReplica count with a 5 minute stabilization window.
- Specified by:
getScaleDown
in interfaceHorizontalPodAutoscalerProps
-
getScaleUp
public final ScalingRules getScaleUp()
Description copied from interface:HorizontalPodAutoscalerProps
The scaling behavior when scaling up.Default: - Is the higher of: * Increase no more than 4 pods per 60 seconds * Double the number of pods per 60 seconds
- Specified by:
getScaleUp
in interfaceHorizontalPodAutoscalerProps
-
getMetadata
public final org.cdk8s.ApiObjectMetadata getMetadata()
Description copied from interface:ResourceProps
Metadata that all persisted resources must have, which includes all objects users must create.- Specified by:
getMetadata
in interfaceResourceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-