#[non_exhaustive]pub struct InstanceHealthSummaryBuilder { /* private fields */ }
Expand description
A builder for InstanceHealthSummary
.
Implementations§
source§impl InstanceHealthSummaryBuilder
impl InstanceHealthSummaryBuilder
sourcepub fn instance_name(self, input: impl Into<String>) -> Self
pub fn instance_name(self, input: impl Into<String>) -> Self
The name of the Lightsail instance for which you are requesting health check data.
sourcepub fn set_instance_name(self, input: Option<String>) -> Self
pub fn set_instance_name(self, input: Option<String>) -> Self
The name of the Lightsail instance for which you are requesting health check data.
sourcepub fn get_instance_name(&self) -> &Option<String>
pub fn get_instance_name(&self) -> &Option<String>
The name of the Lightsail instance for which you are requesting health check data.
sourcepub fn instance_health(self, input: InstanceHealthState) -> Self
pub fn instance_health(self, input: InstanceHealthState) -> Self
Describes the overall instance health. Valid values are below.
sourcepub fn set_instance_health(self, input: Option<InstanceHealthState>) -> Self
pub fn set_instance_health(self, input: Option<InstanceHealthState>) -> Self
Describes the overall instance health. Valid values are below.
sourcepub fn get_instance_health(&self) -> &Option<InstanceHealthState>
pub fn get_instance_health(&self) -> &Option<InstanceHealthState>
Describes the overall instance health. Valid values are below.
sourcepub fn instance_health_reason(self, input: InstanceHealthReason) -> Self
pub fn instance_health_reason(self, input: InstanceHealthReason) -> Self
More information about the instance health. If the instanceHealth
is healthy
, then an instanceHealthReason
value is not provided.
If instanceHealth
is initial
, the instanceHealthReason
value can be one of the following:
-
Lb.RegistrationInProgress
- The target instance is in the process of being registered with the load balancer. -
Lb.InitialHealthChecking
- The Lightsail load balancer is still sending the target instance the minimum number of health checks required to determine its health status.
If instanceHealth
is unhealthy
, the instanceHealthReason
value can be one of the following:
-
Instance.ResponseCodeMismatch
- The health checks did not return an expected HTTP code. -
Instance.Timeout
- The health check requests timed out. -
Instance.FailedHealthChecks
- The health checks failed because the connection to the target instance timed out, the target instance response was malformed, or the target instance failed the health check for an unknown reason. -
Lb.InternalError
- The health checks failed due to an internal error.
If instanceHealth
is unused
, the instanceHealthReason
value can be one of the following:
-
Instance.NotRegistered
- The target instance is not registered with the target group. -
Instance.NotInUse
- The target group is not used by any load balancer, or the target instance is in an Availability Zone that is not enabled for its load balancer. -
Instance.IpUnusable
- The target IP address is reserved for use by a Lightsail load balancer. -
Instance.InvalidState
- The target is in the stopped or terminated state.
If instanceHealth
is draining
, the instanceHealthReason
value can be one of the following:
-
Instance.DeregistrationInProgress
- The target instance is in the process of being deregistered and the deregistration delay period has not expired.
sourcepub fn set_instance_health_reason(
self,
input: Option<InstanceHealthReason>
) -> Self
pub fn set_instance_health_reason( self, input: Option<InstanceHealthReason> ) -> Self
More information about the instance health. If the instanceHealth
is healthy
, then an instanceHealthReason
value is not provided.
If instanceHealth
is initial
, the instanceHealthReason
value can be one of the following:
-
Lb.RegistrationInProgress
- The target instance is in the process of being registered with the load balancer. -
Lb.InitialHealthChecking
- The Lightsail load balancer is still sending the target instance the minimum number of health checks required to determine its health status.
If instanceHealth
is unhealthy
, the instanceHealthReason
value can be one of the following:
-
Instance.ResponseCodeMismatch
- The health checks did not return an expected HTTP code. -
Instance.Timeout
- The health check requests timed out. -
Instance.FailedHealthChecks
- The health checks failed because the connection to the target instance timed out, the target instance response was malformed, or the target instance failed the health check for an unknown reason. -
Lb.InternalError
- The health checks failed due to an internal error.
If instanceHealth
is unused
, the instanceHealthReason
value can be one of the following:
-
Instance.NotRegistered
- The target instance is not registered with the target group. -
Instance.NotInUse
- The target group is not used by any load balancer, or the target instance is in an Availability Zone that is not enabled for its load balancer. -
Instance.IpUnusable
- The target IP address is reserved for use by a Lightsail load balancer. -
Instance.InvalidState
- The target is in the stopped or terminated state.
If instanceHealth
is draining
, the instanceHealthReason
value can be one of the following:
-
Instance.DeregistrationInProgress
- The target instance is in the process of being deregistered and the deregistration delay period has not expired.
sourcepub fn get_instance_health_reason(&self) -> &Option<InstanceHealthReason>
pub fn get_instance_health_reason(&self) -> &Option<InstanceHealthReason>
More information about the instance health. If the instanceHealth
is healthy
, then an instanceHealthReason
value is not provided.
If instanceHealth
is initial
, the instanceHealthReason
value can be one of the following:
-
Lb.RegistrationInProgress
- The target instance is in the process of being registered with the load balancer. -
Lb.InitialHealthChecking
- The Lightsail load balancer is still sending the target instance the minimum number of health checks required to determine its health status.
If instanceHealth
is unhealthy
, the instanceHealthReason
value can be one of the following:
-
Instance.ResponseCodeMismatch
- The health checks did not return an expected HTTP code. -
Instance.Timeout
- The health check requests timed out. -
Instance.FailedHealthChecks
- The health checks failed because the connection to the target instance timed out, the target instance response was malformed, or the target instance failed the health check for an unknown reason. -
Lb.InternalError
- The health checks failed due to an internal error.
If instanceHealth
is unused
, the instanceHealthReason
value can be one of the following:
-
Instance.NotRegistered
- The target instance is not registered with the target group. -
Instance.NotInUse
- The target group is not used by any load balancer, or the target instance is in an Availability Zone that is not enabled for its load balancer. -
Instance.IpUnusable
- The target IP address is reserved for use by a Lightsail load balancer. -
Instance.InvalidState
- The target is in the stopped or terminated state.
If instanceHealth
is draining
, the instanceHealthReason
value can be one of the following:
-
Instance.DeregistrationInProgress
- The target instance is in the process of being deregistered and the deregistration delay period has not expired.
sourcepub fn build(self) -> InstanceHealthSummary
pub fn build(self) -> InstanceHealthSummary
Consumes the builder and constructs a InstanceHealthSummary
.
Trait Implementations§
source§impl Clone for InstanceHealthSummaryBuilder
impl Clone for InstanceHealthSummaryBuilder
source§fn clone(&self) -> InstanceHealthSummaryBuilder
fn clone(&self) -> InstanceHealthSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceHealthSummaryBuilder
impl Debug for InstanceHealthSummaryBuilder
source§impl Default for InstanceHealthSummaryBuilder
impl Default for InstanceHealthSummaryBuilder
source§fn default() -> InstanceHealthSummaryBuilder
fn default() -> InstanceHealthSummaryBuilder
source§impl PartialEq for InstanceHealthSummaryBuilder
impl PartialEq for InstanceHealthSummaryBuilder
source§fn eq(&self, other: &InstanceHealthSummaryBuilder) -> bool
fn eq(&self, other: &InstanceHealthSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceHealthSummaryBuilder
Auto Trait Implementations§
impl Freeze for InstanceHealthSummaryBuilder
impl RefUnwindSafe for InstanceHealthSummaryBuilder
impl Send for InstanceHealthSummaryBuilder
impl Sync for InstanceHealthSummaryBuilder
impl Unpin for InstanceHealthSummaryBuilder
impl UnwindSafe for InstanceHealthSummaryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more