![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerapp.kotlin.outputs.AppTemplateContainerReadinessProbe.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 intervalSeconds How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`
* @property path The URI to use 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 successCountThreshold The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`.
* @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 AppTemplateContainerReadinessProbe(
public val failureCountThreshold: Int? = null,
public val headers: List? = null,
public val host: String? = null,
public val intervalSeconds: Int? = null,
public val path: String? = null,
public val port: Int,
public val successCountThreshold: Int? = null,
public val timeout: Int? = null,
public val transport: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.AppTemplateContainerReadinessProbe): AppTemplateContainerReadinessProbe = AppTemplateContainerReadinessProbe(
failureCountThreshold = javaType.failureCountThreshold().map({ args0 -> args0 }).orElse(null),
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.AppTemplateContainerReadinessProbeHeader.Companion.toKotlin(args0)
})
}),
host = javaType.host().map({ args0 -> args0 }).orElse(null),
intervalSeconds = javaType.intervalSeconds().map({ args0 -> args0 }).orElse(null),
path = javaType.path().map({ args0 -> args0 }).orElse(null),
port = javaType.port(),
successCountThreshold = javaType.successCountThreshold().map({ args0 -> args0 }).orElse(null),
timeout = javaType.timeout().map({ args0 -> args0 }).orElse(null),
transport = javaType.transport(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy