#[non_exhaustive]pub struct HealthCheckConfigBuilder { /* private fields */ }Expand description
A builder for HealthCheckConfig.
Implementations§
source§impl HealthCheckConfigBuilder
impl HealthCheckConfigBuilder
sourcepub fn type(self, input: HealthCheckType) -> Self
pub fn type(self, input: HealthCheckType) -> Self
The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.
You can't change the value of Type after you create a health check.
You can create the following types of health checks:
-
HTTP: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.
-
HTTPS: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTPS request and waits for an HTTP status code of 200 or greater and less than 400.
If you specify HTTPS for the value of
Type, the endpoint must support TLS v1.0 or later. -
TCP: Route 53 tries to establish a TCP connection.
If you specify
TCPforType, don't specify a value forResourcePath.
For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.
This field is required.sourcepub fn set_type(self, input: Option<HealthCheckType>) -> Self
pub fn set_type(self, input: Option<HealthCheckType>) -> Self
The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.
You can't change the value of Type after you create a health check.
You can create the following types of health checks:
-
HTTP: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.
-
HTTPS: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTPS request and waits for an HTTP status code of 200 or greater and less than 400.
If you specify HTTPS for the value of
Type, the endpoint must support TLS v1.0 or later. -
TCP: Route 53 tries to establish a TCP connection.
If you specify
TCPforType, don't specify a value forResourcePath.
For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.
sourcepub fn get_type(&self) -> &Option<HealthCheckType>
pub fn get_type(&self) -> &Option<HealthCheckType>
The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.
You can't change the value of Type after you create a health check.
You can create the following types of health checks:
-
HTTP: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.
-
HTTPS: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTPS request and waits for an HTTP status code of 200 or greater and less than 400.
If you specify HTTPS for the value of
Type, the endpoint must support TLS v1.0 or later. -
TCP: Route 53 tries to establish a TCP connection.
If you specify
TCPforType, don't specify a value forResourcePath.
For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.
sourcepub fn resource_path(self, input: impl Into<String>) -> Self
pub fn resource_path(self, input: impl Into<String>) -> Self
The path that you want Route 53 to request when performing health checks. The path can be any value that your endpoint returns an HTTP status code of a 2xx or 3xx format for when the endpoint is healthy. An example file is /docs/route53-health-check.html. Route 53 automatically adds the DNS name for the service. If you don't specify a value for ResourcePath, the default value is /.
If you specify TCP for Type, you must not specify a value for ResourcePath.
sourcepub fn set_resource_path(self, input: Option<String>) -> Self
pub fn set_resource_path(self, input: Option<String>) -> Self
The path that you want Route 53 to request when performing health checks. The path can be any value that your endpoint returns an HTTP status code of a 2xx or 3xx format for when the endpoint is healthy. An example file is /docs/route53-health-check.html. Route 53 automatically adds the DNS name for the service. If you don't specify a value for ResourcePath, the default value is /.
If you specify TCP for Type, you must not specify a value for ResourcePath.
sourcepub fn get_resource_path(&self) -> &Option<String>
pub fn get_resource_path(&self) -> &Option<String>
The path that you want Route 53 to request when performing health checks. The path can be any value that your endpoint returns an HTTP status code of a 2xx or 3xx format for when the endpoint is healthy. An example file is /docs/route53-health-check.html. Route 53 automatically adds the DNS name for the service. If you don't specify a value for ResourcePath, the default value is /.
If you specify TCP for Type, you must not specify a value for ResourcePath.
sourcepub fn failure_threshold(self, input: i32) -> Self
pub fn failure_threshold(self, input: i32) -> Self
The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or the other way around. For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.
sourcepub fn set_failure_threshold(self, input: Option<i32>) -> Self
pub fn set_failure_threshold(self, input: Option<i32>) -> Self
The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or the other way around. For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.
sourcepub fn get_failure_threshold(&self) -> &Option<i32>
pub fn get_failure_threshold(&self) -> &Option<i32>
The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or the other way around. For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.
sourcepub fn build(self) -> Result<HealthCheckConfig, BuildError>
pub fn build(self) -> Result<HealthCheckConfig, BuildError>
Consumes the builder and constructs a HealthCheckConfig.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for HealthCheckConfigBuilder
impl Clone for HealthCheckConfigBuilder
source§fn clone(&self) -> HealthCheckConfigBuilder
fn clone(&self) -> HealthCheckConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HealthCheckConfigBuilder
impl Debug for HealthCheckConfigBuilder
source§impl Default for HealthCheckConfigBuilder
impl Default for HealthCheckConfigBuilder
source§fn default() -> HealthCheckConfigBuilder
fn default() -> HealthCheckConfigBuilder
source§impl PartialEq for HealthCheckConfigBuilder
impl PartialEq for HealthCheckConfigBuilder
source§fn eq(&self, other: &HealthCheckConfigBuilder) -> bool
fn eq(&self, other: &HealthCheckConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.