@aws-sdk/client-account 3.194.0 → 3.196.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/AccountClient.js +11 -8
  3. package/dist-cjs/commands/DeleteAlternateContactCommand.js +10 -0
  4. package/dist-cjs/commands/GetAlternateContactCommand.js +10 -0
  5. package/dist-cjs/commands/GetContactInformationCommand.js +10 -0
  6. package/dist-cjs/commands/PutAlternateContactCommand.js +10 -0
  7. package/dist-cjs/commands/PutContactInformationCommand.js +10 -0
  8. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  9. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  10. package/dist-cjs/endpoint/ruleset.js +864 -0
  11. package/dist-cjs/runtimeConfig.shared.js +3 -3
  12. package/dist-es/AccountClient.js +12 -9
  13. package/dist-es/commands/DeleteAlternateContactCommand.js +10 -0
  14. package/dist-es/commands/GetAlternateContactCommand.js +10 -0
  15. package/dist-es/commands/GetContactInformationCommand.js +10 -0
  16. package/dist-es/commands/PutAlternateContactCommand.js +10 -0
  17. package/dist-es/commands/PutContactInformationCommand.js +10 -0
  18. package/dist-es/endpoint/EndpointParameters.js +8 -0
  19. package/dist-es/endpoint/endpointResolver.js +8 -0
  20. package/dist-es/endpoint/ruleset.js +861 -0
  21. package/dist-es/runtimeConfig.shared.js +2 -2
  22. package/dist-types/AccountClient.d.ts +6 -9
  23. package/dist-types/commands/DeleteAlternateContactCommand.d.ts +2 -0
  24. package/dist-types/commands/GetAlternateContactCommand.d.ts +2 -0
  25. package/dist-types/commands/GetContactInformationCommand.d.ts +2 -0
  26. package/dist-types/commands/PutAlternateContactCommand.d.ts +2 -0
  27. package/dist-types/commands/PutContactInformationCommand.d.ts +2 -0
  28. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  29. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  30. package/dist-types/endpoint/ruleset.d.ts +2 -0
  31. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  32. package/dist-types/runtimeConfig.d.ts +4 -2
  33. package/dist-types/runtimeConfig.native.d.ts +4 -2
  34. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  35. package/dist-types/ts3.4/AccountClient.d.ts +15 -8
  36. package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +2 -0
  37. package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +2 -0
  38. package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +2 -0
  39. package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +2 -0
  40. package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +2 -0
  41. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  42. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  43. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  47. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  48. package/package.json +5 -3
  49. package/dist-cjs/endpoints.js +0 -154
  50. package/dist-es/endpoints.js +0 -150
  51. package/dist-types/endpoints.d.ts +0 -2
  52. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -0,0 +1,861 @@
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://account-fips.{Region}.api.aws",
199
+ properties: {
200
+ authSchemes: [
201
+ {
202
+ name: "sigv4",
203
+ signingName: "account",
204
+ signingRegion: "us-east-1",
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://account-fips.{Region}.amazonaws.com",
259
+ properties: {
260
+ authSchemes: [
261
+ {
262
+ name: "sigv4",
263
+ signingName: "account",
264
+ signingRegion: "us-east-1",
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://account.{Region}.api.aws",
319
+ properties: {
320
+ authSchemes: [
321
+ {
322
+ name: "sigv4",
323
+ signingName: "account",
324
+ signingRegion: "us-east-1",
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://account.us-east-1.amazonaws.com",
345
+ properties: {
346
+ authSchemes: [
347
+ {
348
+ name: "sigv4",
349
+ signingName: "account",
350
+ signingRegion: "us-east-1",
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://account-fips.{Region}.api.amazonwebservices.com.cn",
442
+ properties: {
443
+ authSchemes: [
444
+ {
445
+ name: "sigv4",
446
+ signingName: "account",
447
+ signingRegion: "cn-northwest-1",
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://account-fips.{Region}.amazonaws.com.cn",
502
+ properties: {
503
+ authSchemes: [
504
+ {
505
+ name: "sigv4",
506
+ signingName: "account",
507
+ signingRegion: "cn-northwest-1",
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://account.{Region}.api.amazonwebservices.com.cn",
562
+ properties: {
563
+ authSchemes: [
564
+ {
565
+ name: "sigv4",
566
+ signingName: "account",
567
+ signingRegion: "cn-northwest-1",
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://account.cn-northwest-1.amazonaws.com.cn",
588
+ properties: {
589
+ authSchemes: [
590
+ {
591
+ name: "sigv4",
592
+ signingName: "account",
593
+ signingRegion: "cn-northwest-1",
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://account-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://account-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://account.{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://account.us-east-1.amazonaws.com",
807
+ properties: {
808
+ authSchemes: [
809
+ {
810
+ name: "sigv4",
811
+ signingName: "account",
812
+ signingRegion: "us-east-1",
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-cn-global",
829
+ ],
830
+ },
831
+ ],
832
+ endpoint: {
833
+ url: "https://account.cn-northwest-1.amazonaws.com.cn",
834
+ properties: {
835
+ authSchemes: [
836
+ {
837
+ name: "sigv4",
838
+ signingName: "account",
839
+ signingRegion: "cn-northwest-1",
840
+ },
841
+ ],
842
+ },
843
+ headers: {},
844
+ },
845
+ type: "endpoint",
846
+ },
847
+ {
848
+ conditions: [],
849
+ endpoint: {
850
+ url: "https://account.{Region}.{PartitionResult#dnsSuffix}",
851
+ properties: {},
852
+ headers: {},
853
+ },
854
+ type: "endpoint",
855
+ },
856
+ ],
857
+ },
858
+ ],
859
+ },
860
+ ],
861
+ };