Class HealthCheck
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apprunner.alpha.HealthCheck
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:25.619Z")
@Stability(Experimental)
public class HealthCheck
extends software.amazon.jsii.JsiiObject
(experimental) Contains static factory methods for creating health checks for different protocols.
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
HealthCheck
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HealthCheck
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind()
getPath()
static HealthCheck
http()
(experimental) Construct a HTTP health check.static HealthCheck
http
(HttpHealthCheckOptions options) (experimental) Construct a HTTP health check.static HealthCheck
tcp()
(experimental) Construct a TCP health check.static HealthCheck
tcp
(TcpHealthCheckOptions options) (experimental) Construct a TCP health check.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HealthCheck
protected HealthCheck(software.amazon.jsii.JsiiObjectRef objRef) -
HealthCheck
protected HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
http
@Stability(Experimental) @NotNull public static HealthCheck http(@Nullable HttpHealthCheckOptions options) (experimental) Construct a HTTP health check.- Parameters:
options
-
-
http
(experimental) Construct a HTTP health check. -
tcp
@Stability(Experimental) @NotNull public static HealthCheck tcp(@Nullable TcpHealthCheckOptions options) (experimental) Construct a TCP health check.- Parameters:
options
-
-
tcp
(experimental) Construct a TCP health check. -
bind
-
getHealthCheckProtocolType
-
getHealthyThreshold
-
getInterval
-
getTimeout
-
getUnhealthyThreshold
-
getPath
-