com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerLivenessProbe.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
import kotlin.collections.List
/**
*
* @property failureThreshold Minimum consecutive failures for the probe to be considered failed after
* having succeeded. Defaults to 3. Minimum value is 1.
* @property grpcs GRPC specifies an action involving a GRPC port.
* @property httpGets HttpGet specifies the http request to perform.
* @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 3600.
* @property periodSeconds How often (in seconds) to perform the probe.
* Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
* @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 period_seconds.
*/
public data class GetServiceTemplateSpecContainerLivenessProbe(
public val failureThreshold: Int,
public val grpcs: List,
public val httpGets: List,
public val initialDelaySeconds: Int,
public val periodSeconds: Int,
public val timeoutSeconds: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTemplateSpecContainerLivenessProbe): GetServiceTemplateSpecContainerLivenessProbe = GetServiceTemplateSpecContainerLivenessProbe(
failureThreshold = javaType.failureThreshold(),
grpcs = javaType.grpcs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerLivenessProbeGrpc.Companion.toKotlin(args0)
})
}),
httpGets = javaType.httpGets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerLivenessProbeHttpGet.Companion.toKotlin(args0)
})
}),
initialDelaySeconds = javaType.initialDelaySeconds(),
periodSeconds = javaType.periodSeconds(),
timeoutSeconds = javaType.timeoutSeconds(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy