#[non_exhaustive]pub struct AutoScalingConfigurationBuilder { /* private fields */ }Expand description
A builder for AutoScalingConfiguration.
Implementations§
source§impl AutoScalingConfigurationBuilder
impl AutoScalingConfigurationBuilder
sourcepub fn min_node_count(self, input: i32) -> Self
pub fn min_node_count(self, input: i32) -> Self
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.
sourcepub fn set_min_node_count(self, input: Option<i32>) -> Self
pub fn set_min_node_count(self, input: Option<i32>) -> Self
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.
sourcepub fn get_min_node_count(&self) -> &Option<i32>
pub fn get_min_node_count(&self) -> &Option<i32>
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.
sourcepub fn max_node_count(self, input: i32) -> Self
pub fn max_node_count(self, input: i32) -> Self
The highest number of nodes to scale. This value cannot be greater than 5.
sourcepub fn set_max_node_count(self, input: Option<i32>) -> Self
pub fn set_max_node_count(self, input: Option<i32>) -> Self
The highest number of nodes to scale. This value cannot be greater than 5.
sourcepub fn get_max_node_count(&self) -> &Option<i32>
pub fn get_max_node_count(&self) -> &Option<i32>
The highest number of nodes to scale. This value cannot be greater than 5.
sourcepub fn auto_scaling_metric(self, input: AutoScalingMetric) -> Self
pub fn auto_scaling_metric(self, input: AutoScalingMetric) -> Self
The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
sourcepub fn set_auto_scaling_metric(self, input: Option<AutoScalingMetric>) -> Self
pub fn set_auto_scaling_metric(self, input: Option<AutoScalingMetric>) -> Self
The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
sourcepub fn get_auto_scaling_metric(&self) -> &Option<AutoScalingMetric>
pub fn get_auto_scaling_metric(&self) -> &Option<AutoScalingMetric>
The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
sourcepub fn metric_target(self, input: f64) -> Self
pub fn metric_target(self, input: f64) -> Self
The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.
sourcepub fn set_metric_target(self, input: Option<f64>) -> Self
pub fn set_metric_target(self, input: Option<f64>) -> Self
The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.
sourcepub fn get_metric_target(&self) -> &Option<f64>
pub fn get_metric_target(&self) -> &Option<f64>
The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.
sourcepub fn scale_in_cooldown_seconds(self, input: f64) -> Self
pub fn scale_in_cooldown_seconds(self, input: f64) -> Self
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
sourcepub fn set_scale_in_cooldown_seconds(self, input: Option<f64>) -> Self
pub fn set_scale_in_cooldown_seconds(self, input: Option<f64>) -> Self
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
sourcepub fn get_scale_in_cooldown_seconds(&self) -> &Option<f64>
pub fn get_scale_in_cooldown_seconds(&self) -> &Option<f64>
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
sourcepub fn scale_out_cooldown_seconds(self, input: f64) -> Self
pub fn scale_out_cooldown_seconds(self, input: f64) -> Self
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
sourcepub fn set_scale_out_cooldown_seconds(self, input: Option<f64>) -> Self
pub fn set_scale_out_cooldown_seconds(self, input: Option<f64>) -> Self
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
sourcepub fn get_scale_out_cooldown_seconds(&self) -> &Option<f64>
pub fn get_scale_out_cooldown_seconds(&self) -> &Option<f64>
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
sourcepub fn build(self) -> AutoScalingConfiguration
pub fn build(self) -> AutoScalingConfiguration
Consumes the builder and constructs a AutoScalingConfiguration.
Trait Implementations§
source§impl Clone for AutoScalingConfigurationBuilder
impl Clone for AutoScalingConfigurationBuilder
source§fn clone(&self) -> AutoScalingConfigurationBuilder
fn clone(&self) -> AutoScalingConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AutoScalingConfigurationBuilder
impl Default for AutoScalingConfigurationBuilder
source§fn default() -> AutoScalingConfigurationBuilder
fn default() -> AutoScalingConfigurationBuilder
source§impl PartialEq for AutoScalingConfigurationBuilder
impl PartialEq for AutoScalingConfigurationBuilder
source§fn eq(&self, other: &AutoScalingConfigurationBuilder) -> bool
fn eq(&self, other: &AutoScalingConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.