Enum RouterType
- All Implemented Interfaces:
Serializable
,Comparable<RouterType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-05-31T18:44:11.171Z")
@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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCarrier gateway.Egress-only Internet Gateway.Internet Gateway.Instance.Local Gateway.NAT Gateway.Network Interface.Transit Gateway.VPC Endpoint for gateway load balancers.VPC peering connection. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouterType
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.
-
Enum Constant Details
-
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_PEERING_CONNECTION
VPC peering connection. -
VPC_ENDPOINT
VPC Endpoint for gateway load balancers.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-