Interface CfnContainerGroupDefinition.ContainerHealthCheckProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinition.ContainerHealthCheckProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinition
@Stability(Stable)
public static interface CfnContainerGroupDefinition.ContainerHealthCheckProperty
extends software.amazon.jsii.JsiiSerializable
Specifies how the process manager checks the health of containers.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
ContainerHealthCheckProperty containerHealthCheckProperty = ContainerHealthCheckProperty.builder()
.command(List.of("command"))
// the properties below are optional
.interval(123)
.retries(123)
.startPeriod(123)
.timeout(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainerGroupDefinition.ContainerHealthCheckPropertystatic final classAn implementation forCfnContainerGroupDefinition.ContainerHealthCheckProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A string array representing the command that the container runs to determine if it is healthy.default NumberHow often (in seconds) the health is checked.default NumberHow many times the process manager will retry the command after a timeout.default NumberThe optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed.default NumberHow many seconds the process manager allows the command to run before canceling it.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCommand
A string array representing the command that the container runs to determine if it is healthy.- See Also:
-
getInterval
How often (in seconds) the health is checked.- See Also:
-
getRetries
How many times the process manager will retry the command after a timeout.(The first run of the command does not count as a retry.)
- See Also:
-
getStartPeriod
The optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed.- See Also:
-
getTimeout
How many seconds the process manager allows the command to run before canceling it.- See Also:
-
builder
@Stability(Stable) static CfnContainerGroupDefinition.ContainerHealthCheckProperty.Builder builder()
-