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");
 
  • Method Details

    • getSubnetId

      @Stability(Stable) @NotNull String getSubnetId()
      The subnetId for this particular subnet.
    • getAvailabilityZone

      @Stability(Stable) @Nullable default String getAvailabilityZone()
      The Availability Zone the subnet is located in.

      Default: - No AZ information, cannot use AZ selection features

    • getIpv4CidrBlock

      @Stability(Stable) @Nullable default String getIpv4CidrBlock()
      The IPv4 CIDR block associated with the subnet.

      Default: - No CIDR information, cannot use CIDR filter features

    • getRouteTableId

      @Stability(Stable) @Nullable default String getRouteTableId()
      The ID of the route table for this particular subnet.

      Default: - No route table information, cannot create VPC endpoints

    • builder

      @Stability(Stable) static SubnetAttributes.Builder builder()
      Returns:
      a SubnetAttributes.Builder of SubnetAttributes