@Stability(value=Stable) public static final class CfnService.HealthCheckConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnService.HealthCheckConfigProperty>
CfnService.HealthCheckConfigProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnService.HealthCheckConfigProperty |
build()
Builds the configured instance.
|
CfnService.HealthCheckConfigProperty.Builder |
failureThreshold(Number failureThreshold)
Sets the value of
CfnService.HealthCheckConfigProperty.getFailureThreshold() |
CfnService.HealthCheckConfigProperty.Builder |
resourcePath(String resourcePath)
Sets the value of
CfnService.HealthCheckConfigProperty.getResourcePath() |
CfnService.HealthCheckConfigProperty.Builder |
type(String type)
Sets the value of
CfnService.HealthCheckConfigProperty.getType() |
@Stability(value=Stable) public CfnService.HealthCheckConfigProperty.Builder type(String type)
CfnService.HealthCheckConfigProperty.getType()type - The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. This parameter is required.
You can't change the value of
Typeafter you create a health check.
You can create the following types of health checks:
If you specify HTTPS for the value of
Type, the endpoint must support TLS v1.0 or later.
If you specify TCP for Type , don't specify a value for ResourcePath .
For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide .
this@Stability(value=Stable) public CfnService.HealthCheckConfigProperty.Builder failureThreshold(Number failureThreshold)
CfnService.HealthCheckConfigProperty.getFailureThreshold()failureThreshold - 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 .this@Stability(value=Stable) public CfnService.HealthCheckConfigProperty.Builder resourcePath(String resourcePath)
CfnService.HealthCheckConfigProperty.getResourcePath()resourcePath - 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 .
this@Stability(value=Stable) public CfnService.HealthCheckConfigProperty build()
build in interface software.amazon.jsii.Builder<CfnService.HealthCheckConfigProperty>CfnService.HealthCheckConfigPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.