com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerLivenessProbeGrpcArgs.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.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerLivenessProbeGrpcArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property port Port number to access on the container. Number must be in the range 1 to 65535.
* If not specified, defaults to the same value as container.ports[0].containerPort.
* @property service The name of the service to place in the gRPC HealthCheckRequest
* (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
* If this is not specified, the default behavior is defined by gRPC.
*/
public data class ServiceTemplateContainerLivenessProbeGrpcArgs(
public val port: Output? = null,
public val service: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerLivenessProbeGrpcArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerLivenessProbeGrpcArgs.builder()
.port(port?.applyValue({ args0 -> args0 }))
.service(service?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTemplateContainerLivenessProbeGrpcArgs].
*/
@PulumiTagMarker
public class ServiceTemplateContainerLivenessProbeGrpcArgsBuilder internal constructor() {
private var port: Output? = null
private var service: Output? = null
/**
* @param value Port number to access on the container. Number must be in the range 1 to 65535.
* If not specified, defaults to the same value as container.ports[0].containerPort.
*/
@JvmName("qllssndhjhxtrygf")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The name of the service to place in the gRPC HealthCheckRequest
* (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
* If this is not specified, the default behavior is defined by gRPC.
*/
@JvmName("cwdcbpvugpcfgvqw")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Port number to access on the container. Number must be in the range 1 to 65535.
* If not specified, defaults to the same value as container.ports[0].containerPort.
*/
@JvmName("plnrwakjuhtvufbg")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value The name of the service to place in the gRPC HealthCheckRequest
* (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
* If this is not specified, the default behavior is defined by gRPC.
*/
@JvmName("vqtppkixklxdcwel")
public suspend fun service(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): ServiceTemplateContainerLivenessProbeGrpcArgs =
ServiceTemplateContainerLivenessProbeGrpcArgs(
port = port,
service = service,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy