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.84.0 (build 5404dcf)",
date="2023-06-19T16:29:54.746Z")
@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
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcSubnet.Builder
builder()
The code of the availability zone this subnet is in (for example, 'us-west-2a').default String
getCidr()
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.Builder
ofVpcSubnet
-