Interface AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder

    • Method Detail

      • command

        AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder command​(String... command)

        The command that the container runs to determine whether it is healthy.

        Parameters:
        command - The command that the container runs to determine whether it is healthy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • interval

        AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder interval​(Integer interval)

        The time period in seconds between each health check execution. The default value is 30 seconds.

        Parameters:
        interval - The time period in seconds between each health check execution. The default value is 30 seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • retries

        AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder retries​(Integer retries)

        The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.

        Parameters:
        retries - The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startPeriod

        AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder startPeriod​(Integer startPeriod)

        The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.

        Parameters:
        startPeriod - The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeout

        AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder timeout​(Integer timeout)

        The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.

        Parameters:
        timeout - The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
        Returns:
        Returns a reference to this object so that method calls can be chained together.