Class CfnApplicationStatusCheck.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnApplicationStatusCheck.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationStatusCheck>
- Enclosing class:
CfnApplicationStatusCheck
@Stability(Stable)
public static final class CfnApplicationStatusCheck.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationStatusCheck>
A fluent builder for
CfnApplicationStatusCheck.-
Method Summary
Modifier and TypeMethodDescriptionaggregation(String aggregation) Whether this check is included in the rolled-up application status.build()deviceIndex(Number deviceIndex) The network interface device index used for the health check.failureThreshold(Number failureThreshold) The number of consecutive failed probes required to mark the instance unhealthy.healthCheckPaths(List<? extends Object> healthCheckPaths) The source/destination network paths used for the health check.healthCheckPaths(IResolvable healthCheckPaths) The source/destination network paths used for the health check.initializationGracePeriodSeconds(Number initializationGracePeriodSeconds) Seconds to wait after instance launch before beginning health checks.The interval, in seconds, between health check probes.The IP scope used for the health check.The IP version used for the health check.The HTTP path used for the health check.The port used for the health check.The network protocol used for the health check.statusCodeMatcher(String statusCodeMatcher) The HTTP status codes considered successful (e.g., "200-299").successThreshold(Number successThreshold) The number of consecutive successful probes required to mark the instance healthy.Tags to apply to the application status check.The timeout, in seconds, for each health check probe.
-
Method Details
-
create
@Stability(Stable) public static CfnApplicationStatusCheck.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnApplicationStatusCheck.Builder.
-
port
The port used for the health check.- Parameters:
port- The port used for the health check. This parameter is required.- Returns:
this- See Also:
-
protocol
The network protocol used for the health check.- Parameters:
protocol- The network protocol used for the health check. This parameter is required.- Returns:
this- See Also:
-
aggregation
Whether this check is included in the rolled-up application status.- Parameters:
aggregation- Whether this check is included in the rolled-up application status. This parameter is required.- Returns:
this- See Also:
-
deviceIndex
The network interface device index used for the health check.- Parameters:
deviceIndex- The network interface device index used for the health check. This parameter is required.- Returns:
this- See Also:
-
failureThreshold
@Stability(Stable) public CfnApplicationStatusCheck.Builder failureThreshold(Number failureThreshold) The number of consecutive failed probes required to mark the instance unhealthy.- Parameters:
failureThreshold- The number of consecutive failed probes required to mark the instance unhealthy. This parameter is required.- Returns:
this- See Also:
-
healthCheckPaths
@Stability(Stable) public CfnApplicationStatusCheck.Builder healthCheckPaths(IResolvable healthCheckPaths) The source/destination network paths used for the health check.- Parameters:
healthCheckPaths- The source/destination network paths used for the health check. This parameter is required.- Returns:
this- See Also:
-
healthCheckPaths
@Stability(Stable) public CfnApplicationStatusCheck.Builder healthCheckPaths(List<? extends Object> healthCheckPaths) The source/destination network paths used for the health check.- Parameters:
healthCheckPaths- The source/destination network paths used for the health check. This parameter is required.- Returns:
this- See Also:
-
initializationGracePeriodSeconds
@Stability(Stable) public CfnApplicationStatusCheck.Builder initializationGracePeriodSeconds(Number initializationGracePeriodSeconds) Seconds to wait after instance launch before beginning health checks.- Parameters:
initializationGracePeriodSeconds- Seconds to wait after instance launch before beginning health checks. This parameter is required.- Returns:
this- See Also:
-
interval
The interval, in seconds, between health check probes.- Parameters:
interval- The interval, in seconds, between health check probes. This parameter is required.- Returns:
this- See Also:
-
ipScope
The IP scope used for the health check.- Parameters:
ipScope- The IP scope used for the health check. This parameter is required.- Returns:
this- See Also:
-
ipVersion
The IP version used for the health check.- Parameters:
ipVersion- The IP version used for the health check. This parameter is required.- Returns:
this- See Also:
-
path
The HTTP path used for the health check.- Parameters:
path- The HTTP path used for the health check. This parameter is required.- Returns:
this- See Also:
-
statusCodeMatcher
@Stability(Stable) public CfnApplicationStatusCheck.Builder statusCodeMatcher(String statusCodeMatcher) The HTTP status codes considered successful (e.g., "200-299").- Parameters:
statusCodeMatcher- The HTTP status codes considered successful (e.g., "200-299"). This parameter is required.- Returns:
this- See Also:
-
successThreshold
@Stability(Stable) public CfnApplicationStatusCheck.Builder successThreshold(Number successThreshold) The number of consecutive successful probes required to mark the instance healthy.- Parameters:
successThreshold- The number of consecutive successful probes required to mark the instance healthy. This parameter is required.- Returns:
this- See Also:
-
tags
Tags to apply to the application status check.- Parameters:
tags- Tags to apply to the application status check. This parameter is required.- Returns:
this- See Also:
-
timeout
The timeout, in seconds, for each health check probe.- Parameters:
timeout- The timeout, in seconds, for each health check probe. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationStatusCheck>- Returns:
- a newly built instance of
CfnApplicationStatusCheck.
-