#[non_exhaustive]pub struct StartInstanceRefreshInput {
pub auto_scaling_group_name: Option<String>,
pub strategy: Option<RefreshStrategy>,
pub desired_configuration: Option<DesiredConfiguration>,
pub preferences: Option<RefreshPreferences>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auto_scaling_group_name: Option<String>The name of the Auto Scaling group.
strategy: Option<RefreshStrategy>The strategy to use for the instance refresh. The only valid value is Rolling.
desired_configuration: Option<DesiredConfiguration>The desired configuration. For example, the desired configuration can specify a new launch template or a new version of the current launch template.
Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group to reflect the new desired configuration.
When you specify a new launch template or a new version of the current launch template for your desired configuration, consider enabling the SkipMatching property in preferences. If it's enabled, Amazon EC2 Auto Scaling skips replacing instances that already use the specified launch template and instance types. This can help you reduce the number of replacements that are required to apply updates.
preferences: Option<RefreshPreferences>Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in Standby state or protected from scale in are found. You can also choose to enable additional features, such as the following:
-
Auto rollback
-
Checkpoints
-
CloudWatch alarms
-
Skip matching
Implementations§
source§impl StartInstanceRefreshInput
impl StartInstanceRefreshInput
sourcepub fn auto_scaling_group_name(&self) -> Option<&str>
pub fn auto_scaling_group_name(&self) -> Option<&str>
The name of the Auto Scaling group.
sourcepub fn strategy(&self) -> Option<&RefreshStrategy>
pub fn strategy(&self) -> Option<&RefreshStrategy>
The strategy to use for the instance refresh. The only valid value is Rolling.
sourcepub fn desired_configuration(&self) -> Option<&DesiredConfiguration>
pub fn desired_configuration(&self) -> Option<&DesiredConfiguration>
The desired configuration. For example, the desired configuration can specify a new launch template or a new version of the current launch template.
Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group to reflect the new desired configuration.
When you specify a new launch template or a new version of the current launch template for your desired configuration, consider enabling the SkipMatching property in preferences. If it's enabled, Amazon EC2 Auto Scaling skips replacing instances that already use the specified launch template and instance types. This can help you reduce the number of replacements that are required to apply updates.
sourcepub fn preferences(&self) -> Option<&RefreshPreferences>
pub fn preferences(&self) -> Option<&RefreshPreferences>
Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in Standby state or protected from scale in are found. You can also choose to enable additional features, such as the following:
-
Auto rollback
-
Checkpoints
-
CloudWatch alarms
-
Skip matching
source§impl StartInstanceRefreshInput
impl StartInstanceRefreshInput
sourcepub fn builder() -> StartInstanceRefreshInputBuilder
pub fn builder() -> StartInstanceRefreshInputBuilder
Creates a new builder-style object to manufacture StartInstanceRefreshInput.
Trait Implementations§
source§impl Clone for StartInstanceRefreshInput
impl Clone for StartInstanceRefreshInput
source§fn clone(&self) -> StartInstanceRefreshInput
fn clone(&self) -> StartInstanceRefreshInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StartInstanceRefreshInput
impl Debug for StartInstanceRefreshInput
source§impl PartialEq for StartInstanceRefreshInput
impl PartialEq for StartInstanceRefreshInput
source§fn eq(&self, other: &StartInstanceRefreshInput) -> bool
fn eq(&self, other: &StartInstanceRefreshInput) -> bool
self and other values to be equal, and is used
by ==.