Package org.cdk8s.plus25.k8s
Interface NetworkPolicyEgressRule
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkPolicyEgressRule.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.737Z") @Stability(Stable) public interface NetworkPolicyEgressRule extends software.amazon.jsii.JsiiSerializable
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector.The traffic must match both ports and to. This type is beta-level in 1.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNetworkPolicyEgressRule.BuilderA builder forNetworkPolicyEgressRulestatic classNetworkPolicyEgressRule.Jsii$ProxyAn implementation forNetworkPolicyEgressRule
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static NetworkPolicyEgressRule.Builderbuilder()default List<NetworkPolicyPort>getPorts()List of destination ports for outgoing traffic.default List<NetworkPolicyPeer>getTo()List of destinations for outgoing traffic of pods selected for this rule.
-
-
-
Method Detail
-
getPorts
@Stability(Stable) @Nullable default List<NetworkPolicyPort> getPorts()
List of destination ports for outgoing traffic.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.
-
getTo
@Stability(Stable) @Nullable default List<NetworkPolicyPeer> getTo()
List of destinations for outgoing traffic of pods selected for this rule.Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
-
builder
@Stability(Stable) static NetworkPolicyEgressRule.Builder builder()
- Returns:
- a
NetworkPolicyEgressRule.BuilderofNetworkPolicyEgressRule
-
-