LifecycleHandlerPatchArgs

data class LifecycleHandlerPatchArgs(val exec: Output<ExecActionPatchArgs>? = null, val httpGet: Output<HTTPGetActionPatchArgs>? = null, val sleep: Output<SleepActionPatchArgs>? = null, val tcpSocket: Output<TCPSocketActionPatchArgs>? = null) : ConvertibleToJava<LifecycleHandlerPatchArgs>

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

Constructors

Link copied to clipboard
constructor(exec: Output<ExecActionPatchArgs>? = null, httpGet: Output<HTTPGetActionPatchArgs>? = null, sleep: Output<SleepActionPatchArgs>? = null, tcpSocket: Output<TCPSocketActionPatchArgs>? = null)

Properties

Link copied to clipboard
val exec: Output<ExecActionPatchArgs>? = null

Exec specifies a command to execute in the container.

Link copied to clipboard
val httpGet: Output<HTTPGetActionPatchArgs>? = null

HTTPGet specifies an HTTP GET request to perform.

Link copied to clipboard
val sleep: Output<SleepActionPatchArgs>? = null

Sleep represents a duration that the container should sleep.

Link copied to clipboard
val tcpSocket: Output<TCPSocketActionPatchArgs>? = null

Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.

Functions

Link copied to clipboard
open override fun toJava(): LifecycleHandlerPatchArgs