Package org.cdk8s.plus23
Interface NetworkPolicyTraffic
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkPolicyTraffic.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:35.123Z") @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 class
NetworkPolicyTraffic.Builder
A builder forNetworkPolicyTraffic
static class
NetworkPolicyTraffic.Jsii$Proxy
An implementation forNetworkPolicyTraffic
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static NetworkPolicyTraffic.Builder
builder()
default NetworkPolicyTrafficDefault
getDefaultValue()
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
default
property.Default: - no rules
-
builder
@Stability(Stable) static NetworkPolicyTraffic.Builder builder()
- Returns:
- a
NetworkPolicyTraffic.Builder
ofNetworkPolicyTraffic
-
-