ISubnet

class aws_cdk.aws_ec2.ISubnet(*args, **kwargs)

Bases: aws_cdk.core.IResource, typing_extensions.Protocol

__init__(*args, **kwargs)

Methods

associate_network_acl(id, acl)

Associate a Network ACL with this subnet.

Parameters
  • id (str) –

  • acl (INetworkAcl) – The Network ACL to associate.

Return type

None

Attributes

availability_zone

The Availability Zone the subnet is located in.

Return type

str

internet_connectivity_established

Dependable that can be depended upon to force internet connectivity established on the VPC.

Return type

IDependable

node

The construct node in the tree.

Return type

ConstructNode

route_table

The route table for this subnet.

Return type

IRouteTable

stack

The stack in which this resource is defined.

Return type

Stack

subnet_id

The subnetId for this particular subnet.

attribute: :attribute:: true

Return type

str