@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.493Z") @Stability(value=Stable) public enum RouterType extends Enum<RouterType>
Example:
// Example automatically generated from non-compiling source. May contain errors.
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(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.
|
@Stability(value=Stable) public static final RouterType CARRIER_GATEWAY
@Stability(value=Stable) public static final RouterType EGRESS_ONLY_INTERNET_GATEWAY
@Stability(value=Stable) public static final RouterType GATEWAY
@Stability(value=Stable) public static final RouterType INSTANCE
@Stability(value=Stable) public static final RouterType LOCAL_GATEWAY
@Stability(value=Stable) public static final RouterType NAT_GATEWAY
@Stability(value=Stable) public static final RouterType NETWORK_INTERFACE
@Stability(value=Stable) public static final RouterType TRANSIT_GATEWAY
@Stability(value=Stable) public static final RouterType VPC_PEERING_CONNECTION
@Stability(value=Stable) public static final RouterType VPC_ENDPOINT
public static RouterType[] values()
for (RouterType c : RouterType.values()) System.out.println(c);
public static RouterType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.