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

com.pulumi.azure.containerservice.kotlin.outputs.GroupContainerLivenessProbe.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.outputs

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

/**
 *
 * @property execs Commands to be run to validate container readiness. Changing this forces a new resource to be created.
 * @property failureThreshold How many times to try the probe before restarting the container (liveness probe) or marking the container as unhealthy (readiness probe). Changing this forces a new resource to be created.
 * @property httpGets The definition of the http_get for this container as documented in the `http_get` block below. Changing this forces a new resource to be created.
 * @property initialDelaySeconds Number of seconds after the container has started before liveness or readiness probes are initiated. Changing this forces a new resource to be created.
 * @property periodSeconds How often (in seconds) to perform the probe. Changing this forces a new resource to be created.
 * @property successThreshold Minimum consecutive successes for the probe to be considered successful after having failed. Changing this forces a new resource to be created.
 * @property timeoutSeconds Number of seconds after which the probe times out. Changing this forces a new resource to be created.
 */
public data class GroupContainerLivenessProbe(
    public val execs: List? = null,
    public val failureThreshold: Int? = null,
    public val httpGets: List? = null,
    public val initialDelaySeconds: Int? = null,
    public val periodSeconds: Int? = null,
    public val successThreshold: Int? = null,
    public val timeoutSeconds: Int? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.GroupContainerLivenessProbe):
            GroupContainerLivenessProbe = GroupContainerLivenessProbe(
            execs = javaType.execs().map({ args0 -> args0 }),
            failureThreshold = javaType.failureThreshold().map({ args0 -> args0 }).orElse(null),
            httpGets = javaType.httpGets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerservice.kotlin.outputs.GroupContainerLivenessProbeHttpGet.Companion.toKotlin(args0)
                })
            }),
            initialDelaySeconds = javaType.initialDelaySeconds().map({ args0 -> args0 }).orElse(null),
            periodSeconds = javaType.periodSeconds().map({ args0 -> args0 }).orElse(null),
            successThreshold = javaType.successThreshold().map({ args0 -> args0 }).orElse(null),
            timeoutSeconds = javaType.timeoutSeconds().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy