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

    • getAvailabilityZone

      @Stability(Stable) @NotNull String getAvailabilityZone()
      The code of the availability zone this subnet is in (for example, 'us-west-2a').
    • getRouteTableId

      @Stability(Stable) @NotNull String getRouteTableId()
      The identifier of the route table for this subnet.
    • getSubnetId

      @Stability(Stable) @NotNull String getSubnetId()
      The identifier of the subnet.
    • getCidr

      @Stability(Stable) @Nullable default String getCidr()
      CIDR range of the subnet.

      Default: - CIDR information not available

    • builder

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