@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.501Z") @Stability(value=Stable) public interface SubnetProps extends software.amazon.jsii.JsiiSerializable
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() |
String |
getAvailabilityZone()
The availability zone for the subnet.
|
String |
getCidrBlock()
The CIDR notation for this subnet.
|
default Boolean |
getMapPublicIpOnLaunch()
Controls if a public IP is associated to an instance at launch.
|
String |
getVpcId()
The VPC which this subnet is part of.
|
@Stability(value=Stable) @NotNull String getAvailabilityZone()
@Stability(value=Stable) @NotNull String getCidrBlock()
@Stability(value=Stable) @NotNull String getVpcId()
@Stability(value=Stable) @Nullable default Boolean getMapPublicIpOnLaunch()
Default: true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
@Stability(value=Stable) static SubnetProps.Builder builder()
SubnetProps.Builder of SubnetPropsCopyright © 2022. All rights reserved.