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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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