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