@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-13T01:13:33.015Z")
public interface SubnetProps
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.*; SubnetProps subnetProps = SubnetProps.builder() .availabilityZone("availabilityZone") .cidrBlock("cidrBlock") .vpcId("vpcId") // the properties below are optional .mapPublicIpOnLaunch(false) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
SubnetProps.Builder
A builder for
SubnetProps |
static class |
SubnetProps.Jsii$Proxy
An implementation for
SubnetProps |
Modifier and Type | Method and Description |
---|---|
static SubnetProps.Builder |
builder() |
java.lang.String |
getAvailabilityZone()
The availability zone for the subnet.
|
java.lang.String |
getCidrBlock()
The CIDR notation for this subnet.
|
default java.lang.Boolean |
getMapPublicIpOnLaunch()
Controls if a public IP is associated to an instance at launch.
|
java.lang.String |
getVpcId()
The VPC which this subnet is part of.
|
java.lang.String getAvailabilityZone()
java.lang.String getCidrBlock()
java.lang.String getVpcId()
default java.lang.Boolean getMapPublicIpOnLaunch()
Default: true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
static SubnetProps.Builder builder()
SubnetProps.Builder
of SubnetProps