Struct aws_sdk_autoscaling::input::SetInstanceHealthInput
source · #[non_exhaustive]pub struct SetInstanceHealthInput { /* private fields */ }Implementations§
source§impl SetInstanceHealthInput
impl SetInstanceHealthInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetInstanceHealth, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetInstanceHealth, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetInstanceHealth>
Examples found in repository?
7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetInstanceHealth,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetInstanceHealthError>,
> {
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::SetInstanceHealthOutput,
aws_smithy_http::result::SdkError<crate::error::SetInstanceHealthError>,
> {
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 SetInstanceHealthInput.
source§impl SetInstanceHealthInput
impl SetInstanceHealthInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn health_status(&self) -> Option<&str>
pub fn health_status(&self) -> Option<&str>
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) -> Option<bool>
pub fn should_respect_grace_period(&self) -> Option<bool>
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 SetInstanceHealthInput
impl Clone for SetInstanceHealthInput
source§fn clone(&self) -> SetInstanceHealthInput
fn clone(&self) -> SetInstanceHealthInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more