Package org.cdk8s.plus23
Interface NetworkPolicyTraffic
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkPolicyTraffic.Jsii$Proxy
@Generated(value="jsii-pacmak/1.61.0 (build abf4039)", date="2022-07-06T20:17:23.636Z") @Stability(Stable) public interface NetworkPolicyTraffic extends software.amazon.jsii.JsiiSerializable
Describes how the network policy should configure egress / ingress traffic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNetworkPolicyTraffic.BuilderA builder forNetworkPolicyTrafficstatic classNetworkPolicyTraffic.Jsii$ProxyAn implementation forNetworkPolicyTraffic
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static NetworkPolicyTraffic.Builderbuilder()default NetworkPolicyTrafficDefaultgetDefaultValue()Specifies the default behavior of the policy when no rules are defined.default List<NetworkPolicyRule>getRules()List of rules to be applied to the selected pods.
-
-
-
Method Detail
-
getDefaultValue
@Stability(Stable) @Nullable default NetworkPolicyTrafficDefault getDefaultValue()
Specifies the default behavior of the policy when no rules are defined.Default: - unset, the policy does not change the behavior.
-
getRules
@Stability(Stable) @Nullable default List<NetworkPolicyRule> getRules()
List of rules to be applied to the selected pods.If empty, the behavior of the policy is dictated by the
defaultproperty.Default: - no rules
-
builder
@Stability(Stable) static NetworkPolicyTraffic.Builder builder()
- Returns:
- a
NetworkPolicyTraffic.BuilderofNetworkPolicyTraffic
-
-