@aws-sdk/client-waf 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,648 +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://waf-fips.{Region}.api.aws",
202
- properties: {
203
- authSchemes: [
204
- {
205
- name: "sigv4",
206
- signingName: "waf",
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://waf-fips.amazonaws.com",
262
- properties: {
263
- authSchemes: [
264
- {
265
- name: "sigv4",
266
- signingName: "waf",
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://waf.{Region}.api.aws",
322
- properties: {
323
- authSchemes: [
324
- {
325
- name: "sigv4",
326
- signingName: "waf",
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://waf.amazonaws.com",
348
- properties: {
349
- authSchemes: [
350
- {
351
- name: "sigv4",
352
- signingName: "waf",
353
- signingRegion: "us-east-1",
354
- },
355
- ],
356
- },
357
- headers: {},
358
- },
359
- type: "endpoint",
360
- },
361
- ],
362
- },
363
- {
364
- conditions: [
365
- {
366
- fn: "booleanEquals",
367
- argv: [
368
- {
369
- ref: "UseFIPS",
370
- },
371
- true,
372
- ],
373
- },
374
- {
375
- fn: "booleanEquals",
376
- argv: [
377
- {
378
- ref: "UseDualStack",
379
- },
380
- true,
381
- ],
382
- },
383
- ],
384
- type: "tree",
385
- rules: [
386
- {
387
- conditions: [
388
- {
389
- fn: "booleanEquals",
390
- argv: [
391
- true,
392
- {
393
- fn: "getAttr",
394
- argv: [
395
- {
396
- ref: "PartitionResult",
397
- },
398
- "supportsFIPS",
399
- ],
400
- },
401
- ],
402
- },
403
- {
404
- fn: "booleanEquals",
405
- argv: [
406
- true,
407
- {
408
- fn: "getAttr",
409
- argv: [
410
- {
411
- ref: "PartitionResult",
412
- },
413
- "supportsDualStack",
414
- ],
415
- },
416
- ],
417
- },
418
- ],
419
- type: "tree",
420
- rules: [
421
- {
422
- conditions: [],
423
- endpoint: {
424
- url: "https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
425
- properties: {},
426
- headers: {},
427
- },
428
- type: "endpoint",
429
- },
430
- ],
431
- },
432
- {
433
- conditions: [],
434
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
435
- type: "error",
436
- },
437
- ],
438
- },
439
- {
440
- conditions: [
441
- {
442
- fn: "booleanEquals",
443
- argv: [
444
- {
445
- ref: "UseFIPS",
446
- },
447
- true,
448
- ],
449
- },
450
- ],
451
- type: "tree",
452
- rules: [
453
- {
454
- conditions: [
455
- {
456
- fn: "booleanEquals",
457
- argv: [
458
- true,
459
- {
460
- fn: "getAttr",
461
- argv: [
462
- {
463
- ref: "PartitionResult",
464
- },
465
- "supportsFIPS",
466
- ],
467
- },
468
- ],
469
- },
470
- ],
471
- type: "tree",
472
- rules: [
473
- {
474
- conditions: [],
475
- type: "tree",
476
- rules: [
477
- {
478
- conditions: [
479
- {
480
- fn: "stringEquals",
481
- argv: [
482
- {
483
- ref: "Region",
484
- },
485
- "aws",
486
- ],
487
- },
488
- ],
489
- endpoint: {
490
- url: "https://waf-fips.amazonaws.com",
491
- properties: {
492
- authSchemes: [
493
- {
494
- name: "sigv4",
495
- signingName: "waf",
496
- signingRegion: "us-east-1",
497
- },
498
- ],
499
- },
500
- headers: {},
501
- },
502
- type: "endpoint",
503
- },
504
- {
505
- conditions: [
506
- {
507
- fn: "stringEquals",
508
- argv: [
509
- {
510
- ref: "Region",
511
- },
512
- "aws-global",
513
- ],
514
- },
515
- ],
516
- endpoint: {
517
- url: "https://waf-fips.amazonaws.com",
518
- properties: {
519
- authSchemes: [
520
- {
521
- name: "sigv4",
522
- signingName: "waf",
523
- signingRegion: "us-east-1",
524
- },
525
- ],
526
- },
527
- headers: {},
528
- },
529
- type: "endpoint",
530
- },
531
- {
532
- conditions: [],
533
- endpoint: {
534
- url: "https://waf-fips.{Region}.{PartitionResult#dnsSuffix}",
535
- properties: {},
536
- headers: {},
537
- },
538
- type: "endpoint",
539
- },
540
- ],
541
- },
542
- ],
543
- },
544
- {
545
- conditions: [],
546
- error: "FIPS is enabled but this partition does not support FIPS",
547
- type: "error",
548
- },
549
- ],
550
- },
551
- {
552
- conditions: [
553
- {
554
- fn: "booleanEquals",
555
- argv: [
556
- {
557
- ref: "UseDualStack",
558
- },
559
- true,
560
- ],
561
- },
562
- ],
563
- type: "tree",
564
- rules: [
565
- {
566
- conditions: [
567
- {
568
- fn: "booleanEquals",
569
- argv: [
570
- true,
571
- {
572
- fn: "getAttr",
573
- argv: [
574
- {
575
- ref: "PartitionResult",
576
- },
577
- "supportsDualStack",
578
- ],
579
- },
580
- ],
581
- },
582
- ],
583
- type: "tree",
584
- rules: [
585
- {
586
- conditions: [],
587
- endpoint: {
588
- url: "https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}",
589
- properties: {},
590
- headers: {},
591
- },
592
- type: "endpoint",
593
- },
594
- ],
595
- },
596
- {
597
- conditions: [],
598
- error: "DualStack is enabled but this partition does not support DualStack",
599
- type: "error",
600
- },
601
- ],
602
- },
603
- {
604
- conditions: [],
605
- type: "tree",
606
- rules: [
607
- {
608
- conditions: [
609
- {
610
- fn: "stringEquals",
611
- argv: [
612
- {
613
- ref: "Region",
614
- },
615
- "aws-global",
616
- ],
617
- },
618
- ],
619
- endpoint: {
620
- url: "https://waf.amazonaws.com",
621
- properties: {
622
- authSchemes: [
623
- {
624
- name: "sigv4",
625
- signingName: "waf",
626
- signingRegion: "us-east-1",
627
- },
628
- ],
629
- },
630
- headers: {},
631
- },
632
- type: "endpoint",
633
- },
634
- {
635
- conditions: [],
636
- endpoint: {
637
- url: "https://waf.{Region}.{PartitionResult#dnsSuffix}",
638
- properties: {},
639
- headers: {},
640
- },
641
- type: "endpoint",
642
- },
643
- ],
644
- },
645
- ],
646
- },
647
- ],
648
- };
4
+ const B = "required", C = "type", D = "fn", E = "argv", F = "ref", G = "properties", H = "headers";
5
+ const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = "getAttr", g = "aws", h = { [B]: false, [C]: "String" }, i = { [B]: true, "default": false, [C]: "Boolean" }, j = { [F]: "Region" }, k = { [F]: "Endpoint" }, l = {}, m = { [F]: a }, n = { "authSchemes": [{ "name": "sigv4", "signingName": "waf", "signingRegion": "us-east-1" }] }, o = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [C]: c }, p = { "url": "https://waf-fips.amazonaws.com", [G]: n, [H]: {} }, q = { [c]: "FIPS is enabled but this partition does not support FIPS", [C]: c }, r = { [c]: "DualStack is enabled but this partition does not support DualStack", [C]: c }, s = { "url": "https://waf.amazonaws.com", [G]: n, [H]: {} }, t = [k], u = [{ [D]: "booleanEquals", [E]: [{ [F]: "UseFIPS" }, true] }], v = [{ [D]: "booleanEquals", [E]: [{ [F]: "UseDualStack" }, true] }], w = [{ [D]: "booleanEquals", [E]: [{ [F]: "UseFIPS" }, true] }, { [D]: "booleanEquals", [E]: [{ [F]: "UseDualStack" }, true] }], x = [{ [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsFIPS"] }] }, { [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsDualStack"] }] }], y = [{ [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsFIPS"] }] }], z = [{ [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsDualStack"] }] }], A = [{ [D]: e, [E]: [j, "aws-global"] }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [D]: "aws.partition", [E]: [j], assign: a }], [C]: b, rules: [{ conditions: [{ [D]: "isSet", [E]: t }, { [D]: "parseURL", [E]: t, assign: "url" }], [C]: b, rules: [{ conditions: u, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [C]: c }, { [C]: b, rules: [{ conditions: v, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [C]: c }, { endpoint: { url: k, [G]: l, [H]: l }, [C]: d }] }] }, { conditions: [{ [D]: e, [E]: [{ [D]: f, [E]: [m, "name"] }, g] }], [C]: b, rules: [{ conditions: w, [C]: b, rules: [{ conditions: x, [C]: b, rules: [{ endpoint: { url: "https://waf-fips.{Region}.api.aws", [G]: n, [H]: l }, [C]: d }] }, o] }, { conditions: u, [C]: b, rules: [{ conditions: y, [C]: b, rules: [{ endpoint: p, [C]: d }] }, q] }, { conditions: v, [C]: b, rules: [{ conditions: z, [C]: b, rules: [{ endpoint: { url: "https://waf.{Region}.api.aws", [G]: n, [H]: l }, [C]: d }] }, r] }, { endpoint: s, [C]: d }] }, { conditions: w, [C]: b, rules: [{ conditions: x, [C]: b, rules: [{ endpoint: { url: "https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [G]: l, [H]: l }, [C]: d }] }, o] }, { conditions: u, [C]: b, rules: [{ conditions: y, [C]: b, rules: [{ [C]: b, rules: [{ conditions: [{ [D]: e, [E]: [j, g] }], endpoint: p, [C]: d }, { conditions: A, endpoint: p, [C]: d }, { endpoint: { url: "https://waf-fips.{Region}.{PartitionResult#dnsSuffix}", [G]: l, [H]: l }, [C]: d }] }] }, q] }, { conditions: v, [C]: b, rules: [{ conditions: z, [C]: b, rules: [{ endpoint: { url: "https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}", [G]: l, [H]: l }, [C]: d }] }, r] }, { [C]: b, rules: [{ conditions: A, endpoint: s, [C]: d }, { endpoint: { url: "https://waf.{Region}.{PartitionResult#dnsSuffix}", [G]: l, [H]: l }, [C]: d }] }] }] };
7
+ exports.ruleSet = _data;
@@ -1,645 +1,4 @@
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://waf-fips.{Region}.api.aws",
199
- properties: {
200
- authSchemes: [
201
- {
202
- name: "sigv4",
203
- signingName: "waf",
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://waf-fips.amazonaws.com",
259
- properties: {
260
- authSchemes: [
261
- {
262
- name: "sigv4",
263
- signingName: "waf",
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://waf.{Region}.api.aws",
319
- properties: {
320
- authSchemes: [
321
- {
322
- name: "sigv4",
323
- signingName: "waf",
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://waf.amazonaws.com",
345
- properties: {
346
- authSchemes: [
347
- {
348
- name: "sigv4",
349
- signingName: "waf",
350
- signingRegion: "us-east-1",
351
- },
352
- ],
353
- },
354
- headers: {},
355
- },
356
- type: "endpoint",
357
- },
358
- ],
359
- },
360
- {
361
- conditions: [
362
- {
363
- fn: "booleanEquals",
364
- argv: [
365
- {
366
- ref: "UseFIPS",
367
- },
368
- true,
369
- ],
370
- },
371
- {
372
- fn: "booleanEquals",
373
- argv: [
374
- {
375
- ref: "UseDualStack",
376
- },
377
- true,
378
- ],
379
- },
380
- ],
381
- type: "tree",
382
- rules: [
383
- {
384
- conditions: [
385
- {
386
- fn: "booleanEquals",
387
- argv: [
388
- true,
389
- {
390
- fn: "getAttr",
391
- argv: [
392
- {
393
- ref: "PartitionResult",
394
- },
395
- "supportsFIPS",
396
- ],
397
- },
398
- ],
399
- },
400
- {
401
- fn: "booleanEquals",
402
- argv: [
403
- true,
404
- {
405
- fn: "getAttr",
406
- argv: [
407
- {
408
- ref: "PartitionResult",
409
- },
410
- "supportsDualStack",
411
- ],
412
- },
413
- ],
414
- },
415
- ],
416
- type: "tree",
417
- rules: [
418
- {
419
- conditions: [],
420
- endpoint: {
421
- url: "https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
422
- properties: {},
423
- headers: {},
424
- },
425
- type: "endpoint",
426
- },
427
- ],
428
- },
429
- {
430
- conditions: [],
431
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
432
- type: "error",
433
- },
434
- ],
435
- },
436
- {
437
- conditions: [
438
- {
439
- fn: "booleanEquals",
440
- argv: [
441
- {
442
- ref: "UseFIPS",
443
- },
444
- true,
445
- ],
446
- },
447
- ],
448
- type: "tree",
449
- rules: [
450
- {
451
- conditions: [
452
- {
453
- fn: "booleanEquals",
454
- argv: [
455
- true,
456
- {
457
- fn: "getAttr",
458
- argv: [
459
- {
460
- ref: "PartitionResult",
461
- },
462
- "supportsFIPS",
463
- ],
464
- },
465
- ],
466
- },
467
- ],
468
- type: "tree",
469
- rules: [
470
- {
471
- conditions: [],
472
- type: "tree",
473
- rules: [
474
- {
475
- conditions: [
476
- {
477
- fn: "stringEquals",
478
- argv: [
479
- {
480
- ref: "Region",
481
- },
482
- "aws",
483
- ],
484
- },
485
- ],
486
- endpoint: {
487
- url: "https://waf-fips.amazonaws.com",
488
- properties: {
489
- authSchemes: [
490
- {
491
- name: "sigv4",
492
- signingName: "waf",
493
- signingRegion: "us-east-1",
494
- },
495
- ],
496
- },
497
- headers: {},
498
- },
499
- type: "endpoint",
500
- },
501
- {
502
- conditions: [
503
- {
504
- fn: "stringEquals",
505
- argv: [
506
- {
507
- ref: "Region",
508
- },
509
- "aws-global",
510
- ],
511
- },
512
- ],
513
- endpoint: {
514
- url: "https://waf-fips.amazonaws.com",
515
- properties: {
516
- authSchemes: [
517
- {
518
- name: "sigv4",
519
- signingName: "waf",
520
- signingRegion: "us-east-1",
521
- },
522
- ],
523
- },
524
- headers: {},
525
- },
526
- type: "endpoint",
527
- },
528
- {
529
- conditions: [],
530
- endpoint: {
531
- url: "https://waf-fips.{Region}.{PartitionResult#dnsSuffix}",
532
- properties: {},
533
- headers: {},
534
- },
535
- type: "endpoint",
536
- },
537
- ],
538
- },
539
- ],
540
- },
541
- {
542
- conditions: [],
543
- error: "FIPS is enabled but this partition does not support FIPS",
544
- type: "error",
545
- },
546
- ],
547
- },
548
- {
549
- conditions: [
550
- {
551
- fn: "booleanEquals",
552
- argv: [
553
- {
554
- ref: "UseDualStack",
555
- },
556
- true,
557
- ],
558
- },
559
- ],
560
- type: "tree",
561
- rules: [
562
- {
563
- conditions: [
564
- {
565
- fn: "booleanEquals",
566
- argv: [
567
- true,
568
- {
569
- fn: "getAttr",
570
- argv: [
571
- {
572
- ref: "PartitionResult",
573
- },
574
- "supportsDualStack",
575
- ],
576
- },
577
- ],
578
- },
579
- ],
580
- type: "tree",
581
- rules: [
582
- {
583
- conditions: [],
584
- endpoint: {
585
- url: "https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}",
586
- properties: {},
587
- headers: {},
588
- },
589
- type: "endpoint",
590
- },
591
- ],
592
- },
593
- {
594
- conditions: [],
595
- error: "DualStack is enabled but this partition does not support DualStack",
596
- type: "error",
597
- },
598
- ],
599
- },
600
- {
601
- conditions: [],
602
- type: "tree",
603
- rules: [
604
- {
605
- conditions: [
606
- {
607
- fn: "stringEquals",
608
- argv: [
609
- {
610
- ref: "Region",
611
- },
612
- "aws-global",
613
- ],
614
- },
615
- ],
616
- endpoint: {
617
- url: "https://waf.amazonaws.com",
618
- properties: {
619
- authSchemes: [
620
- {
621
- name: "sigv4",
622
- signingName: "waf",
623
- signingRegion: "us-east-1",
624
- },
625
- ],
626
- },
627
- headers: {},
628
- },
629
- type: "endpoint",
630
- },
631
- {
632
- conditions: [],
633
- endpoint: {
634
- url: "https://waf.{Region}.{PartitionResult#dnsSuffix}",
635
- properties: {},
636
- headers: {},
637
- },
638
- type: "endpoint",
639
- },
640
- ],
641
- },
642
- ],
643
- },
644
- ],
645
- };
1
+ const B = "required", C = "type", D = "fn", E = "argv", F = "ref", G = "properties", H = "headers";
2
+ const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = "getAttr", g = "aws", h = { [B]: false, [C]: "String" }, i = { [B]: true, "default": false, [C]: "Boolean" }, j = { [F]: "Region" }, k = { [F]: "Endpoint" }, l = {}, m = { [F]: a }, n = { "authSchemes": [{ "name": "sigv4", "signingName": "waf", "signingRegion": "us-east-1" }] }, o = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [C]: c }, p = { "url": "https://waf-fips.amazonaws.com", [G]: n, [H]: {} }, q = { [c]: "FIPS is enabled but this partition does not support FIPS", [C]: c }, r = { [c]: "DualStack is enabled but this partition does not support DualStack", [C]: c }, s = { "url": "https://waf.amazonaws.com", [G]: n, [H]: {} }, t = [k], u = [{ [D]: "booleanEquals", [E]: [{ [F]: "UseFIPS" }, true] }], v = [{ [D]: "booleanEquals", [E]: [{ [F]: "UseDualStack" }, true] }], w = [{ [D]: "booleanEquals", [E]: [{ [F]: "UseFIPS" }, true] }, { [D]: "booleanEquals", [E]: [{ [F]: "UseDualStack" }, true] }], x = [{ [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsFIPS"] }] }, { [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsDualStack"] }] }], y = [{ [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsFIPS"] }] }], z = [{ [D]: "booleanEquals", [E]: [true, { [D]: f, [E]: [m, "supportsDualStack"] }] }], A = [{ [D]: e, [E]: [j, "aws-global"] }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [D]: "aws.partition", [E]: [j], assign: a }], [C]: b, rules: [{ conditions: [{ [D]: "isSet", [E]: t }, { [D]: "parseURL", [E]: t, assign: "url" }], [C]: b, rules: [{ conditions: u, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [C]: c }, { [C]: b, rules: [{ conditions: v, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [C]: c }, { endpoint: { url: k, [G]: l, [H]: l }, [C]: d }] }] }, { conditions: [{ [D]: e, [E]: [{ [D]: f, [E]: [m, "name"] }, g] }], [C]: b, rules: [{ conditions: w, [C]: b, rules: [{ conditions: x, [C]: b, rules: [{ endpoint: { url: "https://waf-fips.{Region}.api.aws", [G]: n, [H]: l }, [C]: d }] }, o] }, { conditions: u, [C]: b, rules: [{ conditions: y, [C]: b, rules: [{ endpoint: p, [C]: d }] }, q] }, { conditions: v, [C]: b, rules: [{ conditions: z, [C]: b, rules: [{ endpoint: { url: "https://waf.{Region}.api.aws", [G]: n, [H]: l }, [C]: d }] }, r] }, { endpoint: s, [C]: d }] }, { conditions: w, [C]: b, rules: [{ conditions: x, [C]: b, rules: [{ endpoint: { url: "https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [G]: l, [H]: l }, [C]: d }] }, o] }, { conditions: u, [C]: b, rules: [{ conditions: y, [C]: b, rules: [{ [C]: b, rules: [{ conditions: [{ [D]: e, [E]: [j, g] }], endpoint: p, [C]: d }, { conditions: A, endpoint: p, [C]: d }, { endpoint: { url: "https://waf-fips.{Region}.{PartitionResult#dnsSuffix}", [G]: l, [H]: l }, [C]: d }] }] }, q] }, { conditions: v, [C]: b, rules: [{ conditions: z, [C]: b, rules: [{ endpoint: { url: "https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}", [G]: l, [H]: l }, [C]: d }] }, r] }, { [C]: b, rules: [{ conditions: A, endpoint: s, [C]: d }, { endpoint: { url: "https://waf.{Region}.{PartitionResult#dnsSuffix}", [G]: l, [H]: l }, [C]: d }] }] }] };
4
+ export const ruleSet = _data;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-waf",
3
3
  "description": "AWS SDK for JavaScript Waf Client for Node.js, Browser and React Native",
4
- "version": "3.234.0",
4
+ "version": "3.236.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.234.0",
22
+ "@aws-sdk/client-sts": "3.236.0",
23
23
  "@aws-sdk/config-resolver": "3.234.0",
24
- "@aws-sdk/credential-provider-node": "3.234.0",
24
+ "@aws-sdk/credential-provider-node": "3.236.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -30,7 +30,7 @@
30
30
  "@aws-sdk/middleware-host-header": "3.226.0",
31
31
  "@aws-sdk/middleware-logger": "3.226.0",
32
32
  "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
- "@aws-sdk/middleware-retry": "3.229.0",
33
+ "@aws-sdk/middleware-retry": "3.235.0",
34
34
  "@aws-sdk/middleware-serde": "3.226.0",
35
35
  "@aws-sdk/middleware-signing": "3.226.0",
36
36
  "@aws-sdk/middleware-stack": "3.226.0",