@aws-sdk/client-wafv2 3.504.0 → 3.507.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.
- package/dist-cjs/index.js +154 -1781
- package/dist-es/protocols/Aws_json1_1.js +238 -1865
- package/package.json +3 -3
|
@@ -322,7 +322,7 @@ export const se_UpdateWebACLCommand = async (input, context) => {
|
|
|
322
322
|
};
|
|
323
323
|
export const de_AssociateWebACLCommand = async (output, context) => {
|
|
324
324
|
if (output.statusCode >= 300) {
|
|
325
|
-
return
|
|
325
|
+
return de_CommandError(output, context);
|
|
326
326
|
}
|
|
327
327
|
const data = await parseBody(output.body, context);
|
|
328
328
|
let contents = {};
|
|
@@ -333,40 +333,9 @@ export const de_AssociateWebACLCommand = async (output, context) => {
|
|
|
333
333
|
};
|
|
334
334
|
return response;
|
|
335
335
|
};
|
|
336
|
-
const de_AssociateWebACLCommandError = async (output, context) => {
|
|
337
|
-
const parsedOutput = {
|
|
338
|
-
...output,
|
|
339
|
-
body: await parseErrorBody(output.body, context),
|
|
340
|
-
};
|
|
341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
342
|
-
switch (errorCode) {
|
|
343
|
-
case "WAFInternalErrorException":
|
|
344
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
345
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
346
|
-
case "WAFInvalidOperationException":
|
|
347
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
348
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
349
|
-
case "WAFInvalidParameterException":
|
|
350
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
351
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
352
|
-
case "WAFNonexistentItemException":
|
|
353
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
354
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
355
|
-
case "WAFUnavailableEntityException":
|
|
356
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
357
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
358
|
-
default:
|
|
359
|
-
const parsedBody = parsedOutput.body;
|
|
360
|
-
return throwDefaultError({
|
|
361
|
-
output,
|
|
362
|
-
parsedBody,
|
|
363
|
-
errorCode,
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
336
|
export const de_CheckCapacityCommand = async (output, context) => {
|
|
368
337
|
if (output.statusCode >= 300) {
|
|
369
|
-
return
|
|
338
|
+
return de_CommandError(output, context);
|
|
370
339
|
}
|
|
371
340
|
const data = await parseBody(output.body, context);
|
|
372
341
|
let contents = {};
|
|
@@ -377,52 +346,9 @@ export const de_CheckCapacityCommand = async (output, context) => {
|
|
|
377
346
|
};
|
|
378
347
|
return response;
|
|
379
348
|
};
|
|
380
|
-
const de_CheckCapacityCommandError = async (output, context) => {
|
|
381
|
-
const parsedOutput = {
|
|
382
|
-
...output,
|
|
383
|
-
body: await parseErrorBody(output.body, context),
|
|
384
|
-
};
|
|
385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
386
|
-
switch (errorCode) {
|
|
387
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
388
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
389
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
390
|
-
case "WAFInternalErrorException":
|
|
391
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
392
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
393
|
-
case "WAFInvalidOperationException":
|
|
394
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
395
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
396
|
-
case "WAFInvalidParameterException":
|
|
397
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
398
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
399
|
-
case "WAFInvalidResourceException":
|
|
400
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
401
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
402
|
-
case "WAFLimitsExceededException":
|
|
403
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
404
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
405
|
-
case "WAFNonexistentItemException":
|
|
406
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
407
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
408
|
-
case "WAFSubscriptionNotFoundException":
|
|
409
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
410
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
411
|
-
case "WAFUnavailableEntityException":
|
|
412
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
413
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
414
|
-
default:
|
|
415
|
-
const parsedBody = parsedOutput.body;
|
|
416
|
-
return throwDefaultError({
|
|
417
|
-
output,
|
|
418
|
-
parsedBody,
|
|
419
|
-
errorCode,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
349
|
export const de_CreateAPIKeyCommand = async (output, context) => {
|
|
424
350
|
if (output.statusCode >= 300) {
|
|
425
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
426
352
|
}
|
|
427
353
|
const data = await parseBody(output.body, context);
|
|
428
354
|
let contents = {};
|
|
@@ -433,37 +359,9 @@ export const de_CreateAPIKeyCommand = async (output, context) => {
|
|
|
433
359
|
};
|
|
434
360
|
return response;
|
|
435
361
|
};
|
|
436
|
-
const de_CreateAPIKeyCommandError = async (output, context) => {
|
|
437
|
-
const parsedOutput = {
|
|
438
|
-
...output,
|
|
439
|
-
body: await parseErrorBody(output.body, context),
|
|
440
|
-
};
|
|
441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
|
-
switch (errorCode) {
|
|
443
|
-
case "WAFInternalErrorException":
|
|
444
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
445
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
446
|
-
case "WAFInvalidOperationException":
|
|
447
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
448
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
449
|
-
case "WAFInvalidParameterException":
|
|
450
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
451
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
452
|
-
case "WAFLimitsExceededException":
|
|
453
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
454
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
455
|
-
default:
|
|
456
|
-
const parsedBody = parsedOutput.body;
|
|
457
|
-
return throwDefaultError({
|
|
458
|
-
output,
|
|
459
|
-
parsedBody,
|
|
460
|
-
errorCode,
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
362
|
export const de_CreateIPSetCommand = async (output, context) => {
|
|
465
363
|
if (output.statusCode >= 300) {
|
|
466
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
467
365
|
}
|
|
468
366
|
const data = await parseBody(output.body, context);
|
|
469
367
|
let contents = {};
|
|
@@ -474,164 +372,9 @@ export const de_CreateIPSetCommand = async (output, context) => {
|
|
|
474
372
|
};
|
|
475
373
|
return response;
|
|
476
374
|
};
|
|
477
|
-
const de_CreateIPSetCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "WAFDuplicateItemException":
|
|
485
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
486
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
487
|
-
case "WAFInternalErrorException":
|
|
488
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
489
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
490
|
-
case "WAFInvalidOperationException":
|
|
491
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
492
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
493
|
-
case "WAFInvalidParameterException":
|
|
494
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
495
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
496
|
-
case "WAFLimitsExceededException":
|
|
497
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
498
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
499
|
-
case "WAFOptimisticLockException":
|
|
500
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
501
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
502
|
-
case "WAFTagOperationException":
|
|
503
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
504
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
505
|
-
case "WAFTagOperationInternalErrorException":
|
|
506
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
507
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
508
|
-
default:
|
|
509
|
-
const parsedBody = parsedOutput.body;
|
|
510
|
-
return throwDefaultError({
|
|
511
|
-
output,
|
|
512
|
-
parsedBody,
|
|
513
|
-
errorCode,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
375
|
export const de_CreateRegexPatternSetCommand = async (output, context) => {
|
|
518
376
|
if (output.statusCode >= 300) {
|
|
519
|
-
return
|
|
520
|
-
}
|
|
521
|
-
const data = await parseBody(output.body, context);
|
|
522
|
-
let contents = {};
|
|
523
|
-
contents = _json(data);
|
|
524
|
-
const response = {
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
...contents,
|
|
527
|
-
};
|
|
528
|
-
return response;
|
|
529
|
-
};
|
|
530
|
-
const de_CreateRegexPatternSetCommandError = async (output, context) => {
|
|
531
|
-
const parsedOutput = {
|
|
532
|
-
...output,
|
|
533
|
-
body: await parseErrorBody(output.body, context),
|
|
534
|
-
};
|
|
535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
-
switch (errorCode) {
|
|
537
|
-
case "WAFDuplicateItemException":
|
|
538
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
539
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
540
|
-
case "WAFInternalErrorException":
|
|
541
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
542
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
543
|
-
case "WAFInvalidOperationException":
|
|
544
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
545
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
546
|
-
case "WAFInvalidParameterException":
|
|
547
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
548
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
549
|
-
case "WAFLimitsExceededException":
|
|
550
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
551
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
552
|
-
case "WAFOptimisticLockException":
|
|
553
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
554
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
555
|
-
case "WAFTagOperationException":
|
|
556
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
557
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
558
|
-
case "WAFTagOperationInternalErrorException":
|
|
559
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
560
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
561
|
-
default:
|
|
562
|
-
const parsedBody = parsedOutput.body;
|
|
563
|
-
return throwDefaultError({
|
|
564
|
-
output,
|
|
565
|
-
parsedBody,
|
|
566
|
-
errorCode,
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
571
|
-
if (output.statusCode >= 300) {
|
|
572
|
-
return de_CreateRuleGroupCommandError(output, context);
|
|
573
|
-
}
|
|
574
|
-
const data = await parseBody(output.body, context);
|
|
575
|
-
let contents = {};
|
|
576
|
-
contents = _json(data);
|
|
577
|
-
const response = {
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
...contents,
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
const de_CreateRuleGroupCommandError = async (output, context) => {
|
|
584
|
-
const parsedOutput = {
|
|
585
|
-
...output,
|
|
586
|
-
body: await parseErrorBody(output.body, context),
|
|
587
|
-
};
|
|
588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
|
-
switch (errorCode) {
|
|
590
|
-
case "WAFDuplicateItemException":
|
|
591
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
592
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
593
|
-
case "WAFInternalErrorException":
|
|
594
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
595
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
596
|
-
case "WAFInvalidOperationException":
|
|
597
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
598
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
599
|
-
case "WAFInvalidParameterException":
|
|
600
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
601
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
602
|
-
case "WAFLimitsExceededException":
|
|
603
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
604
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
605
|
-
case "WAFNonexistentItemException":
|
|
606
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
607
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
608
|
-
case "WAFOptimisticLockException":
|
|
609
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
610
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
611
|
-
case "WAFSubscriptionNotFoundException":
|
|
612
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
613
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
614
|
-
case "WAFTagOperationException":
|
|
615
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
616
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
617
|
-
case "WAFTagOperationInternalErrorException":
|
|
618
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
619
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
620
|
-
case "WAFUnavailableEntityException":
|
|
621
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
622
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
623
|
-
default:
|
|
624
|
-
const parsedBody = parsedOutput.body;
|
|
625
|
-
return throwDefaultError({
|
|
626
|
-
output,
|
|
627
|
-
parsedBody,
|
|
628
|
-
errorCode,
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
export const de_CreateWebACLCommand = async (output, context) => {
|
|
633
|
-
if (output.statusCode >= 300) {
|
|
634
|
-
return de_CreateWebACLCommandError(output, context);
|
|
377
|
+
return de_CommandError(output, context);
|
|
635
378
|
}
|
|
636
379
|
const data = await parseBody(output.body, context);
|
|
637
380
|
let contents = {};
|
|
@@ -642,440 +385,9 @@ export const de_CreateWebACLCommand = async (output, context) => {
|
|
|
642
385
|
};
|
|
643
386
|
return response;
|
|
644
387
|
};
|
|
645
|
-
const
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context),
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "WAFConfigurationWarningException":
|
|
653
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
654
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
655
|
-
case "WAFDuplicateItemException":
|
|
656
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
657
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
658
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
659
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
660
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
661
|
-
case "WAFInternalErrorException":
|
|
662
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
663
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
664
|
-
case "WAFInvalidOperationException":
|
|
665
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
666
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
667
|
-
case "WAFInvalidParameterException":
|
|
668
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
669
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
670
|
-
case "WAFInvalidResourceException":
|
|
671
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
672
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
673
|
-
case "WAFLimitsExceededException":
|
|
674
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
675
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
676
|
-
case "WAFNonexistentItemException":
|
|
677
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
678
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
679
|
-
case "WAFOptimisticLockException":
|
|
680
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
681
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
682
|
-
case "WAFSubscriptionNotFoundException":
|
|
683
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
684
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
685
|
-
case "WAFTagOperationException":
|
|
686
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
687
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
688
|
-
case "WAFTagOperationInternalErrorException":
|
|
689
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
690
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
691
|
-
case "WAFUnavailableEntityException":
|
|
692
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
693
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
694
|
-
default:
|
|
695
|
-
const parsedBody = parsedOutput.body;
|
|
696
|
-
return throwDefaultError({
|
|
697
|
-
output,
|
|
698
|
-
parsedBody,
|
|
699
|
-
errorCode,
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
export const de_DeleteFirewallManagerRuleGroupsCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_DeleteFirewallManagerRuleGroupsCommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await parseBody(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = _json(data);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents,
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
};
|
|
716
|
-
const de_DeleteFirewallManagerRuleGroupsCommandError = async (output, context) => {
|
|
717
|
-
const parsedOutput = {
|
|
718
|
-
...output,
|
|
719
|
-
body: await parseErrorBody(output.body, context),
|
|
720
|
-
};
|
|
721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
|
-
switch (errorCode) {
|
|
723
|
-
case "WAFInternalErrorException":
|
|
724
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
725
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
726
|
-
case "WAFInvalidOperationException":
|
|
727
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
728
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
729
|
-
case "WAFInvalidParameterException":
|
|
730
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
731
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
732
|
-
case "WAFNonexistentItemException":
|
|
733
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
734
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
735
|
-
case "WAFOptimisticLockException":
|
|
736
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
737
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
738
|
-
default:
|
|
739
|
-
const parsedBody = parsedOutput.body;
|
|
740
|
-
return throwDefaultError({
|
|
741
|
-
output,
|
|
742
|
-
parsedBody,
|
|
743
|
-
errorCode,
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_DeleteIPSetCommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await parseBody(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = _json(data);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents,
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
const de_DeleteIPSetCommandError = async (output, context) => {
|
|
761
|
-
const parsedOutput = {
|
|
762
|
-
...output,
|
|
763
|
-
body: await parseErrorBody(output.body, context),
|
|
764
|
-
};
|
|
765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
|
-
switch (errorCode) {
|
|
767
|
-
case "WAFAssociatedItemException":
|
|
768
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
769
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
770
|
-
case "WAFInternalErrorException":
|
|
771
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
772
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
773
|
-
case "WAFInvalidOperationException":
|
|
774
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
775
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
776
|
-
case "WAFInvalidParameterException":
|
|
777
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
778
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
779
|
-
case "WAFNonexistentItemException":
|
|
780
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
781
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
782
|
-
case "WAFOptimisticLockException":
|
|
783
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
784
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
785
|
-
case "WAFTagOperationException":
|
|
786
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
787
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
788
|
-
case "WAFTagOperationInternalErrorException":
|
|
789
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
790
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
791
|
-
default:
|
|
792
|
-
const parsedBody = parsedOutput.body;
|
|
793
|
-
return throwDefaultError({
|
|
794
|
-
output,
|
|
795
|
-
parsedBody,
|
|
796
|
-
errorCode,
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
801
|
-
if (output.statusCode >= 300) {
|
|
802
|
-
return de_DeleteLoggingConfigurationCommandError(output, context);
|
|
803
|
-
}
|
|
804
|
-
const data = await parseBody(output.body, context);
|
|
805
|
-
let contents = {};
|
|
806
|
-
contents = _json(data);
|
|
807
|
-
const response = {
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
...contents,
|
|
810
|
-
};
|
|
811
|
-
return response;
|
|
812
|
-
};
|
|
813
|
-
const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
814
|
-
const parsedOutput = {
|
|
815
|
-
...output,
|
|
816
|
-
body: await parseErrorBody(output.body, context),
|
|
817
|
-
};
|
|
818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
-
switch (errorCode) {
|
|
820
|
-
case "WAFInternalErrorException":
|
|
821
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
822
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
823
|
-
case "WAFInvalidOperationException":
|
|
824
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
825
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
826
|
-
case "WAFInvalidParameterException":
|
|
827
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
828
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
829
|
-
case "WAFNonexistentItemException":
|
|
830
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
831
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
832
|
-
case "WAFOptimisticLockException":
|
|
833
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
834
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode >= 300) {
|
|
846
|
-
return de_DeletePermissionPolicyCommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const data = await parseBody(output.body, context);
|
|
849
|
-
let contents = {};
|
|
850
|
-
contents = _json(data);
|
|
851
|
-
const response = {
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
...contents,
|
|
854
|
-
};
|
|
855
|
-
return response;
|
|
856
|
-
};
|
|
857
|
-
const de_DeletePermissionPolicyCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "WAFInternalErrorException":
|
|
865
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
866
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
867
|
-
case "WAFInvalidParameterException":
|
|
868
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
869
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
870
|
-
case "WAFNonexistentItemException":
|
|
871
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
872
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
873
|
-
default:
|
|
874
|
-
const parsedBody = parsedOutput.body;
|
|
875
|
-
return throwDefaultError({
|
|
876
|
-
output,
|
|
877
|
-
parsedBody,
|
|
878
|
-
errorCode,
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
export const de_DeleteRegexPatternSetCommand = async (output, context) => {
|
|
883
|
-
if (output.statusCode >= 300) {
|
|
884
|
-
return de_DeleteRegexPatternSetCommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const data = await parseBody(output.body, context);
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = _json(data);
|
|
889
|
-
const response = {
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents,
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
};
|
|
895
|
-
const de_DeleteRegexPatternSetCommandError = async (output, context) => {
|
|
896
|
-
const parsedOutput = {
|
|
897
|
-
...output,
|
|
898
|
-
body: await parseErrorBody(output.body, context),
|
|
899
|
-
};
|
|
900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
-
switch (errorCode) {
|
|
902
|
-
case "WAFAssociatedItemException":
|
|
903
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
904
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
905
|
-
case "WAFInternalErrorException":
|
|
906
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
907
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
908
|
-
case "WAFInvalidOperationException":
|
|
909
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
910
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
911
|
-
case "WAFInvalidParameterException":
|
|
912
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
913
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
914
|
-
case "WAFNonexistentItemException":
|
|
915
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
916
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
917
|
-
case "WAFOptimisticLockException":
|
|
918
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
919
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
920
|
-
case "WAFTagOperationException":
|
|
921
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
922
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
923
|
-
case "WAFTagOperationInternalErrorException":
|
|
924
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
925
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
926
|
-
default:
|
|
927
|
-
const parsedBody = parsedOutput.body;
|
|
928
|
-
return throwDefaultError({
|
|
929
|
-
output,
|
|
930
|
-
parsedBody,
|
|
931
|
-
errorCode,
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
936
|
-
if (output.statusCode >= 300) {
|
|
937
|
-
return de_DeleteRuleGroupCommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const data = await parseBody(output.body, context);
|
|
940
|
-
let contents = {};
|
|
941
|
-
contents = _json(data);
|
|
942
|
-
const response = {
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
...contents,
|
|
945
|
-
};
|
|
946
|
-
return response;
|
|
947
|
-
};
|
|
948
|
-
const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
949
|
-
const parsedOutput = {
|
|
950
|
-
...output,
|
|
951
|
-
body: await parseErrorBody(output.body, context),
|
|
952
|
-
};
|
|
953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
-
switch (errorCode) {
|
|
955
|
-
case "WAFAssociatedItemException":
|
|
956
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
957
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
958
|
-
case "WAFInternalErrorException":
|
|
959
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
960
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
961
|
-
case "WAFInvalidOperationException":
|
|
962
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
963
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
964
|
-
case "WAFInvalidParameterException":
|
|
965
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
966
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
967
|
-
case "WAFNonexistentItemException":
|
|
968
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
969
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
970
|
-
case "WAFOptimisticLockException":
|
|
971
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
972
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
973
|
-
case "WAFTagOperationException":
|
|
974
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
975
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
976
|
-
case "WAFTagOperationInternalErrorException":
|
|
977
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
978
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
export const de_DeleteWebACLCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode >= 300) {
|
|
990
|
-
return de_DeleteWebACLCommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const data = await parseBody(output.body, context);
|
|
993
|
-
let contents = {};
|
|
994
|
-
contents = _json(data);
|
|
995
|
-
const response = {
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
...contents,
|
|
998
|
-
};
|
|
999
|
-
return response;
|
|
1000
|
-
};
|
|
1001
|
-
const de_DeleteWebACLCommandError = async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context),
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "WAFAssociatedItemException":
|
|
1009
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
1010
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "WAFInternalErrorException":
|
|
1012
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1013
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "WAFInvalidOperationException":
|
|
1015
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1016
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "WAFInvalidParameterException":
|
|
1018
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1019
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "WAFNonexistentItemException":
|
|
1021
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1022
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "WAFOptimisticLockException":
|
|
1024
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1025
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "WAFTagOperationException":
|
|
1027
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1028
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "WAFTagOperationInternalErrorException":
|
|
1030
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1031
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1032
|
-
default:
|
|
1033
|
-
const parsedBody = parsedOutput.body;
|
|
1034
|
-
return throwDefaultError({
|
|
1035
|
-
output,
|
|
1036
|
-
parsedBody,
|
|
1037
|
-
errorCode,
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
export const de_DescribeAllManagedProductsCommand = async (output, context) => {
|
|
1042
|
-
if (output.statusCode >= 300) {
|
|
1043
|
-
return de_DescribeAllManagedProductsCommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const data = await parseBody(output.body, context);
|
|
1046
|
-
let contents = {};
|
|
1047
|
-
contents = _json(data);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
...contents,
|
|
1051
|
-
};
|
|
1052
|
-
return response;
|
|
1053
|
-
};
|
|
1054
|
-
const de_DescribeAllManagedProductsCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "WAFInternalErrorException":
|
|
1062
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1063
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "WAFInvalidOperationException":
|
|
1065
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1066
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1067
|
-
default:
|
|
1068
|
-
const parsedBody = parsedOutput.body;
|
|
1069
|
-
return throwDefaultError({
|
|
1070
|
-
output,
|
|
1071
|
-
parsedBody,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
|
-
export const de_DescribeManagedProductsByVendorCommand = async (output, context) => {
|
|
388
|
+
export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
1077
389
|
if (output.statusCode >= 300) {
|
|
1078
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
1079
391
|
}
|
|
1080
392
|
const data = await parseBody(output.body, context);
|
|
1081
393
|
let contents = {};
|
|
@@ -1086,34 +398,9 @@ export const de_DescribeManagedProductsByVendorCommand = async (output, context)
|
|
|
1086
398
|
};
|
|
1087
399
|
return response;
|
|
1088
400
|
};
|
|
1089
|
-
const
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "WAFInternalErrorException":
|
|
1097
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1098
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "WAFInvalidOperationException":
|
|
1100
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1101
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "WAFInvalidParameterException":
|
|
1103
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1104
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
401
|
+
export const de_CreateWebACLCommand = async (output, context) => {
|
|
1115
402
|
if (output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
403
|
+
return de_CommandError(output, context);
|
|
1117
404
|
}
|
|
1118
405
|
const data = await parseBody(output.body, context);
|
|
1119
406
|
let contents = {};
|
|
@@ -1124,43 +411,9 @@ export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
|
1124
411
|
};
|
|
1125
412
|
return response;
|
|
1126
413
|
};
|
|
1127
|
-
const
|
|
1128
|
-
const parsedOutput = {
|
|
1129
|
-
...output,
|
|
1130
|
-
body: await parseErrorBody(output.body, context),
|
|
1131
|
-
};
|
|
1132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
-
switch (errorCode) {
|
|
1134
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
1135
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
1136
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "WAFInternalErrorException":
|
|
1138
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1139
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "WAFInvalidOperationException":
|
|
1141
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1142
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "WAFInvalidParameterException":
|
|
1144
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1145
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "WAFInvalidResourceException":
|
|
1147
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1148
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "WAFNonexistentItemException":
|
|
1150
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1151
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1152
|
-
default:
|
|
1153
|
-
const parsedBody = parsedOutput.body;
|
|
1154
|
-
return throwDefaultError({
|
|
1155
|
-
output,
|
|
1156
|
-
parsedBody,
|
|
1157
|
-
errorCode,
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
};
|
|
1161
|
-
export const de_DisassociateWebACLCommand = async (output, context) => {
|
|
414
|
+
export const de_DeleteFirewallManagerRuleGroupsCommand = async (output, context) => {
|
|
1162
415
|
if (output.statusCode >= 300) {
|
|
1163
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
1164
417
|
}
|
|
1165
418
|
const data = await parseBody(output.body, context);
|
|
1166
419
|
let contents = {};
|
|
@@ -1171,37 +424,9 @@ export const de_DisassociateWebACLCommand = async (output, context) => {
|
|
|
1171
424
|
};
|
|
1172
425
|
return response;
|
|
1173
426
|
};
|
|
1174
|
-
const
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context),
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "WAFInternalErrorException":
|
|
1182
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1183
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "WAFInvalidOperationException":
|
|
1185
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1186
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "WAFInvalidParameterException":
|
|
1188
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1189
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "WAFNonexistentItemException":
|
|
1191
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1192
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
return throwDefaultError({
|
|
1196
|
-
output,
|
|
1197
|
-
parsedBody,
|
|
1198
|
-
errorCode,
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
|
|
427
|
+
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
1203
428
|
if (output.statusCode >= 300) {
|
|
1204
|
-
return
|
|
429
|
+
return de_CommandError(output, context);
|
|
1205
430
|
}
|
|
1206
431
|
const data = await parseBody(output.body, context);
|
|
1207
432
|
let contents = {};
|
|
@@ -1212,78 +437,22 @@ export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) =>
|
|
|
1212
437
|
};
|
|
1213
438
|
return response;
|
|
1214
439
|
};
|
|
1215
|
-
const
|
|
1216
|
-
const parsedOutput = {
|
|
1217
|
-
...output,
|
|
1218
|
-
body: await parseErrorBody(output.body, context),
|
|
1219
|
-
};
|
|
1220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
|
-
switch (errorCode) {
|
|
1222
|
-
case "WAFInternalErrorException":
|
|
1223
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1224
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "WAFInvalidOperationException":
|
|
1226
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1227
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "WAFInvalidParameterException":
|
|
1229
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1230
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "WAFNonexistentItemException":
|
|
1232
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1233
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1234
|
-
default:
|
|
1235
|
-
const parsedBody = parsedOutput.body;
|
|
1236
|
-
return throwDefaultError({
|
|
1237
|
-
output,
|
|
1238
|
-
parsedBody,
|
|
1239
|
-
errorCode,
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
export const de_GetDecryptedAPIKeyCommand = async (output, context) => {
|
|
440
|
+
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
1244
441
|
if (output.statusCode >= 300) {
|
|
1245
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
1246
443
|
}
|
|
1247
444
|
const data = await parseBody(output.body, context);
|
|
1248
445
|
let contents = {};
|
|
1249
|
-
contents =
|
|
446
|
+
contents = _json(data);
|
|
1250
447
|
const response = {
|
|
1251
448
|
$metadata: deserializeMetadata(output),
|
|
1252
449
|
...contents,
|
|
1253
450
|
};
|
|
1254
451
|
return response;
|
|
1255
452
|
};
|
|
1256
|
-
const
|
|
1257
|
-
const parsedOutput = {
|
|
1258
|
-
...output,
|
|
1259
|
-
body: await parseErrorBody(output.body, context),
|
|
1260
|
-
};
|
|
1261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
-
switch (errorCode) {
|
|
1263
|
-
case "WAFInternalErrorException":
|
|
1264
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1265
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "WAFInvalidOperationException":
|
|
1267
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1268
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "WAFInvalidParameterException":
|
|
1270
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1271
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "WAFInvalidResourceException":
|
|
1273
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1274
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1275
|
-
default:
|
|
1276
|
-
const parsedBody = parsedOutput.body;
|
|
1277
|
-
return throwDefaultError({
|
|
1278
|
-
output,
|
|
1279
|
-
parsedBody,
|
|
1280
|
-
errorCode,
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
};
|
|
1284
|
-
export const de_GetIPSetCommand = async (output, context) => {
|
|
453
|
+
export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
1285
454
|
if (output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
455
|
+
return de_CommandError(output, context);
|
|
1287
456
|
}
|
|
1288
457
|
const data = await parseBody(output.body, context);
|
|
1289
458
|
let contents = {};
|
|
@@ -1294,37 +463,9 @@ export const de_GetIPSetCommand = async (output, context) => {
|
|
|
1294
463
|
};
|
|
1295
464
|
return response;
|
|
1296
465
|
};
|
|
1297
|
-
const
|
|
1298
|
-
const parsedOutput = {
|
|
1299
|
-
...output,
|
|
1300
|
-
body: await parseErrorBody(output.body, context),
|
|
1301
|
-
};
|
|
1302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
|
-
switch (errorCode) {
|
|
1304
|
-
case "WAFInternalErrorException":
|
|
1305
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1306
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "WAFInvalidOperationException":
|
|
1308
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1309
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "WAFInvalidParameterException":
|
|
1311
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1312
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "WAFNonexistentItemException":
|
|
1314
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1315
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
466
|
+
export const de_DeleteRegexPatternSetCommand = async (output, context) => {
|
|
1326
467
|
if (output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
1328
469
|
}
|
|
1329
470
|
const data = await parseBody(output.body, context);
|
|
1330
471
|
let contents = {};
|
|
@@ -1335,119 +476,61 @@ export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
|
1335
476
|
};
|
|
1336
477
|
return response;
|
|
1337
478
|
};
|
|
1338
|
-
const
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
body: await parseErrorBody(output.body, context),
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "WAFInternalErrorException":
|
|
1346
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1347
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "WAFInvalidOperationException":
|
|
1349
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1350
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "WAFInvalidParameterException":
|
|
1352
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1353
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "WAFNonexistentItemException":
|
|
1355
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1356
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode,
|
|
1363
|
-
});
|
|
479
|
+
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
480
|
+
if (output.statusCode >= 300) {
|
|
481
|
+
return de_CommandError(output, context);
|
|
1364
482
|
}
|
|
483
|
+
const data = await parseBody(output.body, context);
|
|
484
|
+
let contents = {};
|
|
485
|
+
contents = _json(data);
|
|
486
|
+
const response = {
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
...contents,
|
|
489
|
+
};
|
|
490
|
+
return response;
|
|
1365
491
|
};
|
|
1366
|
-
export const
|
|
492
|
+
export const de_DeleteWebACLCommand = async (output, context) => {
|
|
1367
493
|
if (output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
1369
495
|
}
|
|
1370
496
|
const data = await parseBody(output.body, context);
|
|
1371
497
|
let contents = {};
|
|
1372
|
-
contents =
|
|
498
|
+
contents = _json(data);
|
|
1373
499
|
const response = {
|
|
1374
500
|
$metadata: deserializeMetadata(output),
|
|
1375
501
|
...contents,
|
|
1376
502
|
};
|
|
1377
503
|
return response;
|
|
1378
504
|
};
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "WAFInternalErrorException":
|
|
1387
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1388
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "WAFInvalidOperationException":
|
|
1390
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1391
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "WAFInvalidParameterException":
|
|
1393
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1394
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "WAFNonexistentItemException":
|
|
1396
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1397
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode,
|
|
1404
|
-
});
|
|
505
|
+
export const de_DescribeAllManagedProductsCommand = async (output, context) => {
|
|
506
|
+
if (output.statusCode >= 300) {
|
|
507
|
+
return de_CommandError(output, context);
|
|
1405
508
|
}
|
|
509
|
+
const data = await parseBody(output.body, context);
|
|
510
|
+
let contents = {};
|
|
511
|
+
contents = _json(data);
|
|
512
|
+
const response = {
|
|
513
|
+
$metadata: deserializeMetadata(output),
|
|
514
|
+
...contents,
|
|
515
|
+
};
|
|
516
|
+
return response;
|
|
1406
517
|
};
|
|
1407
|
-
export const
|
|
518
|
+
export const de_DescribeManagedProductsByVendorCommand = async (output, context) => {
|
|
1408
519
|
if (output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
520
|
+
return de_CommandError(output, context);
|
|
1410
521
|
}
|
|
1411
522
|
const data = await parseBody(output.body, context);
|
|
1412
523
|
let contents = {};
|
|
1413
|
-
contents =
|
|
524
|
+
contents = _json(data);
|
|
1414
525
|
const response = {
|
|
1415
526
|
$metadata: deserializeMetadata(output),
|
|
1416
527
|
...contents,
|
|
1417
528
|
};
|
|
1418
529
|
return response;
|
|
1419
530
|
};
|
|
1420
|
-
const
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "WAFInternalErrorException":
|
|
1428
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1429
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "WAFInvalidOperationException":
|
|
1431
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1432
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "WAFInvalidParameterException":
|
|
1434
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1435
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "WAFNonexistentItemException":
|
|
1437
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1438
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1439
|
-
default:
|
|
1440
|
-
const parsedBody = parsedOutput.body;
|
|
1441
|
-
return throwDefaultError({
|
|
1442
|
-
output,
|
|
1443
|
-
parsedBody,
|
|
1444
|
-
errorCode,
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
|
-
export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
531
|
+
export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
1449
532
|
if (output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
533
|
+
return de_CommandError(output, context);
|
|
1451
534
|
}
|
|
1452
535
|
const data = await parseBody(output.body, context);
|
|
1453
536
|
let contents = {};
|
|
@@ -1458,34 +541,9 @@ export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
|
1458
541
|
};
|
|
1459
542
|
return response;
|
|
1460
543
|
};
|
|
1461
|
-
const
|
|
1462
|
-
const parsedOutput = {
|
|
1463
|
-
...output,
|
|
1464
|
-
body: await parseErrorBody(output.body, context),
|
|
1465
|
-
};
|
|
1466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
-
switch (errorCode) {
|
|
1468
|
-
case "WAFInternalErrorException":
|
|
1469
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1470
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "WAFInvalidParameterException":
|
|
1472
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1473
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "WAFNonexistentItemException":
|
|
1475
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1476
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
export const de_GetRateBasedStatementManagedKeysCommand = async (output, context) => {
|
|
544
|
+
export const de_DisassociateWebACLCommand = async (output, context) => {
|
|
1487
545
|
if (output.statusCode >= 300) {
|
|
1488
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
1489
547
|
}
|
|
1490
548
|
const data = await parseBody(output.body, context);
|
|
1491
549
|
let contents = {};
|
|
@@ -1496,40 +554,9 @@ export const de_GetRateBasedStatementManagedKeysCommand = async (output, context
|
|
|
1496
554
|
};
|
|
1497
555
|
return response;
|
|
1498
556
|
};
|
|
1499
|
-
const
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "WAFInternalErrorException":
|
|
1507
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1508
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "WAFInvalidOperationException":
|
|
1510
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1511
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "WAFInvalidParameterException":
|
|
1513
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1514
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "WAFNonexistentItemException":
|
|
1516
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1517
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "WAFUnsupportedAggregateKeyTypeException":
|
|
1519
|
-
case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
|
|
1520
|
-
throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
|
|
1521
|
-
default:
|
|
1522
|
-
const parsedBody = parsedOutput.body;
|
|
1523
|
-
return throwDefaultError({
|
|
1524
|
-
output,
|
|
1525
|
-
parsedBody,
|
|
1526
|
-
errorCode,
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
557
|
+
export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
|
|
1531
558
|
if (output.statusCode >= 300) {
|
|
1532
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
1533
560
|
}
|
|
1534
561
|
const data = await parseBody(output.body, context);
|
|
1535
562
|
let contents = {};
|
|
@@ -1540,242 +567,100 @@ export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
|
1540
567
|
};
|
|
1541
568
|
return response;
|
|
1542
569
|
};
|
|
1543
|
-
const
|
|
1544
|
-
const parsedOutput = {
|
|
1545
|
-
...output,
|
|
1546
|
-
body: await parseErrorBody(output.body, context),
|
|
1547
|
-
};
|
|
1548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
-
switch (errorCode) {
|
|
1550
|
-
case "WAFInternalErrorException":
|
|
1551
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1552
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "WAFInvalidOperationException":
|
|
1554
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1555
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "WAFInvalidParameterException":
|
|
1557
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1558
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "WAFNonexistentItemException":
|
|
1560
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1561
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode,
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
};
|
|
1571
|
-
export const de_GetRuleGroupCommand = async (output, context) => {
|
|
570
|
+
export const de_GetDecryptedAPIKeyCommand = async (output, context) => {
|
|
1572
571
|
if (output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
1574
573
|
}
|
|
1575
574
|
const data = await parseBody(output.body, context);
|
|
1576
575
|
let contents = {};
|
|
1577
|
-
contents =
|
|
576
|
+
contents = de_GetDecryptedAPIKeyResponse(data, context);
|
|
1578
577
|
const response = {
|
|
1579
578
|
$metadata: deserializeMetadata(output),
|
|
1580
579
|
...contents,
|
|
1581
580
|
};
|
|
1582
581
|
return response;
|
|
1583
582
|
};
|
|
1584
|
-
const
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context),
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "WAFInternalErrorException":
|
|
1592
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1593
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "WAFInvalidOperationException":
|
|
1595
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1596
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "WAFInvalidParameterException":
|
|
1598
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1599
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "WAFNonexistentItemException":
|
|
1601
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1602
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1603
|
-
default:
|
|
1604
|
-
const parsedBody = parsedOutput.body;
|
|
1605
|
-
return throwDefaultError({
|
|
1606
|
-
output,
|
|
1607
|
-
parsedBody,
|
|
1608
|
-
errorCode,
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
};
|
|
1612
|
-
export const de_GetSampledRequestsCommand = async (output, context) => {
|
|
583
|
+
export const de_GetIPSetCommand = async (output, context) => {
|
|
1613
584
|
if (output.statusCode >= 300) {
|
|
1614
|
-
return
|
|
585
|
+
return de_CommandError(output, context);
|
|
1615
586
|
}
|
|
1616
587
|
const data = await parseBody(output.body, context);
|
|
1617
588
|
let contents = {};
|
|
1618
|
-
contents =
|
|
589
|
+
contents = _json(data);
|
|
1619
590
|
const response = {
|
|
1620
591
|
$metadata: deserializeMetadata(output),
|
|
1621
592
|
...contents,
|
|
1622
593
|
};
|
|
1623
594
|
return response;
|
|
1624
595
|
};
|
|
1625
|
-
const
|
|
1626
|
-
const parsedOutput = {
|
|
1627
|
-
...output,
|
|
1628
|
-
body: await parseErrorBody(output.body, context),
|
|
1629
|
-
};
|
|
1630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
switch (errorCode) {
|
|
1632
|
-
case "WAFInternalErrorException":
|
|
1633
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1634
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "WAFInvalidParameterException":
|
|
1636
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1637
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "WAFNonexistentItemException":
|
|
1639
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1640
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1641
|
-
default:
|
|
1642
|
-
const parsedBody = parsedOutput.body;
|
|
1643
|
-
return throwDefaultError({
|
|
1644
|
-
output,
|
|
1645
|
-
parsedBody,
|
|
1646
|
-
errorCode,
|
|
1647
|
-
});
|
|
1648
|
-
}
|
|
1649
|
-
};
|
|
1650
|
-
export const de_GetWebACLCommand = async (output, context) => {
|
|
596
|
+
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
1651
597
|
if (output.statusCode >= 300) {
|
|
1652
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
1653
599
|
}
|
|
1654
600
|
const data = await parseBody(output.body, context);
|
|
1655
601
|
let contents = {};
|
|
1656
|
-
contents =
|
|
602
|
+
contents = _json(data);
|
|
1657
603
|
const response = {
|
|
1658
604
|
$metadata: deserializeMetadata(output),
|
|
1659
605
|
...contents,
|
|
1660
606
|
};
|
|
1661
607
|
return response;
|
|
1662
608
|
};
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
body: await parseErrorBody(output.body, context),
|
|
1667
|
-
};
|
|
1668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
-
switch (errorCode) {
|
|
1670
|
-
case "WAFInternalErrorException":
|
|
1671
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1672
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "WAFInvalidOperationException":
|
|
1674
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1675
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "WAFInvalidParameterException":
|
|
1677
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1678
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "WAFNonexistentItemException":
|
|
1680
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1681
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode,
|
|
1688
|
-
});
|
|
609
|
+
export const de_GetManagedRuleSetCommand = async (output, context) => {
|
|
610
|
+
if (output.statusCode >= 300) {
|
|
611
|
+
return de_CommandError(output, context);
|
|
1689
612
|
}
|
|
613
|
+
const data = await parseBody(output.body, context);
|
|
614
|
+
let contents = {};
|
|
615
|
+
contents = de_GetManagedRuleSetResponse(data, context);
|
|
616
|
+
const response = {
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
...contents,
|
|
619
|
+
};
|
|
620
|
+
return response;
|
|
1690
621
|
};
|
|
1691
|
-
export const
|
|
622
|
+
export const de_GetMobileSdkReleaseCommand = async (output, context) => {
|
|
1692
623
|
if (output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
624
|
+
return de_CommandError(output, context);
|
|
1694
625
|
}
|
|
1695
626
|
const data = await parseBody(output.body, context);
|
|
1696
627
|
let contents = {};
|
|
1697
|
-
contents =
|
|
628
|
+
contents = de_GetMobileSdkReleaseResponse(data, context);
|
|
1698
629
|
const response = {
|
|
1699
630
|
$metadata: deserializeMetadata(output),
|
|
1700
631
|
...contents,
|
|
1701
632
|
};
|
|
1702
633
|
return response;
|
|
1703
634
|
};
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
body: await parseErrorBody(output.body, context),
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "WAFInternalErrorException":
|
|
1712
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1713
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "WAFInvalidOperationException":
|
|
1715
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1716
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "WAFInvalidParameterException":
|
|
1718
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1719
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "WAFNonexistentItemException":
|
|
1721
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1722
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "WAFUnavailableEntityException":
|
|
1724
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1725
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody,
|
|
1731
|
-
errorCode,
|
|
1732
|
-
});
|
|
635
|
+
export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
636
|
+
if (output.statusCode >= 300) {
|
|
637
|
+
return de_CommandError(output, context);
|
|
1733
638
|
}
|
|
639
|
+
const data = await parseBody(output.body, context);
|
|
640
|
+
let contents = {};
|
|
641
|
+
contents = _json(data);
|
|
642
|
+
const response = {
|
|
643
|
+
$metadata: deserializeMetadata(output),
|
|
644
|
+
...contents,
|
|
645
|
+
};
|
|
646
|
+
return response;
|
|
1734
647
|
};
|
|
1735
|
-
export const
|
|
648
|
+
export const de_GetRateBasedStatementManagedKeysCommand = async (output, context) => {
|
|
1736
649
|
if (output.statusCode >= 300) {
|
|
1737
|
-
return
|
|
650
|
+
return de_CommandError(output, context);
|
|
1738
651
|
}
|
|
1739
652
|
const data = await parseBody(output.body, context);
|
|
1740
653
|
let contents = {};
|
|
1741
|
-
contents =
|
|
654
|
+
contents = _json(data);
|
|
1742
655
|
const response = {
|
|
1743
656
|
$metadata: deserializeMetadata(output),
|
|
1744
657
|
...contents,
|
|
1745
658
|
};
|
|
1746
659
|
return response;
|
|
1747
660
|
};
|
|
1748
|
-
const
|
|
1749
|
-
const parsedOutput = {
|
|
1750
|
-
...output,
|
|
1751
|
-
body: await parseErrorBody(output.body, context),
|
|
1752
|
-
};
|
|
1753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
|
-
switch (errorCode) {
|
|
1755
|
-
case "WAFInternalErrorException":
|
|
1756
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1757
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "WAFInvalidOperationException":
|
|
1759
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1760
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "WAFInvalidParameterException":
|
|
1762
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1763
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "WAFInvalidResourceException":
|
|
1765
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1766
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1767
|
-
default:
|
|
1768
|
-
const parsedBody = parsedOutput.body;
|
|
1769
|
-
return throwDefaultError({
|
|
1770
|
-
output,
|
|
1771
|
-
parsedBody,
|
|
1772
|
-
errorCode,
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
};
|
|
1776
|
-
export const de_ListAvailableManagedRuleGroupsCommand = async (output, context) => {
|
|
661
|
+
export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
1777
662
|
if (output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
663
|
+
return de_CommandError(output, context);
|
|
1779
664
|
}
|
|
1780
665
|
const data = await parseBody(output.body, context);
|
|
1781
666
|
let contents = {};
|
|
@@ -1786,113 +671,74 @@ export const de_ListAvailableManagedRuleGroupsCommand = async (output, context)
|
|
|
1786
671
|
};
|
|
1787
672
|
return response;
|
|
1788
673
|
};
|
|
1789
|
-
const
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
body: await parseErrorBody(output.body, context),
|
|
1793
|
-
};
|
|
1794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
case "WAFInternalErrorException":
|
|
1797
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1798
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "WAFInvalidOperationException":
|
|
1800
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1801
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "WAFInvalidParameterException":
|
|
1803
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1804
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1805
|
-
default:
|
|
1806
|
-
const parsedBody = parsedOutput.body;
|
|
1807
|
-
return throwDefaultError({
|
|
1808
|
-
output,
|
|
1809
|
-
parsedBody,
|
|
1810
|
-
errorCode,
|
|
1811
|
-
});
|
|
674
|
+
export const de_GetRuleGroupCommand = async (output, context) => {
|
|
675
|
+
if (output.statusCode >= 300) {
|
|
676
|
+
return de_CommandError(output, context);
|
|
1812
677
|
}
|
|
678
|
+
const data = await parseBody(output.body, context);
|
|
679
|
+
let contents = {};
|
|
680
|
+
contents = de_GetRuleGroupResponse(data, context);
|
|
681
|
+
const response = {
|
|
682
|
+
$metadata: deserializeMetadata(output),
|
|
683
|
+
...contents,
|
|
684
|
+
};
|
|
685
|
+
return response;
|
|
1813
686
|
};
|
|
1814
|
-
export const
|
|
687
|
+
export const de_GetSampledRequestsCommand = async (output, context) => {
|
|
1815
688
|
if (output.statusCode >= 300) {
|
|
1816
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
1817
690
|
}
|
|
1818
691
|
const data = await parseBody(output.body, context);
|
|
1819
692
|
let contents = {};
|
|
1820
|
-
contents =
|
|
693
|
+
contents = de_GetSampledRequestsResponse(data, context);
|
|
1821
694
|
const response = {
|
|
1822
695
|
$metadata: deserializeMetadata(output),
|
|
1823
696
|
...contents,
|
|
1824
697
|
};
|
|
1825
698
|
return response;
|
|
1826
699
|
};
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
body: await parseErrorBody(output.body, context),
|
|
1831
|
-
};
|
|
1832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
-
switch (errorCode) {
|
|
1834
|
-
case "WAFInternalErrorException":
|
|
1835
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1836
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "WAFInvalidOperationException":
|
|
1838
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1839
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "WAFInvalidParameterException":
|
|
1841
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1842
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "WAFNonexistentItemException":
|
|
1844
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1845
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1846
|
-
default:
|
|
1847
|
-
const parsedBody = parsedOutput.body;
|
|
1848
|
-
return throwDefaultError({
|
|
1849
|
-
output,
|
|
1850
|
-
parsedBody,
|
|
1851
|
-
errorCode,
|
|
1852
|
-
});
|
|
700
|
+
export const de_GetWebACLCommand = async (output, context) => {
|
|
701
|
+
if (output.statusCode >= 300) {
|
|
702
|
+
return de_CommandError(output, context);
|
|
1853
703
|
}
|
|
704
|
+
const data = await parseBody(output.body, context);
|
|
705
|
+
let contents = {};
|
|
706
|
+
contents = de_GetWebACLResponse(data, context);
|
|
707
|
+
const response = {
|
|
708
|
+
$metadata: deserializeMetadata(output),
|
|
709
|
+
...contents,
|
|
710
|
+
};
|
|
711
|
+
return response;
|
|
1854
712
|
};
|
|
1855
|
-
export const
|
|
713
|
+
export const de_GetWebACLForResourceCommand = async (output, context) => {
|
|
1856
714
|
if (output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
1858
716
|
}
|
|
1859
717
|
const data = await parseBody(output.body, context);
|
|
1860
718
|
let contents = {};
|
|
1861
|
-
contents =
|
|
719
|
+
contents = de_GetWebACLForResourceResponse(data, context);
|
|
1862
720
|
const response = {
|
|
1863
721
|
$metadata: deserializeMetadata(output),
|
|
1864
722
|
...contents,
|
|
1865
723
|
};
|
|
1866
724
|
return response;
|
|
1867
725
|
};
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
body: await parseErrorBody(output.body, context),
|
|
1872
|
-
};
|
|
1873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
case "WAFInternalErrorException":
|
|
1876
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1877
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "WAFInvalidOperationException":
|
|
1879
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1880
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "WAFInvalidParameterException":
|
|
1882
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1883
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1884
|
-
default:
|
|
1885
|
-
const parsedBody = parsedOutput.body;
|
|
1886
|
-
return throwDefaultError({
|
|
1887
|
-
output,
|
|
1888
|
-
parsedBody,
|
|
1889
|
-
errorCode,
|
|
1890
|
-
});
|
|
726
|
+
export const de_ListAPIKeysCommand = async (output, context) => {
|
|
727
|
+
if (output.statusCode >= 300) {
|
|
728
|
+
return de_CommandError(output, context);
|
|
1891
729
|
}
|
|
730
|
+
const data = await parseBody(output.body, context);
|
|
731
|
+
let contents = {};
|
|
732
|
+
contents = de_ListAPIKeysResponse(data, context);
|
|
733
|
+
const response = {
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
...contents,
|
|
736
|
+
};
|
|
737
|
+
return response;
|
|
1892
738
|
};
|
|
1893
|
-
export const
|
|
739
|
+
export const de_ListAvailableManagedRuleGroupsCommand = async (output, context) => {
|
|
1894
740
|
if (output.statusCode >= 300) {
|
|
1895
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
1896
742
|
}
|
|
1897
743
|
const data = await parseBody(output.body, context);
|
|
1898
744
|
let contents = {};
|
|
@@ -1903,34 +749,22 @@ export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
|
1903
749
|
};
|
|
1904
750
|
return response;
|
|
1905
751
|
};
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
body: await parseErrorBody(output.body, context),
|
|
1910
|
-
};
|
|
1911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
-
switch (errorCode) {
|
|
1913
|
-
case "WAFInternalErrorException":
|
|
1914
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1915
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "WAFInvalidOperationException":
|
|
1917
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1918
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "WAFInvalidParameterException":
|
|
1920
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1921
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1922
|
-
default:
|
|
1923
|
-
const parsedBody = parsedOutput.body;
|
|
1924
|
-
return throwDefaultError({
|
|
1925
|
-
output,
|
|
1926
|
-
parsedBody,
|
|
1927
|
-
errorCode,
|
|
1928
|
-
});
|
|
752
|
+
export const de_ListAvailableManagedRuleGroupVersionsCommand = async (output, context) => {
|
|
753
|
+
if (output.statusCode >= 300) {
|
|
754
|
+
return de_CommandError(output, context);
|
|
1929
755
|
}
|
|
756
|
+
const data = await parseBody(output.body, context);
|
|
757
|
+
let contents = {};
|
|
758
|
+
contents = de_ListAvailableManagedRuleGroupVersionsResponse(data, context);
|
|
759
|
+
const response = {
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
761
|
+
...contents,
|
|
762
|
+
};
|
|
763
|
+
return response;
|
|
1930
764
|
};
|
|
1931
|
-
export const
|
|
765
|
+
export const de_ListIPSetsCommand = async (output, context) => {
|
|
1932
766
|
if (output.statusCode >= 300) {
|
|
1933
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
1934
768
|
}
|
|
1935
769
|
const data = await parseBody(output.body, context);
|
|
1936
770
|
let contents = {};
|
|
@@ -1941,72 +775,22 @@ export const de_ListManagedRuleSetsCommand = async (output, context) => {
|
|
|
1941
775
|
};
|
|
1942
776
|
return response;
|
|
1943
777
|
};
|
|
1944
|
-
const
|
|
1945
|
-
const parsedOutput = {
|
|
1946
|
-
...output,
|
|
1947
|
-
body: await parseErrorBody(output.body, context),
|
|
1948
|
-
};
|
|
1949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
-
switch (errorCode) {
|
|
1951
|
-
case "WAFInternalErrorException":
|
|
1952
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1953
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "WAFInvalidOperationException":
|
|
1955
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1956
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "WAFInvalidParameterException":
|
|
1958
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1959
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode,
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
};
|
|
1969
|
-
export const de_ListMobileSdkReleasesCommand = async (output, context) => {
|
|
778
|
+
export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
1970
779
|
if (output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
1972
781
|
}
|
|
1973
782
|
const data = await parseBody(output.body, context);
|
|
1974
783
|
let contents = {};
|
|
1975
|
-
contents =
|
|
784
|
+
contents = _json(data);
|
|
1976
785
|
const response = {
|
|
1977
786
|
$metadata: deserializeMetadata(output),
|
|
1978
787
|
...contents,
|
|
1979
788
|
};
|
|
1980
789
|
return response;
|
|
1981
790
|
};
|
|
1982
|
-
const
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context),
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "WAFInternalErrorException":
|
|
1990
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1991
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "WAFInvalidOperationException":
|
|
1993
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1994
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "WAFInvalidParameterException":
|
|
1996
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1997
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1998
|
-
default:
|
|
1999
|
-
const parsedBody = parsedOutput.body;
|
|
2000
|
-
return throwDefaultError({
|
|
2001
|
-
output,
|
|
2002
|
-
parsedBody,
|
|
2003
|
-
errorCode,
|
|
2004
|
-
});
|
|
2005
|
-
}
|
|
2006
|
-
};
|
|
2007
|
-
export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
791
|
+
export const de_ListManagedRuleSetsCommand = async (output, context) => {
|
|
2008
792
|
if (output.statusCode >= 300) {
|
|
2009
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
2010
794
|
}
|
|
2011
795
|
const data = await parseBody(output.body, context);
|
|
2012
796
|
let contents = {};
|
|
@@ -2017,75 +801,22 @@ export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
|
2017
801
|
};
|
|
2018
802
|
return response;
|
|
2019
803
|
};
|
|
2020
|
-
const
|
|
2021
|
-
const parsedOutput = {
|
|
2022
|
-
...output,
|
|
2023
|
-
body: await parseErrorBody(output.body, context),
|
|
2024
|
-
};
|
|
2025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
|
-
switch (errorCode) {
|
|
2027
|
-
case "WAFInternalErrorException":
|
|
2028
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2029
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "WAFInvalidOperationException":
|
|
2031
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2032
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "WAFInvalidParameterException":
|
|
2034
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2035
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode,
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
};
|
|
2045
|
-
export const de_ListResourcesForWebACLCommand = async (output, context) => {
|
|
804
|
+
export const de_ListMobileSdkReleasesCommand = async (output, context) => {
|
|
2046
805
|
if (output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
2048
807
|
}
|
|
2049
808
|
const data = await parseBody(output.body, context);
|
|
2050
809
|
let contents = {};
|
|
2051
|
-
contents =
|
|
810
|
+
contents = de_ListMobileSdkReleasesResponse(data, context);
|
|
2052
811
|
const response = {
|
|
2053
812
|
$metadata: deserializeMetadata(output),
|
|
2054
813
|
...contents,
|
|
2055
814
|
};
|
|
2056
815
|
return response;
|
|
2057
816
|
};
|
|
2058
|
-
const
|
|
2059
|
-
const parsedOutput = {
|
|
2060
|
-
...output,
|
|
2061
|
-
body: await parseErrorBody(output.body, context),
|
|
2062
|
-
};
|
|
2063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
|
-
switch (errorCode) {
|
|
2065
|
-
case "WAFInternalErrorException":
|
|
2066
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2067
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "WAFInvalidOperationException":
|
|
2069
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2070
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "WAFInvalidParameterException":
|
|
2072
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2073
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "WAFNonexistentItemException":
|
|
2075
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2076
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2077
|
-
default:
|
|
2078
|
-
const parsedBody = parsedOutput.body;
|
|
2079
|
-
return throwDefaultError({
|
|
2080
|
-
output,
|
|
2081
|
-
parsedBody,
|
|
2082
|
-
errorCode,
|
|
2083
|
-
});
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
817
|
+
export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
2087
818
|
if (output.statusCode >= 300) {
|
|
2088
|
-
return
|
|
819
|
+
return de_CommandError(output, context);
|
|
2089
820
|
}
|
|
2090
821
|
const data = await parseBody(output.body, context);
|
|
2091
822
|
let contents = {};
|
|
@@ -2096,34 +827,9 @@ export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
|
2096
827
|
};
|
|
2097
828
|
return response;
|
|
2098
829
|
};
|
|
2099
|
-
const
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context),
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "WAFInternalErrorException":
|
|
2107
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2108
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "WAFInvalidOperationException":
|
|
2110
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2111
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "WAFInvalidParameterException":
|
|
2113
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2114
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode,
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
};
|
|
2124
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
830
|
+
export const de_ListResourcesForWebACLCommand = async (output, context) => {
|
|
2125
831
|
if (output.statusCode >= 300) {
|
|
2126
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
2127
833
|
}
|
|
2128
834
|
const data = await parseBody(output.body, context);
|
|
2129
835
|
let contents = {};
|
|
@@ -2134,43 +840,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2134
840
|
};
|
|
2135
841
|
return response;
|
|
2136
842
|
};
|
|
2137
|
-
const
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "WAFInternalErrorException":
|
|
2145
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2146
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "WAFInvalidOperationException":
|
|
2148
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2149
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "WAFInvalidParameterException":
|
|
2151
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2152
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "WAFNonexistentItemException":
|
|
2154
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2155
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "WAFTagOperationException":
|
|
2157
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2158
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "WAFTagOperationInternalErrorException":
|
|
2160
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2161
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2162
|
-
default:
|
|
2163
|
-
const parsedBody = parsedOutput.body;
|
|
2164
|
-
return throwDefaultError({
|
|
2165
|
-
output,
|
|
2166
|
-
parsedBody,
|
|
2167
|
-
errorCode,
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
};
|
|
2171
|
-
export const de_ListWebACLsCommand = async (output, context) => {
|
|
843
|
+
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
2172
844
|
if (output.statusCode >= 300) {
|
|
2173
|
-
return
|
|
845
|
+
return de_CommandError(output, context);
|
|
2174
846
|
}
|
|
2175
847
|
const data = await parseBody(output.body, context);
|
|
2176
848
|
let contents = {};
|
|
@@ -2181,34 +853,9 @@ export const de_ListWebACLsCommand = async (output, context) => {
|
|
|
2181
853
|
};
|
|
2182
854
|
return response;
|
|
2183
855
|
};
|
|
2184
|
-
const
|
|
2185
|
-
const parsedOutput = {
|
|
2186
|
-
...output,
|
|
2187
|
-
body: await parseErrorBody(output.body, context),
|
|
2188
|
-
};
|
|
2189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
-
switch (errorCode) {
|
|
2191
|
-
case "WAFInternalErrorException":
|
|
2192
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2193
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "WAFInvalidOperationException":
|
|
2195
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2196
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "WAFInvalidParameterException":
|
|
2198
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2199
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
return throwDefaultError({
|
|
2203
|
-
output,
|
|
2204
|
-
parsedBody,
|
|
2205
|
-
errorCode,
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
};
|
|
2209
|
-
export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
856
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2210
857
|
if (output.statusCode >= 300) {
|
|
2211
|
-
return
|
|
858
|
+
return de_CommandError(output, context);
|
|
2212
859
|
}
|
|
2213
860
|
const data = await parseBody(output.body, context);
|
|
2214
861
|
let contents = {};
|
|
@@ -2219,49 +866,9 @@ export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
|
2219
866
|
};
|
|
2220
867
|
return response;
|
|
2221
868
|
};
|
|
2222
|
-
const
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context),
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "WAFInternalErrorException":
|
|
2230
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2231
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "WAFInvalidOperationException":
|
|
2233
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2234
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "WAFInvalidParameterException":
|
|
2236
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2237
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "WAFLimitsExceededException":
|
|
2239
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2240
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "WAFLogDestinationPermissionIssueException":
|
|
2242
|
-
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
2243
|
-
throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "WAFNonexistentItemException":
|
|
2245
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2246
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "WAFOptimisticLockException":
|
|
2248
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2249
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "WAFServiceLinkedRoleErrorException":
|
|
2251
|
-
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
|
|
2252
|
-
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode,
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
|
-
export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
869
|
+
export const de_ListWebACLsCommand = async (output, context) => {
|
|
2263
870
|
if (output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
2265
872
|
}
|
|
2266
873
|
const data = await parseBody(output.body, context);
|
|
2267
874
|
let contents = {};
|
|
@@ -2272,40 +879,9 @@ export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
|
2272
879
|
};
|
|
2273
880
|
return response;
|
|
2274
881
|
};
|
|
2275
|
-
const
|
|
2276
|
-
const parsedOutput = {
|
|
2277
|
-
...output,
|
|
2278
|
-
body: await parseErrorBody(output.body, context),
|
|
2279
|
-
};
|
|
2280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
|
-
switch (errorCode) {
|
|
2282
|
-
case "WAFInternalErrorException":
|
|
2283
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2284
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "WAFInvalidOperationException":
|
|
2286
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2287
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "WAFInvalidParameterException":
|
|
2289
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2290
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "WAFNonexistentItemException":
|
|
2292
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2293
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "WAFOptimisticLockException":
|
|
2295
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2296
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2297
|
-
default:
|
|
2298
|
-
const parsedBody = parsedOutput.body;
|
|
2299
|
-
return throwDefaultError({
|
|
2300
|
-
output,
|
|
2301
|
-
parsedBody,
|
|
2302
|
-
errorCode,
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
|
-
export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
882
|
+
export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
2307
883
|
if (output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
2309
885
|
}
|
|
2310
886
|
const data = await parseBody(output.body, context);
|
|
2311
887
|
let contents = {};
|
|
@@ -2316,37 +892,9 @@ export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
|
2316
892
|
};
|
|
2317
893
|
return response;
|
|
2318
894
|
};
|
|
2319
|
-
const
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context),
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "WAFInternalErrorException":
|
|
2327
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2328
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "WAFInvalidParameterException":
|
|
2330
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2331
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "WAFInvalidPermissionPolicyException":
|
|
2333
|
-
case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
|
|
2334
|
-
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "WAFNonexistentItemException":
|
|
2336
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2337
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2338
|
-
default:
|
|
2339
|
-
const parsedBody = parsedOutput.body;
|
|
2340
|
-
return throwDefaultError({
|
|
2341
|
-
output,
|
|
2342
|
-
parsedBody,
|
|
2343
|
-
errorCode,
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
895
|
+
export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
2348
896
|
if (output.statusCode >= 300) {
|
|
2349
|
-
return
|
|
897
|
+
return de_CommandError(output, context);
|
|
2350
898
|
}
|
|
2351
899
|
const data = await parseBody(output.body, context);
|
|
2352
900
|
let contents = {};
|
|
@@ -2357,46 +905,22 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2357
905
|
};
|
|
2358
906
|
return response;
|
|
2359
907
|
};
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
body: await parseErrorBody(output.body, context),
|
|
2364
|
-
};
|
|
2365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
|
-
switch (errorCode) {
|
|
2367
|
-
case "WAFInternalErrorException":
|
|
2368
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2369
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "WAFInvalidOperationException":
|
|
2371
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2372
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "WAFInvalidParameterException":
|
|
2374
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2375
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "WAFLimitsExceededException":
|
|
2377
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2378
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "WAFNonexistentItemException":
|
|
2380
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2381
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "WAFTagOperationException":
|
|
2383
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2384
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "WAFTagOperationInternalErrorException":
|
|
2386
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2387
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2388
|
-
default:
|
|
2389
|
-
const parsedBody = parsedOutput.body;
|
|
2390
|
-
return throwDefaultError({
|
|
2391
|
-
output,
|
|
2392
|
-
parsedBody,
|
|
2393
|
-
errorCode,
|
|
2394
|
-
});
|
|
908
|
+
export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
909
|
+
if (output.statusCode >= 300) {
|
|
910
|
+
return de_CommandError(output, context);
|
|
2395
911
|
}
|
|
912
|
+
const data = await parseBody(output.body, context);
|
|
913
|
+
let contents = {};
|
|
914
|
+
contents = _json(data);
|
|
915
|
+
const response = {
|
|
916
|
+
$metadata: deserializeMetadata(output),
|
|
917
|
+
...contents,
|
|
918
|
+
};
|
|
919
|
+
return response;
|
|
2396
920
|
};
|
|
2397
|
-
export const
|
|
921
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2398
922
|
if (output.statusCode >= 300) {
|
|
2399
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
2400
924
|
}
|
|
2401
925
|
const data = await parseBody(output.body, context);
|
|
2402
926
|
let contents = {};
|
|
@@ -2407,43 +931,22 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2407
931
|
};
|
|
2408
932
|
return response;
|
|
2409
933
|
};
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
body: await parseErrorBody(output.body, context),
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "WAFInternalErrorException":
|
|
2418
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2419
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "WAFInvalidOperationException":
|
|
2421
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2422
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "WAFInvalidParameterException":
|
|
2424
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2425
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "WAFNonexistentItemException":
|
|
2427
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2428
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "WAFTagOperationException":
|
|
2430
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2431
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "WAFTagOperationInternalErrorException":
|
|
2433
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2434
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode,
|
|
2441
|
-
});
|
|
934
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
935
|
+
if (output.statusCode >= 300) {
|
|
936
|
+
return de_CommandError(output, context);
|
|
2442
937
|
}
|
|
938
|
+
const data = await parseBody(output.body, context);
|
|
939
|
+
let contents = {};
|
|
940
|
+
contents = _json(data);
|
|
941
|
+
const response = {
|
|
942
|
+
$metadata: deserializeMetadata(output),
|
|
943
|
+
...contents,
|
|
944
|
+
};
|
|
945
|
+
return response;
|
|
2443
946
|
};
|
|
2444
947
|
export const de_UpdateIPSetCommand = async (output, context) => {
|
|
2445
948
|
if (output.statusCode >= 300) {
|
|
2446
|
-
return
|
|
949
|
+
return de_CommandError(output, context);
|
|
2447
950
|
}
|
|
2448
951
|
const data = await parseBody(output.body, context);
|
|
2449
952
|
let contents = {};
|
|
@@ -2454,46 +957,9 @@ export const de_UpdateIPSetCommand = async (output, context) => {
|
|
|
2454
957
|
};
|
|
2455
958
|
return response;
|
|
2456
959
|
};
|
|
2457
|
-
const de_UpdateIPSetCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "WAFDuplicateItemException":
|
|
2465
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2466
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "WAFInternalErrorException":
|
|
2468
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2469
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "WAFInvalidOperationException":
|
|
2471
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2472
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "WAFInvalidParameterException":
|
|
2474
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2475
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "WAFLimitsExceededException":
|
|
2477
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2478
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "WAFNonexistentItemException":
|
|
2480
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2481
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "WAFOptimisticLockException":
|
|
2483
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2484
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2485
|
-
default:
|
|
2486
|
-
const parsedBody = parsedOutput.body;
|
|
2487
|
-
return throwDefaultError({
|
|
2488
|
-
output,
|
|
2489
|
-
parsedBody,
|
|
2490
|
-
errorCode,
|
|
2491
|
-
});
|
|
2492
|
-
}
|
|
2493
|
-
};
|
|
2494
960
|
export const de_UpdateManagedRuleSetVersionExpiryDateCommand = async (output, context) => {
|
|
2495
961
|
if (output.statusCode >= 300) {
|
|
2496
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
2497
963
|
}
|
|
2498
964
|
const data = await parseBody(output.body, context);
|
|
2499
965
|
let contents = {};
|
|
@@ -2504,40 +970,9 @@ export const de_UpdateManagedRuleSetVersionExpiryDateCommand = async (output, co
|
|
|
2504
970
|
};
|
|
2505
971
|
return response;
|
|
2506
972
|
};
|
|
2507
|
-
const de_UpdateManagedRuleSetVersionExpiryDateCommandError = async (output, context) => {
|
|
2508
|
-
const parsedOutput = {
|
|
2509
|
-
...output,
|
|
2510
|
-
body: await parseErrorBody(output.body, context),
|
|
2511
|
-
};
|
|
2512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
|
-
switch (errorCode) {
|
|
2514
|
-
case "WAFInternalErrorException":
|
|
2515
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2516
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "WAFInvalidOperationException":
|
|
2518
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2519
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "WAFInvalidParameterException":
|
|
2521
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2522
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "WAFNonexistentItemException":
|
|
2524
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2525
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "WAFOptimisticLockException":
|
|
2527
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2528
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2529
|
-
default:
|
|
2530
|
-
const parsedBody = parsedOutput.body;
|
|
2531
|
-
return throwDefaultError({
|
|
2532
|
-
output,
|
|
2533
|
-
parsedBody,
|
|
2534
|
-
errorCode,
|
|
2535
|
-
});
|
|
2536
|
-
}
|
|
2537
|
-
};
|
|
2538
973
|
export const de_UpdateRegexPatternSetCommand = async (output, context) => {
|
|
2539
974
|
if (output.statusCode >= 300) {
|
|
2540
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
2541
976
|
}
|
|
2542
977
|
const data = await parseBody(output.body, context);
|
|
2543
978
|
let contents = {};
|
|
@@ -2548,46 +983,9 @@ export const de_UpdateRegexPatternSetCommand = async (output, context) => {
|
|
|
2548
983
|
};
|
|
2549
984
|
return response;
|
|
2550
985
|
};
|
|
2551
|
-
const de_UpdateRegexPatternSetCommandError = async (output, context) => {
|
|
2552
|
-
const parsedOutput = {
|
|
2553
|
-
...output,
|
|
2554
|
-
body: await parseErrorBody(output.body, context),
|
|
2555
|
-
};
|
|
2556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
-
switch (errorCode) {
|
|
2558
|
-
case "WAFDuplicateItemException":
|
|
2559
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2560
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "WAFInternalErrorException":
|
|
2562
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2563
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "WAFInvalidOperationException":
|
|
2565
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2566
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "WAFInvalidParameterException":
|
|
2568
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2569
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "WAFLimitsExceededException":
|
|
2571
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2572
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "WAFNonexistentItemException":
|
|
2574
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2575
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "WAFOptimisticLockException":
|
|
2577
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2578
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2579
|
-
default:
|
|
2580
|
-
const parsedBody = parsedOutput.body;
|
|
2581
|
-
return throwDefaultError({
|
|
2582
|
-
output,
|
|
2583
|
-
parsedBody,
|
|
2584
|
-
errorCode,
|
|
2585
|
-
});
|
|
2586
|
-
}
|
|
2587
|
-
};
|
|
2588
986
|
export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
2589
987
|
if (output.statusCode >= 300) {
|
|
2590
|
-
return
|
|
988
|
+
return de_CommandError(output, context);
|
|
2591
989
|
}
|
|
2592
990
|
const data = await parseBody(output.body, context);
|
|
2593
991
|
let contents = {};
|
|
@@ -2598,55 +996,9 @@ export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
|
2598
996
|
};
|
|
2599
997
|
return response;
|
|
2600
998
|
};
|
|
2601
|
-
const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
2602
|
-
const parsedOutput = {
|
|
2603
|
-
...output,
|
|
2604
|
-
body: await parseErrorBody(output.body, context),
|
|
2605
|
-
};
|
|
2606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
|
-
switch (errorCode) {
|
|
2608
|
-
case "WAFConfigurationWarningException":
|
|
2609
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
2610
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "WAFDuplicateItemException":
|
|
2612
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2613
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "WAFInternalErrorException":
|
|
2615
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2616
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "WAFInvalidOperationException":
|
|
2618
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2619
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "WAFInvalidParameterException":
|
|
2621
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2622
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "WAFLimitsExceededException":
|
|
2624
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2625
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "WAFNonexistentItemException":
|
|
2627
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2628
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "WAFOptimisticLockException":
|
|
2630
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2631
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "WAFSubscriptionNotFoundException":
|
|
2633
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
2634
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "WAFUnavailableEntityException":
|
|
2636
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
2637
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
return throwDefaultError({
|
|
2641
|
-
output,
|
|
2642
|
-
parsedBody,
|
|
2643
|
-
errorCode,
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
};
|
|
2647
999
|
export const de_UpdateWebACLCommand = async (output, context) => {
|
|
2648
1000
|
if (output.statusCode >= 300) {
|
|
2649
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
2650
1002
|
}
|
|
2651
1003
|
const data = await parseBody(output.body, context);
|
|
2652
1004
|
let contents = {};
|
|
@@ -2657,22 +1009,13 @@ export const de_UpdateWebACLCommand = async (output, context) => {
|
|
|
2657
1009
|
};
|
|
2658
1010
|
return response;
|
|
2659
1011
|
};
|
|
2660
|
-
const
|
|
1012
|
+
const de_CommandError = async (output, context) => {
|
|
2661
1013
|
const parsedOutput = {
|
|
2662
1014
|
...output,
|
|
2663
1015
|
body: await parseErrorBody(output.body, context),
|
|
2664
1016
|
};
|
|
2665
1017
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
1018
|
switch (errorCode) {
|
|
2667
|
-
case "WAFConfigurationWarningException":
|
|
2668
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
2669
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "WAFDuplicateItemException":
|
|
2671
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2672
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
2674
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
2675
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
2676
1019
|
case "WAFInternalErrorException":
|
|
2677
1020
|
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2678
1021
|
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
@@ -2682,24 +1025,54 @@ const de_UpdateWebACLCommandError = async (output, context) => {
|
|
|
2682
1025
|
case "WAFInvalidParameterException":
|
|
2683
1026
|
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2684
1027
|
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1028
|
+
case "WAFNonexistentItemException":
|
|
1029
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1030
|
+
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1031
|
+
case "WAFUnavailableEntityException":
|
|
1032
|
+
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1033
|
+
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1034
|
+
case "WAFExpiredManagedRuleGroupVersionException":
|
|
1035
|
+
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
1036
|
+
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
2685
1037
|
case "WAFInvalidResourceException":
|
|
2686
1038
|
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
2687
1039
|
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
2688
1040
|
case "WAFLimitsExceededException":
|
|
2689
1041
|
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2690
1042
|
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "WAFNonexistentItemException":
|
|
2692
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2693
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "WAFOptimisticLockException":
|
|
2695
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2696
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2697
1043
|
case "WAFSubscriptionNotFoundException":
|
|
2698
1044
|
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
2699
1045
|
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "
|
|
2701
|
-
case "com.amazonaws.wafv2#
|
|
2702
|
-
throw await
|
|
1046
|
+
case "WAFDuplicateItemException":
|
|
1047
|
+
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
1048
|
+
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
1049
|
+
case "WAFOptimisticLockException":
|
|
1050
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1051
|
+
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1052
|
+
case "WAFTagOperationException":
|
|
1053
|
+
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1054
|
+
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "WAFTagOperationInternalErrorException":
|
|
1056
|
+
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1057
|
+
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "WAFConfigurationWarningException":
|
|
1059
|
+
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
1060
|
+
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "WAFAssociatedItemException":
|
|
1062
|
+
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
1063
|
+
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "WAFUnsupportedAggregateKeyTypeException":
|
|
1065
|
+
case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
|
|
1066
|
+
throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "WAFLogDestinationPermissionIssueException":
|
|
1068
|
+
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
1069
|
+
throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "WAFServiceLinkedRoleErrorException":
|
|
1071
|
+
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
|
|
1072
|
+
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "WAFInvalidPermissionPolicyException":
|
|
1074
|
+
case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
|
|
1075
|
+
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
2703
1076
|
default:
|
|
2704
1077
|
const parsedBody = parsedOutput.body;
|
|
2705
1078
|
return throwDefaultError({
|