Class CfnService.HealthCheckCustomConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CfnService.HealthCheckCustomConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.HealthCheckCustomConfigProperty>
- Enclosing interface:
CfnService.HealthCheckCustomConfigProperty
@Stability(Stable)
public static final class CfnService.HealthCheckCustomConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.HealthCheckCustomConfigProperty>
A builder for
CfnService.HealthCheckCustomConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureThreshold
(Number failureThreshold) Sets the value ofCfnService.HealthCheckCustomConfigProperty.getFailureThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureThreshold
@Stability(Stable) public CfnService.HealthCheckCustomConfigProperty.Builder failureThreshold(Number failureThreshold) Sets the value ofCfnService.HealthCheckCustomConfigProperty.getFailureThreshold()
- Parameters:
failureThreshold
-
AWS Cloud Map waits for approximately 30 seconds after receiving anThis parameter is no longer supported and is always set to 1.
UpdateInstanceCustomHealthStatus
request before changing the status of the service instance.The number of 30-second intervals that you want AWS Cloud Map to wait after receiving an
UpdateInstanceCustomHealthStatus
request before it changes the health status of a service instance.Sending a second or subsequent
UpdateInstanceCustomHealthStatus
request with the same value before 30 seconds has passed doesn't accelerate the change. AWS Cloud Map still waits30
seconds after the first request to make the change.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.HealthCheckCustomConfigProperty>
- Returns:
- a new instance of
CfnService.HealthCheckCustomConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-