NetworkPolicyPortArgs

data class NetworkPolicyPortArgs(val port: Output<Either<Int, String>>? = null, val protocol: Output<String>? = null) : ConvertibleToJava<NetworkPolicyPortArgs>

DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.

Constructors

Link copied to clipboard
constructor(port: Output<Either<Int, String>>? = null, protocol: Output<String>? = null)

Properties

Link copied to clipboard
val port: Output<Either<Int, String>>? = null

If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.

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

Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

Functions

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