Package org.cdk8s.plus24
Interface NetworkPolicyRule
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkPolicyRule.Jsii$Proxy
@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T02:54:19.276Z") @Stability(Stable) public interface NetworkPolicyRule extends software.amazon.jsii.JsiiSerializable
Describes a rule allowing traffic from / to pods matched by a network policy selector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNetworkPolicyRule.BuilderA builder forNetworkPolicyRulestatic classNetworkPolicyRule.Jsii$ProxyAn implementation forNetworkPolicyRule
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static NetworkPolicyRule.Builderbuilder()INetworkPolicyPeergetPeer()Peer this rule interacts with.default List<NetworkPolicyPort>getPorts()The ports of the rule.
-
-
-
Method Detail
-
getPeer
@Stability(Stable) @NotNull INetworkPolicyPeer getPeer()
Peer this rule interacts with.
-
getPorts
@Stability(Stable) @Nullable default List<NetworkPolicyPort> getPorts()
The ports of the rule.Default: - traffic is allowed on all ports.
-
builder
@Stability(Stable) static NetworkPolicyRule.Builder builder()
- Returns:
- a
NetworkPolicyRule.BuilderofNetworkPolicyRule
-
-