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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forISubnet.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidassociateNetworkAcl(String id, INetworkAcl acl) Associate a Network ACL with this subnet.The Availability Zone the subnet is located in.getEnv()The environment this resource belongs to.software.constructs.IDependableDependable that can be depended upon to force internet connectivity established on the VPC.The IPv4 CIDR block for this subnet.software.constructs.NodegetNode()The tree node.The route table for this subnet.The subnetId for this particular subnet.Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.interfaces.ec2.ISubnetRef
getSubnetRefMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
The IPv4 CIDR block for this subnet. -
getRouteTable
The route table for this subnet. -
getSubnetId
The subnetId for this particular subnet. -
associateNetworkAcl
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:
getNodein interfacesoftware.constructs.IConstruct
-
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:
getEnvin interfaceIEnvironmentAware
-