Interface HttpHealthCheckOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpHealthCheckOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:33.849Z")
@Stability(Experimental)
public interface HttpHealthCheckOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties used to define HTTP Based healthchecks.
Example:
Service.Builder.create(this, "Service")
.source(Source.fromEcrPublic(EcrPublicProps.builder()
.imageConfiguration(ImageConfiguration.builder().port(8000).build())
.imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
.build()))
.healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
.healthyThreshold(5)
.interval(Duration.seconds(10))
.path("/")
.timeout(Duration.seconds(10))
.unhealthyThreshold(10)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpHealthCheckOptionsstatic final classAn implementation forHttpHealthCheckOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default Number(experimental) The number of consecutive checks that must succeed before App Runner decides that the service is healthy.default Duration(experimental) The time interval, in seconds, between health checks.default StringgetPath()(experimental) The URL that health check requests are sent to.default Duration(experimental) The time, in seconds, to wait for a health check response before deciding it failed.default Number(experimental) The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHealthyThreshold
(experimental) The number of consecutive checks that must succeed before App Runner decides that the service is healthy.Default: 1
-
getInterval
(experimental) The time interval, in seconds, between health checks.Default: Duration.seconds(5)
-
getPath
(experimental) The URL that health check requests are sent to.Default: /
-
getTimeout
(experimental) The time, in seconds, to wait for a health check response before deciding it failed.Default: Duration.seconds(2)
-
getUnhealthyThreshold
(experimental) The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.Default: 5
-
builder
- Returns:
- a
HttpHealthCheckOptions.BuilderofHttpHealthCheckOptions
-