VpcSubnet

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

Bases: object

__init__(*, availability_zone, route_table_id, subnet_id, cidr=None)

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

stability :stability: experimental

Return type

None

Attributes

availability_zone

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

stability :stability: experimental

Return type

str

cidr

CIDR range of the subnet.

default :default: - CIDR information not available

stability :stability: experimental

Return type

Optional[str]

route_table_id

The identifier of the route table for this subnet.

stability :stability: experimental

Return type

str

subnet_id

The identifier of the subnet.

stability :stability: experimental

Return type

str