@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.127Z") @Stability(value=Experimental) public enum SubnetType extends Enum<SubnetType>
| Enum Constant and Description |
|---|
ISOLATED
(experimental) Isolated Subnets do not route traffic to the Internet (in this VPC).
|
PRIVATE
(experimental) Subnet that routes to the internet, but not vice versa.
|
PUBLIC
(experimental) Subnet connected to the Internet.
|
| Modifier and Type | Method and Description |
|---|---|
static SubnetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubnetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final SubnetType ISOLATED
This can be good for subnets with RDS or Elasticache instances, or which route Internet traffic through a peer VPC.
@Stability(value=Experimental) public static final SubnetType PRIVATE
Instances in a private subnet can connect to the Internet, but will not allow connections to be initiated from the Internet. Internet traffic will be routed via a NAT Gateway.
Normally a Private subnet will use a NAT gateway in the same AZ, but
if natGateways is used to reduce the number of NAT gateways, a NAT
gateway from another AZ will be used instead.
@Stability(value=Experimental) public static final SubnetType PUBLIC
Instances in a Public subnet can connect to the Internet and can be connected to from the Internet as long as they are launched with public IPs (controlled on the AutoScalingGroup or other constructs that launch instances).
Public subnets route outbound traffic via an Internet Gateway.
public static SubnetType[] values()
for (SubnetType c : SubnetType.values()) System.out.println(c);
public static SubnetType 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 © 2021. All rights reserved.