SelectedSubnets

class aws_cdk.aws_ec2.SelectedSubnets(*, availability_zones, has_public, internet_connectivity_established, subnet_ids, subnets)

Bases: object

__init__(*, availability_zones, has_public, internet_connectivity_established, subnet_ids, subnets)

Result of selecting a subset of subnets from a VPC.

Parameters
  • availability_zones (List[str]) – The respective AZs of each subnet.

  • has_public (bool) – Whether any of the given subnets are from the VPC’s public subnets.

  • internet_connectivity_established (IDependable) – Dependency representing internet connectivity for these subnets.

  • subnet_ids (List[str]) – The subnet IDs.

  • subnets (List[ISubnet]) – Selected subnet objects.

Attributes

availability_zones

The respective AZs of each subnet.

Return type

List[str]

has_public

Whether any of the given subnets are from the VPC’s public subnets.

Return type

bool

internet_connectivity_established

Dependency representing internet connectivity for these subnets.

Return type

IDependable

subnet_ids

The subnet IDs.

Return type

List[str]

subnets

Selected subnet objects.

Return type

List[ISubnet]