Package org.cdk8s.plus25
Class HorizontalPodAutoscalerProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.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.plus25.HorizontalPodAutoscalerProps
HorizontalPodAutoscalerProps.Builder, HorizontalPodAutoscalerProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(HorizontalPodAutoscalerProps.Builder builder)Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerProps.Builder.protectedJsii$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()booleanequals(Object o)NumbergetMaxReplicas()The maximum number of replicas that can be scaled up to.org.cdk8s.ApiObjectMetadatagetMetadata()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.NumbergetMinReplicas()The minimum number of replicas that can be scaled down to.ScalingRulesgetScaleDown()The scaling behavior when scaling down.ScalingRulesgetScaleUp()The scaling behavior when scaling up.IScalablegetTarget()The workload to scale up or down.inthashCode()
-
-
-
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:HorizontalPodAutoscalerPropsThe maximum number of replicas that can be scaled up to.- Specified by:
getMaxReplicasin interfaceHorizontalPodAutoscalerProps
-
getTarget
public final IScalable getTarget()
Description copied from interface:HorizontalPodAutoscalerPropsThe workload to scale up or down.Scalable workload types:
- Deployment
- StatefulSet
- Specified by:
getTargetin interfaceHorizontalPodAutoscalerProps
-
getMetrics
public final List<Metric> getMetrics()
Description copied from interface:HorizontalPodAutoscalerPropsThe 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:
getMetricsin interfaceHorizontalPodAutoscalerProps
-
getMinReplicas
public final Number getMinReplicas()
Description copied from interface:HorizontalPodAutoscalerPropsThe minimum number of replicas that can be scaled down to.Can be set to 0 if the alpha feature gate
HPAScaleToZerois enabled and at least one Object or External metric is configured.Default: 1
- Specified by:
getMinReplicasin interfaceHorizontalPodAutoscalerProps
-
getScaleDown
public final ScalingRules getScaleDown()
Description copied from interface:HorizontalPodAutoscalerPropsThe scaling behavior when scaling down.Default: - Scale down to minReplica count with a 5 minute stabilization window.
- Specified by:
getScaleDownin interfaceHorizontalPodAutoscalerProps
-
getScaleUp
public final ScalingRules getScaleUp()
Description copied from interface:HorizontalPodAutoscalerPropsThe 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:
getScaleUpin interfaceHorizontalPodAutoscalerProps
-
getMetadata
public final org.cdk8s.ApiObjectMetadata getMetadata()
Description copied from interface:ResourcePropsMetadata that all persisted resources must have, which includes all objects users must create.- Specified by:
getMetadatain interfaceResourceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-