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