com.pulumi.gcp.appengine.kotlin.outputs.FlexibleAppVersionReadinessCheck.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.outputs
import kotlin.Double
import kotlin.String
import kotlin.Suppress
/**
*
* @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 FlexibleAppVersionReadinessCheck(
public val appStartTimeout: String? = null,
public val checkInterval: String? = null,
public val failureThreshold: Double? = null,
public val host: String? = null,
public val path: String,
public val successThreshold: Double? = null,
public val timeout: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.FlexibleAppVersionReadinessCheck): FlexibleAppVersionReadinessCheck = FlexibleAppVersionReadinessCheck(
appStartTimeout = javaType.appStartTimeout().map({ args0 -> args0 }).orElse(null),
checkInterval = javaType.checkInterval().map({ args0 -> args0 }).orElse(null),
failureThreshold = javaType.failureThreshold().map({ args0 -> args0 }).orElse(null),
host = javaType.host().map({ args0 -> args0 }).orElse(null),
path = javaType.path(),
successThreshold = javaType.successThreshold().map({ args0 -> args0 }).orElse(null),
timeout = javaType.timeout().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy