VpcSubnet

class aws_cdk.cx_api.VpcSubnet(*, availability_zone, route_table_id, subnet_id, cidr=None)

Bases: object

A subnet representation that the VPC provider uses.

Parameters
  • availability_zone (str) – The code of the availability zone this subnet is in (for example, ‘us-west-2a’).

  • route_table_id (str) – The identifier of the route table for this subnet.

  • subnet_id (str) – The identifier of the subnet.

  • cidr (Optional[str]) – CIDR range of the subnet. Default: - CIDR information not available

Attributes

availability_zone

The code of the availability zone this subnet is in (for example, ‘us-west-2a’).

Return type

str

cidr

CIDR range of the subnet.

Default
  • CIDR information not available

Return type

Optional[str]

route_table_id

The identifier of the route table for this subnet.

Return type

str

subnet_id

The identifier of the subnet.

Return type

str