HttpHealthCheckOptions
- class aws_cdk.aws_appmesh.HttpHealthCheckOptions(*, healthy_threshold=None, interval=None, path=None, timeout=None, unhealthy_threshold=None)
- Bases: - object- Properties used to define HTTP Based healthchecks. - Parameters:
- healthy_threshold ( - Union[- int,- float,- None]) – The number of consecutive successful health checks that must occur before declaring listener healthy. Default: 2
- interval ( - Optional[- Duration]) – The time period between each health check execution. Default: Duration.seconds(5)
- path ( - Optional[- str]) – The destination path for the health check request. Default: /
- timeout ( - Optional[- Duration]) – The amount of time to wait when receiving a response from the health check. Default: Duration.seconds(2)
- unhealthy_threshold ( - Union[- int,- float,- None]) – The number of consecutive failed health checks that must occur before declaring a listener unhealthy. Default: - 2
 
- ExampleMetadata:
- infused 
 - Example: - # mesh: appmesh.Mesh vpc = ec2.Vpc(self, "vpc") namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace", vpc=vpc, name="domain.local" ) service = namespace.create_service("Svc") node = mesh.add_virtual_node("virtual-node", service_discovery=appmesh.ServiceDiscovery.cloud_map(service), listeners=[appmesh.VirtualNodeListener.http( port=8081, health_check=appmesh.HealthCheck.http( healthy_threshold=3, interval=Duration.seconds(5), # minimum path="/health-check-path", timeout=Duration.seconds(2), # minimum unhealthy_threshold=2 ) )], access_log=appmesh.AccessLog.from_file_path("/dev/stdout") ) - Attributes - healthy_threshold
- The number of consecutive successful health checks that must occur before declaring listener healthy. - Default:
- 2 
 
 - interval
- The time period between each health check execution. - Default:
- Duration.seconds(5) 
 
 - path
- The destination path for the health check request. - Default:
- / 
 
 - timeout
- The amount of time to wait when receiving a response from the health check. - Default:
- Duration.seconds(2) 
 
 - unhealthy_threshold
- The number of consecutive failed health checks that must occur before declaring a listener unhealthy. - Default:
- 2