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