Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.AppTemplateContainerStartupProbeArgs.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 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 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 AppTemplateContainerStartupProbeArgs(
public val failureCountThreshold: Output? = null,
public val headers: Output>? = null,
public val host: 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.AppTemplateContainerStartupProbeArgs =
com.pulumi.azure.containerapp.inputs.AppTemplateContainerStartupProbeArgs.builder()
.failureCountThreshold(failureCountThreshold?.applyValue({ args0 -> args0 }))
.headers(
headers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.host(host?.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 [AppTemplateContainerStartupProbeArgs].
*/
@PulumiTagMarker
public class AppTemplateContainerStartupProbeArgsBuilder internal constructor() {
private var failureCountThreshold: Output? = null
private var headers: Output>? = null
private var host: 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("ykcoadnrmtdosaer")
public suspend fun failureCountThreshold(`value`: Output) {
this.failureCountThreshold = value
}
/**
* @param value A `header` block as detailed below.
*/
@JvmName("horadliuhgqebrjc")
public suspend fun headers(`value`: Output>) {
this.headers = value
}
@JvmName("ypiivslntihpwicn")
public suspend fun headers(vararg values: Output) {
this.headers = Output.all(values.asList())
}
/**
* @param values A `header` block as detailed below.
*/
@JvmName("ihdgdwqoxcsrutcx")
public suspend fun headers(values: List