Struct aws_sdk_autoscaling::operation::start_instance_refresh::builders::StartInstanceRefreshInputBuilder
source · #[non_exhaustive]pub struct StartInstanceRefreshInputBuilder { /* private fields */ }Expand description
A builder for StartInstanceRefreshInput.
Implementations§
source§impl StartInstanceRefreshInputBuilder
impl StartInstanceRefreshInputBuilder
sourcepub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
This field is required.sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn get_auto_scaling_group_name(&self) -> &Option<String>
pub fn get_auto_scaling_group_name(&self) -> &Option<String>
The name of the Auto Scaling group.
sourcepub fn strategy(self, input: RefreshStrategy) -> Self
pub fn strategy(self, input: RefreshStrategy) -> Self
The strategy to use for the instance refresh. The only valid value is Rolling.
sourcepub fn set_strategy(self, input: Option<RefreshStrategy>) -> Self
pub fn set_strategy(self, input: Option<RefreshStrategy>) -> Self
The strategy to use for the instance refresh. The only valid value is Rolling.
sourcepub fn get_strategy(&self) -> &Option<RefreshStrategy>
pub fn get_strategy(&self) -> &Option<RefreshStrategy>
The strategy to use for the instance refresh. The only valid value is Rolling.
sourcepub fn desired_configuration(self, input: DesiredConfiguration) -> Self
pub fn desired_configuration(self, input: DesiredConfiguration) -> Self
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 set_desired_configuration(
self,
input: Option<DesiredConfiguration>
) -> Self
pub fn set_desired_configuration( self, input: Option<DesiredConfiguration> ) -> Self
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 get_desired_configuration(&self) -> &Option<DesiredConfiguration>
pub fn get_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, input: RefreshPreferences) -> Self
pub fn preferences(self, input: RefreshPreferences) -> Self
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
sourcepub fn set_preferences(self, input: Option<RefreshPreferences>) -> Self
pub fn set_preferences(self, input: Option<RefreshPreferences>) -> Self
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
sourcepub fn get_preferences(&self) -> &Option<RefreshPreferences>
pub fn get_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
sourcepub fn build(self) -> Result<StartInstanceRefreshInput, BuildError>
pub fn build(self) -> Result<StartInstanceRefreshInput, BuildError>
Consumes the builder and constructs a StartInstanceRefreshInput.
source§impl StartInstanceRefreshInputBuilder
impl StartInstanceRefreshInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartInstanceRefreshOutput, SdkError<StartInstanceRefreshError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartInstanceRefreshOutput, SdkError<StartInstanceRefreshError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartInstanceRefreshInputBuilder
impl Clone for StartInstanceRefreshInputBuilder
source§fn clone(&self) -> StartInstanceRefreshInputBuilder
fn clone(&self) -> StartInstanceRefreshInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for StartInstanceRefreshInputBuilder
impl Default for StartInstanceRefreshInputBuilder
source§fn default() -> StartInstanceRefreshInputBuilder
fn default() -> StartInstanceRefreshInputBuilder
source§impl PartialEq for StartInstanceRefreshInputBuilder
impl PartialEq for StartInstanceRefreshInputBuilder
source§fn eq(&self, other: &StartInstanceRefreshInputBuilder) -> bool
fn eq(&self, other: &StartInstanceRefreshInputBuilder) -> bool
self and other values to be equal, and is used
by ==.