Package org.cdk8s.plus24
Interface NetworkPolicyProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,ResourceProps
- All Known Implementing Classes:
NetworkPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.79.0 (build b22f628)", date="2023-03-31T02:28:41.633Z") @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 class
NetworkPolicyProps.Builder
A builder forNetworkPolicyProps
static class
NetworkPolicyProps.Jsii$Proxy
An implementation forNetworkPolicyProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static NetworkPolicyProps.Builder
builder()
default NetworkPolicyTraffic
getEgress()
Egress traffic configuration.default NetworkPolicyTraffic
getIngress()
Ingress traffic configuration.default IPodSelector
getSelector()
Which pods does this policy object applies to.-
Methods inherited from interface org.cdk8s.plus24.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.select
function. 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.Builder
ofNetworkPolicyProps
-
-