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`.
    • 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.