@aws-sdk/client-networkmanager 3.234.0 → 3.236.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.
@@ -1,861 +1,4 @@
1
- export const ruleSet = {
2
- version: "1.0",
3
- parameters: {
4
- Region: {
5
- builtIn: "AWS::Region",
6
- required: false,
7
- documentation: "The AWS region used to dispatch the request.",
8
- type: "String",
9
- },
10
- UseDualStack: {
11
- builtIn: "AWS::UseDualStack",
12
- required: true,
13
- default: false,
14
- documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
15
- type: "Boolean",
16
- },
17
- UseFIPS: {
18
- builtIn: "AWS::UseFIPS",
19
- required: true,
20
- default: false,
21
- documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
22
- type: "Boolean",
23
- },
24
- Endpoint: {
25
- builtIn: "SDK::Endpoint",
26
- required: false,
27
- documentation: "Override the endpoint used to send this request",
28
- type: "String",
29
- },
30
- },
31
- rules: [
32
- {
33
- conditions: [
34
- {
35
- fn: "aws.partition",
36
- argv: [
37
- {
38
- ref: "Region",
39
- },
40
- ],
41
- assign: "PartitionResult",
42
- },
43
- ],
44
- type: "tree",
45
- rules: [
46
- {
47
- conditions: [
48
- {
49
- fn: "isSet",
50
- argv: [
51
- {
52
- ref: "Endpoint",
53
- },
54
- ],
55
- },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
- ],
66
- type: "tree",
67
- rules: [
68
- {
69
- conditions: [
70
- {
71
- fn: "booleanEquals",
72
- argv: [
73
- {
74
- ref: "UseFIPS",
75
- },
76
- true,
77
- ],
78
- },
79
- ],
80
- error: "Invalid Configuration: FIPS and custom endpoint are not supported",
81
- type: "error",
82
- },
83
- {
84
- conditions: [],
85
- type: "tree",
86
- rules: [
87
- {
88
- conditions: [
89
- {
90
- fn: "booleanEquals",
91
- argv: [
92
- {
93
- ref: "UseDualStack",
94
- },
95
- true,
96
- ],
97
- },
98
- ],
99
- error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
100
- type: "error",
101
- },
102
- {
103
- conditions: [],
104
- endpoint: {
105
- url: {
106
- ref: "Endpoint",
107
- },
108
- properties: {},
109
- headers: {},
110
- },
111
- type: "endpoint",
112
- },
113
- ],
114
- },
115
- ],
116
- },
117
- {
118
- conditions: [
119
- {
120
- fn: "stringEquals",
121
- argv: [
122
- {
123
- fn: "getAttr",
124
- argv: [
125
- {
126
- ref: "PartitionResult",
127
- },
128
- "name",
129
- ],
130
- },
131
- "aws",
132
- ],
133
- },
134
- ],
135
- type: "tree",
136
- rules: [
137
- {
138
- conditions: [
139
- {
140
- fn: "booleanEquals",
141
- argv: [
142
- {
143
- ref: "UseFIPS",
144
- },
145
- true,
146
- ],
147
- },
148
- {
149
- fn: "booleanEquals",
150
- argv: [
151
- {
152
- ref: "UseDualStack",
153
- },
154
- true,
155
- ],
156
- },
157
- ],
158
- type: "tree",
159
- rules: [
160
- {
161
- conditions: [
162
- {
163
- fn: "booleanEquals",
164
- argv: [
165
- true,
166
- {
167
- fn: "getAttr",
168
- argv: [
169
- {
170
- ref: "PartitionResult",
171
- },
172
- "supportsFIPS",
173
- ],
174
- },
175
- ],
176
- },
177
- {
178
- fn: "booleanEquals",
179
- argv: [
180
- true,
181
- {
182
- fn: "getAttr",
183
- argv: [
184
- {
185
- ref: "PartitionResult",
186
- },
187
- "supportsDualStack",
188
- ],
189
- },
190
- ],
191
- },
192
- ],
193
- type: "tree",
194
- rules: [
195
- {
196
- conditions: [],
197
- endpoint: {
198
- url: "https://networkmanager-fips.{Region}.api.aws",
199
- properties: {
200
- authSchemes: [
201
- {
202
- name: "sigv4",
203
- signingRegion: "us-west-2",
204
- signingName: "networkmanager",
205
- },
206
- ],
207
- },
208
- headers: {},
209
- },
210
- type: "endpoint",
211
- },
212
- ],
213
- },
214
- {
215
- conditions: [],
216
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
217
- type: "error",
218
- },
219
- ],
220
- },
221
- {
222
- conditions: [
223
- {
224
- fn: "booleanEquals",
225
- argv: [
226
- {
227
- ref: "UseFIPS",
228
- },
229
- true,
230
- ],
231
- },
232
- ],
233
- type: "tree",
234
- rules: [
235
- {
236
- conditions: [
237
- {
238
- fn: "booleanEquals",
239
- argv: [
240
- true,
241
- {
242
- fn: "getAttr",
243
- argv: [
244
- {
245
- ref: "PartitionResult",
246
- },
247
- "supportsFIPS",
248
- ],
249
- },
250
- ],
251
- },
252
- ],
253
- type: "tree",
254
- rules: [
255
- {
256
- conditions: [],
257
- endpoint: {
258
- url: "https://networkmanager-fips.{Region}.amazonaws.com",
259
- properties: {
260
- authSchemes: [
261
- {
262
- name: "sigv4",
263
- signingRegion: "us-west-2",
264
- signingName: "networkmanager",
265
- },
266
- ],
267
- },
268
- headers: {},
269
- },
270
- type: "endpoint",
271
- },
272
- ],
273
- },
274
- {
275
- conditions: [],
276
- error: "FIPS is enabled but this partition does not support FIPS",
277
- type: "error",
278
- },
279
- ],
280
- },
281
- {
282
- conditions: [
283
- {
284
- fn: "booleanEquals",
285
- argv: [
286
- {
287
- ref: "UseDualStack",
288
- },
289
- true,
290
- ],
291
- },
292
- ],
293
- type: "tree",
294
- rules: [
295
- {
296
- conditions: [
297
- {
298
- fn: "booleanEquals",
299
- argv: [
300
- true,
301
- {
302
- fn: "getAttr",
303
- argv: [
304
- {
305
- ref: "PartitionResult",
306
- },
307
- "supportsDualStack",
308
- ],
309
- },
310
- ],
311
- },
312
- ],
313
- type: "tree",
314
- rules: [
315
- {
316
- conditions: [],
317
- endpoint: {
318
- url: "https://networkmanager.{Region}.api.aws",
319
- properties: {
320
- authSchemes: [
321
- {
322
- name: "sigv4",
323
- signingRegion: "us-west-2",
324
- signingName: "networkmanager",
325
- },
326
- ],
327
- },
328
- headers: {},
329
- },
330
- type: "endpoint",
331
- },
332
- ],
333
- },
334
- {
335
- conditions: [],
336
- error: "DualStack is enabled but this partition does not support DualStack",
337
- type: "error",
338
- },
339
- ],
340
- },
341
- {
342
- conditions: [],
343
- endpoint: {
344
- url: "https://networkmanager.us-west-2.amazonaws.com",
345
- properties: {
346
- authSchemes: [
347
- {
348
- name: "sigv4",
349
- signingRegion: "us-west-2",
350
- signingName: "networkmanager",
351
- },
352
- ],
353
- },
354
- headers: {},
355
- },
356
- type: "endpoint",
357
- },
358
- ],
359
- },
360
- {
361
- conditions: [
362
- {
363
- fn: "stringEquals",
364
- argv: [
365
- {
366
- fn: "getAttr",
367
- argv: [
368
- {
369
- ref: "PartitionResult",
370
- },
371
- "name",
372
- ],
373
- },
374
- "aws-us-gov",
375
- ],
376
- },
377
- ],
378
- type: "tree",
379
- rules: [
380
- {
381
- conditions: [
382
- {
383
- fn: "booleanEquals",
384
- argv: [
385
- {
386
- ref: "UseFIPS",
387
- },
388
- true,
389
- ],
390
- },
391
- {
392
- fn: "booleanEquals",
393
- argv: [
394
- {
395
- ref: "UseDualStack",
396
- },
397
- true,
398
- ],
399
- },
400
- ],
401
- type: "tree",
402
- rules: [
403
- {
404
- conditions: [
405
- {
406
- fn: "booleanEquals",
407
- argv: [
408
- true,
409
- {
410
- fn: "getAttr",
411
- argv: [
412
- {
413
- ref: "PartitionResult",
414
- },
415
- "supportsFIPS",
416
- ],
417
- },
418
- ],
419
- },
420
- {
421
- fn: "booleanEquals",
422
- argv: [
423
- true,
424
- {
425
- fn: "getAttr",
426
- argv: [
427
- {
428
- ref: "PartitionResult",
429
- },
430
- "supportsDualStack",
431
- ],
432
- },
433
- ],
434
- },
435
- ],
436
- type: "tree",
437
- rules: [
438
- {
439
- conditions: [],
440
- endpoint: {
441
- url: "https://networkmanager-fips.{Region}.api.aws",
442
- properties: {
443
- authSchemes: [
444
- {
445
- name: "sigv4",
446
- signingRegion: "us-gov-west-1",
447
- signingName: "networkmanager",
448
- },
449
- ],
450
- },
451
- headers: {},
452
- },
453
- type: "endpoint",
454
- },
455
- ],
456
- },
457
- {
458
- conditions: [],
459
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
460
- type: "error",
461
- },
462
- ],
463
- },
464
- {
465
- conditions: [
466
- {
467
- fn: "booleanEquals",
468
- argv: [
469
- {
470
- ref: "UseFIPS",
471
- },
472
- true,
473
- ],
474
- },
475
- ],
476
- type: "tree",
477
- rules: [
478
- {
479
- conditions: [
480
- {
481
- fn: "booleanEquals",
482
- argv: [
483
- true,
484
- {
485
- fn: "getAttr",
486
- argv: [
487
- {
488
- ref: "PartitionResult",
489
- },
490
- "supportsFIPS",
491
- ],
492
- },
493
- ],
494
- },
495
- ],
496
- type: "tree",
497
- rules: [
498
- {
499
- conditions: [],
500
- endpoint: {
501
- url: "https://networkmanager-fips.{Region}.amazonaws.com",
502
- properties: {
503
- authSchemes: [
504
- {
505
- name: "sigv4",
506
- signingRegion: "us-gov-west-1",
507
- signingName: "networkmanager",
508
- },
509
- ],
510
- },
511
- headers: {},
512
- },
513
- type: "endpoint",
514
- },
515
- ],
516
- },
517
- {
518
- conditions: [],
519
- error: "FIPS is enabled but this partition does not support FIPS",
520
- type: "error",
521
- },
522
- ],
523
- },
524
- {
525
- conditions: [
526
- {
527
- fn: "booleanEquals",
528
- argv: [
529
- {
530
- ref: "UseDualStack",
531
- },
532
- true,
533
- ],
534
- },
535
- ],
536
- type: "tree",
537
- rules: [
538
- {
539
- conditions: [
540
- {
541
- fn: "booleanEquals",
542
- argv: [
543
- true,
544
- {
545
- fn: "getAttr",
546
- argv: [
547
- {
548
- ref: "PartitionResult",
549
- },
550
- "supportsDualStack",
551
- ],
552
- },
553
- ],
554
- },
555
- ],
556
- type: "tree",
557
- rules: [
558
- {
559
- conditions: [],
560
- endpoint: {
561
- url: "https://networkmanager.{Region}.api.aws",
562
- properties: {
563
- authSchemes: [
564
- {
565
- name: "sigv4",
566
- signingRegion: "us-gov-west-1",
567
- signingName: "networkmanager",
568
- },
569
- ],
570
- },
571
- headers: {},
572
- },
573
- type: "endpoint",
574
- },
575
- ],
576
- },
577
- {
578
- conditions: [],
579
- error: "DualStack is enabled but this partition does not support DualStack",
580
- type: "error",
581
- },
582
- ],
583
- },
584
- {
585
- conditions: [],
586
- endpoint: {
587
- url: "https://networkmanager.us-gov-west-1.amazonaws.com",
588
- properties: {
589
- authSchemes: [
590
- {
591
- name: "sigv4",
592
- signingRegion: "us-gov-west-1",
593
- signingName: "networkmanager",
594
- },
595
- ],
596
- },
597
- headers: {},
598
- },
599
- type: "endpoint",
600
- },
601
- ],
602
- },
603
- {
604
- conditions: [
605
- {
606
- fn: "booleanEquals",
607
- argv: [
608
- {
609
- ref: "UseFIPS",
610
- },
611
- true,
612
- ],
613
- },
614
- {
615
- fn: "booleanEquals",
616
- argv: [
617
- {
618
- ref: "UseDualStack",
619
- },
620
- true,
621
- ],
622
- },
623
- ],
624
- type: "tree",
625
- rules: [
626
- {
627
- conditions: [
628
- {
629
- fn: "booleanEquals",
630
- argv: [
631
- true,
632
- {
633
- fn: "getAttr",
634
- argv: [
635
- {
636
- ref: "PartitionResult",
637
- },
638
- "supportsFIPS",
639
- ],
640
- },
641
- ],
642
- },
643
- {
644
- fn: "booleanEquals",
645
- argv: [
646
- true,
647
- {
648
- fn: "getAttr",
649
- argv: [
650
- {
651
- ref: "PartitionResult",
652
- },
653
- "supportsDualStack",
654
- ],
655
- },
656
- ],
657
- },
658
- ],
659
- type: "tree",
660
- rules: [
661
- {
662
- conditions: [],
663
- endpoint: {
664
- url: "https://networkmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
665
- properties: {},
666
- headers: {},
667
- },
668
- type: "endpoint",
669
- },
670
- ],
671
- },
672
- {
673
- conditions: [],
674
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
675
- type: "error",
676
- },
677
- ],
678
- },
679
- {
680
- conditions: [
681
- {
682
- fn: "booleanEquals",
683
- argv: [
684
- {
685
- ref: "UseFIPS",
686
- },
687
- true,
688
- ],
689
- },
690
- ],
691
- type: "tree",
692
- rules: [
693
- {
694
- conditions: [
695
- {
696
- fn: "booleanEquals",
697
- argv: [
698
- true,
699
- {
700
- fn: "getAttr",
701
- argv: [
702
- {
703
- ref: "PartitionResult",
704
- },
705
- "supportsFIPS",
706
- ],
707
- },
708
- ],
709
- },
710
- ],
711
- type: "tree",
712
- rules: [
713
- {
714
- conditions: [],
715
- type: "tree",
716
- rules: [
717
- {
718
- conditions: [],
719
- endpoint: {
720
- url: "https://networkmanager-fips.{Region}.{PartitionResult#dnsSuffix}",
721
- properties: {},
722
- headers: {},
723
- },
724
- type: "endpoint",
725
- },
726
- ],
727
- },
728
- ],
729
- },
730
- {
731
- conditions: [],
732
- error: "FIPS is enabled but this partition does not support FIPS",
733
- type: "error",
734
- },
735
- ],
736
- },
737
- {
738
- conditions: [
739
- {
740
- fn: "booleanEquals",
741
- argv: [
742
- {
743
- ref: "UseDualStack",
744
- },
745
- true,
746
- ],
747
- },
748
- ],
749
- type: "tree",
750
- rules: [
751
- {
752
- conditions: [
753
- {
754
- fn: "booleanEquals",
755
- argv: [
756
- true,
757
- {
758
- fn: "getAttr",
759
- argv: [
760
- {
761
- ref: "PartitionResult",
762
- },
763
- "supportsDualStack",
764
- ],
765
- },
766
- ],
767
- },
768
- ],
769
- type: "tree",
770
- rules: [
771
- {
772
- conditions: [],
773
- endpoint: {
774
- url: "https://networkmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",
775
- properties: {},
776
- headers: {},
777
- },
778
- type: "endpoint",
779
- },
780
- ],
781
- },
782
- {
783
- conditions: [],
784
- error: "DualStack is enabled but this partition does not support DualStack",
785
- type: "error",
786
- },
787
- ],
788
- },
789
- {
790
- conditions: [],
791
- type: "tree",
792
- rules: [
793
- {
794
- conditions: [
795
- {
796
- fn: "stringEquals",
797
- argv: [
798
- {
799
- ref: "Region",
800
- },
801
- "aws-global",
802
- ],
803
- },
804
- ],
805
- endpoint: {
806
- url: "https://networkmanager.us-west-2.amazonaws.com",
807
- properties: {
808
- authSchemes: [
809
- {
810
- name: "sigv4",
811
- signingRegion: "us-west-2",
812
- signingName: "networkmanager",
813
- },
814
- ],
815
- },
816
- headers: {},
817
- },
818
- type: "endpoint",
819
- },
820
- {
821
- conditions: [
822
- {
823
- fn: "stringEquals",
824
- argv: [
825
- {
826
- ref: "Region",
827
- },
828
- "aws-us-gov-global",
829
- ],
830
- },
831
- ],
832
- endpoint: {
833
- url: "https://networkmanager.us-gov-west-1.amazonaws.com",
834
- properties: {
835
- authSchemes: [
836
- {
837
- name: "sigv4",
838
- signingRegion: "us-gov-west-1",
839
- signingName: "networkmanager",
840
- },
841
- ],
842
- },
843
- headers: {},
844
- },
845
- type: "endpoint",
846
- },
847
- {
848
- conditions: [],
849
- endpoint: {
850
- url: "https://networkmanager.{Region}.{PartitionResult#dnsSuffix}",
851
- properties: {},
852
- headers: {},
853
- },
854
- type: "endpoint",
855
- },
856
- ],
857
- },
858
- ],
859
- },
860
- ],
861
- };
1
+ const C = "required", D = "type", E = "fn", F = "argv", G = "ref", H = "properties", I = "headers", J = "authSchemes", K = "signingRegion", L = "signingName";
2
+ const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = "https://networkmanager-fips.{Region}.api.aws", g = "https://networkmanager-fips.{Region}.amazonaws.com", h = "https://networkmanager.{Region}.api.aws", i = { [C]: false, [D]: "String" }, j = { [C]: true, "default": false, [D]: "Boolean" }, k = { [G]: "Region" }, l = { [G]: "Endpoint" }, m = {}, n = { [E]: "getAttr", [F]: [{ [G]: a }, "name"] }, o = { [J]: [{ "name": "sigv4", [K]: "us-west-2", [L]: "networkmanager" }] }, p = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [D]: c }, q = { [c]: "FIPS is enabled but this partition does not support FIPS", [D]: c }, r = { [c]: "DualStack is enabled but this partition does not support DualStack", [D]: c }, s = { "url": "https://networkmanager.us-west-2.amazonaws.com", [H]: o, [I]: {} }, t = { [J]: [{ "name": "sigv4", [K]: "us-gov-west-1", [L]: "networkmanager" }] }, u = { "url": "https://networkmanager.us-gov-west-1.amazonaws.com", [H]: t, [I]: {} }, v = [l], w = [{ [E]: "booleanEquals", [F]: [{ [G]: "UseFIPS" }, true] }], x = [{ [E]: "booleanEquals", [F]: [{ [G]: "UseDualStack" }, true] }], y = [{ [E]: "booleanEquals", [F]: [{ [G]: "UseFIPS" }, true] }, { [E]: "booleanEquals", [F]: [{ [G]: "UseDualStack" }, true] }], z = [{ [E]: "booleanEquals", [F]: [true, { [E]: "getAttr", [F]: [{ [G]: a }, "supportsFIPS"] }] }, { [E]: "booleanEquals", [F]: [true, { [E]: "getAttr", [F]: [{ [G]: a }, "supportsDualStack"] }] }], A = [{ [E]: "booleanEquals", [F]: [true, { [E]: "getAttr", [F]: [{ [G]: a }, "supportsFIPS"] }] }], B = [{ [E]: "booleanEquals", [F]: [true, { [E]: "getAttr", [F]: [{ [G]: a }, "supportsDualStack"] }] }];
3
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [E]: "aws.partition", [F]: [k], assign: a }], [D]: b, rules: [{ conditions: [{ [E]: "isSet", [F]: v }, { [E]: "parseURL", [F]: v, assign: "url" }], [D]: b, rules: [{ conditions: w, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [D]: c }, { [D]: b, rules: [{ conditions: x, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [D]: c }, { endpoint: { url: l, [H]: m, [I]: m }, [D]: d }] }] }, { conditions: [{ [E]: e, [F]: [n, "aws"] }], [D]: b, rules: [{ conditions: y, [D]: b, rules: [{ conditions: z, [D]: b, rules: [{ endpoint: { url: f, [H]: o, [I]: m }, [D]: d }] }, p] }, { conditions: w, [D]: b, rules: [{ conditions: A, [D]: b, rules: [{ endpoint: { url: g, [H]: o, [I]: m }, [D]: d }] }, q] }, { conditions: x, [D]: b, rules: [{ conditions: B, [D]: b, rules: [{ endpoint: { url: h, [H]: o, [I]: m }, [D]: d }] }, r] }, { endpoint: s, [D]: d }] }, { conditions: [{ [E]: e, [F]: [n, "aws-us-gov"] }], [D]: b, rules: [{ conditions: y, [D]: b, rules: [{ conditions: z, [D]: b, rules: [{ endpoint: { url: f, [H]: t, [I]: m }, [D]: d }] }, p] }, { conditions: w, [D]: b, rules: [{ conditions: A, [D]: b, rules: [{ endpoint: { url: g, [H]: t, [I]: m }, [D]: d }] }, q] }, { conditions: x, [D]: b, rules: [{ conditions: B, [D]: b, rules: [{ endpoint: { url: h, [H]: t, [I]: m }, [D]: d }] }, r] }, { endpoint: u, [D]: d }] }, { conditions: y, [D]: b, rules: [{ conditions: z, [D]: b, rules: [{ endpoint: { url: "https://networkmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [H]: m, [I]: m }, [D]: d }] }, p] }, { conditions: w, [D]: b, rules: [{ conditions: A, [D]: b, rules: [{ [D]: b, rules: [{ endpoint: { url: "https://networkmanager-fips.{Region}.{PartitionResult#dnsSuffix}", [H]: m, [I]: m }, [D]: d }] }] }, q] }, { conditions: x, [D]: b, rules: [{ conditions: B, [D]: b, rules: [{ endpoint: { url: "https://networkmanager.{Region}.{PartitionResult#dualStackDnsSuffix}", [H]: m, [I]: m }, [D]: d }] }, r] }, { [D]: b, rules: [{ conditions: [{ [E]: e, [F]: [k, "aws-global"] }], endpoint: s, [D]: d }, { conditions: [{ [E]: e, [F]: [k, "aws-us-gov-global"] }], endpoint: u, [D]: d }, { endpoint: { url: "https://networkmanager.{Region}.{PartitionResult#dnsSuffix}", [H]: m, [I]: m }, [D]: d }] }] }] };
4
+ export const ruleSet = _data;