@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-09T19:16:37.591Z")
public interface SubnetConfiguration
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; SubnetConfiguration subnetConfiguration = SubnetConfiguration.builder() .name("name") .subnetType(SubnetType.ISOLATED) // the properties below are optional .cidrMask(123) .mapPublicIpOnLaunch(false) .reserved(false) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
SubnetConfiguration.Builder
A builder for
SubnetConfiguration |
static class |
SubnetConfiguration.Jsii$Proxy
An implementation for
SubnetConfiguration |
Modifier and Type | Method and Description |
---|---|
static SubnetConfiguration.Builder |
builder() |
default java.lang.Number |
getCidrMask()
The number of leading 1 bits in the routing mask.
|
default java.lang.Boolean |
getMapPublicIpOnLaunch()
Controls if a public IP is associated to an instance at launch.
|
java.lang.String |
getName()
Logical name for the subnet group.
|
default java.lang.Boolean |
getReserved()
Controls if subnet IP space needs to be reserved.
|
SubnetType |
getSubnetType()
The type of Subnet to configure.
|
java.lang.String getName()
This name can be used when selecting VPC subnets to distinguish between different subnet groups of the same type.
SubnetType getSubnetType()
The Subnet type will control the ability to route and connect to the Internet.
default java.lang.Number getCidrMask()
The number of available IP addresses in each subnet of this group
will be equal to 2^(32 - cidrMask) - 2
.
Valid values are 16--28
.
Default: - Available IP space is evenly divided across subnets.
default java.lang.Boolean getMapPublicIpOnLaunch()
Default: true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
default java.lang.Boolean getReserved()
When true, the IP space for the subnet is reserved but no actual
resources are provisioned. This space is only dependent on the
number of availability zones and on cidrMask
- all other subnet
properties are ignored.
Default: false
static SubnetConfiguration.Builder builder()
SubnetConfiguration.Builder
of SubnetConfiguration