@aws-sdk/client-budgets 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,864 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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://budgets-fips.{Region}.api.aws",
202
- properties: {
203
- authSchemes: [
204
- {
205
- name: "sigv4",
206
- signingName: "budgets",
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://budgets-fips.{Region}.amazonaws.com",
262
- properties: {
263
- authSchemes: [
264
- {
265
- name: "sigv4",
266
- signingName: "budgets",
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://budgets.{Region}.api.aws",
322
- properties: {
323
- authSchemes: [
324
- {
325
- name: "sigv4",
326
- signingName: "budgets",
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://budgets.amazonaws.com",
348
- properties: {
349
- authSchemes: [
350
- {
351
- name: "sigv4",
352
- signingName: "budgets",
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://budgets-fips.{Region}.api.amazonwebservices.com.cn",
445
- properties: {
446
- authSchemes: [
447
- {
448
- name: "sigv4",
449
- signingName: "budgets",
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://budgets-fips.{Region}.amazonaws.com.cn",
505
- properties: {
506
- authSchemes: [
507
- {
508
- name: "sigv4",
509
- signingName: "budgets",
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://budgets.{Region}.api.amazonwebservices.com.cn",
565
- properties: {
566
- authSchemes: [
567
- {
568
- name: "sigv4",
569
- signingName: "budgets",
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://budgets.amazonaws.com.cn",
591
- properties: {
592
- authSchemes: [
593
- {
594
- name: "sigv4",
595
- signingName: "budgets",
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://budgets-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://budgets-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://budgets.{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://budgets.amazonaws.com",
810
- properties: {
811
- authSchemes: [
812
- {
813
- name: "sigv4",
814
- signingName: "budgets",
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://budgets.amazonaws.com.cn",
837
- properties: {
838
- authSchemes: [
839
- {
840
- name: "sigv4",
841
- signingName: "budgets",
842
- signingRegion: "cn-northwest-1",
843
- },
844
- ],
845
- },
846
- headers: {},
847
- },
848
- type: "endpoint",
849
- },
850
- {
851
- conditions: [],
852
- endpoint: {
853
- url: "https://budgets.{Region}.{PartitionResult#dnsSuffix}",
854
- properties: {},
855
- headers: {},
856
- },
857
- type: "endpoint",
858
- },
859
- ],
860
- },
861
- ],
862
- },
863
- ],
864
- };
4
+ const z = "required", A = "type", B = "fn", C = "argv", D = "ref", E = "properties", F = "headers", G = "authSchemes", H = "signingName", I = "signingRegion";
5
+ const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [z]: false, [A]: "String" }, g = { [z]: true, "default": false, [A]: "Boolean" }, h = { [D]: "Region" }, i = { [D]: "Endpoint" }, j = {}, k = { [B]: "getAttr", [C]: [{ [D]: a }, "name"] }, l = { [G]: [{ "name": "sigv4", [H]: "budgets", [I]: "us-east-1" }] }, m = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [A]: c }, n = { [c]: "FIPS is enabled but this partition does not support FIPS", [A]: c }, o = { [c]: "DualStack is enabled but this partition does not support DualStack", [A]: c }, p = { "url": "https://budgets.amazonaws.com", [E]: l, [F]: {} }, q = { [G]: [{ "name": "sigv4", [H]: "budgets", [I]: "cn-northwest-1" }] }, r = { "url": "https://budgets.amazonaws.com.cn", [E]: q, [F]: {} }, s = [i], t = [{ [B]: "booleanEquals", [C]: [{ [D]: "UseFIPS" }, true] }], u = [{ [B]: "booleanEquals", [C]: [{ [D]: "UseDualStack" }, true] }], v = [{ [B]: "booleanEquals", [C]: [{ [D]: "UseFIPS" }, true] }, { [B]: "booleanEquals", [C]: [{ [D]: "UseDualStack" }, true] }], w = [{ [B]: "booleanEquals", [C]: [true, { [B]: "getAttr", [C]: [{ [D]: a }, "supportsFIPS"] }] }, { [B]: "booleanEquals", [C]: [true, { [B]: "getAttr", [C]: [{ [D]: a }, "supportsDualStack"] }] }], x = [{ [B]: "booleanEquals", [C]: [true, { [B]: "getAttr", [C]: [{ [D]: a }, "supportsFIPS"] }] }], y = [{ [B]: "booleanEquals", [C]: [true, { [B]: "getAttr", [C]: [{ [D]: a }, "supportsDualStack"] }] }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [B]: "aws.partition", [C]: [h], assign: a }], [A]: b, rules: [{ conditions: [{ [B]: "isSet", [C]: s }, { [B]: "parseURL", [C]: s, assign: "url" }], [A]: b, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [A]: c }, { [A]: b, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [A]: c }, { endpoint: { url: i, [E]: j, [F]: j }, [A]: d }] }] }, { conditions: [{ [B]: e, [C]: [k, "aws"] }], [A]: b, rules: [{ conditions: v, [A]: b, rules: [{ conditions: w, [A]: b, rules: [{ endpoint: { url: "https://budgets-fips.{Region}.api.aws", [E]: l, [F]: j }, [A]: d }] }, m] }, { conditions: t, [A]: b, rules: [{ conditions: x, [A]: b, rules: [{ endpoint: { url: "https://budgets-fips.{Region}.amazonaws.com", [E]: l, [F]: j }, [A]: d }] }, n] }, { conditions: u, [A]: b, rules: [{ conditions: y, [A]: b, rules: [{ endpoint: { url: "https://budgets.{Region}.api.aws", [E]: l, [F]: j }, [A]: d }] }, o] }, { endpoint: p, [A]: d }] }, { conditions: [{ [B]: e, [C]: [k, "aws-cn"] }], [A]: b, rules: [{ conditions: v, [A]: b, rules: [{ conditions: w, [A]: b, rules: [{ endpoint: { url: "https://budgets-fips.{Region}.api.amazonwebservices.com.cn", [E]: q, [F]: j }, [A]: d }] }, m] }, { conditions: t, [A]: b, rules: [{ conditions: x, [A]: b, rules: [{ endpoint: { url: "https://budgets-fips.{Region}.amazonaws.com.cn", [E]: q, [F]: j }, [A]: d }] }, n] }, { conditions: u, [A]: b, rules: [{ conditions: y, [A]: b, rules: [{ endpoint: { url: "https://budgets.{Region}.api.amazonwebservices.com.cn", [E]: q, [F]: j }, [A]: d }] }, o] }, { endpoint: r, [A]: d }] }, { conditions: v, [A]: b, rules: [{ conditions: w, [A]: b, rules: [{ endpoint: { url: "https://budgets-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [E]: j, [F]: j }, [A]: d }] }, m] }, { conditions: t, [A]: b, rules: [{ conditions: x, [A]: b, rules: [{ [A]: b, rules: [{ endpoint: { url: "https://budgets-fips.{Region}.{PartitionResult#dnsSuffix}", [E]: j, [F]: j }, [A]: d }] }] }, n] }, { conditions: u, [A]: b, rules: [{ conditions: y, [A]: b, rules: [{ endpoint: { url: "https://budgets.{Region}.{PartitionResult#dualStackDnsSuffix}", [E]: j, [F]: j }, [A]: d }] }, o] }, { [A]: b, rules: [{ conditions: [{ [B]: e, [C]: [h, "aws-global"] }], endpoint: p, [A]: d }, { conditions: [{ [B]: e, [C]: [h, "aws-cn-global"] }], endpoint: r, [A]: d }, { endpoint: { url: "https://budgets.{Region}.{PartitionResult#dnsSuffix}", [E]: j, [F]: j }, [A]: d }] }] }] };
7
+ exports.ruleSet = _data;