com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionReadinessCheckArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.appengine.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionReadinessCheckArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property appStartTimeout A maximum time limit on application initialization, measured from moment the application successfully
* replies to a healthcheck until it is ready to serve traffic. Default: "300s"
* @property checkInterval Interval between health checks. Default: "5s".
* @property failureThreshold Number of consecutive failed checks required before removing traffic. Default: 2.
* @property host Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
* @property path The request path.
* @property successThreshold Number of consecutive successful checks required before receiving traffic. Default: 2.
* @property timeout Time before the check is considered failed. Default: "4s"
*/
public data class FlexibleAppVersionReadinessCheckArgs(
public val appStartTimeout: Output? = null,
public val checkInterval: Output? = null,
public val failureThreshold: Output? = null,
public val host: Output? = null,
public val path: Output,
public val successThreshold: Output? = null,
public val timeout: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.appengine.inputs.FlexibleAppVersionReadinessCheckArgs =
com.pulumi.gcp.appengine.inputs.FlexibleAppVersionReadinessCheckArgs.builder()
.appStartTimeout(appStartTimeout?.applyValue({ args0 -> args0 }))
.checkInterval(checkInterval?.applyValue({ args0 -> args0 }))
.failureThreshold(failureThreshold?.applyValue({ args0 -> args0 }))
.host(host?.applyValue({ args0 -> args0 }))
.path(path.applyValue({ args0 -> args0 }))
.successThreshold(successThreshold?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FlexibleAppVersionReadinessCheckArgs].
*/
@PulumiTagMarker
public class FlexibleAppVersionReadinessCheckArgsBuilder internal constructor() {
private var appStartTimeout: Output? = null
private var checkInterval: Output? = null
private var failureThreshold: Output? = null
private var host: Output? = null
private var path: Output? = null
private var successThreshold: Output? = null
private var timeout: Output? = null
/**
* @param value A maximum time limit on application initialization, measured from moment the application successfully
* replies to a healthcheck until it is ready to serve traffic. Default: "300s"
*/
@JvmName("cxdifwjioeqyjkma")
public suspend fun appStartTimeout(`value`: Output) {
this.appStartTimeout = value
}
/**
* @param value Interval between health checks. Default: "5s".
*/
@JvmName("vfmxqsiahimenioc")
public suspend fun checkInterval(`value`: Output) {
this.checkInterval = value
}
/**
* @param value Number of consecutive failed checks required before removing traffic. Default: 2.
*/
@JvmName("apuhtjjgkflbgngl")
public suspend fun failureThreshold(`value`: Output) {
this.failureThreshold = value
}
/**
* @param value Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
*/
@JvmName("gbfxldkikxmfggop")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value The request path.
*/
@JvmName("mqyoodccnfrtvsvn")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Number of consecutive successful checks required before receiving traffic. Default: 2.
*/
@JvmName("iwvvyxxkrahhnpno")
public suspend fun successThreshold(`value`: Output) {
this.successThreshold = value
}
/**
* @param value Time before the check is considered failed. Default: "4s"
*/
@JvmName("jypraeoqdtfcdrpb")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value A maximum time limit on application initialization, measured from moment the application successfully
* replies to a healthcheck until it is ready to serve traffic. Default: "300s"
*/
@JvmName("gjkkkwhtxyymqhjv")
public suspend fun appStartTimeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appStartTimeout = mapped
}
/**
* @param value Interval between health checks. Default: "5s".
*/
@JvmName("vfhxndxfumtnxcnh")
public suspend fun checkInterval(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.checkInterval = mapped
}
/**
* @param value Number of consecutive failed checks required before removing traffic. Default: 2.
*/
@JvmName("iwppdechsdyunaer")
public suspend fun failureThreshold(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failureThreshold = mapped
}
/**
* @param value Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
*/
@JvmName("yvhvafnauxpbctpq")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value The request path.
*/
@JvmName("gpgqtxgutmwyvdtb")
public suspend fun path(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Number of consecutive successful checks required before receiving traffic. Default: 2.
*/
@JvmName("ietiyfmvgbwwbcyt")
public suspend fun successThreshold(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.successThreshold = mapped
}
/**
* @param value Time before the check is considered failed. Default: "4s"
*/
@JvmName("goklxvkqxbpopadh")
public suspend fun timeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
internal fun build(): FlexibleAppVersionReadinessCheckArgs = FlexibleAppVersionReadinessCheckArgs(
appStartTimeout = appStartTimeout,
checkInterval = checkInterval,
failureThreshold = failureThreshold,
host = host,
path = path ?: throw PulumiNullFieldException("path"),
successThreshold = successThreshold,
timeout = timeout,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy