ContainerPortArgs

data class ContainerPortArgs(val containerPort: Output<Int>? = null, val name: Output<String>? = null, val protocol: Output<String>? = null) : ConvertibleToJava<ContainerPortArgs>

ContainerPort represents a network port in a single container.

Constructors

Link copied to clipboard
fun ContainerPortArgs(containerPort: Output<Int>? = null, name: Output<String>? = null, protocol: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ContainerPortArgs

Properties

Link copied to clipboard
val containerPort: Output<Int>? = null

Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see https://cloud.google.com/run/docs/container-contract#port

Link copied to clipboard
val name: Output<String>? = null

If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".

Link copied to clipboard
val protocol: Output<String>? = null

Protocol for port. Must be "TCP". Defaults to "TCP".