@@ -137,21 +137,6 @@ export interface AllocateCidrRequest {
137
137
readonly requestedSubnets : RequestedSubnet [ ] ;
138
138
}
139
139
140
- /**
141
- * Request for subnet IPv6 CIDRs to be allocated for a VPC.
142
- */
143
- export interface AllocateIpv6CidrRequest {
144
- /**
145
- * List of subnets allocated with IPv4 CIDRs
146
- */
147
- readonly allocatedSubnets : AllocatedSubnet [ ] ;
148
-
149
- /**
150
- * The IPv6 CIDRs to be allocated to the subnets
151
- */
152
- readonly ipv6Cidrs : string [ ] ;
153
- }
154
-
155
140
/**
156
141
* Request for IPv6 CIDR block to be split up.
157
142
*/
@@ -173,6 +158,21 @@ export interface CreateIpv6CidrBlocksRequest {
173
158
readonly sizeMask ?: string ,
174
159
}
175
160
161
+ /**
162
+ * Request for subnet IPv6 CIDRs to be allocated for a VPC.
163
+ */
164
+ export interface AllocateIpv6CidrRequest {
165
+ /**
166
+ * List of subnets allocated with IPv4 CIDRs
167
+ */
168
+ readonly allocatedSubnets : AllocatedSubnet [ ] ;
169
+
170
+ /**
171
+ * The IPv6 CIDRs to be allocated to the subnets
172
+ */
173
+ readonly ipv6Cidrs : string [ ] ;
174
+ }
175
+
176
176
/**
177
177
* CIDR Allocated Subnets
178
178
*/
@@ -437,18 +437,18 @@ export interface IIpv6Addresses {
437
437
amazonProvided : boolean ,
438
438
439
439
/**
440
- * Allocates Subnets IPv6 CIDRs. Called by VPC when creating subnets with IPv6 enabled .
440
+ * Split IPv6 CIDR block up for subnets.
441
441
*
442
442
* Note this is specific to the IPv6 CIDR.
443
443
*/
444
- allocateSubnetsIpv6Cidr ( input : AllocateIpv6CidrRequest ) : SubnetIpamOptions ;
444
+ createIpv6CidrBlocks ( input : CreateIpv6CidrBlocksRequest ) : string [ ] ;
445
445
446
446
/**
447
- * Split IPv6 CIDR block up for subnets.
447
+ * Allocates Subnets IPv6 CIDRs. Called by VPC when creating subnets with IPv6 enabled .
448
448
*
449
449
* Note this is specific to the IPv6 CIDR.
450
450
*/
451
- createIpv6CidrBlocks ( input : CreateIpv6CidrBlocksRequest ) : string [ ] ;
451
+ allocateSubnetsIpv6Cidr ( input : AllocateIpv6CidrRequest ) : SubnetIpamOptions ;
452
452
}
453
453
454
454
/**
@@ -466,6 +466,19 @@ class AmazonProvided implements IIpv6Addresses {
466
466
this . amazonProvided = true ;
467
467
}
468
468
469
+ /**
470
+ * Split IPv6 CIDR block up for subnets.
471
+ *
472
+ * Called by VPC when creating subnets with IPv6 enabled.
473
+ *
474
+ * Note this is specific to the IPv6 CIDR.
475
+ */
476
+ createIpv6CidrBlocks ( input : CreateIpv6CidrBlocksRequest ) : string [ ] {
477
+ const sizeMask = input . sizeMask ?? '64' ; // 128 - 64
478
+
479
+ return Fn . cidr ( input . ipv6SelectedCidr , input . subnetCount , sizeMask ) ;
480
+ }
481
+
469
482
/**
470
483
* Allocates Subnets IPv6 CIDRs. Called by VPC when creating subnets with IPv6 enabled.
471
484
*
@@ -489,17 +502,4 @@ class AmazonProvided implements IIpv6Addresses {
489
502
allocatedSubnets : allocatedSubnets ,
490
503
} ;
491
504
}
492
-
493
- /**
494
- * Split IPv6 CIDR block up for subnets.
495
- *
496
- * Called by VPC when creating subnets with IPv6 enabled.
497
- *
498
- * Note this is specific to the IPv6 CIDR.
499
- */
500
- createIpv6CidrBlocks ( input : CreateIpv6CidrBlocksRequest ) : string [ ] {
501
- const sizeMask = input . sizeMask ?? '64' ; // 128 - 64
502
-
503
- return Fn . cidr ( input . ipv6SelectedCidr , input . subnetCount , sizeMask ) ;
504
- }
505
505
}
0 commit comments