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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cx_api as cx_api

vpc_subnet = cx_api.VpcSubnet(
    availability_zone="availabilityZone",
    route_table_id="routeTableId",
    subnet_id="subnetId",

    # the properties below are optional
    cidr="cidr"
)

Attributes

availability_zone

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

cidr

CIDR range of the subnet.

Default:
  • CIDR information not available

route_table_id

The identifier of the route table for this subnet.

subnet_id

The identifier of the subnet.