@planecloud/validation 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,668 @@
1
+ import { z } from "zod";
2
+ export declare const VpcSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ organizationId: z.ZodString;
5
+ name: z.ZodString;
6
+ cidr: z.ZodString;
7
+ region: z.ZodString;
8
+ provider: z.ZodString;
9
+ providerId: z.ZodString;
10
+ status: z.ZodEnum<["AVAILABLE", "PENDING", "ERROR"]>;
11
+ tags: z.ZodRecord<z.ZodString, z.ZodString>;
12
+ createdAt: z.ZodDate;
13
+ updatedAt: z.ZodDate;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ status: "ERROR" | "PENDING" | "AVAILABLE";
19
+ name: string;
20
+ provider: string;
21
+ cidr: string;
22
+ organizationId: string;
23
+ region: string;
24
+ tags: Record<string, string>;
25
+ providerId: string;
26
+ }, {
27
+ id: string;
28
+ createdAt: Date;
29
+ updatedAt: Date;
30
+ status: "ERROR" | "PENDING" | "AVAILABLE";
31
+ name: string;
32
+ provider: string;
33
+ cidr: string;
34
+ organizationId: string;
35
+ region: string;
36
+ tags: Record<string, string>;
37
+ providerId: string;
38
+ }>;
39
+ export declare const SubnetSchema: z.ZodObject<{
40
+ id: z.ZodString;
41
+ vpcId: z.ZodString;
42
+ name: z.ZodString;
43
+ cidr: z.ZodString;
44
+ availabilityZone: z.ZodString;
45
+ type: z.ZodEnum<["PUBLIC", "PRIVATE", "ISOLATED"]>;
46
+ providerId: z.ZodString;
47
+ mapPublicIpOnLaunch: z.ZodBoolean;
48
+ tags: z.ZodRecord<z.ZodString, z.ZodString>;
49
+ createdAt: z.ZodDate;
50
+ updatedAt: z.ZodDate;
51
+ }, "strip", z.ZodTypeAny, {
52
+ id: string;
53
+ createdAt: Date;
54
+ updatedAt: Date;
55
+ type: "PUBLIC" | "PRIVATE" | "ISOLATED";
56
+ name: string;
57
+ cidr: string;
58
+ tags: Record<string, string>;
59
+ providerId: string;
60
+ vpcId: string;
61
+ availabilityZone: string;
62
+ mapPublicIpOnLaunch: boolean;
63
+ }, {
64
+ id: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ type: "PUBLIC" | "PRIVATE" | "ISOLATED";
68
+ name: string;
69
+ cidr: string;
70
+ tags: Record<string, string>;
71
+ providerId: string;
72
+ vpcId: string;
73
+ availabilityZone: string;
74
+ mapPublicIpOnLaunch: boolean;
75
+ }>;
76
+ export declare const FirewallRuleSchema: z.ZodObject<{
77
+ id: z.ZodString;
78
+ vpcId: z.ZodString;
79
+ name: z.ZodString;
80
+ description: z.ZodOptional<z.ZodString>;
81
+ direction: z.ZodEnum<["INBOUND", "OUTBOUND"]>;
82
+ protocol: z.ZodEnum<["TCP", "UDP", "ICMP", "ALL"]>;
83
+ portRange: z.ZodOptional<z.ZodObject<{
84
+ from: z.ZodNumber;
85
+ to: z.ZodNumber;
86
+ }, "strip", z.ZodTypeAny, {
87
+ from: number;
88
+ to: number;
89
+ }, {
90
+ from: number;
91
+ to: number;
92
+ }>>;
93
+ cidrBlocks: z.ZodArray<z.ZodString, "many">;
94
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
+ action: z.ZodEnum<["ALLOW", "DENY"]>;
96
+ priority: z.ZodNumber;
97
+ isActive: z.ZodBoolean;
98
+ createdAt: z.ZodDate;
99
+ updatedAt: z.ZodDate;
100
+ }, "strip", z.ZodTypeAny, {
101
+ id: string;
102
+ createdAt: Date;
103
+ updatedAt: Date;
104
+ name: string;
105
+ isActive: boolean;
106
+ vpcId: string;
107
+ direction: "INBOUND" | "OUTBOUND";
108
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
109
+ cidrBlocks: string[];
110
+ action: "ALLOW" | "DENY";
111
+ priority: number;
112
+ description?: string | undefined;
113
+ portRange?: {
114
+ from: number;
115
+ to: number;
116
+ } | undefined;
117
+ securityGroupIds?: string[] | undefined;
118
+ }, {
119
+ id: string;
120
+ createdAt: Date;
121
+ updatedAt: Date;
122
+ name: string;
123
+ isActive: boolean;
124
+ vpcId: string;
125
+ direction: "INBOUND" | "OUTBOUND";
126
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
127
+ cidrBlocks: string[];
128
+ action: "ALLOW" | "DENY";
129
+ priority: number;
130
+ description?: string | undefined;
131
+ portRange?: {
132
+ from: number;
133
+ to: number;
134
+ } | undefined;
135
+ securityGroupIds?: string[] | undefined;
136
+ }>;
137
+ export declare const SecurityGroupSchema: z.ZodObject<{
138
+ id: z.ZodString;
139
+ vpcId: z.ZodString;
140
+ name: z.ZodString;
141
+ description: z.ZodOptional<z.ZodString>;
142
+ providerId: z.ZodString;
143
+ rules: z.ZodArray<z.ZodObject<{
144
+ id: z.ZodString;
145
+ name: z.ZodString;
146
+ description: z.ZodOptional<z.ZodString>;
147
+ direction: z.ZodEnum<["INBOUND", "OUTBOUND"]>;
148
+ protocol: z.ZodEnum<["TCP", "UDP", "ICMP", "ALL"]>;
149
+ portRange: z.ZodOptional<z.ZodObject<{
150
+ from: z.ZodNumber;
151
+ to: z.ZodNumber;
152
+ }, "strip", z.ZodTypeAny, {
153
+ from: number;
154
+ to: number;
155
+ }, {
156
+ from: number;
157
+ to: number;
158
+ }>>;
159
+ cidrBlocks: z.ZodArray<z.ZodString, "many">;
160
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ action: z.ZodEnum<["ALLOW", "DENY"]>;
162
+ priority: z.ZodNumber;
163
+ isActive: z.ZodBoolean;
164
+ createdAt: z.ZodDate;
165
+ updatedAt: z.ZodDate;
166
+ }, "strip", z.ZodTypeAny, {
167
+ id: string;
168
+ createdAt: Date;
169
+ updatedAt: Date;
170
+ name: string;
171
+ isActive: boolean;
172
+ direction: "INBOUND" | "OUTBOUND";
173
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
174
+ cidrBlocks: string[];
175
+ action: "ALLOW" | "DENY";
176
+ priority: number;
177
+ description?: string | undefined;
178
+ portRange?: {
179
+ from: number;
180
+ to: number;
181
+ } | undefined;
182
+ securityGroupIds?: string[] | undefined;
183
+ }, {
184
+ id: string;
185
+ createdAt: Date;
186
+ updatedAt: Date;
187
+ name: string;
188
+ isActive: boolean;
189
+ direction: "INBOUND" | "OUTBOUND";
190
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
191
+ cidrBlocks: string[];
192
+ action: "ALLOW" | "DENY";
193
+ priority: number;
194
+ description?: string | undefined;
195
+ portRange?: {
196
+ from: number;
197
+ to: number;
198
+ } | undefined;
199
+ securityGroupIds?: string[] | undefined;
200
+ }>, "many">;
201
+ tags: z.ZodRecord<z.ZodString, z.ZodString>;
202
+ createdAt: z.ZodDate;
203
+ updatedAt: z.ZodDate;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ createdAt: Date;
207
+ updatedAt: Date;
208
+ name: string;
209
+ tags: Record<string, string>;
210
+ providerId: string;
211
+ vpcId: string;
212
+ rules: {
213
+ id: string;
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ name: string;
217
+ isActive: boolean;
218
+ direction: "INBOUND" | "OUTBOUND";
219
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
220
+ cidrBlocks: string[];
221
+ action: "ALLOW" | "DENY";
222
+ priority: number;
223
+ description?: string | undefined;
224
+ portRange?: {
225
+ from: number;
226
+ to: number;
227
+ } | undefined;
228
+ securityGroupIds?: string[] | undefined;
229
+ }[];
230
+ description?: string | undefined;
231
+ }, {
232
+ id: string;
233
+ createdAt: Date;
234
+ updatedAt: Date;
235
+ name: string;
236
+ tags: Record<string, string>;
237
+ providerId: string;
238
+ vpcId: string;
239
+ rules: {
240
+ id: string;
241
+ createdAt: Date;
242
+ updatedAt: Date;
243
+ name: string;
244
+ isActive: boolean;
245
+ direction: "INBOUND" | "OUTBOUND";
246
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
247
+ cidrBlocks: string[];
248
+ action: "ALLOW" | "DENY";
249
+ priority: number;
250
+ description?: string | undefined;
251
+ portRange?: {
252
+ from: number;
253
+ to: number;
254
+ } | undefined;
255
+ securityGroupIds?: string[] | undefined;
256
+ }[];
257
+ description?: string | undefined;
258
+ }>;
259
+ export declare const NatGatewaySchema: z.ZodObject<{
260
+ id: z.ZodString;
261
+ vpcId: z.ZodString;
262
+ subnetId: z.ZodString;
263
+ name: z.ZodString;
264
+ providerId: z.ZodString;
265
+ publicIp: z.ZodString;
266
+ privateIp: z.ZodString;
267
+ status: z.ZodEnum<["PENDING", "AVAILABLE", "FAILED", "DELETING"]>;
268
+ tags: z.ZodRecord<z.ZodString, z.ZodString>;
269
+ createdAt: z.ZodDate;
270
+ updatedAt: z.ZodDate;
271
+ }, "strip", z.ZodTypeAny, {
272
+ id: string;
273
+ createdAt: Date;
274
+ updatedAt: Date;
275
+ status: "DELETING" | "PENDING" | "FAILED" | "AVAILABLE";
276
+ name: string;
277
+ tags: Record<string, string>;
278
+ providerId: string;
279
+ vpcId: string;
280
+ subnetId: string;
281
+ publicIp: string;
282
+ privateIp: string;
283
+ }, {
284
+ id: string;
285
+ createdAt: Date;
286
+ updatedAt: Date;
287
+ status: "DELETING" | "PENDING" | "FAILED" | "AVAILABLE";
288
+ name: string;
289
+ tags: Record<string, string>;
290
+ providerId: string;
291
+ vpcId: string;
292
+ subnetId: string;
293
+ publicIp: string;
294
+ privateIp: string;
295
+ }>;
296
+ export declare const VpcPeeringSchema: z.ZodObject<{
297
+ id: z.ZodString;
298
+ requesterVpcId: z.ZodString;
299
+ accepterVpcId: z.ZodString;
300
+ name: z.ZodString;
301
+ status: z.ZodEnum<["PENDING_ACCEPTANCE", "ACTIVE", "REJECTED", "FAILED", "DELETING", "DELETED"]>;
302
+ requesterAccountId: z.ZodString;
303
+ accepterAccountId: z.ZodString;
304
+ connectionId: z.ZodOptional<z.ZodString>;
305
+ tags: z.ZodRecord<z.ZodString, z.ZodString>;
306
+ createdAt: z.ZodDate;
307
+ updatedAt: z.ZodDate;
308
+ }, "strip", z.ZodTypeAny, {
309
+ id: string;
310
+ createdAt: Date;
311
+ updatedAt: Date;
312
+ status: "DELETING" | "ACTIVE" | "FAILED" | "PENDING_ACCEPTANCE" | "REJECTED" | "DELETED";
313
+ name: string;
314
+ tags: Record<string, string>;
315
+ requesterVpcId: string;
316
+ accepterVpcId: string;
317
+ requesterAccountId: string;
318
+ accepterAccountId: string;
319
+ connectionId?: string | undefined;
320
+ }, {
321
+ id: string;
322
+ createdAt: Date;
323
+ updatedAt: Date;
324
+ status: "DELETING" | "ACTIVE" | "FAILED" | "PENDING_ACCEPTANCE" | "REJECTED" | "DELETED";
325
+ name: string;
326
+ tags: Record<string, string>;
327
+ requesterVpcId: string;
328
+ accepterVpcId: string;
329
+ requesterAccountId: string;
330
+ accepterAccountId: string;
331
+ connectionId?: string | undefined;
332
+ }>;
333
+ export declare const SslCertificateSchema: z.ZodObject<{
334
+ id: z.ZodString;
335
+ organizationId: z.ZodString;
336
+ name: z.ZodString;
337
+ domain: z.ZodString;
338
+ sans: z.ZodArray<z.ZodString, "many">;
339
+ certificateArn: z.ZodOptional<z.ZodString>;
340
+ certificateChain: z.ZodOptional<z.ZodString>;
341
+ privateKey: z.ZodOptional<z.ZodString>;
342
+ status: z.ZodEnum<["PENDING_VALIDATION", "ISSUED", "FAILED", "INACTIVE", "EXPIRED"]>;
343
+ issuer: z.ZodOptional<z.ZodString>;
344
+ issuedAt: z.ZodOptional<z.ZodDate>;
345
+ expiresAt: z.ZodOptional<z.ZodDate>;
346
+ autoRenew: z.ZodBoolean;
347
+ validationMethod: z.ZodEnum<["DNS", "EMAIL", "HTTP"]>;
348
+ createdAt: z.ZodDate;
349
+ updatedAt: z.ZodDate;
350
+ }, "strip", z.ZodTypeAny, {
351
+ id: string;
352
+ createdAt: Date;
353
+ updatedAt: Date;
354
+ status: "FAILED" | "INACTIVE" | "PENDING_VALIDATION" | "ISSUED" | "EXPIRED";
355
+ name: string;
356
+ organizationId: string;
357
+ domain: string;
358
+ sans: string[];
359
+ autoRenew: boolean;
360
+ validationMethod: "DNS" | "EMAIL" | "HTTP";
361
+ expiresAt?: Date | undefined;
362
+ certificateArn?: string | undefined;
363
+ certificateChain?: string | undefined;
364
+ privateKey?: string | undefined;
365
+ issuer?: string | undefined;
366
+ issuedAt?: Date | undefined;
367
+ }, {
368
+ id: string;
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ status: "FAILED" | "INACTIVE" | "PENDING_VALIDATION" | "ISSUED" | "EXPIRED";
372
+ name: string;
373
+ organizationId: string;
374
+ domain: string;
375
+ sans: string[];
376
+ autoRenew: boolean;
377
+ validationMethod: "DNS" | "EMAIL" | "HTTP";
378
+ expiresAt?: Date | undefined;
379
+ certificateArn?: string | undefined;
380
+ certificateChain?: string | undefined;
381
+ privateKey?: string | undefined;
382
+ issuer?: string | undefined;
383
+ issuedAt?: Date | undefined;
384
+ }>;
385
+ export declare const LoadBalancerSchema: z.ZodObject<{
386
+ id: z.ZodString;
387
+ vpcId: z.ZodString;
388
+ name: z.ZodString;
389
+ type: z.ZodEnum<["APPLICATION", "NETWORK", "GATEWAY"]>;
390
+ scheme: z.ZodEnum<["INTERNET_FACING", "INTERNAL"]>;
391
+ ipAddress: z.ZodString;
392
+ dnsName: z.ZodString;
393
+ status: z.ZodEnum<["PROVISIONING", "ACTIVE", "FAILED"]>;
394
+ subnets: z.ZodArray<z.ZodString, "many">;
395
+ securityGroups: z.ZodArray<z.ZodString, "many">;
396
+ tags: z.ZodRecord<z.ZodString, z.ZodString>;
397
+ createdAt: z.ZodDate;
398
+ updatedAt: z.ZodDate;
399
+ }, "strip", z.ZodTypeAny, {
400
+ id: string;
401
+ createdAt: Date;
402
+ updatedAt: Date;
403
+ type: "APPLICATION" | "NETWORK" | "GATEWAY";
404
+ status: "PROVISIONING" | "ACTIVE" | "FAILED";
405
+ name: string;
406
+ ipAddress: string;
407
+ tags: Record<string, string>;
408
+ vpcId: string;
409
+ scheme: "INTERNET_FACING" | "INTERNAL";
410
+ dnsName: string;
411
+ subnets: string[];
412
+ securityGroups: string[];
413
+ }, {
414
+ id: string;
415
+ createdAt: Date;
416
+ updatedAt: Date;
417
+ type: "APPLICATION" | "NETWORK" | "GATEWAY";
418
+ status: "PROVISIONING" | "ACTIVE" | "FAILED";
419
+ name: string;
420
+ ipAddress: string;
421
+ tags: Record<string, string>;
422
+ vpcId: string;
423
+ scheme: "INTERNET_FACING" | "INTERNAL";
424
+ dnsName: string;
425
+ subnets: string[];
426
+ securityGroups: string[];
427
+ }>;
428
+ export declare const CreateVpcSchema: z.ZodObject<{
429
+ organizationId: z.ZodString;
430
+ name: z.ZodString;
431
+ cidr: z.ZodString;
432
+ region: z.ZodString;
433
+ provider: z.ZodString;
434
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ name: string;
437
+ provider: string;
438
+ cidr: string;
439
+ organizationId: string;
440
+ region: string;
441
+ tags?: Record<string, string> | undefined;
442
+ }, {
443
+ name: string;
444
+ provider: string;
445
+ cidr: string;
446
+ organizationId: string;
447
+ region: string;
448
+ tags?: Record<string, string> | undefined;
449
+ }>;
450
+ export declare const CreateSubnetSchema: z.ZodObject<{
451
+ vpcId: z.ZodString;
452
+ name: z.ZodString;
453
+ cidr: z.ZodString;
454
+ availabilityZone: z.ZodString;
455
+ type: z.ZodEnum<["PUBLIC", "PRIVATE", "ISOLATED"]>;
456
+ mapPublicIpOnLaunch: z.ZodDefault<z.ZodBoolean>;
457
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ type: "PUBLIC" | "PRIVATE" | "ISOLATED";
460
+ name: string;
461
+ cidr: string;
462
+ vpcId: string;
463
+ availabilityZone: string;
464
+ mapPublicIpOnLaunch: boolean;
465
+ tags?: Record<string, string> | undefined;
466
+ }, {
467
+ type: "PUBLIC" | "PRIVATE" | "ISOLATED";
468
+ name: string;
469
+ cidr: string;
470
+ vpcId: string;
471
+ availabilityZone: string;
472
+ tags?: Record<string, string> | undefined;
473
+ mapPublicIpOnLaunch?: boolean | undefined;
474
+ }>;
475
+ export declare const CreateFirewallRuleSchema: z.ZodObject<{
476
+ vpcId: z.ZodString;
477
+ name: z.ZodString;
478
+ description: z.ZodOptional<z.ZodString>;
479
+ direction: z.ZodEnum<["INBOUND", "OUTBOUND"]>;
480
+ protocol: z.ZodEnum<["TCP", "UDP", "ICMP", "ALL"]>;
481
+ portRange: z.ZodOptional<z.ZodObject<{
482
+ from: z.ZodNumber;
483
+ to: z.ZodNumber;
484
+ }, "strip", z.ZodTypeAny, {
485
+ from: number;
486
+ to: number;
487
+ }, {
488
+ from: number;
489
+ to: number;
490
+ }>>;
491
+ cidrBlocks: z.ZodArray<z.ZodString, "many">;
492
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ action: z.ZodEnum<["ALLOW", "DENY"]>;
494
+ priority: z.ZodNumber;
495
+ }, "strip", z.ZodTypeAny, {
496
+ name: string;
497
+ vpcId: string;
498
+ direction: "INBOUND" | "OUTBOUND";
499
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
500
+ cidrBlocks: string[];
501
+ action: "ALLOW" | "DENY";
502
+ priority: number;
503
+ description?: string | undefined;
504
+ portRange?: {
505
+ from: number;
506
+ to: number;
507
+ } | undefined;
508
+ securityGroupIds?: string[] | undefined;
509
+ }, {
510
+ name: string;
511
+ vpcId: string;
512
+ direction: "INBOUND" | "OUTBOUND";
513
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
514
+ cidrBlocks: string[];
515
+ action: "ALLOW" | "DENY";
516
+ priority: number;
517
+ description?: string | undefined;
518
+ portRange?: {
519
+ from: number;
520
+ to: number;
521
+ } | undefined;
522
+ securityGroupIds?: string[] | undefined;
523
+ }>;
524
+ export declare const CreateSecurityGroupSchema: z.ZodObject<{
525
+ vpcId: z.ZodString;
526
+ name: z.ZodString;
527
+ description: z.ZodOptional<z.ZodString>;
528
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ name: string;
531
+ vpcId: string;
532
+ description?: string | undefined;
533
+ tags?: Record<string, string> | undefined;
534
+ }, {
535
+ name: string;
536
+ vpcId: string;
537
+ description?: string | undefined;
538
+ tags?: Record<string, string> | undefined;
539
+ }>;
540
+ export declare const AddSecurityGroupRuleSchema: z.ZodObject<{
541
+ securityGroupId: z.ZodString;
542
+ rule: z.ZodObject<{
543
+ name: z.ZodString;
544
+ description: z.ZodOptional<z.ZodString>;
545
+ direction: z.ZodEnum<["INBOUND", "OUTBOUND"]>;
546
+ protocol: z.ZodEnum<["TCP", "UDP", "ICMP", "ALL"]>;
547
+ portRange: z.ZodOptional<z.ZodObject<{
548
+ from: z.ZodNumber;
549
+ to: z.ZodNumber;
550
+ }, "strip", z.ZodTypeAny, {
551
+ from: number;
552
+ to: number;
553
+ }, {
554
+ from: number;
555
+ to: number;
556
+ }>>;
557
+ cidrBlocks: z.ZodArray<z.ZodString, "many">;
558
+ securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
559
+ action: z.ZodEnum<["ALLOW", "DENY"]>;
560
+ priority: z.ZodNumber;
561
+ }, "strip", z.ZodTypeAny, {
562
+ name: string;
563
+ direction: "INBOUND" | "OUTBOUND";
564
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
565
+ cidrBlocks: string[];
566
+ action: "ALLOW" | "DENY";
567
+ priority: number;
568
+ description?: string | undefined;
569
+ portRange?: {
570
+ from: number;
571
+ to: number;
572
+ } | undefined;
573
+ securityGroupIds?: string[] | undefined;
574
+ }, {
575
+ name: string;
576
+ direction: "INBOUND" | "OUTBOUND";
577
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
578
+ cidrBlocks: string[];
579
+ action: "ALLOW" | "DENY";
580
+ priority: number;
581
+ description?: string | undefined;
582
+ portRange?: {
583
+ from: number;
584
+ to: number;
585
+ } | undefined;
586
+ securityGroupIds?: string[] | undefined;
587
+ }>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ securityGroupId: string;
590
+ rule: {
591
+ name: string;
592
+ direction: "INBOUND" | "OUTBOUND";
593
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
594
+ cidrBlocks: string[];
595
+ action: "ALLOW" | "DENY";
596
+ priority: number;
597
+ description?: string | undefined;
598
+ portRange?: {
599
+ from: number;
600
+ to: number;
601
+ } | undefined;
602
+ securityGroupIds?: string[] | undefined;
603
+ };
604
+ }, {
605
+ securityGroupId: string;
606
+ rule: {
607
+ name: string;
608
+ direction: "INBOUND" | "OUTBOUND";
609
+ protocol: "TCP" | "UDP" | "ICMP" | "ALL";
610
+ cidrBlocks: string[];
611
+ action: "ALLOW" | "DENY";
612
+ priority: number;
613
+ description?: string | undefined;
614
+ portRange?: {
615
+ from: number;
616
+ to: number;
617
+ } | undefined;
618
+ securityGroupIds?: string[] | undefined;
619
+ };
620
+ }>;
621
+ export declare const CreateVpcPeeringSchema: z.ZodObject<{
622
+ requesterVpcId: z.ZodString;
623
+ accepterVpcId: z.ZodString;
624
+ name: z.ZodString;
625
+ requesterAccountId: z.ZodString;
626
+ accepterAccountId: z.ZodString;
627
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
628
+ }, "strip", z.ZodTypeAny, {
629
+ name: string;
630
+ requesterVpcId: string;
631
+ accepterVpcId: string;
632
+ requesterAccountId: string;
633
+ accepterAccountId: string;
634
+ tags?: Record<string, string> | undefined;
635
+ }, {
636
+ name: string;
637
+ requesterVpcId: string;
638
+ accepterVpcId: string;
639
+ requesterAccountId: string;
640
+ accepterAccountId: string;
641
+ tags?: Record<string, string> | undefined;
642
+ }>;
643
+ export declare const CreateLoadBalancerSchema: z.ZodObject<{
644
+ vpcId: z.ZodString;
645
+ name: z.ZodString;
646
+ type: z.ZodEnum<["APPLICATION", "NETWORK", "GATEWAY"]>;
647
+ scheme: z.ZodEnum<["INTERNET_FACING", "INTERNAL"]>;
648
+ subnets: z.ZodArray<z.ZodString, "many">;
649
+ securityGroups: z.ZodArray<z.ZodString, "many">;
650
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ type: "APPLICATION" | "NETWORK" | "GATEWAY";
653
+ name: string;
654
+ vpcId: string;
655
+ scheme: "INTERNET_FACING" | "INTERNAL";
656
+ subnets: string[];
657
+ securityGroups: string[];
658
+ tags?: Record<string, string> | undefined;
659
+ }, {
660
+ type: "APPLICATION" | "NETWORK" | "GATEWAY";
661
+ name: string;
662
+ vpcId: string;
663
+ scheme: "INTERNET_FACING" | "INTERNAL";
664
+ subnets: string[];
665
+ securityGroups: string[];
666
+ tags?: Record<string, string> | undefined;
667
+ }>;
668
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/networking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc7B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBrC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC"}