#[non_exhaustive]pub struct StartInstanceRefreshInput { /* private fields */ }Implementations§
source§impl StartInstanceRefreshInput
impl StartInstanceRefreshInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartInstanceRefresh, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartInstanceRefresh, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartInstanceRefresh>
Examples found in repository?
7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartInstanceRefresh,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartInstanceRefreshError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartInstanceRefreshOutput,
aws_smithy_http::result::SdkError<crate::error::StartInstanceRefreshError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartInstanceRefreshInput.
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.
A rolling update helps you update your instances gradually. A rolling update can fail due to failed health checks or if instances are on standby or are protected from scale in. If the rolling update process fails, any instances that are replaced are not rolled back to their previous configuration.
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 version. 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>
Set of preferences associated with the instance refresh request. If not provided, the default values are used.
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 more