Interface HealthCheckConfiguration.Builder

    • Method Detail

      • protocol

        HealthCheckConfiguration.Builder protocol​(String protocol)

        The IP protocol that App Runner uses to perform health checks for your service.

        If you set Protocol to HTTP, App Runner sends health check requests to the HTTP path specified by Path.

        Default: TCP

        Parameters:
        protocol - The IP protocol that App Runner uses to perform health checks for your service.

        If you set Protocol to HTTP, App Runner sends health check requests to the HTTP path specified by Path.

        Default: TCP

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HealthCheckProtocol, HealthCheckProtocol
      • protocol

        HealthCheckConfiguration.Builder protocol​(HealthCheckProtocol protocol)

        The IP protocol that App Runner uses to perform health checks for your service.

        If you set Protocol to HTTP, App Runner sends health check requests to the HTTP path specified by Path.

        Default: TCP

        Parameters:
        protocol - The IP protocol that App Runner uses to perform health checks for your service.

        If you set Protocol to HTTP, App Runner sends health check requests to the HTTP path specified by Path.

        Default: TCP

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HealthCheckProtocol, HealthCheckProtocol
      • path

        HealthCheckConfiguration.Builder path​(String path)

        The URL that health check requests are sent to.

        Path is only applicable when you set Protocol to HTTP.

        Default: "/"

        Parameters:
        path - The URL that health check requests are sent to.

        Path is only applicable when you set Protocol to HTTP.

        Default: "/"

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • interval

        HealthCheckConfiguration.Builder interval​(Integer interval)

        The time interval, in seconds, between health checks.

        Default: 5

        Parameters:
        interval - The time interval, in seconds, between health checks.

        Default: 5

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeout

        HealthCheckConfiguration.Builder timeout​(Integer timeout)

        The time, in seconds, to wait for a health check response before deciding it failed.

        Default: 2

        Parameters:
        timeout - The time, in seconds, to wait for a health check response before deciding it failed.

        Default: 2

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • healthyThreshold

        HealthCheckConfiguration.Builder healthyThreshold​(Integer healthyThreshold)

        The number of consecutive checks that must succeed before App Runner decides that the service is healthy.

        Default: 1

        Parameters:
        healthyThreshold - The number of consecutive checks that must succeed before App Runner decides that the service is healthy.

        Default: 1

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • unhealthyThreshold

        HealthCheckConfiguration.Builder unhealthyThreshold​(Integer unhealthyThreshold)

        The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.

        Default: 5

        Parameters:
        unhealthyThreshold - The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.

        Default: 5

        Returns:
        Returns a reference to this object so that method calls can be chained together.