@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.499Z") @Stability(value=Stable) public interface SubnetAttributes extends software.amazon.jsii.JsiiSerializable
// Example automatically generated from non-compiling source. May contain errors.
// 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");
| Modifier and Type | Interface and Description |
|---|---|
static class |
SubnetAttributes.Builder
A builder for
SubnetAttributes |
static class |
SubnetAttributes.Jsii$Proxy
An implementation for
SubnetAttributes |
| Modifier and Type | Method and Description |
|---|---|
static SubnetAttributes.Builder |
builder() |
default String |
getAvailabilityZone()
The Availability Zone the subnet is located in.
|
default String |
getIpv4CidrBlock()
The IPv4 CIDR block associated with the subnet.
|
default String |
getRouteTableId()
The ID of the route table for this particular subnet.
|
String |
getSubnetId()
The subnetId for this particular subnet.
|
@Stability(value=Stable) @NotNull String getSubnetId()
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
Default: - No AZ information, cannot use AZ selection features
@Stability(value=Stable) @Nullable default String getIpv4CidrBlock()
Default: - No CIDR information, cannot use CIDR filter features
@Stability(value=Stable) @Nullable default String getRouteTableId()
Default: - No route table information, cannot create VPC endpoints
@Stability(value=Stable) static SubnetAttributes.Builder builder()
SubnetAttributes.Builder of SubnetAttributesCopyright © 2022. All rights reserved.