@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:19:59.563Z") public enum RouterType extends java.lang.Enum<RouterType>
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 and Description |
---|
CARRIER_GATEWAY
Carrier gateway.
|
EGRESS_ONLY_INTERNET_GATEWAY
Egress-only Internet Gateway.
|
GATEWAY
Internet Gateway.
|
INSTANCE
Instance.
|
LOCAL_GATEWAY
Local Gateway.
|
NAT_GATEWAY
NAT Gateway.
|
NETWORK_INTERFACE
Network Interface.
|
TRANSIT_GATEWAY
Transit Gateway.
|
VPC_ENDPOINT
VPC Endpoint for gateway load balancers.
|
VPC_PEERING_CONNECTION
VPC peering connection.
|
Modifier and Type | Method and Description |
---|---|
static RouterType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RouterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouterType CARRIER_GATEWAY
public static final RouterType EGRESS_ONLY_INTERNET_GATEWAY
public static final RouterType GATEWAY
public static final RouterType INSTANCE
public static final RouterType LOCAL_GATEWAY
public static final RouterType NAT_GATEWAY
public static final RouterType NETWORK_INTERFACE
public static final RouterType TRANSIT_GATEWAY
public static final RouterType VPC_PEERING_CONNECTION
public static final RouterType VPC_ENDPOINT
public static RouterType[] values()
for (RouterType c : RouterType.values()) System.out.println(c);
public static RouterType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null