Utility class for allocating subnets within regions.

Constructors

Methods

Constructors

Methods

  • Processes a list of regions for an account.

    Parameters

    • accountName: string

      The account name

    • regions: string[]

      The list of regions to process

    • baseCidr: string

      The base CIDR for the VPC

    • cidrTracker: CidrTracker

      A tracker for allocated CIDRs

    • subnetTypes: SubnetType[]

      The subnet types to allocate

    • provider: string

      The cloud provider name

    • Optional regionPrefixLength: number

      Optional prefix length for regions

    • Optional azPrefixLength: number

      Optional prefix length for availability zones

    • Optional allocations: Allocation[]

      Array to append allocations to

    Returns Allocation[]