Static
allocateAllocates a subnet within an availability zone.
Name of the account
Name of the VPC (generated from region)
Cloud provider name
Name of the region
Name of the availability zone
CIDR of the region
CIDR of the VPC
CIDR of the availability zone
Prefix length of the AZ
Subnet type to allocate
Array of remaining CIDR blocks
Tracker for CIDR allocations
Optional
allocations: Allocation[]Optional array to append allocations to
Updated array of remaining CIDR blocks
Static
calculateCalculates the effective prefix length for a subnet.
Name of the subnet type
Desired prefix length
AZ's prefix length
The effective prefix length to use
Static
subdivideSubdivides a CIDR block for a subnet allocation.
The CIDR block to subdivide
Desired prefix length
Name of the subnet type
Name of the AZ
The allocated CIDR and updated remaining space
Class responsible for allocating subnets within availability zones.