com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecContainerStartupProbe.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.cloudrun.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
*
* @property failureThreshold Minimum consecutive failures for the probe to be considered failed after
* having succeeded. Defaults to 3. Minimum value is 1.
* @property grpc GRPC specifies an action involving a GRPC port.
* Structure is documented below.
* @property httpGet HttpGet specifies the http request to perform.
* Structure is documented below.
* @property initialDelaySeconds Number of seconds after the container has started before the probe is
* initiated.
* Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
* @property periodSeconds How often (in seconds) to perform the probe.
* Default to 10 seconds. Minimum value is 1. Maximum value is 240.
* @property tcpSocket TcpSocket specifies an action involving a TCP port.
* Structure is documented below.
* @property timeoutSeconds Number of seconds after which the probe times out.
* Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
* Must be smaller than periodSeconds.
*/
public data class ServiceTemplateSpecContainerStartupProbe(
public val failureThreshold: Int? = null,
public val grpc: ServiceTemplateSpecContainerStartupProbeGrpc? = null,
public val httpGet: ServiceTemplateSpecContainerStartupProbeHttpGet? = null,
public val initialDelaySeconds: Int? = null,
public val periodSeconds: Int? = null,
public val tcpSocket: ServiceTemplateSpecContainerStartupProbeTcpSocket? = null,
public val timeoutSeconds: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.ServiceTemplateSpecContainerStartupProbe): ServiceTemplateSpecContainerStartupProbe = ServiceTemplateSpecContainerStartupProbe(
failureThreshold = javaType.failureThreshold().map({ args0 -> args0 }).orElse(null),
grpc = javaType.grpc().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecContainerStartupProbeGrpc.Companion.toKotlin(args0)
})
}).orElse(null),
httpGet = javaType.httpGet().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecContainerStartupProbeHttpGet.Companion.toKotlin(args0)
})
}).orElse(null),
initialDelaySeconds = javaType.initialDelaySeconds().map({ args0 -> args0 }).orElse(null),
periodSeconds = javaType.periodSeconds().map({ args0 -> args0 }).orElse(null),
tcpSocket = javaType.tcpSocket().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecContainerStartupProbeTcpSocket.Companion.toKotlin(args0)
})
}).orElse(null),
timeoutSeconds = javaType.timeoutSeconds().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy