|Enum Constant and Description|
Subnet connected to the Internet.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
@Deprecated public static final SubnetType ISOLATED
Isolated subnets can only connect to or be connected to from other instances in the same VPC. A default VPC configuration will not include isolated subnets.
This can be good for subnets with RDS or Elasticache instances, or which route Internet traffic through a peer VPC.
@Deprecated 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. NAT Gateway(s) are
required with this subnet type to route the Internet traffic through.
If a NAT Gateway is not required or desired, use
By default, a NAT gateway is created in every public subnet for maximum availability. Be aware that you will be charged for NAT gateways.
Normally a Private subnet will use a NAT gateway in the same AZ, but
natGateways is used to reduce the number of NAT gateways, a NAT
gateway from another AZ will be used instead.
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(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 name
java.lang.NullPointerException- if the argument is null