All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerLivenessProbe.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrunv2.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property failureThreshold Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
 * @property grpc GRPC specifies an action involving a GRPC port.
 * Structure is documented below.
 * @property httpGet HTTPGet specifies the http request to perform.
 * Structure is documented below.
 * @property initialDelaySeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
 * @property periodSeconds How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
 * @property tcpSocket TCPSocketAction describes an action based on opening a socket
 * Structure is documented below.
 * @property timeoutSeconds Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
 */
public data class ServiceTemplateContainerLivenessProbe(
    public val failureThreshold: Int? = null,
    public val grpc: ServiceTemplateContainerLivenessProbeGrpc? = null,
    public val httpGet: ServiceTemplateContainerLivenessProbeHttpGet? = null,
    public val initialDelaySeconds: Int? = null,
    public val periodSeconds: Int? = null,
    public val tcpSocket: ServiceTemplateContainerLivenessProbeTcpSocket? = null,
    public val timeoutSeconds: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceTemplateContainerLivenessProbe): ServiceTemplateContainerLivenessProbe = ServiceTemplateContainerLivenessProbe(
            failureThreshold = javaType.failureThreshold().map({ args0 -> args0 }).orElse(null),
            grpc = javaType.grpc().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerLivenessProbeGrpc.Companion.toKotlin(args0)
                })
            }).orElse(null),
            httpGet = javaType.httpGet().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerLivenessProbeHttpGet.Companion.toKotlin(args0)
                })
            }).orElse(null),
            initialDelaySeconds = javaType.initialDelaySeconds().map({ args0 -> args0 }).orElse(null),
            periodSeconds = javaType.periodSeconds().map({ args0 -> args0 }).orElse(null),
            tcpSocket = javaType.tcpSocket().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerLivenessProbeTcpSocket.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeoutSeconds = javaType.timeoutSeconds().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy