public static interface CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appmesh.*; VirtualGatewayHealthCheckPolicyProperty virtualGatewayHealthCheckPolicyProperty = VirtualGatewayHealthCheckPolicyProperty.builder() .healthyThreshold(123) .intervalMillis(123) .protocol("protocol") .timeoutMillis(123) .unhealthyThreshold(123) // the properties below are optional .path("path") .port(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder
|
static class |
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Jsii$Proxy
An implementation for
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty |
Modifier and Type | Method and Description |
---|---|
static CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty.Builder |
builder() |
java.lang.Number |
getHealthyThreshold()
The number of consecutive successful health checks that must occur before declaring the listener healthy.
|
java.lang.Number |
getIntervalMillis()
The time period in milliseconds between each health check execution.
|
default java.lang.String |
getPath()
The destination path for the health check request.
|
default java.lang.Number |
getPort()
The destination port for the health check request.
|
java.lang.String |
getProtocol()
The protocol for the health check request.
|
java.lang.Number |
getTimeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
|
java.lang.Number |
getUnhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.
|
java.lang.Number getHealthyThreshold()
java.lang.Number getIntervalMillis()
java.lang.String getProtocol()
If you specify grpc
, then your service must conform to the GRPC Health Checking Protocol .
java.lang.Number getTimeoutMillis()
java.lang.Number getUnhealthyThreshold()
default java.lang.String getPath()
This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
default java.lang.Number getPort()
This port must match the port defined in the PortMapping
for the listener.