Package org.cdk8s.plus22
Interface NetworkPolicyProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ResourceProps
- All Known Implementing Classes:
NetworkPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-11T03:06:35.049Z") @Stability(Stable) public interface NetworkPolicyProps extends software.amazon.jsii.JsiiSerializable, ResourceProps
Properties for `NetworkPolicy`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNetworkPolicyProps.BuilderA builder forNetworkPolicyPropsstatic classNetworkPolicyProps.Jsii$ProxyAn implementation forNetworkPolicyProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static NetworkPolicyProps.Builderbuilder()default NetworkPolicyTrafficgetEgress()Egress traffic configuration.default NetworkPolicyTrafficgetIngress()Ingress traffic configuration.default IPodSelectorgetSelector()Which pods does this policy object applies to.-
Methods inherited from interface org.cdk8s.plus22.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getEgress
@Stability(Stable) @Nullable default NetworkPolicyTraffic getEgress()
Egress traffic configuration.Default: - the policy doesn't change egress behavior of the pods it selects.
-
getIngress
@Stability(Stable) @Nullable default NetworkPolicyTraffic getIngress()
Ingress traffic configuration.Default: - the policy doesn't change ingress behavior of the pods it selects.
-
getSelector
@Stability(Stable) @Nullable default IPodSelector getSelector()
Which pods does this policy object applies to.This can either be a single pod / workload, or a grouping of pods selected via the
Pods.selectfunction. Rules is applied to any pods selected by this property. Multiple network policies can select the same set of pods. In this case, the rules for each are combined additively.Note that
Default: - will select all pods in the namespace of the policy.
-
builder
@Stability(Stable) static NetworkPolicyProps.Builder builder()
- Returns:
- a
NetworkPolicyProps.BuilderofNetworkPolicyProps
-
-