Package software.amazon.awscdk.cxapi
Interface VpcSubnet
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcSubnet.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:16.305Z")
@Stability(Stable)
public interface VpcSubnet
extends software.amazon.jsii.JsiiSerializable
A subnet representation that the VPC provider uses.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cxapi.*;
VpcSubnet vpcSubnet = VpcSubnet.builder()
.availabilityZone("availabilityZone")
.routeTableId("routeTableId")
.subnetId("subnetId")
// the properties below are optional
.cidr("cidr")
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcSubnet.Builderbuilder()The code of the availability zone this subnet is in (for example, 'us-west-2a').default StringgetCidr()CIDR range of the subnet.The identifier of the route table for this subnet.The identifier of the subnet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZone
The code of the availability zone this subnet is in (for example, 'us-west-2a'). -
getRouteTableId
The identifier of the route table for this subnet. -
getSubnetId
The identifier of the subnet. -
getCidr
CIDR range of the subnet.Default: - CIDR information not available
-
builder
- Returns:
- a
VpcSubnet.BuilderofVpcSubnet
-