Interface SubnetAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
PrivateSubnetAttributes,PublicSubnetAttributes
- All Known Implementing Classes:
PrivateSubnetAttributes.Jsii$Proxy,PublicSubnetAttributes.Jsii$Proxy,SubnetAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:38.267Z")
@Stability(Stable)
public interface SubnetAttributes
extends software.amazon.jsii.JsiiSerializable
Example:
// Supply all properties
ISubnet subnet1 = Subnet.fromSubnetAttributes(this, "SubnetFromAttributes", SubnetAttributes.builder()
.subnetId("s-1234")
.availabilityZone("pub-az-4465")
.routeTableId("rt-145")
.build());
// Supply only subnet id
ISubnet subnet2 = Subnet.fromSubnetId(this, "SubnetFromId", "s-1234");
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSubnetAttributesstatic final classAn implementation forSubnetAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic SubnetAttributes.Builderbuilder()default StringThe Availability Zone the subnet is located in.default StringThe IPv4 CIDR block associated with the subnet.default StringThe ID of the route table for this particular subnet.The subnetId for this particular subnet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnetId
The subnetId for this particular subnet. -
getAvailabilityZone
The Availability Zone the subnet is located in.Default: - No AZ information, cannot use AZ selection features
-
getIpv4CidrBlock
The IPv4 CIDR block associated with the subnet.Default: - No CIDR information, cannot use CIDR filter features
-
getRouteTableId
The ID of the route table for this particular subnet.Default: - No route table information, cannot create VPC endpoints
-
builder
- Returns:
- a
SubnetAttributes.BuilderofSubnetAttributes
-