
org.cdk8s.plus23.Probe Maven / Gradle / Ivy
package org.cdk8s.plus23;
/**
* Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.75.0 (build 63bb957)", date = "2023-02-21T09:46:03.679Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.plus23.$Module.class, fqn = "cdk8s-plus-23.Probe")
public class Probe extends software.amazon.jsii.JsiiObject {
protected Probe(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Probe(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Defines a probe based on a command which is executed within the container.
*
* @param command The command to execute. This parameter is required.
* @param options Options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus23.Probe fromCommand(final @org.jetbrains.annotations.NotNull java.util.List command, final @org.jetbrains.annotations.Nullable org.cdk8s.plus23.CommandProbeOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.Probe.class, "fromCommand", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.Probe.class), new Object[] { java.util.Objects.requireNonNull(command, "command is required"), options });
}
/**
* Defines a probe based on a command which is executed within the container.
*
* @param command The command to execute. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus23.Probe fromCommand(final @org.jetbrains.annotations.NotNull java.util.List command) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.Probe.class, "fromCommand", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.Probe.class), new Object[] { java.util.Objects.requireNonNull(command, "command is required") });
}
/**
* Defines a probe based on an HTTP GET request to the IP address of the container.
*
* @param path The URL path to hit. This parameter is required.
* @param options Options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus23.Probe fromHttpGet(final @org.jetbrains.annotations.NotNull java.lang.String path, final @org.jetbrains.annotations.Nullable org.cdk8s.plus23.HttpGetProbeOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.Probe.class, "fromHttpGet", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.Probe.class), new Object[] { java.util.Objects.requireNonNull(path, "path is required"), options });
}
/**
* Defines a probe based on an HTTP GET request to the IP address of the container.
*
* @param path The URL path to hit. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus23.Probe fromHttpGet(final @org.jetbrains.annotations.NotNull java.lang.String path) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.Probe.class, "fromHttpGet", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.Probe.class), new Object[] { java.util.Objects.requireNonNull(path, "path is required") });
}
/**
* Defines a probe based opening a connection to a TCP socket on the container.
*
* @param options Options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus23.Probe fromTcpSocket(final @org.jetbrains.annotations.Nullable org.cdk8s.plus23.TcpSocketProbeOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.Probe.class, "fromTcpSocket", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.Probe.class), new Object[] { options });
}
/**
* Defines a probe based opening a connection to a TCP socket on the container.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus23.Probe fromTcpSocket() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.Probe.class, "fromTcpSocket", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.Probe.class));
}
}