Class CfnService.HealthCheckConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.HealthCheckConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.HealthCheckConfigurationProperty>
- Enclosing interface:
CfnService.HealthCheckConfigurationProperty
@Stability(Stable)
public static final class CfnService.HealthCheckConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.HealthCheckConfigurationProperty>
A builder for
CfnService.HealthCheckConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyThreshold(Number healthyThreshold) Sets the value ofCfnService.HealthCheckConfigurationProperty.getHealthyThreshold()Sets the value ofCfnService.HealthCheckConfigurationProperty.getInterval()Sets the value ofCfnService.HealthCheckConfigurationProperty.getPath()Sets the value ofCfnService.HealthCheckConfigurationProperty.getProtocol()Sets the value ofCfnService.HealthCheckConfigurationProperty.getTimeout()unhealthyThreshold(Number unhealthyThreshold) Sets the value ofCfnService.HealthCheckConfigurationProperty.getUnhealthyThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyThreshold
@Stability(Stable) public CfnService.HealthCheckConfigurationProperty.Builder healthyThreshold(Number healthyThreshold) Sets the value ofCfnService.HealthCheckConfigurationProperty.getHealthyThreshold()- Parameters:
healthyThreshold- The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Default:1- Returns:
this
-
interval
@Stability(Stable) public CfnService.HealthCheckConfigurationProperty.Builder interval(Number interval) Sets the value ofCfnService.HealthCheckConfigurationProperty.getInterval()- Parameters:
interval- The time interval, in seconds, between health checks. Default:5- Returns:
this
-
path
Sets the value ofCfnService.HealthCheckConfigurationProperty.getPath()- Parameters:
path- The URL that health check requests are sent to.Pathis only applicable when you setProtocoltoHTTP.Default:
"/"- Returns:
this
-
protocol
@Stability(Stable) public CfnService.HealthCheckConfigurationProperty.Builder protocol(String protocol) Sets the value ofCfnService.HealthCheckConfigurationProperty.getProtocol()- Parameters:
protocol- The IP protocol that App Runner uses to perform health checks for your service. If you setProtocoltoHTTP, App Runner sends health check requests to the HTTP path specified byPath.Default:
TCP- Returns:
this
-
timeout
@Stability(Stable) public CfnService.HealthCheckConfigurationProperty.Builder timeout(Number timeout) Sets the value ofCfnService.HealthCheckConfigurationProperty.getTimeout()- Parameters:
timeout- The time, in seconds, to wait for a health check response before deciding it failed. Default:2- Returns:
this
-
unhealthyThreshold
@Stability(Stable) public CfnService.HealthCheckConfigurationProperty.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofCfnService.HealthCheckConfigurationProperty.getUnhealthyThreshold()- Parameters:
unhealthyThreshold- The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Default:5- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.HealthCheckConfigurationProperty>- Returns:
- a new instance of
CfnService.HealthCheckConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-