Enum Class VpnConnectionType

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:07.260Z") @Stability(Stable) public enum VpnConnectionType extends Enum<VpnConnectionType>
The VPN connection type.

Example:

 Stack stack = new Stack();
 VpcV2 myVpc = new VpcV2(this, "Vpc");
 VPNGatewayV2 vpnGateway = myVpc.enableVpnGatewayV2(VPNGatewayV2Options.builder()
         .vpnRoutePropagation(List.of(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build()))
         .type(VpnConnectionType.IPSEC_1)
         .build());
 RouteTable routeTable = RouteTable.Builder.create(stack, "routeTable")
         .vpc(myVpc)
         .build();
 Route.Builder.create(stack, "route")
         .destination("172.31.0.0/24")
         .target(Map.of("gateway", vpnGateway))
         .routeTable(routeTable)
         .build();
 
  • Enum Constant Details

    • IPSEC_1

      @Stability(Stable) public static final VpnConnectionType IPSEC_1
      The IPsec 1 VPN connection type.
    • DUMMY

      @Stability(Stable) public static final VpnConnectionType DUMMY
      Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed.
  • Method Details

    • values

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

      public static VpnConnectionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null