Interface ISubnet

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IResource, ISubnetRef, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IPrivateSubnet, IPrivateSubnet.Jsii$Default, IPublicSubnet, IPublicSubnet.Jsii$Default, ISubnet.Jsii$Default, ISubnetV2, ISubnetV2.Jsii$Default
All Known Implementing Classes:
IPrivateSubnet.Jsii$Proxy, IPublicSubnet.Jsii$Proxy, ISubnet.Jsii$Proxy, ISubnetV2.Jsii$Proxy, PrivateSubnet, PublicSubnet, Subnet, SubnetV2

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-17T14:40:49.989Z") @Stability(Stable) public interface ISubnet extends software.amazon.jsii.JsiiSerializable, IResource, ISubnetRef
  • Method Details

    • getAvailabilityZone

      @Stability(Stable) @NotNull String getAvailabilityZone()
      The Availability Zone the subnet is located in.
    • getInternetConnectivityEstablished

      @Stability(Stable) @NotNull software.constructs.IDependable getInternetConnectivityEstablished()
      Dependable that can be depended upon to force internet connectivity established on the VPC.
    • getIpv4CidrBlock

      @Stability(Stable) @NotNull String getIpv4CidrBlock()
      The IPv4 CIDR block for this subnet.
    • getRouteTable

      @Stability(Stable) @NotNull IRouteTable getRouteTable()
      The route table for this subnet.
    • getSubnetId

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

      @Stability(Stable) void associateNetworkAcl(@NotNull String id, @NotNull INetworkAcl acl)
      Associate a Network ACL with this subnet.

      Parameters:
      id - This parameter is required.
      acl - The Network ACL to associate. This parameter is required.
    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

      Specified by:
      getEnv in interface IEnvironmentAware