All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerStartupProbe.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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 240.
 * @property periodSeconds How often (in seconds) to perform the probe.
 * Default to 10 seconds. Minimum value is 1. Maximum value is 240.
 * @property tcpSockets TcpSocket specifies an action involving a TCP port.
 * @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 GetServiceTemplateSpecContainerStartupProbe(
    public val failureThreshold: Int,
    public val grpcs: List,
    public val httpGets: List,
    public val initialDelaySeconds: Int,
    public val periodSeconds: Int,
    public val tcpSockets: List,
    public val timeoutSeconds: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTemplateSpecContainerStartupProbe): GetServiceTemplateSpecContainerStartupProbe = GetServiceTemplateSpecContainerStartupProbe(
            failureThreshold = javaType.failureThreshold(),
            grpcs = javaType.grpcs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerStartupProbeGrpc.Companion.toKotlin(args0)
                })
            }),
            httpGets = javaType.httpGets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerStartupProbeHttpGet.Companion.toKotlin(args0)
                })
            }),
            initialDelaySeconds = javaType.initialDelaySeconds(),
            periodSeconds = javaType.periodSeconds(),
            tcpSockets = javaType.tcpSockets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerStartupProbeTcpSocket.Companion.toKotlin(args0)
                })
            }),
            timeoutSeconds = javaType.timeoutSeconds(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy