@aws-sdk/client-iam 3.234.0 → 3.235.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,1491 +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://iam-fips.{Region}.api.aws",
199
- properties: {
200
- authSchemes: [
201
- {
202
- name: "sigv4",
203
- signingRegion: "us-east-1",
204
- signingName: "iam",
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://iam-fips.amazonaws.com",
259
- properties: {
260
- authSchemes: [
261
- {
262
- name: "sigv4",
263
- signingRegion: "us-east-1",
264
- signingName: "iam",
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://iam.{Region}.api.aws",
319
- properties: {
320
- authSchemes: [
321
- {
322
- name: "sigv4",
323
- signingRegion: "us-east-1",
324
- signingName: "iam",
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://iam.amazonaws.com",
345
- properties: {
346
- authSchemes: [
347
- {
348
- name: "sigv4",
349
- signingRegion: "us-east-1",
350
- signingName: "iam",
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-cn",
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://iam-fips.{Region}.api.amazonwebservices.com.cn",
442
- properties: {
443
- authSchemes: [
444
- {
445
- name: "sigv4",
446
- signingRegion: "cn-north-1",
447
- signingName: "iam",
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://iam-fips.{Region}.amazonaws.com.cn",
502
- properties: {
503
- authSchemes: [
504
- {
505
- name: "sigv4",
506
- signingRegion: "cn-north-1",
507
- signingName: "iam",
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://iam.{Region}.api.amazonwebservices.com.cn",
562
- properties: {
563
- authSchemes: [
564
- {
565
- name: "sigv4",
566
- signingRegion: "cn-north-1",
567
- signingName: "iam",
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://iam.cn-north-1.amazonaws.com.cn",
588
- properties: {
589
- authSchemes: [
590
- {
591
- name: "sigv4",
592
- signingRegion: "cn-north-1",
593
- signingName: "iam",
594
- },
595
- ],
596
- },
597
- headers: {},
598
- },
599
- type: "endpoint",
600
- },
601
- ],
602
- },
603
- {
604
- conditions: [
605
- {
606
- fn: "stringEquals",
607
- argv: [
608
- {
609
- fn: "getAttr",
610
- argv: [
611
- {
612
- ref: "PartitionResult",
613
- },
614
- "name",
615
- ],
616
- },
617
- "aws-us-gov",
618
- ],
619
- },
620
- ],
621
- type: "tree",
622
- rules: [
623
- {
624
- conditions: [
625
- {
626
- fn: "booleanEquals",
627
- argv: [
628
- {
629
- ref: "UseFIPS",
630
- },
631
- true,
632
- ],
633
- },
634
- {
635
- fn: "booleanEquals",
636
- argv: [
637
- {
638
- ref: "UseDualStack",
639
- },
640
- true,
641
- ],
642
- },
643
- ],
644
- type: "tree",
645
- rules: [
646
- {
647
- conditions: [
648
- {
649
- fn: "booleanEquals",
650
- argv: [
651
- true,
652
- {
653
- fn: "getAttr",
654
- argv: [
655
- {
656
- ref: "PartitionResult",
657
- },
658
- "supportsFIPS",
659
- ],
660
- },
661
- ],
662
- },
663
- {
664
- fn: "booleanEquals",
665
- argv: [
666
- true,
667
- {
668
- fn: "getAttr",
669
- argv: [
670
- {
671
- ref: "PartitionResult",
672
- },
673
- "supportsDualStack",
674
- ],
675
- },
676
- ],
677
- },
678
- ],
679
- type: "tree",
680
- rules: [
681
- {
682
- conditions: [],
683
- endpoint: {
684
- url: "https://iam-fips.{Region}.api.aws",
685
- properties: {
686
- authSchemes: [
687
- {
688
- name: "sigv4",
689
- signingRegion: "us-gov-west-1",
690
- signingName: "iam",
691
- },
692
- ],
693
- },
694
- headers: {},
695
- },
696
- type: "endpoint",
697
- },
698
- ],
699
- },
700
- {
701
- conditions: [],
702
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
703
- type: "error",
704
- },
705
- ],
706
- },
707
- {
708
- conditions: [
709
- {
710
- fn: "booleanEquals",
711
- argv: [
712
- {
713
- ref: "UseFIPS",
714
- },
715
- true,
716
- ],
717
- },
718
- ],
719
- type: "tree",
720
- rules: [
721
- {
722
- conditions: [
723
- {
724
- fn: "booleanEquals",
725
- argv: [
726
- true,
727
- {
728
- fn: "getAttr",
729
- argv: [
730
- {
731
- ref: "PartitionResult",
732
- },
733
- "supportsFIPS",
734
- ],
735
- },
736
- ],
737
- },
738
- ],
739
- type: "tree",
740
- rules: [
741
- {
742
- conditions: [],
743
- endpoint: {
744
- url: "https://iam.us-gov.amazonaws.com",
745
- properties: {
746
- authSchemes: [
747
- {
748
- name: "sigv4",
749
- signingRegion: "us-gov-west-1",
750
- signingName: "iam",
751
- },
752
- ],
753
- },
754
- headers: {},
755
- },
756
- type: "endpoint",
757
- },
758
- ],
759
- },
760
- {
761
- conditions: [],
762
- error: "FIPS is enabled but this partition does not support FIPS",
763
- type: "error",
764
- },
765
- ],
766
- },
767
- {
768
- conditions: [
769
- {
770
- fn: "booleanEquals",
771
- argv: [
772
- {
773
- ref: "UseDualStack",
774
- },
775
- true,
776
- ],
777
- },
778
- ],
779
- type: "tree",
780
- rules: [
781
- {
782
- conditions: [
783
- {
784
- fn: "booleanEquals",
785
- argv: [
786
- true,
787
- {
788
- fn: "getAttr",
789
- argv: [
790
- {
791
- ref: "PartitionResult",
792
- },
793
- "supportsDualStack",
794
- ],
795
- },
796
- ],
797
- },
798
- ],
799
- type: "tree",
800
- rules: [
801
- {
802
- conditions: [],
803
- endpoint: {
804
- url: "https://iam.{Region}.api.aws",
805
- properties: {
806
- authSchemes: [
807
- {
808
- name: "sigv4",
809
- signingRegion: "us-gov-west-1",
810
- signingName: "iam",
811
- },
812
- ],
813
- },
814
- headers: {},
815
- },
816
- type: "endpoint",
817
- },
818
- ],
819
- },
820
- {
821
- conditions: [],
822
- error: "DualStack is enabled but this partition does not support DualStack",
823
- type: "error",
824
- },
825
- ],
826
- },
827
- {
828
- conditions: [],
829
- endpoint: {
830
- url: "https://iam.us-gov.amazonaws.com",
831
- properties: {
832
- authSchemes: [
833
- {
834
- name: "sigv4",
835
- signingRegion: "us-gov-west-1",
836
- signingName: "iam",
837
- },
838
- ],
839
- },
840
- headers: {},
841
- },
842
- type: "endpoint",
843
- },
844
- ],
845
- },
846
- {
847
- conditions: [
848
- {
849
- fn: "stringEquals",
850
- argv: [
851
- {
852
- fn: "getAttr",
853
- argv: [
854
- {
855
- ref: "PartitionResult",
856
- },
857
- "name",
858
- ],
859
- },
860
- "aws-iso",
861
- ],
862
- },
863
- ],
864
- type: "tree",
865
- rules: [
866
- {
867
- conditions: [
868
- {
869
- fn: "booleanEquals",
870
- argv: [
871
- {
872
- ref: "UseFIPS",
873
- },
874
- true,
875
- ],
876
- },
877
- ],
878
- type: "tree",
879
- rules: [
880
- {
881
- conditions: [
882
- {
883
- fn: "booleanEquals",
884
- argv: [
885
- true,
886
- {
887
- fn: "getAttr",
888
- argv: [
889
- {
890
- ref: "PartitionResult",
891
- },
892
- "supportsFIPS",
893
- ],
894
- },
895
- ],
896
- },
897
- ],
898
- type: "tree",
899
- rules: [
900
- {
901
- conditions: [],
902
- endpoint: {
903
- url: "https://iam-fips.{Region}.c2s.ic.gov",
904
- properties: {
905
- authSchemes: [
906
- {
907
- name: "sigv4",
908
- signingRegion: "us-iso-east-1",
909
- signingName: "iam",
910
- },
911
- ],
912
- },
913
- headers: {},
914
- },
915
- type: "endpoint",
916
- },
917
- ],
918
- },
919
- {
920
- conditions: [],
921
- error: "FIPS is enabled but this partition does not support FIPS",
922
- type: "error",
923
- },
924
- ],
925
- },
926
- {
927
- conditions: [],
928
- endpoint: {
929
- url: "https://iam.us-iso-east-1.c2s.ic.gov",
930
- properties: {
931
- authSchemes: [
932
- {
933
- name: "sigv4",
934
- signingRegion: "us-iso-east-1",
935
- signingName: "iam",
936
- },
937
- ],
938
- },
939
- headers: {},
940
- },
941
- type: "endpoint",
942
- },
943
- ],
944
- },
945
- {
946
- conditions: [
947
- {
948
- fn: "stringEquals",
949
- argv: [
950
- {
951
- fn: "getAttr",
952
- argv: [
953
- {
954
- ref: "PartitionResult",
955
- },
956
- "name",
957
- ],
958
- },
959
- "aws-iso-b",
960
- ],
961
- },
962
- ],
963
- type: "tree",
964
- rules: [
965
- {
966
- conditions: [
967
- {
968
- fn: "booleanEquals",
969
- argv: [
970
- {
971
- ref: "UseFIPS",
972
- },
973
- true,
974
- ],
975
- },
976
- ],
977
- type: "tree",
978
- rules: [
979
- {
980
- conditions: [
981
- {
982
- fn: "booleanEquals",
983
- argv: [
984
- true,
985
- {
986
- fn: "getAttr",
987
- argv: [
988
- {
989
- ref: "PartitionResult",
990
- },
991
- "supportsFIPS",
992
- ],
993
- },
994
- ],
995
- },
996
- ],
997
- type: "tree",
998
- rules: [
999
- {
1000
- conditions: [],
1001
- endpoint: {
1002
- url: "https://iam-fips.{Region}.sc2s.sgov.gov",
1003
- properties: {
1004
- authSchemes: [
1005
- {
1006
- name: "sigv4",
1007
- signingRegion: "us-isob-east-1",
1008
- signingName: "iam",
1009
- },
1010
- ],
1011
- },
1012
- headers: {},
1013
- },
1014
- type: "endpoint",
1015
- },
1016
- ],
1017
- },
1018
- {
1019
- conditions: [],
1020
- error: "FIPS is enabled but this partition does not support FIPS",
1021
- type: "error",
1022
- },
1023
- ],
1024
- },
1025
- {
1026
- conditions: [],
1027
- endpoint: {
1028
- url: "https://iam.us-isob-east-1.sc2s.sgov.gov",
1029
- properties: {
1030
- authSchemes: [
1031
- {
1032
- name: "sigv4",
1033
- signingRegion: "us-isob-east-1",
1034
- signingName: "iam",
1035
- },
1036
- ],
1037
- },
1038
- headers: {},
1039
- },
1040
- type: "endpoint",
1041
- },
1042
- ],
1043
- },
1044
- {
1045
- conditions: [
1046
- {
1047
- fn: "booleanEquals",
1048
- argv: [
1049
- {
1050
- ref: "UseFIPS",
1051
- },
1052
- true,
1053
- ],
1054
- },
1055
- {
1056
- fn: "booleanEquals",
1057
- argv: [
1058
- {
1059
- ref: "UseDualStack",
1060
- },
1061
- true,
1062
- ],
1063
- },
1064
- ],
1065
- type: "tree",
1066
- rules: [
1067
- {
1068
- conditions: [
1069
- {
1070
- fn: "booleanEquals",
1071
- argv: [
1072
- true,
1073
- {
1074
- fn: "getAttr",
1075
- argv: [
1076
- {
1077
- ref: "PartitionResult",
1078
- },
1079
- "supportsFIPS",
1080
- ],
1081
- },
1082
- ],
1083
- },
1084
- {
1085
- fn: "booleanEquals",
1086
- argv: [
1087
- true,
1088
- {
1089
- fn: "getAttr",
1090
- argv: [
1091
- {
1092
- ref: "PartitionResult",
1093
- },
1094
- "supportsDualStack",
1095
- ],
1096
- },
1097
- ],
1098
- },
1099
- ],
1100
- type: "tree",
1101
- rules: [
1102
- {
1103
- conditions: [],
1104
- endpoint: {
1105
- url: "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
1106
- properties: {},
1107
- headers: {},
1108
- },
1109
- type: "endpoint",
1110
- },
1111
- ],
1112
- },
1113
- {
1114
- conditions: [],
1115
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
1116
- type: "error",
1117
- },
1118
- ],
1119
- },
1120
- {
1121
- conditions: [
1122
- {
1123
- fn: "booleanEquals",
1124
- argv: [
1125
- {
1126
- ref: "UseFIPS",
1127
- },
1128
- true,
1129
- ],
1130
- },
1131
- ],
1132
- type: "tree",
1133
- rules: [
1134
- {
1135
- conditions: [
1136
- {
1137
- fn: "booleanEquals",
1138
- argv: [
1139
- true,
1140
- {
1141
- fn: "getAttr",
1142
- argv: [
1143
- {
1144
- ref: "PartitionResult",
1145
- },
1146
- "supportsFIPS",
1147
- ],
1148
- },
1149
- ],
1150
- },
1151
- ],
1152
- type: "tree",
1153
- rules: [
1154
- {
1155
- conditions: [],
1156
- type: "tree",
1157
- rules: [
1158
- {
1159
- conditions: [
1160
- {
1161
- fn: "stringEquals",
1162
- argv: [
1163
- {
1164
- ref: "Region",
1165
- },
1166
- "iam",
1167
- ],
1168
- },
1169
- ],
1170
- endpoint: {
1171
- url: "https://iam-fips.amazonaws.com",
1172
- properties: {
1173
- authSchemes: [
1174
- {
1175
- name: "sigv4",
1176
- signingRegion: "us-east-1",
1177
- signingName: "iam",
1178
- },
1179
- ],
1180
- },
1181
- headers: {},
1182
- },
1183
- type: "endpoint",
1184
- },
1185
- {
1186
- conditions: [
1187
- {
1188
- fn: "stringEquals",
1189
- argv: [
1190
- {
1191
- ref: "Region",
1192
- },
1193
- "aws-global",
1194
- ],
1195
- },
1196
- ],
1197
- endpoint: {
1198
- url: "https://iam-fips.amazonaws.com",
1199
- properties: {
1200
- authSchemes: [
1201
- {
1202
- name: "sigv4",
1203
- signingRegion: "us-east-1",
1204
- signingName: "iam",
1205
- },
1206
- ],
1207
- },
1208
- headers: {},
1209
- },
1210
- type: "endpoint",
1211
- },
1212
- {
1213
- conditions: [
1214
- {
1215
- fn: "stringEquals",
1216
- argv: [
1217
- {
1218
- ref: "Region",
1219
- },
1220
- "iam-govcloud",
1221
- ],
1222
- },
1223
- ],
1224
- endpoint: {
1225
- url: "https://iam.us-gov.amazonaws.com",
1226
- properties: {
1227
- authSchemes: [
1228
- {
1229
- name: "sigv4",
1230
- signingRegion: "us-gov-west-1",
1231
- signingName: "iam",
1232
- },
1233
- ],
1234
- },
1235
- headers: {},
1236
- },
1237
- type: "endpoint",
1238
- },
1239
- {
1240
- conditions: [
1241
- {
1242
- fn: "stringEquals",
1243
- argv: [
1244
- {
1245
- ref: "Region",
1246
- },
1247
- "aws-us-gov-global",
1248
- ],
1249
- },
1250
- ],
1251
- endpoint: {
1252
- url: "https://iam.us-gov.amazonaws.com",
1253
- properties: {
1254
- authSchemes: [
1255
- {
1256
- name: "sigv4",
1257
- signingRegion: "us-gov-west-1",
1258
- signingName: "iam",
1259
- },
1260
- ],
1261
- },
1262
- headers: {},
1263
- },
1264
- type: "endpoint",
1265
- },
1266
- {
1267
- conditions: [],
1268
- endpoint: {
1269
- url: "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}",
1270
- properties: {},
1271
- headers: {},
1272
- },
1273
- type: "endpoint",
1274
- },
1275
- ],
1276
- },
1277
- ],
1278
- },
1279
- {
1280
- conditions: [],
1281
- error: "FIPS is enabled but this partition does not support FIPS",
1282
- type: "error",
1283
- },
1284
- ],
1285
- },
1286
- {
1287
- conditions: [
1288
- {
1289
- fn: "booleanEquals",
1290
- argv: [
1291
- {
1292
- ref: "UseDualStack",
1293
- },
1294
- true,
1295
- ],
1296
- },
1297
- ],
1298
- type: "tree",
1299
- rules: [
1300
- {
1301
- conditions: [
1302
- {
1303
- fn: "booleanEquals",
1304
- argv: [
1305
- true,
1306
- {
1307
- fn: "getAttr",
1308
- argv: [
1309
- {
1310
- ref: "PartitionResult",
1311
- },
1312
- "supportsDualStack",
1313
- ],
1314
- },
1315
- ],
1316
- },
1317
- ],
1318
- type: "tree",
1319
- rules: [
1320
- {
1321
- conditions: [],
1322
- endpoint: {
1323
- url: "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}",
1324
- properties: {},
1325
- headers: {},
1326
- },
1327
- type: "endpoint",
1328
- },
1329
- ],
1330
- },
1331
- {
1332
- conditions: [],
1333
- error: "DualStack is enabled but this partition does not support DualStack",
1334
- type: "error",
1335
- },
1336
- ],
1337
- },
1338
- {
1339
- conditions: [],
1340
- type: "tree",
1341
- rules: [
1342
- {
1343
- conditions: [
1344
- {
1345
- fn: "stringEquals",
1346
- argv: [
1347
- {
1348
- ref: "Region",
1349
- },
1350
- "aws-global",
1351
- ],
1352
- },
1353
- ],
1354
- endpoint: {
1355
- url: "https://iam.amazonaws.com",
1356
- properties: {
1357
- authSchemes: [
1358
- {
1359
- name: "sigv4",
1360
- signingRegion: "us-east-1",
1361
- signingName: "iam",
1362
- },
1363
- ],
1364
- },
1365
- headers: {},
1366
- },
1367
- type: "endpoint",
1368
- },
1369
- {
1370
- conditions: [
1371
- {
1372
- fn: "stringEquals",
1373
- argv: [
1374
- {
1375
- ref: "Region",
1376
- },
1377
- "aws-cn-global",
1378
- ],
1379
- },
1380
- ],
1381
- endpoint: {
1382
- url: "https://iam.cn-north-1.amazonaws.com.cn",
1383
- properties: {
1384
- authSchemes: [
1385
- {
1386
- name: "sigv4",
1387
- signingRegion: "cn-north-1",
1388
- signingName: "iam",
1389
- },
1390
- ],
1391
- },
1392
- headers: {},
1393
- },
1394
- type: "endpoint",
1395
- },
1396
- {
1397
- conditions: [
1398
- {
1399
- fn: "stringEquals",
1400
- argv: [
1401
- {
1402
- ref: "Region",
1403
- },
1404
- "aws-us-gov-global",
1405
- ],
1406
- },
1407
- ],
1408
- endpoint: {
1409
- url: "https://iam.us-gov.amazonaws.com",
1410
- properties: {
1411
- authSchemes: [
1412
- {
1413
- name: "sigv4",
1414
- signingRegion: "us-gov-west-1",
1415
- signingName: "iam",
1416
- },
1417
- ],
1418
- },
1419
- headers: {},
1420
- },
1421
- type: "endpoint",
1422
- },
1423
- {
1424
- conditions: [
1425
- {
1426
- fn: "stringEquals",
1427
- argv: [
1428
- {
1429
- ref: "Region",
1430
- },
1431
- "aws-iso-global",
1432
- ],
1433
- },
1434
- ],
1435
- endpoint: {
1436
- url: "https://iam.us-iso-east-1.c2s.ic.gov",
1437
- properties: {
1438
- authSchemes: [
1439
- {
1440
- name: "sigv4",
1441
- signingRegion: "us-iso-east-1",
1442
- signingName: "iam",
1443
- },
1444
- ],
1445
- },
1446
- headers: {},
1447
- },
1448
- type: "endpoint",
1449
- },
1450
- {
1451
- conditions: [
1452
- {
1453
- fn: "stringEquals",
1454
- argv: [
1455
- {
1456
- ref: "Region",
1457
- },
1458
- "aws-iso-b-global",
1459
- ],
1460
- },
1461
- ],
1462
- endpoint: {
1463
- url: "https://iam.us-isob-east-1.sc2s.sgov.gov",
1464
- properties: {
1465
- authSchemes: [
1466
- {
1467
- name: "sigv4",
1468
- signingRegion: "us-isob-east-1",
1469
- signingName: "iam",
1470
- },
1471
- ],
1472
- },
1473
- headers: {},
1474
- },
1475
- type: "endpoint",
1476
- },
1477
- {
1478
- conditions: [],
1479
- endpoint: {
1480
- url: "https://iam.{Region}.{PartitionResult#dnsSuffix}",
1481
- properties: {},
1482
- headers: {},
1483
- },
1484
- type: "endpoint",
1485
- },
1486
- ],
1487
- },
1488
- ],
1489
- },
1490
- ],
1491
- };
1
+ const P = "type", Q = "conditions", R = "fn", S = "argv", T = "ref", U = "url", V = "properties", W = "headers", X = "authSchemes", Y = "name", Z = "signingRegion", aa = "signingName";
2
+ const a = false, b = true, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = "stringEquals", j = "https://iam-fips.{Region}.api.aws", k = "iam", l = "https://iam.{Region}.api.aws", m = { [T]: "Region" }, n = { [T]: "Endpoint" }, o = {}, p = { [R]: "getAttr", [S]: [{ [T]: e }, "name"] }, q = { [X]: [{ [Y]: "sigv4", [Z]: "us-east-1", [aa]: k }] }, r = { [Q]: [], [g]: "FIPS and DualStack are enabled, but this partition does not support one or both", [P]: g }, s = { [U]: "https://iam-fips.amazonaws.com", [V]: q, [W]: {} }, t = { [Q]: [], [g]: "FIPS is enabled but this partition does not support FIPS", [P]: g }, u = { [Q]: [], [g]: "DualStack is enabled but this partition does not support DualStack", [P]: g }, v = { [U]: "https://iam.amazonaws.com", [V]: q, [W]: {} }, w = { [X]: [{ [Y]: "sigv4", [Z]: "cn-north-1", [aa]: k }] }, x = { [U]: "https://iam.cn-north-1.amazonaws.com.cn", [V]: w, [W]: {} }, y = { [X]: [{ [Y]: "sigv4", [Z]: "us-gov-west-1", [aa]: k }] }, z = { [Q]: [], [h]: { [U]: "https://iam.us-gov.amazonaws.com", [V]: y, [W]: {} }, [P]: h }, A = { [U]: "https://iam.us-gov.amazonaws.com", [V]: y, [W]: {} }, B = { [X]: [{ [Y]: "sigv4", [Z]: "us-iso-east-1", [aa]: k }] }, C = { [U]: "https://iam.us-iso-east-1.c2s.ic.gov", [V]: B, [W]: {} }, D = { [X]: [{ [Y]: "sigv4", [Z]: "us-isob-east-1", [aa]: k }] }, E = { [U]: "https://iam.us-isob-east-1.sc2s.sgov.gov", [V]: D, [W]: {} }, F = { [Q]: [{ [R]: i, [S]: [m, "aws-us-gov-global"] }], [h]: A, [P]: h }, G = [n], H = [{ [R]: "booleanEquals", [S]: [{ [T]: "UseFIPS" }, true] }], I = [], J = [{ [R]: "booleanEquals", [S]: [{ [T]: "UseDualStack" }, true] }], K = [{ [R]: "booleanEquals", [S]: [{ [T]: "UseFIPS" }, true] }, { [R]: "booleanEquals", [S]: [{ [T]: "UseDualStack" }, true] }], L = [{ [R]: "booleanEquals", [S]: [true, { [R]: "getAttr", [S]: [{ [T]: e }, "supportsFIPS"] }] }, { [R]: "booleanEquals", [S]: [true, { [R]: "getAttr", [S]: [{ [T]: e }, "supportsDualStack"] }] }], M = [{ [R]: "booleanEquals", [S]: [true, { [R]: "getAttr", [S]: [{ [T]: e }, "supportsFIPS"] }] }], N = [{ [R]: "booleanEquals", [S]: [true, { [R]: "getAttr", [S]: [{ [T]: e }, "supportsDualStack"] }] }], O = [{ [R]: i, [S]: [m, "aws-global"] }];
3
+ const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", [P]: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: b, default: a, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", [P]: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: b, default: a, 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.", [P]: d }, Endpoint: { builtIn: "SDK::Endpoint", required: a, documentation: "Override the endpoint used to send this request", [P]: c } }, rules: [{ [Q]: [{ [R]: "aws.partition", [S]: [m], assign: e }], [P]: f, rules: [{ [Q]: [{ [R]: "isSet", [S]: G }, { [R]: "parseURL", [S]: G, assign: "url" }], [P]: f, rules: [{ [Q]: H, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [P]: g }, { [Q]: I, [P]: f, rules: [{ [Q]: J, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [P]: g }, { [Q]: I, endpoint: { [U]: n, [V]: o, [W]: o }, [P]: h }] }] }, { [Q]: [{ [R]: i, [S]: [p, "aws"] }], [P]: f, rules: [{ [Q]: K, [P]: f, rules: [{ [Q]: L, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: j, [V]: q, [W]: o }, [P]: h }] }, r] }, { [Q]: H, [P]: f, rules: [{ [Q]: M, [P]: f, rules: [{ [Q]: I, endpoint: s, [P]: h }] }, t] }, { [Q]: J, [P]: f, rules: [{ [Q]: N, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: l, [V]: q, [W]: o }, [P]: h }] }, u] }, { [Q]: I, endpoint: v, [P]: h }] }, { [Q]: [{ [R]: i, [S]: [p, "aws-cn"] }], [P]: f, rules: [{ [Q]: K, [P]: f, rules: [{ [Q]: L, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam-fips.{Region}.api.amazonwebservices.com.cn", [V]: w, [W]: o }, [P]: h }] }, r] }, { [Q]: H, [P]: f, rules: [{ [Q]: M, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam-fips.{Region}.amazonaws.com.cn", [V]: w, [W]: o }, [P]: h }] }, t] }, { [Q]: J, [P]: f, rules: [{ [Q]: N, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam.{Region}.api.amazonwebservices.com.cn", [V]: w, [W]: o }, [P]: h }] }, u] }, { [Q]: I, endpoint: x, [P]: h }] }, { [Q]: [{ [R]: i, [S]: [p, "aws-us-gov"] }], [P]: f, rules: [{ [Q]: K, [P]: f, rules: [{ [Q]: L, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: j, [V]: y, [W]: o }, [P]: h }] }, r] }, { [Q]: H, [P]: f, rules: [{ [Q]: M, [P]: f, rules: [z] }, t] }, { [Q]: J, [P]: f, rules: [{ [Q]: N, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: l, [V]: y, [W]: o }, [P]: h }] }, u] }, z] }, { [Q]: [{ [R]: i, [S]: [p, "aws-iso"] }], [P]: f, rules: [{ [Q]: H, [P]: f, rules: [{ [Q]: M, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam-fips.{Region}.c2s.ic.gov", [V]: B, [W]: o }, [P]: h }] }, t] }, { [Q]: I, endpoint: C, [P]: h }] }, { [Q]: [{ [R]: i, [S]: [p, "aws-iso-b"] }], [P]: f, rules: [{ [Q]: H, [P]: f, rules: [{ [Q]: M, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam-fips.{Region}.sc2s.sgov.gov", [V]: D, [W]: o }, [P]: h }] }, t] }, { [Q]: I, endpoint: E, [P]: h }] }, { [Q]: K, [P]: f, rules: [{ [Q]: L, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [V]: o, [W]: o }, [P]: h }] }, r] }, { [Q]: H, [P]: f, rules: [{ [Q]: M, [P]: f, rules: [{ [Q]: I, [P]: f, rules: [{ [Q]: [{ [R]: i, [S]: [m, k] }], endpoint: s, [P]: h }, { [Q]: O, endpoint: s, [P]: h }, { [Q]: [{ [R]: i, [S]: [m, "iam-govcloud"] }], endpoint: A, [P]: h }, F, { [Q]: I, endpoint: { [U]: "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}", [V]: o, [W]: o }, [P]: h }] }] }, t] }, { [Q]: J, [P]: f, rules: [{ [Q]: N, [P]: f, rules: [{ [Q]: I, endpoint: { [U]: "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}", [V]: o, [W]: o }, [P]: h }] }, u] }, { [Q]: I, [P]: f, rules: [{ [Q]: O, endpoint: v, [P]: h }, { [Q]: [{ [R]: i, [S]: [m, "aws-cn-global"] }], endpoint: x, [P]: h }, F, { [Q]: [{ [R]: i, [S]: [m, "aws-iso-global"] }], endpoint: C, [P]: h }, { [Q]: [{ [R]: i, [S]: [m, "aws-iso-b-global"] }], endpoint: E, [P]: h }, { [Q]: I, endpoint: { [U]: "https://iam.{Region}.{PartitionResult#dnsSuffix}", [V]: o, [W]: o }, [P]: h }] }] }] };
4
+ export const ruleSet = _data;