ports

@JvmName(name = "hlnevkjmpkaptcoy")
suspend fun ports(value: Output<List<NetworkPolicyPortPatchArgs>>)
@JvmName(name = "jyygasqyjmelkckx")
suspend fun ports(value: List<NetworkPolicyPortPatchArgs>?)

Parameters

value

ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.


@JvmName(name = "rqrhufyhxmucmicr")
suspend fun ports(vararg values: Output<NetworkPolicyPortPatchArgs>)


@JvmName(name = "tqimykdgeildudyn")
suspend fun ports(values: List<Output<NetworkPolicyPortPatchArgs>>)
@JvmName(name = "rhyxwtwkoladflhj")
suspend fun ports(vararg values: NetworkPolicyPortPatchArgs)

Parameters

values

ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.


@JvmName(name = "nvgxknktvvyyfuad")
suspend fun ports(argument: List<suspend NetworkPolicyPortPatchArgsBuilder.() -> Unit>)
@JvmName(name = "ajgxmtknmkgraall")
suspend fun ports(vararg argument: suspend NetworkPolicyPortPatchArgsBuilder.() -> Unit)
@JvmName(name = "xibtjuvxjrwrjrvo")
suspend fun ports(argument: suspend NetworkPolicyPortPatchArgsBuilder.() -> Unit)

Parameters

argument

ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.