Struct aws_sdk_eks::types::builders::NodegroupScalingConfigBuilder
source · #[non_exhaustive]pub struct NodegroupScalingConfigBuilder { /* private fields */ }
Expand description
A builder for NodegroupScalingConfig
.
Implementations§
source§impl NodegroupScalingConfigBuilder
impl NodegroupScalingConfigBuilder
sourcepub fn min_size(self, input: i32) -> Self
pub fn min_size(self, input: i32) -> Self
The minimum number of nodes that the managed node group can scale in to.
sourcepub fn set_min_size(self, input: Option<i32>) -> Self
pub fn set_min_size(self, input: Option<i32>) -> Self
The minimum number of nodes that the managed node group can scale in to.
sourcepub fn get_min_size(&self) -> &Option<i32>
pub fn get_min_size(&self) -> &Option<i32>
The minimum number of nodes that the managed node group can scale in to.
sourcepub fn max_size(self, input: i32) -> Self
pub fn max_size(self, input: i32) -> Self
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.
sourcepub fn set_max_size(self, input: Option<i32>) -> Self
pub fn set_max_size(self, input: Option<i32>) -> Self
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.
sourcepub fn get_max_size(&self) -> &Option<i32>
pub fn get_max_size(&self) -> &Option<i32>
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.
sourcepub fn desired_size(self, input: i32) -> Self
pub fn desired_size(self, input: i32) -> Self
The current number of nodes that the managed node group should maintain.
If you use 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 Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.
sourcepub fn set_desired_size(self, input: Option<i32>) -> Self
pub fn set_desired_size(self, input: Option<i32>) -> Self
The current number of nodes that the managed node group should maintain.
If you use 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 Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.
sourcepub fn get_desired_size(&self) -> &Option<i32>
pub fn get_desired_size(&self) -> &Option<i32>
The current number of nodes that the managed node group should maintain.
If you use 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 Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.
sourcepub fn build(self) -> NodegroupScalingConfig
pub fn build(self) -> NodegroupScalingConfig
Consumes the builder and constructs a NodegroupScalingConfig
.
Trait Implementations§
source§impl Clone for NodegroupScalingConfigBuilder
impl Clone for NodegroupScalingConfigBuilder
source§fn clone(&self) -> NodegroupScalingConfigBuilder
fn clone(&self) -> NodegroupScalingConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for NodegroupScalingConfigBuilder
impl Default for NodegroupScalingConfigBuilder
source§fn default() -> NodegroupScalingConfigBuilder
fn default() -> NodegroupScalingConfigBuilder
source§impl PartialEq for NodegroupScalingConfigBuilder
impl PartialEq for NodegroupScalingConfigBuilder
source§fn eq(&self, other: &NodegroupScalingConfigBuilder) -> bool
fn eq(&self, other: &NodegroupScalingConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.