VpcAttributes

class aws_cdk.aws_ec2.VpcAttributes(*, availability_zones, vpc_id, isolated_subnet_ids=None, isolated_subnet_names=None, isolated_subnet_route_table_ids=None, private_subnet_ids=None, private_subnet_names=None, private_subnet_route_table_ids=None, public_subnet_ids=None, public_subnet_names=None, public_subnet_route_table_ids=None, vpn_gateway_id=None)

Bases: object

__init__(*, availability_zones, vpc_id, isolated_subnet_ids=None, isolated_subnet_names=None, isolated_subnet_route_table_ids=None, private_subnet_ids=None, private_subnet_names=None, private_subnet_route_table_ids=None, public_subnet_ids=None, public_subnet_names=None, public_subnet_route_table_ids=None, vpn_gateway_id=None)

Properties that reference an external Vpc.

Parameters
  • availability_zones (List[str]) – List of availability zones for the subnets in this VPC.

  • vpc_id (str) – VPC’s identifier.

  • isolated_subnet_ids (Optional[List[str]]) – List of isolated subnet IDs. Must be undefined or match the availability zones in length and order.

  • isolated_subnet_names (Optional[List[str]]) – List of names for the isolated subnets. Must be undefined or have a name for every isolated subnet group.

  • isolated_subnet_route_table_ids (Optional[List[str]]) – List of IDs of routing tables for the isolated subnets. Must be undefined or have a name for every isolated subnet group.

  • private_subnet_ids (Optional[List[str]]) – List of private subnet IDs. Must be undefined or match the availability zones in length and order.

  • private_subnet_names (Optional[List[str]]) – List of names for the private subnets. Must be undefined or have a name for every private subnet group.

  • private_subnet_route_table_ids (Optional[List[str]]) – List of IDs of routing tables for the private subnets. Must be undefined or have a name for every private subnet group.

  • public_subnet_ids (Optional[List[str]]) – List of public subnet IDs. Must be undefined or match the availability zones in length and order.

  • public_subnet_names (Optional[List[str]]) – List of names for the public subnets. Must be undefined or have a name for every public subnet group.

  • public_subnet_route_table_ids (Optional[List[str]]) – List of IDs of routing tables for the public subnets. Must be undefined or have a name for every public subnet group.

  • vpn_gateway_id (Optional[str]) – VPN gateway’s identifier.

Attributes

availability_zones

List of availability zones for the subnets in this VPC.

Return type

List[str]

isolated_subnet_ids

List of isolated subnet IDs.

Must be undefined or match the availability zones in length and order.

Return type

Optional[List[str]]

isolated_subnet_names

List of names for the isolated subnets.

Must be undefined or have a name for every isolated subnet group.

Return type

Optional[List[str]]

isolated_subnet_route_table_ids

List of IDs of routing tables for the isolated subnets.

Must be undefined or have a name for every isolated subnet group.

Return type

Optional[List[str]]

private_subnet_ids

List of private subnet IDs.

Must be undefined or match the availability zones in length and order.

Return type

Optional[List[str]]

private_subnet_names

List of names for the private subnets.

Must be undefined or have a name for every private subnet group.

Return type

Optional[List[str]]

private_subnet_route_table_ids

List of IDs of routing tables for the private subnets.

Must be undefined or have a name for every private subnet group.

Return type

Optional[List[str]]

public_subnet_ids

List of public subnet IDs.

Must be undefined or match the availability zones in length and order.

Return type

Optional[List[str]]

public_subnet_names

List of names for the public subnets.

Must be undefined or have a name for every public subnet group.

Return type

Optional[List[str]]

public_subnet_route_table_ids

List of IDs of routing tables for the public subnets.

Must be undefined or have a name for every public subnet group.

Return type

Optional[List[str]]

vpc_id

VPC’s identifier.

Return type

str

vpn_gateway_id

VPN gateway’s identifier.

Return type

Optional[str]