
com.pulumi.googlenative.run.v2.kotlin.inputs.GoogleCloudRunV2GRPCActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.run.v2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.run.v2.inputs.GoogleCloudRunV2GRPCActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* GRPCAction describes an action involving a GRPC port.
* @property port Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
* @property service Service is 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 GoogleCloudRunV2GRPCActionArgs(
public val port: Output? = null,
public val service: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.run.v2.inputs.GoogleCloudRunV2GRPCActionArgs =
com.pulumi.googlenative.run.v2.inputs.GoogleCloudRunV2GRPCActionArgs.builder()
.port(port?.applyValue({ args0 -> args0 }))
.service(service?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GoogleCloudRunV2GRPCActionArgs].
*/
@PulumiTagMarker
public class GoogleCloudRunV2GRPCActionArgsBuilder internal constructor() {
private var port: Output? = null
private var service: Output? = null
/**
* @param value Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
*/
@JvmName("pkcvkbujlmfhyrpe")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Service is 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("hmcqkbrwjjjgjsrs")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
*/
@JvmName("bdsbjvurlbtecgtu")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Service is 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("wlgbbxjymkhfpwhd")
public suspend fun service(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): GoogleCloudRunV2GRPCActionArgs = GoogleCloudRunV2GRPCActionArgs(
port = port,
service = service,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy