@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodegroupScalingConfig extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the scaling configuration details for the Auto Scaling group that is associated with your node group. When creating a node group, you must specify all or none of the properties. When updating a node group, you can specify any or none of the properties.
Constructor and Description |
---|
NodegroupScalingConfig() |
Modifier and Type | Method and Description |
---|---|
NodegroupScalingConfig |
clone() |
boolean |
equals(Object obj) |
Integer |
getDesiredSize()
The current number of nodes that the managed node group should maintain.
|
Integer |
getMaxSize()
The maximum number of nodes that the managed node group can scale out to.
|
Integer |
getMinSize()
The minimum number of nodes that the managed node group can scale in to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredSize(Integer desiredSize)
The current number of nodes that the managed node group should maintain.
|
void |
setMaxSize(Integer maxSize)
The maximum number of nodes that the managed node group can scale out to.
|
void |
setMinSize(Integer minSize)
The minimum number of nodes that the managed node group can scale in to.
|
String |
toString()
Returns a string representation of this object.
|
NodegroupScalingConfig |
withDesiredSize(Integer desiredSize)
The current number of nodes that the managed node group should maintain.
|
NodegroupScalingConfig |
withMaxSize(Integer maxSize)
The maximum number of nodes that the managed node group can scale out to.
|
NodegroupScalingConfig |
withMinSize(Integer minSize)
The minimum number of nodes that the managed node group can scale in to.
|
public void setMinSize(Integer minSize)
The minimum number of nodes that the managed node group can scale in to.
minSize
- The minimum number of nodes that the managed node group can scale in to.public Integer getMinSize()
The minimum number of nodes that the managed node group can scale in to.
public NodegroupScalingConfig withMinSize(Integer minSize)
The minimum number of nodes that the managed node group can scale in to.
minSize
- The minimum number of nodes that the managed node group can scale in to.public void setMaxSize(Integer maxSize)
The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.
maxSize
- The maximum number of nodes that the managed node group can scale out to. For information about the
maximum number that you can specify, see Amazon EKS service quotas
in the Amazon EKS User Guide.public Integer getMaxSize()
The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.
public NodegroupScalingConfig withMaxSize(Integer maxSize)
The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.
maxSize
- The maximum number of nodes that the managed node group can scale out to. For information about the
maximum number that you can specify, see Amazon EKS service quotas
in the Amazon EKS User Guide.public void setDesiredSize(Integer desiredSize)
The current number of nodes that the managed node group should maintain.
If you use the Kubernetes Cluster
Autoscaler, you shouldn't change the desiredSize
value directly, as this can cause the Cluster
Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize
in some cases, such as when starting with extra hosts
for testing. This parameter can also be different when you want to start with an estimated number of needed
hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster Autoscaler is
used, the desiredSize
parameter is altered by the Cluster Autoscaler (but can be out-of-date for
short periods of time). the Cluster Autoscaler doesn't scale a managed node group lower than minSize
or higher than maxSize
.
desiredSize
- The current number of nodes that the managed node group should maintain.
If you use the Kubernetes Cluster
Autoscaler, you shouldn't change the desiredSize
value directly, as this can cause the
Cluster Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize
in some cases, such as when starting with extra
hosts for testing. This parameter can also be different when you want to start with an estimated number of
needed hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster
Autoscaler is used, the desiredSize
parameter is altered by the Cluster Autoscaler (but can
be out-of-date for short periods of time). the Cluster Autoscaler doesn't scale a managed node group lower
than minSize
or higher than maxSize
.
public Integer getDesiredSize()
The current number of nodes that the managed node group should maintain.
If you use the Kubernetes Cluster
Autoscaler, you shouldn't change the desiredSize
value directly, as this can cause the Cluster
Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize
in some cases, such as when starting with extra hosts
for testing. This parameter can also be different when you want to start with an estimated number of needed
hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster Autoscaler is
used, the desiredSize
parameter is altered by the Cluster Autoscaler (but can be out-of-date for
short periods of time). the Cluster Autoscaler doesn't scale a managed node group lower than minSize
or higher than maxSize
.
If you use the Kubernetes Cluster Autoscaler, you
shouldn't change the desiredSize
value directly, as this can cause the Cluster Autoscaler to
suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize
in some cases, such as when starting with extra
hosts for testing. This parameter can also be different when you want to start with an estimated number
of needed hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster
Autoscaler is used, the desiredSize
parameter is altered by the Cluster Autoscaler (but can
be out-of-date for short periods of time). the Cluster Autoscaler doesn't scale a managed node group
lower than minSize
or higher than maxSize
.
public NodegroupScalingConfig withDesiredSize(Integer desiredSize)
The current number of nodes that the managed node group should maintain.
If you use the Kubernetes Cluster
Autoscaler, you shouldn't change the desiredSize
value directly, as this can cause the Cluster
Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize
in some cases, such as when starting with extra hosts
for testing. This parameter can also be different when you want to start with an estimated number of needed
hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster Autoscaler is
used, the desiredSize
parameter is altered by the Cluster Autoscaler (but can be out-of-date for
short periods of time). the Cluster Autoscaler doesn't scale a managed node group lower than minSize
or higher than maxSize
.
desiredSize
- The current number of nodes that the managed node group should maintain.
If you use the Kubernetes Cluster
Autoscaler, you shouldn't change the desiredSize
value directly, as this can cause the
Cluster Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize
in some cases, such as when starting with extra
hosts for testing. This parameter can also be different when you want to start with an estimated number of
needed hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster
Autoscaler is used, the desiredSize
parameter is altered by the Cluster Autoscaler (but can
be out-of-date for short periods of time). the Cluster Autoscaler doesn't scale a managed node group lower
than minSize
or higher than maxSize
.
public String toString()
toString
in class Object
Object.toString()
public NodegroupScalingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.