![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerapp.kotlin.inputs.JobTemplateContainerLivenessProbeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.JobTemplateContainerLivenessProbeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property failureCountThreshold The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
* @property headers A `header` block as detailed below.
* @property host The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes.
* @property initialDelay The time in seconds to wait after the container has started before the probe is started.
* @property intervalSeconds How often, in seconds, the probe should run. Possible values are in the range `1` - `240`. Defaults to `10`.
* @property path The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.
* @property port The port number on which to connect. Possible values are between `1` and `65535`.
* @property terminationGracePeriodSeconds The time in seconds after the container is sent the termination signal before the process if forcibly killed.
* @property timeout Time in seconds after which the probe times out. Possible values are in the range `1` - `240`. Defaults to `1`.
* @property transport Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.
*/
public data class JobTemplateContainerLivenessProbeArgs(
public val failureCountThreshold: Output? = null,
public val headers: Output>? = null,
public val host: Output? = null,
public val initialDelay: Output? = null,
public val intervalSeconds: Output? = null,
public val path: Output? = null,
public val port: Output,
public val terminationGracePeriodSeconds: Output? = null,
public val timeout: Output? = null,
public val transport: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.JobTemplateContainerLivenessProbeArgs = com.pulumi.azure.containerapp.inputs.JobTemplateContainerLivenessProbeArgs.builder()
.failureCountThreshold(failureCountThreshold?.applyValue({ args0 -> args0 }))
.headers(
headers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.host(host?.applyValue({ args0 -> args0 }))
.initialDelay(initialDelay?.applyValue({ args0 -> args0 }))
.intervalSeconds(intervalSeconds?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 }))
.port(port.applyValue({ args0 -> args0 }))
.terminationGracePeriodSeconds(terminationGracePeriodSeconds?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 }))
.transport(transport.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobTemplateContainerLivenessProbeArgs].
*/
@PulumiTagMarker
public class JobTemplateContainerLivenessProbeArgsBuilder internal constructor() {
private var failureCountThreshold: Output? = null
private var headers: Output>? = null
private var host: Output? = null
private var initialDelay: Output? = null
private var intervalSeconds: Output? = null
private var path: Output? = null
private var port: Output? = null
private var terminationGracePeriodSeconds: Output? = null
private var timeout: Output? = null
private var transport: Output? = null
/**
* @param value The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
*/
@JvmName("aytyuybhvmjhmnpg")
public suspend fun failureCountThreshold(`value`: Output) {
this.failureCountThreshold = value
}
/**
* @param value A `header` block as detailed below.
*/
@JvmName("ohlfxgjgdekwuscg")
public suspend fun headers(`value`: Output>) {
this.headers = value
}
@JvmName("uhxaoygvbrmtvlbn")
public suspend fun headers(vararg values: Output) {
this.headers = Output.all(values.asList())
}
/**
* @param values A `header` block as detailed below.
*/
@JvmName("vbhdohftbdioxwyi")
public suspend fun headers(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy