Class NetworkPolicyPort

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
               date="2023-02-04T02:31:04.943Z")
    @Stability(Stable)
    public class NetworkPolicyPort
    extends software.amazon.jsii.JsiiObject
    Describes a port to allow traffic on.
    • Constructor Detail

      • NetworkPolicyPort

        protected NetworkPolicyPort​(software.amazon.jsii.JsiiObjectRef objRef)
      • NetworkPolicyPort

        protected NetworkPolicyPort​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Method Detail

      • allTcp

        @Stability(Stable)
        @NotNull
        public static NetworkPolicyPort allTcp()
        Any TCP traffic.
      • allUdp

        @Stability(Stable)
        @NotNull
        public static NetworkPolicyPort allUdp()
        Any UDP traffic.
      • tcp

        @Stability(Stable)
        @NotNull
        public static NetworkPolicyPort tcp​(@NotNull
                                            Number port)
        Distinct TCP ports.

        Parameters:
        port - This parameter is required.
      • tcpRange

        @Stability(Stable)
        @NotNull
        public static NetworkPolicyPort tcpRange​(@NotNull
                                                 Number startPort,
                                                 @NotNull
                                                 Number endPort)
        A TCP port range.

        Parameters:
        startPort - This parameter is required.
        endPort - This parameter is required.
      • udp

        @Stability(Stable)
        @NotNull
        public static NetworkPolicyPort udp​(@NotNull
                                            Number port)
        Distinct UDP ports.

        Parameters:
        port - This parameter is required.
      • udpRange

        @Stability(Stable)
        @NotNull
        public static NetworkPolicyPort udpRange​(@NotNull
                                                 Number startPort,
                                                 @NotNull
                                                 Number endPort)
        A UDP port range.

        Parameters:
        startPort - This parameter is required.
        endPort - This parameter is required.