Enum RouterType

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.240Z") @Stability(Stable) public enum RouterType extends Enum<RouterType>
Type of router used in route.

Example:

 Vpc vpc = Vpc.Builder.create(this, "VPC")
         .subnetConfiguration(List.of(SubnetConfiguration.builder()
                 .subnetType(SubnetType.PUBLIC)
                 .name("Public")
                 .build(), SubnetConfiguration.builder()
                 .subnetType(SubnetType.PRIVATE_ISOLATED)
                 .name("Isolated")
                 .build()))
         .build();
 ((Subnet)vpc.isolatedSubnets[0]).addRoute("StaticRoute", AddRouteOptions.builder()
         .routerId(vpc.getInternetGatewayId())
         .routerType(RouterType.GATEWAY)
         .destinationCidrBlock("8.8.8.8/32")
         .build());
 
  • Enum Constant Details

    • CARRIER_GATEWAY

      @Stability(Stable) public static final RouterType CARRIER_GATEWAY
      Carrier gateway.
    • EGRESS_ONLY_INTERNET_GATEWAY

      @Stability(Stable) public static final RouterType EGRESS_ONLY_INTERNET_GATEWAY
      Egress-only Internet Gateway.
    • GATEWAY

      @Stability(Stable) public static final RouterType GATEWAY
      Internet Gateway.
    • INSTANCE

      @Stability(Stable) public static final RouterType INSTANCE
      Instance.
    • LOCAL_GATEWAY

      @Stability(Stable) public static final RouterType LOCAL_GATEWAY
      Local Gateway.
    • NAT_GATEWAY

      @Stability(Stable) public static final RouterType NAT_GATEWAY
      NAT Gateway.
    • NETWORK_INTERFACE

      @Stability(Stable) public static final RouterType NETWORK_INTERFACE
      Network Interface.
    • TRANSIT_GATEWAY

      @Stability(Stable) public static final RouterType TRANSIT_GATEWAY
      Transit Gateway.
    • VPC_PEERING_CONNECTION

      @Stability(Stable) public static final RouterType VPC_PEERING_CONNECTION
      VPC peering connection.
    • VPC_ENDPOINT

      @Stability(Stable) public static final RouterType VPC_ENDPOINT
      VPC Endpoint for gateway load balancers.
  • Method Details

    • values

      public static RouterType[] 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 RouterType 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