pub struct SetInstanceHealth { /* private fields */ }Expand description
Fluent builder constructing a request to SetInstanceHealth.
Sets the health status of the specified instance.
For more information, see Health checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.
Implementations§
source§impl SetInstanceHealth
impl SetInstanceHealth
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<SetInstanceHealth, AwsResponseRetryClassifier>, SdkError<SetInstanceHealthError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<SetInstanceHealth, AwsResponseRetryClassifier>, SdkError<SetInstanceHealthError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<SetInstanceHealthOutput, SdkError<SetInstanceHealthError>>
pub async fn send(
self
) -> Result<SetInstanceHealthOutput, SdkError<SetInstanceHealthError>>
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, which can be set when configuring the client.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn health_status(self, input: impl Into<String>) -> Self
pub fn health_status(self, input: impl Into<String>) -> Self
The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.
sourcepub fn set_health_status(self, input: Option<String>) -> Self
pub fn set_health_status(self, input: Option<String>) -> Self
The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.
sourcepub fn should_respect_grace_period(self, input: bool) -> Self
pub fn should_respect_grace_period(self, input: bool) -> Self
If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.
For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.
sourcepub fn set_should_respect_grace_period(self, input: Option<bool>) -> Self
pub fn set_should_respect_grace_period(self, input: Option<bool>) -> Self
If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.
For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.
Trait Implementations§
source§impl Clone for SetInstanceHealth
impl Clone for SetInstanceHealth
source§fn clone(&self) -> SetInstanceHealth
fn clone(&self) -> SetInstanceHealth
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more