Package org.cdk8s.plus24
Interface NetworkPolicyRule
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkPolicyRule.Jsii$Proxy
@Generated(value="jsii-pacmak/1.85.0 (build 08ee592)", date="2023-07-25T00:18:39.053Z") @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 class
NetworkPolicyRule.Builder
A builder forNetworkPolicyRule
static class
NetworkPolicyRule.Jsii$Proxy
An implementation forNetworkPolicyRule
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static NetworkPolicyRule.Builder
builder()
INetworkPolicyPeer
getPeer()
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.Builder
ofNetworkPolicyRule
-
-