Class ServiceHealthCheckConfiguration


  • public final class ServiceHealthCheckConfiguration
    extends java.lang.Object
    • Method Detail

      • healthyThreshold

        public java.util.Optional<java.lang.Integer> healthyThreshold()
        Returns:
        Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
      • interval

        public java.util.Optional<java.lang.Integer> interval()
        Returns:
        Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
      • path

        public java.util.Optional<java.lang.String> path()
        Returns:
        URL to send requests to for health checks. Defaults to `/`. Minimum length of 0. Maximum length of 51200.
      • protocol

        public java.util.Optional<java.lang.String> protocol()
        Returns:
        IP protocol that App Runner uses to perform health checks for your service. Valid values: `TCP`, `HTTP`. Defaults to `TCP`. If you set protocol to `HTTP`, App Runner sends health check requests to the HTTP path specified by `path`.
      • timeout

        public java.util.Optional<java.lang.Integer> timeout()
        Returns:
        Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
      • unhealthyThreshold

        public java.util.Optional<java.lang.Integer> unhealthyThreshold()
        Returns:
        Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.