Struct aws_sdk_lightsail::model::ContainerServiceHealthCheckConfig [−][src]
#[non_exhaustive]pub struct ContainerServiceHealthCheckConfig {
pub healthy_threshold: Option<i32>,
pub unhealthy_threshold: Option<i32>,
pub timeout_seconds: Option<i32>,
pub interval_seconds: Option<i32>,
pub path: Option<String>,
pub success_codes: Option<String>,
}
Expand description
Describes the health check configuration of an Amazon Lightsail container service.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.healthy_threshold: Option<i32>
The number of consecutive health checks successes required before moving the container to
the Healthy
state. The default value is 2
.
unhealthy_threshold: Option<i32>
The number of consecutive health check failures required before moving the container to
the Unhealthy
state. The default value is 2
.
timeout_seconds: Option<i32>
The amount of time, in seconds, during which no response means a failed health check. You
can specify between 2 and 60 seconds. The default value is 2
.
interval_seconds: Option<i32>
The approximate interval, in seconds, between health checks of an individual container.
You can specify between 5 and 300 seconds. The default value is 5
.
path: Option<String>
The path on the container on which to perform the health check. The default value is
/
.
success_codes: Option<String>
The HTTP codes to use when checking for a successful response from a container. You can
specify values between 200
and 499
. You can specify multiple values
(for example, 200,202
) or a range of values (for example,
200-299
).
Implementations
The number of consecutive health checks successes required before moving the container to
the Healthy
state. The default value is 2
.
The number of consecutive health check failures required before moving the container to
the Unhealthy
state. The default value is 2
.
The amount of time, in seconds, during which no response means a failed health check. You
can specify between 2 and 60 seconds. The default value is 2
.
The approximate interval, in seconds, between health checks of an individual container.
You can specify between 5 and 300 seconds. The default value is 5
.
The path on the container on which to perform the health check. The default value is
/
.
The HTTP codes to use when checking for a successful response from a container. You can
specify values between 200
and 499
. You can specify multiple values
(for example, 200,202
) or a range of values (for example,
200-299
).
Creates a new builder-style object to manufacture ContainerServiceHealthCheckConfig
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for ContainerServiceHealthCheckConfig
impl Sync for ContainerServiceHealthCheckConfig
impl Unpin for ContainerServiceHealthCheckConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more