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();
 
  • 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

      @Stability(Experimental) @NotNull public static HealthCheck 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

      @Stability(Experimental) @NotNull public static HealthCheck tcp()
      (experimental) Construct a TCP health check.
    • bind

      @Stability(Experimental) @NotNull public CfnService.HealthCheckConfigurationProperty bind()
    • getHealthCheckProtocolType

      @Stability(Experimental) @NotNull public HealthCheckProtocolType getHealthCheckProtocolType()
    • getHealthyThreshold

      @Stability(Experimental) @NotNull public Number getHealthyThreshold()
    • getInterval

      @Stability(Experimental) @NotNull public Duration getInterval()
    • getTimeout

      @Stability(Experimental) @NotNull public Duration getTimeout()
    • getUnhealthyThreshold

      @Stability(Experimental) @NotNull public Number getUnhealthyThreshold()
    • getPath

      @Stability(Experimental) @Nullable public String getPath()