com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerReadinessProbe.kt Maven / Gradle / Ivy
@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 value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. 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 path in the container at which to mount this volume.
* @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 The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`. Defaults to `auto`
*/
public data class GetAppTemplateContainerReadinessProbe(
public val failureCountThreshold: Int,
public val headers: List,
public val host: String,
public val intervalSeconds: Int,
public val path: String,
public val port: Int,
public val successCountThreshold: Int,
public val timeout: Int,
public val transport: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerReadinessProbe): GetAppTemplateContainerReadinessProbe = GetAppTemplateContainerReadinessProbe(
failureCountThreshold = javaType.failureCountThreshold(),
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerReadinessProbeHeader.Companion.toKotlin(args0)
})
}),
host = javaType.host(),
intervalSeconds = javaType.intervalSeconds(),
path = javaType.path(),
port = javaType.port(),
successCountThreshold = javaType.successCountThreshold(),
timeout = javaType.timeout(),
transport = javaType.transport(),
)
}
}