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

com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerStartupProbe.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property failureThreshold Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
 * @property grpcs GRPC specifies an action involving a GRPC port.
 * @property httpGets HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
 * @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 tcpSockets TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
 * @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 GetServiceTemplateContainerStartupProbe(
    public val failureThreshold: Int,
    public val grpcs: List,
    public val httpGets: List,
    public val initialDelaySeconds: Int,
    public val periodSeconds: Int,
    public val tcpSockets: List,
    public val timeoutSeconds: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.GetServiceTemplateContainerStartupProbe): GetServiceTemplateContainerStartupProbe = GetServiceTemplateContainerStartupProbe(
            failureThreshold = javaType.failureThreshold(),
            grpcs = javaType.grpcs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerStartupProbeGrpc.Companion.toKotlin(args0)
                })
            }),
            httpGets = javaType.httpGets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerStartupProbeHttpGet.Companion.toKotlin(args0)
                })
            }),
            initialDelaySeconds = javaType.initialDelaySeconds(),
            periodSeconds = javaType.periodSeconds(),
            tcpSockets = javaType.tcpSockets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerStartupProbeTcpSocket.Companion.toKotlin(args0)
                })
            }),
            timeoutSeconds = javaType.timeoutSeconds(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy