java.lang.Object
java.lang.Enum<AlpnPolicy>
software.amazon.awscdk.services.elasticloadbalancingv2.AlpnPolicy
All Implemented Interfaces:
Serializable, Comparable<AlpnPolicy>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:51.626Z") @Stability(Stable) public enum AlpnPolicy extends Enum<AlpnPolicy>
Application-Layer Protocol Negotiation Policies for network load balancers.

Which protocols should be used over a secure connection.

  • Enum Constant Details

    • HTTP1_ONLY

      @Stability(Stable) public static final AlpnPolicy HTTP1_ONLY
      Negotiate only HTTP/1.*. The ALPN preference list is http/1.1, http/1.0.
    • HTTP2_ONLY

      @Stability(Stable) public static final AlpnPolicy HTTP2_ONLY
      Negotiate only HTTP/2.

      The ALPN preference list is h2

    • HTTP2_OPTIONAL

      @Stability(Stable) public static final AlpnPolicy HTTP2_OPTIONAL
      Prefer HTTP/1.* over HTTP/2 (which can be useful for HTTP/2 testing). The ALPN preference list is http/1.1, http/1.0, h2.
    • HTTP2_PREFERRED

      @Stability(Stable) public static final AlpnPolicy HTTP2_PREFERRED
      Prefer HTTP/2 over HTTP/1.*. The ALPN preference list is h2, http/1.1, http/1.0.
    • NONE

      @Stability(Stable) public static final AlpnPolicy NONE
      Do not negotiate ALPN.
  • Method Details

    • values

      public static AlpnPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AlpnPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null