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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.535Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSubnetAttributes
static final class
An implementation forSubnetAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubnetAttributes.Builder
builder()
default String
The Availability Zone the subnet is located in.default String
The IPv4 CIDR block associated with the subnet.default String
The 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.Builder
ofSubnetAttributes
-