@aws-sdk/client-waf 3.504.0 → 3.509.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 +136 -2420
- package/dist-es/protocols/Aws_json1_1.js +285 -2569
- package/package.json +3 -3
|
@@ -466,7 +466,7 @@ export const se_UpdateXssMatchSetCommand = async (input, context) => {
|
|
|
466
466
|
};
|
|
467
467
|
export const de_CreateByteMatchSetCommand = async (output, context) => {
|
|
468
468
|
if (output.statusCode >= 300) {
|
|
469
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
470
470
|
}
|
|
471
471
|
const data = await parseBody(output.body, context);
|
|
472
472
|
let contents = {};
|
|
@@ -477,43 +477,9 @@ export const de_CreateByteMatchSetCommand = async (output, context) => {
|
|
|
477
477
|
};
|
|
478
478
|
return response;
|
|
479
479
|
};
|
|
480
|
-
const de_CreateByteMatchSetCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "WAFDisallowedNameException":
|
|
488
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
489
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
490
|
-
case "WAFInternalErrorException":
|
|
491
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
492
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
493
|
-
case "WAFInvalidAccountException":
|
|
494
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
495
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
496
|
-
case "WAFInvalidParameterException":
|
|
497
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
498
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
499
|
-
case "WAFLimitsExceededException":
|
|
500
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
501
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
502
|
-
case "WAFStaleDataException":
|
|
503
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
504
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
505
|
-
default:
|
|
506
|
-
const parsedBody = parsedOutput.body;
|
|
507
|
-
return throwDefaultError({
|
|
508
|
-
output,
|
|
509
|
-
parsedBody,
|
|
510
|
-
errorCode,
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
480
|
export const de_CreateGeoMatchSetCommand = async (output, context) => {
|
|
515
481
|
if (output.statusCode >= 300) {
|
|
516
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
517
483
|
}
|
|
518
484
|
const data = await parseBody(output.body, context);
|
|
519
485
|
let contents = {};
|
|
@@ -524,43 +490,9 @@ export const de_CreateGeoMatchSetCommand = async (output, context) => {
|
|
|
524
490
|
};
|
|
525
491
|
return response;
|
|
526
492
|
};
|
|
527
|
-
const de_CreateGeoMatchSetCommandError = async (output, context) => {
|
|
528
|
-
const parsedOutput = {
|
|
529
|
-
...output,
|
|
530
|
-
body: await parseErrorBody(output.body, context),
|
|
531
|
-
};
|
|
532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
|
-
switch (errorCode) {
|
|
534
|
-
case "WAFDisallowedNameException":
|
|
535
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
536
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
537
|
-
case "WAFInternalErrorException":
|
|
538
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
539
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
540
|
-
case "WAFInvalidAccountException":
|
|
541
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
542
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
543
|
-
case "WAFInvalidParameterException":
|
|
544
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
545
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
546
|
-
case "WAFLimitsExceededException":
|
|
547
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
548
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
549
|
-
case "WAFStaleDataException":
|
|
550
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
551
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
552
|
-
default:
|
|
553
|
-
const parsedBody = parsedOutput.body;
|
|
554
|
-
return throwDefaultError({
|
|
555
|
-
output,
|
|
556
|
-
parsedBody,
|
|
557
|
-
errorCode,
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
493
|
export const de_CreateIPSetCommand = async (output, context) => {
|
|
562
494
|
if (output.statusCode >= 300) {
|
|
563
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
564
496
|
}
|
|
565
497
|
const data = await parseBody(output.body, context);
|
|
566
498
|
let contents = {};
|
|
@@ -571,43 +503,9 @@ export const de_CreateIPSetCommand = async (output, context) => {
|
|
|
571
503
|
};
|
|
572
504
|
return response;
|
|
573
505
|
};
|
|
574
|
-
const de_CreateIPSetCommandError = async (output, context) => {
|
|
575
|
-
const parsedOutput = {
|
|
576
|
-
...output,
|
|
577
|
-
body: await parseErrorBody(output.body, context),
|
|
578
|
-
};
|
|
579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
|
-
switch (errorCode) {
|
|
581
|
-
case "WAFDisallowedNameException":
|
|
582
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
583
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
584
|
-
case "WAFInternalErrorException":
|
|
585
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
586
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
587
|
-
case "WAFInvalidAccountException":
|
|
588
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
589
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
590
|
-
case "WAFInvalidParameterException":
|
|
591
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
592
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
593
|
-
case "WAFLimitsExceededException":
|
|
594
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
595
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
596
|
-
case "WAFStaleDataException":
|
|
597
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
598
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
599
|
-
default:
|
|
600
|
-
const parsedBody = parsedOutput.body;
|
|
601
|
-
return throwDefaultError({
|
|
602
|
-
output,
|
|
603
|
-
parsedBody,
|
|
604
|
-
errorCode,
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
506
|
export const de_CreateRateBasedRuleCommand = async (output, context) => {
|
|
609
507
|
if (output.statusCode >= 300) {
|
|
610
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
611
509
|
}
|
|
612
510
|
const data = await parseBody(output.body, context);
|
|
613
511
|
let contents = {};
|
|
@@ -618,49 +516,9 @@ export const de_CreateRateBasedRuleCommand = async (output, context) => {
|
|
|
618
516
|
};
|
|
619
517
|
return response;
|
|
620
518
|
};
|
|
621
|
-
const de_CreateRateBasedRuleCommandError = async (output, context) => {
|
|
622
|
-
const parsedOutput = {
|
|
623
|
-
...output,
|
|
624
|
-
body: await parseErrorBody(output.body, context),
|
|
625
|
-
};
|
|
626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
-
switch (errorCode) {
|
|
628
|
-
case "WAFBadRequestException":
|
|
629
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
630
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
631
|
-
case "WAFDisallowedNameException":
|
|
632
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
633
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
634
|
-
case "WAFInternalErrorException":
|
|
635
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
636
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
637
|
-
case "WAFInvalidParameterException":
|
|
638
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
639
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
640
|
-
case "WAFLimitsExceededException":
|
|
641
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
642
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
643
|
-
case "WAFStaleDataException":
|
|
644
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
645
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
646
|
-
case "WAFTagOperationException":
|
|
647
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
648
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
649
|
-
case "WAFTagOperationInternalErrorException":
|
|
650
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
651
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
519
|
export const de_CreateRegexMatchSetCommand = async (output, context) => {
|
|
662
520
|
if (output.statusCode >= 300) {
|
|
663
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
664
522
|
}
|
|
665
523
|
const data = await parseBody(output.body, context);
|
|
666
524
|
let contents = {};
|
|
@@ -671,37 +529,9 @@ export const de_CreateRegexMatchSetCommand = async (output, context) => {
|
|
|
671
529
|
};
|
|
672
530
|
return response;
|
|
673
531
|
};
|
|
674
|
-
const de_CreateRegexMatchSetCommandError = async (output, context) => {
|
|
675
|
-
const parsedOutput = {
|
|
676
|
-
...output,
|
|
677
|
-
body: await parseErrorBody(output.body, context),
|
|
678
|
-
};
|
|
679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
-
switch (errorCode) {
|
|
681
|
-
case "WAFDisallowedNameException":
|
|
682
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
683
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
684
|
-
case "WAFInternalErrorException":
|
|
685
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
686
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
687
|
-
case "WAFLimitsExceededException":
|
|
688
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
689
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
690
|
-
case "WAFStaleDataException":
|
|
691
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
692
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
693
|
-
default:
|
|
694
|
-
const parsedBody = parsedOutput.body;
|
|
695
|
-
return throwDefaultError({
|
|
696
|
-
output,
|
|
697
|
-
parsedBody,
|
|
698
|
-
errorCode,
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
532
|
export const de_CreateRegexPatternSetCommand = async (output, context) => {
|
|
703
533
|
if (output.statusCode >= 300) {
|
|
704
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
705
535
|
}
|
|
706
536
|
const data = await parseBody(output.body, context);
|
|
707
537
|
let contents = {};
|
|
@@ -712,37 +542,9 @@ export const de_CreateRegexPatternSetCommand = async (output, context) => {
|
|
|
712
542
|
};
|
|
713
543
|
return response;
|
|
714
544
|
};
|
|
715
|
-
const de_CreateRegexPatternSetCommandError = async (output, context) => {
|
|
716
|
-
const parsedOutput = {
|
|
717
|
-
...output,
|
|
718
|
-
body: await parseErrorBody(output.body, context),
|
|
719
|
-
};
|
|
720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
-
switch (errorCode) {
|
|
722
|
-
case "WAFDisallowedNameException":
|
|
723
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
724
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
725
|
-
case "WAFInternalErrorException":
|
|
726
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
727
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
728
|
-
case "WAFLimitsExceededException":
|
|
729
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
730
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
731
|
-
case "WAFStaleDataException":
|
|
732
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
733
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
734
|
-
default:
|
|
735
|
-
const parsedBody = parsedOutput.body;
|
|
736
|
-
return throwDefaultError({
|
|
737
|
-
output,
|
|
738
|
-
parsedBody,
|
|
739
|
-
errorCode,
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
545
|
export const de_CreateRuleCommand = async (output, context) => {
|
|
744
546
|
if (output.statusCode >= 300) {
|
|
745
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
746
548
|
}
|
|
747
549
|
const data = await parseBody(output.body, context);
|
|
748
550
|
let contents = {};
|
|
@@ -753,49 +555,22 @@ export const de_CreateRuleCommand = async (output, context) => {
|
|
|
753
555
|
};
|
|
754
556
|
return response;
|
|
755
557
|
};
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
body: await parseErrorBody(output.body, context),
|
|
760
|
-
};
|
|
761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
|
-
switch (errorCode) {
|
|
763
|
-
case "WAFBadRequestException":
|
|
764
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
765
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
766
|
-
case "WAFDisallowedNameException":
|
|
767
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
768
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
769
|
-
case "WAFInternalErrorException":
|
|
770
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
771
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
772
|
-
case "WAFInvalidParameterException":
|
|
773
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
774
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
775
|
-
case "WAFLimitsExceededException":
|
|
776
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
777
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
778
|
-
case "WAFStaleDataException":
|
|
779
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
780
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
781
|
-
case "WAFTagOperationException":
|
|
782
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
783
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
784
|
-
case "WAFTagOperationInternalErrorException":
|
|
785
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
786
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
787
|
-
default:
|
|
788
|
-
const parsedBody = parsedOutput.body;
|
|
789
|
-
return throwDefaultError({
|
|
790
|
-
output,
|
|
791
|
-
parsedBody,
|
|
792
|
-
errorCode,
|
|
793
|
-
});
|
|
558
|
+
export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
559
|
+
if (output.statusCode >= 300) {
|
|
560
|
+
return de_CommandError(output, context);
|
|
794
561
|
}
|
|
562
|
+
const data = await parseBody(output.body, context);
|
|
563
|
+
let contents = {};
|
|
564
|
+
contents = _json(data);
|
|
565
|
+
const response = {
|
|
566
|
+
$metadata: deserializeMetadata(output),
|
|
567
|
+
...contents,
|
|
568
|
+
};
|
|
569
|
+
return response;
|
|
795
570
|
};
|
|
796
|
-
export const
|
|
571
|
+
export const de_CreateSizeConstraintSetCommand = async (output, context) => {
|
|
797
572
|
if (output.statusCode >= 300) {
|
|
798
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
799
574
|
}
|
|
800
575
|
const data = await parseBody(output.body, context);
|
|
801
576
|
let contents = {};
|
|
@@ -806,46 +581,22 @@ export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
|
806
581
|
};
|
|
807
582
|
return response;
|
|
808
583
|
};
|
|
809
|
-
const
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
584
|
+
export const de_CreateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const data = await parseBody(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = _json(data);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents,
|
|
813
594
|
};
|
|
814
|
-
|
|
815
|
-
switch (errorCode) {
|
|
816
|
-
case "WAFBadRequestException":
|
|
817
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
818
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
819
|
-
case "WAFDisallowedNameException":
|
|
820
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
821
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
822
|
-
case "WAFInternalErrorException":
|
|
823
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
824
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
825
|
-
case "WAFLimitsExceededException":
|
|
826
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
827
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
828
|
-
case "WAFStaleDataException":
|
|
829
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
830
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
831
|
-
case "WAFTagOperationException":
|
|
832
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
833
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
834
|
-
case "WAFTagOperationInternalErrorException":
|
|
835
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
836
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
837
|
-
default:
|
|
838
|
-
const parsedBody = parsedOutput.body;
|
|
839
|
-
return throwDefaultError({
|
|
840
|
-
output,
|
|
841
|
-
parsedBody,
|
|
842
|
-
errorCode,
|
|
843
|
-
});
|
|
844
|
-
}
|
|
595
|
+
return response;
|
|
845
596
|
};
|
|
846
|
-
export const
|
|
597
|
+
export const de_CreateWebACLCommand = async (output, context) => {
|
|
847
598
|
if (output.statusCode >= 300) {
|
|
848
|
-
return
|
|
599
|
+
return de_CommandError(output, context);
|
|
849
600
|
}
|
|
850
601
|
const data = await parseBody(output.body, context);
|
|
851
602
|
let contents = {};
|
|
@@ -856,43 +607,9 @@ export const de_CreateSizeConstraintSetCommand = async (output, context) => {
|
|
|
856
607
|
};
|
|
857
608
|
return response;
|
|
858
609
|
};
|
|
859
|
-
const
|
|
860
|
-
const parsedOutput = {
|
|
861
|
-
...output,
|
|
862
|
-
body: await parseErrorBody(output.body, context),
|
|
863
|
-
};
|
|
864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
-
switch (errorCode) {
|
|
866
|
-
case "WAFDisallowedNameException":
|
|
867
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
868
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
869
|
-
case "WAFInternalErrorException":
|
|
870
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
871
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
872
|
-
case "WAFInvalidAccountException":
|
|
873
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
874
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
875
|
-
case "WAFInvalidParameterException":
|
|
876
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
877
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
878
|
-
case "WAFLimitsExceededException":
|
|
879
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
880
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
881
|
-
case "WAFStaleDataException":
|
|
882
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
883
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
884
|
-
default:
|
|
885
|
-
const parsedBody = parsedOutput.body;
|
|
886
|
-
return throwDefaultError({
|
|
887
|
-
output,
|
|
888
|
-
parsedBody,
|
|
889
|
-
errorCode,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
export const de_CreateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
610
|
+
export const de_CreateWebACLMigrationStackCommand = async (output, context) => {
|
|
894
611
|
if (output.statusCode >= 300) {
|
|
895
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
896
613
|
}
|
|
897
614
|
const data = await parseBody(output.body, context);
|
|
898
615
|
let contents = {};
|
|
@@ -903,43 +620,9 @@ export const de_CreateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
|
903
620
|
};
|
|
904
621
|
return response;
|
|
905
622
|
};
|
|
906
|
-
const
|
|
907
|
-
const parsedOutput = {
|
|
908
|
-
...output,
|
|
909
|
-
body: await parseErrorBody(output.body, context),
|
|
910
|
-
};
|
|
911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
-
switch (errorCode) {
|
|
913
|
-
case "WAFDisallowedNameException":
|
|
914
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
915
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
916
|
-
case "WAFInternalErrorException":
|
|
917
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
918
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
919
|
-
case "WAFInvalidAccountException":
|
|
920
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
921
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
922
|
-
case "WAFInvalidParameterException":
|
|
923
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
924
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
925
|
-
case "WAFLimitsExceededException":
|
|
926
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
927
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
928
|
-
case "WAFStaleDataException":
|
|
929
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
930
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
export const de_CreateWebACLCommand = async (output, context) => {
|
|
623
|
+
export const de_CreateXssMatchSetCommand = async (output, context) => {
|
|
941
624
|
if (output.statusCode >= 300) {
|
|
942
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
943
626
|
}
|
|
944
627
|
const data = await parseBody(output.body, context);
|
|
945
628
|
let contents = {};
|
|
@@ -950,52 +633,9 @@ export const de_CreateWebACLCommand = async (output, context) => {
|
|
|
950
633
|
};
|
|
951
634
|
return response;
|
|
952
635
|
};
|
|
953
|
-
const
|
|
954
|
-
const parsedOutput = {
|
|
955
|
-
...output,
|
|
956
|
-
body: await parseErrorBody(output.body, context),
|
|
957
|
-
};
|
|
958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
-
switch (errorCode) {
|
|
960
|
-
case "WAFBadRequestException":
|
|
961
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
962
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
963
|
-
case "WAFDisallowedNameException":
|
|
964
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
965
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
966
|
-
case "WAFInternalErrorException":
|
|
967
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
968
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
969
|
-
case "WAFInvalidAccountException":
|
|
970
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
971
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
972
|
-
case "WAFInvalidParameterException":
|
|
973
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
974
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
975
|
-
case "WAFLimitsExceededException":
|
|
976
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
977
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
978
|
-
case "WAFStaleDataException":
|
|
979
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
980
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
981
|
-
case "WAFTagOperationException":
|
|
982
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
983
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
984
|
-
case "WAFTagOperationInternalErrorException":
|
|
985
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
986
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
987
|
-
default:
|
|
988
|
-
const parsedBody = parsedOutput.body;
|
|
989
|
-
return throwDefaultError({
|
|
990
|
-
output,
|
|
991
|
-
parsedBody,
|
|
992
|
-
errorCode,
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
};
|
|
996
|
-
export const de_CreateWebACLMigrationStackCommand = async (output, context) => {
|
|
636
|
+
export const de_DeleteByteMatchSetCommand = async (output, context) => {
|
|
997
637
|
if (output.statusCode >= 300) {
|
|
998
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
999
639
|
}
|
|
1000
640
|
const data = await parseBody(output.body, context);
|
|
1001
641
|
let contents = {};
|
|
@@ -1006,40 +646,9 @@ export const de_CreateWebACLMigrationStackCommand = async (output, context) => {
|
|
|
1006
646
|
};
|
|
1007
647
|
return response;
|
|
1008
648
|
};
|
|
1009
|
-
const
|
|
1010
|
-
const parsedOutput = {
|
|
1011
|
-
...output,
|
|
1012
|
-
body: await parseErrorBody(output.body, context),
|
|
1013
|
-
};
|
|
1014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
-
switch (errorCode) {
|
|
1016
|
-
case "WAFEntityMigrationException":
|
|
1017
|
-
case "com.amazonaws.waf#WAFEntityMigrationException":
|
|
1018
|
-
throw await de_WAFEntityMigrationExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "WAFInternalErrorException":
|
|
1020
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1021
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "WAFInvalidOperationException":
|
|
1023
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
1024
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "WAFInvalidParameterException":
|
|
1026
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
1027
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "WAFNonexistentItemException":
|
|
1029
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1030
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1031
|
-
default:
|
|
1032
|
-
const parsedBody = parsedOutput.body;
|
|
1033
|
-
return throwDefaultError({
|
|
1034
|
-
output,
|
|
1035
|
-
parsedBody,
|
|
1036
|
-
errorCode,
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1040
|
-
export const de_CreateXssMatchSetCommand = async (output, context) => {
|
|
649
|
+
export const de_DeleteGeoMatchSetCommand = async (output, context) => {
|
|
1041
650
|
if (output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
1043
652
|
}
|
|
1044
653
|
const data = await parseBody(output.body, context);
|
|
1045
654
|
let contents = {};
|
|
@@ -1050,43 +659,9 @@ export const de_CreateXssMatchSetCommand = async (output, context) => {
|
|
|
1050
659
|
};
|
|
1051
660
|
return response;
|
|
1052
661
|
};
|
|
1053
|
-
const
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context),
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "WAFDisallowedNameException":
|
|
1061
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
1062
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "WAFInternalErrorException":
|
|
1064
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1065
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "WAFInvalidAccountException":
|
|
1067
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1068
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "WAFInvalidParameterException":
|
|
1070
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
1071
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "WAFLimitsExceededException":
|
|
1073
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
1074
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "WAFStaleDataException":
|
|
1076
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1077
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
|
-
export const de_DeleteByteMatchSetCommand = async (output, context) => {
|
|
662
|
+
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
1088
663
|
if (output.statusCode >= 300) {
|
|
1089
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
1090
665
|
}
|
|
1091
666
|
const data = await parseBody(output.body, context);
|
|
1092
667
|
let contents = {};
|
|
@@ -1097,43 +672,22 @@ export const de_DeleteByteMatchSetCommand = async (output, context) => {
|
|
|
1097
672
|
};
|
|
1098
673
|
return response;
|
|
1099
674
|
};
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
body: await parseErrorBody(output.body, context),
|
|
1104
|
-
};
|
|
1105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
-
switch (errorCode) {
|
|
1107
|
-
case "WAFInternalErrorException":
|
|
1108
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1109
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "WAFInvalidAccountException":
|
|
1111
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1112
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "WAFNonEmptyEntityException":
|
|
1114
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1115
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "WAFNonexistentItemException":
|
|
1117
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1118
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "WAFReferencedItemException":
|
|
1120
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1121
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "WAFStaleDataException":
|
|
1123
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1124
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1125
|
-
default:
|
|
1126
|
-
const parsedBody = parsedOutput.body;
|
|
1127
|
-
return throwDefaultError({
|
|
1128
|
-
output,
|
|
1129
|
-
parsedBody,
|
|
1130
|
-
errorCode,
|
|
1131
|
-
});
|
|
675
|
+
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
676
|
+
if (output.statusCode >= 300) {
|
|
677
|
+
return de_CommandError(output, context);
|
|
1132
678
|
}
|
|
679
|
+
const data = await parseBody(output.body, context);
|
|
680
|
+
let contents = {};
|
|
681
|
+
contents = _json(data);
|
|
682
|
+
const response = {
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
...contents,
|
|
685
|
+
};
|
|
686
|
+
return response;
|
|
1133
687
|
};
|
|
1134
|
-
export const
|
|
688
|
+
export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
1135
689
|
if (output.statusCode >= 300) {
|
|
1136
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
1137
691
|
}
|
|
1138
692
|
const data = await parseBody(output.body, context);
|
|
1139
693
|
let contents = {};
|
|
@@ -1144,43 +698,9 @@ export const de_DeleteGeoMatchSetCommand = async (output, context) => {
|
|
|
1144
698
|
};
|
|
1145
699
|
return response;
|
|
1146
700
|
};
|
|
1147
|
-
const
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context),
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "WAFInternalErrorException":
|
|
1155
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1156
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "WAFInvalidAccountException":
|
|
1158
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1159
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "WAFNonEmptyEntityException":
|
|
1161
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1162
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "WAFNonexistentItemException":
|
|
1164
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1165
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "WAFReferencedItemException":
|
|
1167
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1168
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "WAFStaleDataException":
|
|
1170
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1171
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1172
|
-
default:
|
|
1173
|
-
const parsedBody = parsedOutput.body;
|
|
1174
|
-
return throwDefaultError({
|
|
1175
|
-
output,
|
|
1176
|
-
parsedBody,
|
|
1177
|
-
errorCode,
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
|
-
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
701
|
+
export const de_DeleteRateBasedRuleCommand = async (output, context) => {
|
|
1182
702
|
if (output.statusCode >= 300) {
|
|
1183
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
1184
704
|
}
|
|
1185
705
|
const data = await parseBody(output.body, context);
|
|
1186
706
|
let contents = {};
|
|
@@ -1191,43 +711,9 @@ export const de_DeleteIPSetCommand = async (output, context) => {
|
|
|
1191
711
|
};
|
|
1192
712
|
return response;
|
|
1193
713
|
};
|
|
1194
|
-
const
|
|
1195
|
-
const parsedOutput = {
|
|
1196
|
-
...output,
|
|
1197
|
-
body: await parseErrorBody(output.body, context),
|
|
1198
|
-
};
|
|
1199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
-
switch (errorCode) {
|
|
1201
|
-
case "WAFInternalErrorException":
|
|
1202
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1203
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "WAFInvalidAccountException":
|
|
1205
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1206
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "WAFNonEmptyEntityException":
|
|
1208
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1209
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "WAFNonexistentItemException":
|
|
1211
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1212
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "WAFReferencedItemException":
|
|
1214
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1215
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "WAFStaleDataException":
|
|
1217
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1218
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode,
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
714
|
+
export const de_DeleteRegexMatchSetCommand = async (output, context) => {
|
|
1229
715
|
if (output.statusCode >= 300) {
|
|
1230
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
1231
717
|
}
|
|
1232
718
|
const data = await parseBody(output.body, context);
|
|
1233
719
|
let contents = {};
|
|
@@ -1238,34 +724,9 @@ export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
|
1238
724
|
};
|
|
1239
725
|
return response;
|
|
1240
726
|
};
|
|
1241
|
-
const
|
|
1242
|
-
const parsedOutput = {
|
|
1243
|
-
...output,
|
|
1244
|
-
body: await parseErrorBody(output.body, context),
|
|
1245
|
-
};
|
|
1246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
|
-
switch (errorCode) {
|
|
1248
|
-
case "WAFInternalErrorException":
|
|
1249
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1250
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "WAFNonexistentItemException":
|
|
1252
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1253
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "WAFStaleDataException":
|
|
1255
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1256
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1257
|
-
default:
|
|
1258
|
-
const parsedBody = parsedOutput.body;
|
|
1259
|
-
return throwDefaultError({
|
|
1260
|
-
output,
|
|
1261
|
-
parsedBody,
|
|
1262
|
-
errorCode,
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
};
|
|
1266
|
-
export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
727
|
+
export const de_DeleteRegexPatternSetCommand = async (output, context) => {
|
|
1267
728
|
if (output.statusCode >= 300) {
|
|
1268
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
1269
730
|
}
|
|
1270
731
|
const data = await parseBody(output.body, context);
|
|
1271
732
|
let contents = {};
|
|
@@ -1276,34 +737,9 @@ export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
|
1276
737
|
};
|
|
1277
738
|
return response;
|
|
1278
739
|
};
|
|
1279
|
-
const
|
|
1280
|
-
const parsedOutput = {
|
|
1281
|
-
...output,
|
|
1282
|
-
body: await parseErrorBody(output.body, context),
|
|
1283
|
-
};
|
|
1284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
-
switch (errorCode) {
|
|
1286
|
-
case "WAFInternalErrorException":
|
|
1287
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1288
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "WAFNonexistentItemException":
|
|
1290
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1291
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "WAFStaleDataException":
|
|
1293
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1294
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
export const de_DeleteRateBasedRuleCommand = async (output, context) => {
|
|
740
|
+
export const de_DeleteRuleCommand = async (output, context) => {
|
|
1305
741
|
if (output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
742
|
+
return de_CommandError(output, context);
|
|
1307
743
|
}
|
|
1308
744
|
const data = await parseBody(output.body, context);
|
|
1309
745
|
let contents = {};
|
|
@@ -1314,49 +750,9 @@ export const de_DeleteRateBasedRuleCommand = async (output, context) => {
|
|
|
1314
750
|
};
|
|
1315
751
|
return response;
|
|
1316
752
|
};
|
|
1317
|
-
const
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context),
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "WAFInternalErrorException":
|
|
1325
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1326
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "WAFInvalidAccountException":
|
|
1328
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1329
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "WAFNonEmptyEntityException":
|
|
1331
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1332
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "WAFNonexistentItemException":
|
|
1334
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1335
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "WAFReferencedItemException":
|
|
1337
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1338
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "WAFStaleDataException":
|
|
1340
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1341
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "WAFTagOperationException":
|
|
1343
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
1344
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "WAFTagOperationInternalErrorException":
|
|
1346
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
1347
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody,
|
|
1353
|
-
errorCode,
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
export const de_DeleteRegexMatchSetCommand = async (output, context) => {
|
|
753
|
+
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
1358
754
|
if (output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
1360
756
|
}
|
|
1361
757
|
const data = await parseBody(output.body, context);
|
|
1362
758
|
let contents = {};
|
|
@@ -1367,43 +763,22 @@ export const de_DeleteRegexMatchSetCommand = async (output, context) => {
|
|
|
1367
763
|
};
|
|
1368
764
|
return response;
|
|
1369
765
|
};
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
body: await parseErrorBody(output.body, context),
|
|
1374
|
-
};
|
|
1375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
|
-
switch (errorCode) {
|
|
1377
|
-
case "WAFInternalErrorException":
|
|
1378
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1379
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "WAFInvalidAccountException":
|
|
1381
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1382
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "WAFNonEmptyEntityException":
|
|
1384
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1385
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "WAFNonexistentItemException":
|
|
1387
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1388
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "WAFReferencedItemException":
|
|
1390
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1391
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "WAFStaleDataException":
|
|
1393
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1394
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
766
|
+
export const de_DeleteSizeConstraintSetCommand = async (output, context) => {
|
|
767
|
+
if (output.statusCode >= 300) {
|
|
768
|
+
return de_CommandError(output, context);
|
|
1402
769
|
}
|
|
770
|
+
const data = await parseBody(output.body, context);
|
|
771
|
+
let contents = {};
|
|
772
|
+
contents = _json(data);
|
|
773
|
+
const response = {
|
|
774
|
+
$metadata: deserializeMetadata(output),
|
|
775
|
+
...contents,
|
|
776
|
+
};
|
|
777
|
+
return response;
|
|
1403
778
|
};
|
|
1404
|
-
export const
|
|
779
|
+
export const de_DeleteSqlInjectionMatchSetCommand = async (output, context) => {
|
|
1405
780
|
if (output.statusCode >= 300) {
|
|
1406
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1407
782
|
}
|
|
1408
783
|
const data = await parseBody(output.body, context);
|
|
1409
784
|
let contents = {};
|
|
@@ -1414,43 +789,22 @@ export const de_DeleteRegexPatternSetCommand = async (output, context) => {
|
|
|
1414
789
|
};
|
|
1415
790
|
return response;
|
|
1416
791
|
};
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
body: await parseErrorBody(output.body, context),
|
|
1421
|
-
};
|
|
1422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
-
switch (errorCode) {
|
|
1424
|
-
case "WAFInternalErrorException":
|
|
1425
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1426
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "WAFInvalidAccountException":
|
|
1428
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1429
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "WAFNonEmptyEntityException":
|
|
1431
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1432
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "WAFNonexistentItemException":
|
|
1434
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1435
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "WAFReferencedItemException":
|
|
1437
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1438
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "WAFStaleDataException":
|
|
1440
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1441
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
return throwDefaultError({
|
|
1445
|
-
output,
|
|
1446
|
-
parsedBody,
|
|
1447
|
-
errorCode,
|
|
1448
|
-
});
|
|
792
|
+
export const de_DeleteWebACLCommand = async (output, context) => {
|
|
793
|
+
if (output.statusCode >= 300) {
|
|
794
|
+
return de_CommandError(output, context);
|
|
1449
795
|
}
|
|
796
|
+
const data = await parseBody(output.body, context);
|
|
797
|
+
let contents = {};
|
|
798
|
+
contents = _json(data);
|
|
799
|
+
const response = {
|
|
800
|
+
$metadata: deserializeMetadata(output),
|
|
801
|
+
...contents,
|
|
802
|
+
};
|
|
803
|
+
return response;
|
|
1450
804
|
};
|
|
1451
|
-
export const
|
|
805
|
+
export const de_DeleteXssMatchSetCommand = async (output, context) => {
|
|
1452
806
|
if (output.statusCode >= 300) {
|
|
1453
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1454
808
|
}
|
|
1455
809
|
const data = await parseBody(output.body, context);
|
|
1456
810
|
let contents = {};
|
|
@@ -1461,49 +815,22 @@ export const de_DeleteRuleCommand = async (output, context) => {
|
|
|
1461
815
|
};
|
|
1462
816
|
return response;
|
|
1463
817
|
};
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
body: await parseErrorBody(output.body, context),
|
|
1468
|
-
};
|
|
1469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
|
-
switch (errorCode) {
|
|
1471
|
-
case "WAFInternalErrorException":
|
|
1472
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1473
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "WAFInvalidAccountException":
|
|
1475
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1476
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "WAFNonEmptyEntityException":
|
|
1478
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1479
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "WAFNonexistentItemException":
|
|
1481
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1482
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "WAFReferencedItemException":
|
|
1484
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1485
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "WAFStaleDataException":
|
|
1487
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1488
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "WAFTagOperationException":
|
|
1490
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
1491
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "WAFTagOperationInternalErrorException":
|
|
1493
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
1494
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1495
|
-
default:
|
|
1496
|
-
const parsedBody = parsedOutput.body;
|
|
1497
|
-
return throwDefaultError({
|
|
1498
|
-
output,
|
|
1499
|
-
parsedBody,
|
|
1500
|
-
errorCode,
|
|
1501
|
-
});
|
|
818
|
+
export const de_GetByteMatchSetCommand = async (output, context) => {
|
|
819
|
+
if (output.statusCode >= 300) {
|
|
820
|
+
return de_CommandError(output, context);
|
|
1502
821
|
}
|
|
822
|
+
const data = await parseBody(output.body, context);
|
|
823
|
+
let contents = {};
|
|
824
|
+
contents = de_GetByteMatchSetResponse(data, context);
|
|
825
|
+
const response = {
|
|
826
|
+
$metadata: deserializeMetadata(output),
|
|
827
|
+
...contents,
|
|
828
|
+
};
|
|
829
|
+
return response;
|
|
1503
830
|
};
|
|
1504
|
-
export const
|
|
831
|
+
export const de_GetChangeTokenCommand = async (output, context) => {
|
|
1505
832
|
if (output.statusCode >= 300) {
|
|
1506
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1507
834
|
}
|
|
1508
835
|
const data = await parseBody(output.body, context);
|
|
1509
836
|
let contents = {};
|
|
@@ -1514,49 +841,9 @@ export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
|
1514
841
|
};
|
|
1515
842
|
return response;
|
|
1516
843
|
};
|
|
1517
|
-
const
|
|
1518
|
-
const parsedOutput = {
|
|
1519
|
-
...output,
|
|
1520
|
-
body: await parseErrorBody(output.body, context),
|
|
1521
|
-
};
|
|
1522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
-
switch (errorCode) {
|
|
1524
|
-
case "WAFInternalErrorException":
|
|
1525
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1526
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "WAFInvalidOperationException":
|
|
1528
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
1529
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "WAFNonEmptyEntityException":
|
|
1531
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1532
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "WAFNonexistentItemException":
|
|
1534
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1535
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "WAFReferencedItemException":
|
|
1537
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1538
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "WAFStaleDataException":
|
|
1540
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1541
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "WAFTagOperationException":
|
|
1543
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
1544
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "WAFTagOperationInternalErrorException":
|
|
1546
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
1547
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode,
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
};
|
|
1557
|
-
export const de_DeleteSizeConstraintSetCommand = async (output, context) => {
|
|
844
|
+
export const de_GetChangeTokenStatusCommand = async (output, context) => {
|
|
1558
845
|
if (output.statusCode >= 300) {
|
|
1559
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
1560
847
|
}
|
|
1561
848
|
const data = await parseBody(output.body, context);
|
|
1562
849
|
let contents = {};
|
|
@@ -1567,43 +854,9 @@ export const de_DeleteSizeConstraintSetCommand = async (output, context) => {
|
|
|
1567
854
|
};
|
|
1568
855
|
return response;
|
|
1569
856
|
};
|
|
1570
|
-
const
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context),
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "WAFInternalErrorException":
|
|
1578
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1579
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "WAFInvalidAccountException":
|
|
1581
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1582
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "WAFNonEmptyEntityException":
|
|
1584
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1585
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "WAFNonexistentItemException":
|
|
1587
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1588
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "WAFReferencedItemException":
|
|
1590
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1591
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "WAFStaleDataException":
|
|
1593
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1594
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1595
|
-
default:
|
|
1596
|
-
const parsedBody = parsedOutput.body;
|
|
1597
|
-
return throwDefaultError({
|
|
1598
|
-
output,
|
|
1599
|
-
parsedBody,
|
|
1600
|
-
errorCode,
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
export const de_DeleteSqlInjectionMatchSetCommand = async (output, context) => {
|
|
857
|
+
export const de_GetGeoMatchSetCommand = async (output, context) => {
|
|
1605
858
|
if (output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
1607
860
|
}
|
|
1608
861
|
const data = await parseBody(output.body, context);
|
|
1609
862
|
let contents = {};
|
|
@@ -1614,43 +867,9 @@ export const de_DeleteSqlInjectionMatchSetCommand = async (output, context) => {
|
|
|
1614
867
|
};
|
|
1615
868
|
return response;
|
|
1616
869
|
};
|
|
1617
|
-
const
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context),
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "WAFInternalErrorException":
|
|
1625
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1626
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "WAFInvalidAccountException":
|
|
1628
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1629
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "WAFNonEmptyEntityException":
|
|
1631
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1632
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "WAFNonexistentItemException":
|
|
1634
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1635
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "WAFReferencedItemException":
|
|
1637
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1638
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "WAFStaleDataException":
|
|
1640
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1641
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode,
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
};
|
|
1651
|
-
export const de_DeleteWebACLCommand = async (output, context) => {
|
|
870
|
+
export const de_GetIPSetCommand = async (output, context) => {
|
|
1652
871
|
if (output.statusCode >= 300) {
|
|
1653
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1654
873
|
}
|
|
1655
874
|
const data = await parseBody(output.body, context);
|
|
1656
875
|
let contents = {};
|
|
@@ -1661,49 +880,9 @@ export const de_DeleteWebACLCommand = async (output, context) => {
|
|
|
1661
880
|
};
|
|
1662
881
|
return response;
|
|
1663
882
|
};
|
|
1664
|
-
const
|
|
1665
|
-
const parsedOutput = {
|
|
1666
|
-
...output,
|
|
1667
|
-
body: await parseErrorBody(output.body, context),
|
|
1668
|
-
};
|
|
1669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
|
-
switch (errorCode) {
|
|
1671
|
-
case "WAFInternalErrorException":
|
|
1672
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1673
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "WAFInvalidAccountException":
|
|
1675
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1676
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "WAFNonEmptyEntityException":
|
|
1678
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1679
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "WAFNonexistentItemException":
|
|
1681
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1682
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "WAFReferencedItemException":
|
|
1684
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1685
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "WAFStaleDataException":
|
|
1687
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1688
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "WAFTagOperationException":
|
|
1690
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
1691
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "WAFTagOperationInternalErrorException":
|
|
1693
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
1694
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1695
|
-
default:
|
|
1696
|
-
const parsedBody = parsedOutput.body;
|
|
1697
|
-
return throwDefaultError({
|
|
1698
|
-
output,
|
|
1699
|
-
parsedBody,
|
|
1700
|
-
errorCode,
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
|
-
export const de_DeleteXssMatchSetCommand = async (output, context) => {
|
|
883
|
+
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
1705
884
|
if (output.statusCode >= 300) {
|
|
1706
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1707
886
|
}
|
|
1708
887
|
const data = await parseBody(output.body, context);
|
|
1709
888
|
let contents = {};
|
|
@@ -1714,81 +893,22 @@ export const de_DeleteXssMatchSetCommand = async (output, context) => {
|
|
|
1714
893
|
};
|
|
1715
894
|
return response;
|
|
1716
895
|
};
|
|
1717
|
-
const
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context),
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "WAFInternalErrorException":
|
|
1725
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1726
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "WAFInvalidAccountException":
|
|
1728
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1729
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "WAFNonEmptyEntityException":
|
|
1731
|
-
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1732
|
-
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "WAFNonexistentItemException":
|
|
1734
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1735
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "WAFReferencedItemException":
|
|
1737
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1738
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "WAFStaleDataException":
|
|
1740
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
1741
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1742
|
-
default:
|
|
1743
|
-
const parsedBody = parsedOutput.body;
|
|
1744
|
-
return throwDefaultError({
|
|
1745
|
-
output,
|
|
1746
|
-
parsedBody,
|
|
1747
|
-
errorCode,
|
|
1748
|
-
});
|
|
1749
|
-
}
|
|
1750
|
-
};
|
|
1751
|
-
export const de_GetByteMatchSetCommand = async (output, context) => {
|
|
896
|
+
export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
1752
897
|
if (output.statusCode >= 300) {
|
|
1753
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1754
899
|
}
|
|
1755
900
|
const data = await parseBody(output.body, context);
|
|
1756
901
|
let contents = {};
|
|
1757
|
-
contents =
|
|
902
|
+
contents = _json(data);
|
|
1758
903
|
const response = {
|
|
1759
904
|
$metadata: deserializeMetadata(output),
|
|
1760
905
|
...contents,
|
|
1761
906
|
};
|
|
1762
907
|
return response;
|
|
1763
908
|
};
|
|
1764
|
-
const
|
|
1765
|
-
const parsedOutput = {
|
|
1766
|
-
...output,
|
|
1767
|
-
body: await parseErrorBody(output.body, context),
|
|
1768
|
-
};
|
|
1769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
-
switch (errorCode) {
|
|
1771
|
-
case "WAFInternalErrorException":
|
|
1772
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1773
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "WAFInvalidAccountException":
|
|
1775
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1776
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "WAFNonexistentItemException":
|
|
1778
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1779
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1780
|
-
default:
|
|
1781
|
-
const parsedBody = parsedOutput.body;
|
|
1782
|
-
return throwDefaultError({
|
|
1783
|
-
output,
|
|
1784
|
-
parsedBody,
|
|
1785
|
-
errorCode,
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
};
|
|
1789
|
-
export const de_GetChangeTokenCommand = async (output, context) => {
|
|
909
|
+
export const de_GetRateBasedRuleCommand = async (output, context) => {
|
|
1790
910
|
if (output.statusCode >= 300) {
|
|
1791
|
-
return
|
|
911
|
+
return de_CommandError(output, context);
|
|
1792
912
|
}
|
|
1793
913
|
const data = await parseBody(output.body, context);
|
|
1794
914
|
let contents = {};
|
|
@@ -1799,28 +919,9 @@ export const de_GetChangeTokenCommand = async (output, context) => {
|
|
|
1799
919
|
};
|
|
1800
920
|
return response;
|
|
1801
921
|
};
|
|
1802
|
-
const
|
|
1803
|
-
const parsedOutput = {
|
|
1804
|
-
...output,
|
|
1805
|
-
body: await parseErrorBody(output.body, context),
|
|
1806
|
-
};
|
|
1807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
-
switch (errorCode) {
|
|
1809
|
-
case "WAFInternalErrorException":
|
|
1810
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1811
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1812
|
-
default:
|
|
1813
|
-
const parsedBody = parsedOutput.body;
|
|
1814
|
-
return throwDefaultError({
|
|
1815
|
-
output,
|
|
1816
|
-
parsedBody,
|
|
1817
|
-
errorCode,
|
|
1818
|
-
});
|
|
1819
|
-
}
|
|
1820
|
-
};
|
|
1821
|
-
export const de_GetChangeTokenStatusCommand = async (output, context) => {
|
|
922
|
+
export const de_GetRateBasedRuleManagedKeysCommand = async (output, context) => {
|
|
1822
923
|
if (output.statusCode >= 300) {
|
|
1823
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
1824
925
|
}
|
|
1825
926
|
const data = await parseBody(output.body, context);
|
|
1826
927
|
let contents = {};
|
|
@@ -1831,31 +932,9 @@ export const de_GetChangeTokenStatusCommand = async (output, context) => {
|
|
|
1831
932
|
};
|
|
1832
933
|
return response;
|
|
1833
934
|
};
|
|
1834
|
-
const
|
|
1835
|
-
const parsedOutput = {
|
|
1836
|
-
...output,
|
|
1837
|
-
body: await parseErrorBody(output.body, context),
|
|
1838
|
-
};
|
|
1839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
|
-
switch (errorCode) {
|
|
1841
|
-
case "WAFInternalErrorException":
|
|
1842
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1843
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "WAFNonexistentItemException":
|
|
1845
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1846
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1847
|
-
default:
|
|
1848
|
-
const parsedBody = parsedOutput.body;
|
|
1849
|
-
return throwDefaultError({
|
|
1850
|
-
output,
|
|
1851
|
-
parsedBody,
|
|
1852
|
-
errorCode,
|
|
1853
|
-
});
|
|
1854
|
-
}
|
|
1855
|
-
};
|
|
1856
|
-
export const de_GetGeoMatchSetCommand = async (output, context) => {
|
|
935
|
+
export const de_GetRegexMatchSetCommand = async (output, context) => {
|
|
1857
936
|
if (output.statusCode >= 300) {
|
|
1858
|
-
return
|
|
937
|
+
return de_CommandError(output, context);
|
|
1859
938
|
}
|
|
1860
939
|
const data = await parseBody(output.body, context);
|
|
1861
940
|
let contents = {};
|
|
@@ -1866,34 +945,9 @@ export const de_GetGeoMatchSetCommand = async (output, context) => {
|
|
|
1866
945
|
};
|
|
1867
946
|
return response;
|
|
1868
947
|
};
|
|
1869
|
-
const
|
|
1870
|
-
const parsedOutput = {
|
|
1871
|
-
...output,
|
|
1872
|
-
body: await parseErrorBody(output.body, context),
|
|
1873
|
-
};
|
|
1874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
|
-
switch (errorCode) {
|
|
1876
|
-
case "WAFInternalErrorException":
|
|
1877
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1878
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "WAFInvalidAccountException":
|
|
1880
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1881
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "WAFNonexistentItemException":
|
|
1883
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1884
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode,
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
export const de_GetIPSetCommand = async (output, context) => {
|
|
948
|
+
export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
1895
949
|
if (output.statusCode >= 300) {
|
|
1896
|
-
return
|
|
950
|
+
return de_CommandError(output, context);
|
|
1897
951
|
}
|
|
1898
952
|
const data = await parseBody(output.body, context);
|
|
1899
953
|
let contents = {};
|
|
@@ -1904,34 +958,9 @@ export const de_GetIPSetCommand = async (output, context) => {
|
|
|
1904
958
|
};
|
|
1905
959
|
return response;
|
|
1906
960
|
};
|
|
1907
|
-
const
|
|
1908
|
-
const parsedOutput = {
|
|
1909
|
-
...output,
|
|
1910
|
-
body: await parseErrorBody(output.body, context),
|
|
1911
|
-
};
|
|
1912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
|
-
switch (errorCode) {
|
|
1914
|
-
case "WAFInternalErrorException":
|
|
1915
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1916
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "WAFInvalidAccountException":
|
|
1918
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
1919
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "WAFNonexistentItemException":
|
|
1921
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1922
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1923
|
-
default:
|
|
1924
|
-
const parsedBody = parsedOutput.body;
|
|
1925
|
-
return throwDefaultError({
|
|
1926
|
-
output,
|
|
1927
|
-
parsedBody,
|
|
1928
|
-
errorCode,
|
|
1929
|
-
});
|
|
1930
|
-
}
|
|
1931
|
-
};
|
|
1932
|
-
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
961
|
+
export const de_GetRuleCommand = async (output, context) => {
|
|
1933
962
|
if (output.statusCode >= 300) {
|
|
1934
|
-
return
|
|
963
|
+
return de_CommandError(output, context);
|
|
1935
964
|
}
|
|
1936
965
|
const data = await parseBody(output.body, context);
|
|
1937
966
|
let contents = {};
|
|
@@ -1942,31 +971,9 @@ export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
|
1942
971
|
};
|
|
1943
972
|
return response;
|
|
1944
973
|
};
|
|
1945
|
-
const
|
|
1946
|
-
const parsedOutput = {
|
|
1947
|
-
...output,
|
|
1948
|
-
body: await parseErrorBody(output.body, context),
|
|
1949
|
-
};
|
|
1950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
|
-
switch (errorCode) {
|
|
1952
|
-
case "WAFInternalErrorException":
|
|
1953
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1954
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "WAFNonexistentItemException":
|
|
1956
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1957
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1958
|
-
default:
|
|
1959
|
-
const parsedBody = parsedOutput.body;
|
|
1960
|
-
return throwDefaultError({
|
|
1961
|
-
output,
|
|
1962
|
-
parsedBody,
|
|
1963
|
-
errorCode,
|
|
1964
|
-
});
|
|
1965
|
-
}
|
|
1966
|
-
};
|
|
1967
|
-
export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
974
|
+
export const de_GetRuleGroupCommand = async (output, context) => {
|
|
1968
975
|
if (output.statusCode >= 300) {
|
|
1969
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1970
977
|
}
|
|
1971
978
|
const data = await parseBody(output.body, context);
|
|
1972
979
|
let contents = {};
|
|
@@ -1977,31 +984,22 @@ export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
|
1977
984
|
};
|
|
1978
985
|
return response;
|
|
1979
986
|
};
|
|
1980
|
-
const
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
body: await parseErrorBody(output.body, context),
|
|
1984
|
-
};
|
|
1985
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
|
-
switch (errorCode) {
|
|
1987
|
-
case "WAFInternalErrorException":
|
|
1988
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
1989
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "WAFNonexistentItemException":
|
|
1991
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1992
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1993
|
-
default:
|
|
1994
|
-
const parsedBody = parsedOutput.body;
|
|
1995
|
-
return throwDefaultError({
|
|
1996
|
-
output,
|
|
1997
|
-
parsedBody,
|
|
1998
|
-
errorCode,
|
|
1999
|
-
});
|
|
987
|
+
export const de_GetSampledRequestsCommand = async (output, context) => {
|
|
988
|
+
if (output.statusCode >= 300) {
|
|
989
|
+
return de_CommandError(output, context);
|
|
2000
990
|
}
|
|
991
|
+
const data = await parseBody(output.body, context);
|
|
992
|
+
let contents = {};
|
|
993
|
+
contents = de_GetSampledRequestsResponse(data, context);
|
|
994
|
+
const response = {
|
|
995
|
+
$metadata: deserializeMetadata(output),
|
|
996
|
+
...contents,
|
|
997
|
+
};
|
|
998
|
+
return response;
|
|
2001
999
|
};
|
|
2002
|
-
export const
|
|
1000
|
+
export const de_GetSizeConstraintSetCommand = async (output, context) => {
|
|
2003
1001
|
if (output.statusCode >= 300) {
|
|
2004
|
-
return
|
|
1002
|
+
return de_CommandError(output, context);
|
|
2005
1003
|
}
|
|
2006
1004
|
const data = await parseBody(output.body, context);
|
|
2007
1005
|
let contents = {};
|
|
@@ -2012,34 +1010,9 @@ export const de_GetRateBasedRuleCommand = async (output, context) => {
|
|
|
2012
1010
|
};
|
|
2013
1011
|
return response;
|
|
2014
1012
|
};
|
|
2015
|
-
const
|
|
2016
|
-
const parsedOutput = {
|
|
2017
|
-
...output,
|
|
2018
|
-
body: await parseErrorBody(output.body, context),
|
|
2019
|
-
};
|
|
2020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "WAFInternalErrorException":
|
|
2023
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2024
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "WAFInvalidAccountException":
|
|
2026
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2027
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "WAFNonexistentItemException":
|
|
2029
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2030
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2031
|
-
default:
|
|
2032
|
-
const parsedBody = parsedOutput.body;
|
|
2033
|
-
return throwDefaultError({
|
|
2034
|
-
output,
|
|
2035
|
-
parsedBody,
|
|
2036
|
-
errorCode,
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
};
|
|
2040
|
-
export const de_GetRateBasedRuleManagedKeysCommand = async (output, context) => {
|
|
1013
|
+
export const de_GetSqlInjectionMatchSetCommand = async (output, context) => {
|
|
2041
1014
|
if (output.statusCode >= 300) {
|
|
2042
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
2043
1016
|
}
|
|
2044
1017
|
const data = await parseBody(output.body, context);
|
|
2045
1018
|
let contents = {};
|
|
@@ -2050,37 +1023,9 @@ export const de_GetRateBasedRuleManagedKeysCommand = async (output, context) =>
|
|
|
2050
1023
|
};
|
|
2051
1024
|
return response;
|
|
2052
1025
|
};
|
|
2053
|
-
const
|
|
2054
|
-
const parsedOutput = {
|
|
2055
|
-
...output,
|
|
2056
|
-
body: await parseErrorBody(output.body, context),
|
|
2057
|
-
};
|
|
2058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
|
-
switch (errorCode) {
|
|
2060
|
-
case "WAFInternalErrorException":
|
|
2061
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2062
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "WAFInvalidAccountException":
|
|
2064
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2065
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "WAFInvalidParameterException":
|
|
2067
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
2068
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "WAFNonexistentItemException":
|
|
2070
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2071
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2072
|
-
default:
|
|
2073
|
-
const parsedBody = parsedOutput.body;
|
|
2074
|
-
return throwDefaultError({
|
|
2075
|
-
output,
|
|
2076
|
-
parsedBody,
|
|
2077
|
-
errorCode,
|
|
2078
|
-
});
|
|
2079
|
-
}
|
|
2080
|
-
};
|
|
2081
|
-
export const de_GetRegexMatchSetCommand = async (output, context) => {
|
|
1026
|
+
export const de_GetWebACLCommand = async (output, context) => {
|
|
2082
1027
|
if (output.statusCode >= 300) {
|
|
2083
|
-
return
|
|
1028
|
+
return de_CommandError(output, context);
|
|
2084
1029
|
}
|
|
2085
1030
|
const data = await parseBody(output.body, context);
|
|
2086
1031
|
let contents = {};
|
|
@@ -2091,34 +1036,9 @@ export const de_GetRegexMatchSetCommand = async (output, context) => {
|
|
|
2091
1036
|
};
|
|
2092
1037
|
return response;
|
|
2093
1038
|
};
|
|
2094
|
-
const
|
|
2095
|
-
const parsedOutput = {
|
|
2096
|
-
...output,
|
|
2097
|
-
body: await parseErrorBody(output.body, context),
|
|
2098
|
-
};
|
|
2099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
|
-
switch (errorCode) {
|
|
2101
|
-
case "WAFInternalErrorException":
|
|
2102
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2103
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "WAFInvalidAccountException":
|
|
2105
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2106
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "WAFNonexistentItemException":
|
|
2108
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2109
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2110
|
-
default:
|
|
2111
|
-
const parsedBody = parsedOutput.body;
|
|
2112
|
-
return throwDefaultError({
|
|
2113
|
-
output,
|
|
2114
|
-
parsedBody,
|
|
2115
|
-
errorCode,
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
};
|
|
2119
|
-
export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
1039
|
+
export const de_GetXssMatchSetCommand = async (output, context) => {
|
|
2120
1040
|
if (output.statusCode >= 300) {
|
|
2121
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
2122
1042
|
}
|
|
2123
1043
|
const data = await parseBody(output.body, context);
|
|
2124
1044
|
let contents = {};
|
|
@@ -2129,34 +1049,9 @@ export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
|
2129
1049
|
};
|
|
2130
1050
|
return response;
|
|
2131
1051
|
};
|
|
2132
|
-
const
|
|
2133
|
-
const parsedOutput = {
|
|
2134
|
-
...output,
|
|
2135
|
-
body: await parseErrorBody(output.body, context),
|
|
2136
|
-
};
|
|
2137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
|
-
switch (errorCode) {
|
|
2139
|
-
case "WAFInternalErrorException":
|
|
2140
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2141
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "WAFInvalidAccountException":
|
|
2143
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2144
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "WAFNonexistentItemException":
|
|
2146
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2147
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2148
|
-
default:
|
|
2149
|
-
const parsedBody = parsedOutput.body;
|
|
2150
|
-
return throwDefaultError({
|
|
2151
|
-
output,
|
|
2152
|
-
parsedBody,
|
|
2153
|
-
errorCode,
|
|
2154
|
-
});
|
|
2155
|
-
}
|
|
2156
|
-
};
|
|
2157
|
-
export const de_GetRuleCommand = async (output, context) => {
|
|
1052
|
+
export const de_ListActivatedRulesInRuleGroupCommand = async (output, context) => {
|
|
2158
1053
|
if (output.statusCode >= 300) {
|
|
2159
|
-
return
|
|
1054
|
+
return de_CommandError(output, context);
|
|
2160
1055
|
}
|
|
2161
1056
|
const data = await parseBody(output.body, context);
|
|
2162
1057
|
let contents = {};
|
|
@@ -2167,34 +1062,9 @@ export const de_GetRuleCommand = async (output, context) => {
|
|
|
2167
1062
|
};
|
|
2168
1063
|
return response;
|
|
2169
1064
|
};
|
|
2170
|
-
const
|
|
2171
|
-
const parsedOutput = {
|
|
2172
|
-
...output,
|
|
2173
|
-
body: await parseErrorBody(output.body, context),
|
|
2174
|
-
};
|
|
2175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2176
|
-
switch (errorCode) {
|
|
2177
|
-
case "WAFInternalErrorException":
|
|
2178
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2179
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "WAFInvalidAccountException":
|
|
2181
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2182
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "WAFNonexistentItemException":
|
|
2184
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2185
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2186
|
-
default:
|
|
2187
|
-
const parsedBody = parsedOutput.body;
|
|
2188
|
-
return throwDefaultError({
|
|
2189
|
-
output,
|
|
2190
|
-
parsedBody,
|
|
2191
|
-
errorCode,
|
|
2192
|
-
});
|
|
2193
|
-
}
|
|
2194
|
-
};
|
|
2195
|
-
export const de_GetRuleGroupCommand = async (output, context) => {
|
|
1065
|
+
export const de_ListByteMatchSetsCommand = async (output, context) => {
|
|
2196
1066
|
if (output.statusCode >= 300) {
|
|
2197
|
-
return
|
|
1067
|
+
return de_CommandError(output, context);
|
|
2198
1068
|
}
|
|
2199
1069
|
const data = await parseBody(output.body, context);
|
|
2200
1070
|
let contents = {};
|
|
@@ -2205,66 +1075,22 @@ export const de_GetRuleGroupCommand = async (output, context) => {
|
|
|
2205
1075
|
};
|
|
2206
1076
|
return response;
|
|
2207
1077
|
};
|
|
2208
|
-
const
|
|
2209
|
-
const parsedOutput = {
|
|
2210
|
-
...output,
|
|
2211
|
-
body: await parseErrorBody(output.body, context),
|
|
2212
|
-
};
|
|
2213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
-
switch (errorCode) {
|
|
2215
|
-
case "WAFInternalErrorException":
|
|
2216
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2217
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "WAFNonexistentItemException":
|
|
2219
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2220
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2221
|
-
default:
|
|
2222
|
-
const parsedBody = parsedOutput.body;
|
|
2223
|
-
return throwDefaultError({
|
|
2224
|
-
output,
|
|
2225
|
-
parsedBody,
|
|
2226
|
-
errorCode,
|
|
2227
|
-
});
|
|
2228
|
-
}
|
|
2229
|
-
};
|
|
2230
|
-
export const de_GetSampledRequestsCommand = async (output, context) => {
|
|
1078
|
+
export const de_ListGeoMatchSetsCommand = async (output, context) => {
|
|
2231
1079
|
if (output.statusCode >= 300) {
|
|
2232
|
-
return
|
|
1080
|
+
return de_CommandError(output, context);
|
|
2233
1081
|
}
|
|
2234
1082
|
const data = await parseBody(output.body, context);
|
|
2235
1083
|
let contents = {};
|
|
2236
|
-
contents =
|
|
1084
|
+
contents = _json(data);
|
|
2237
1085
|
const response = {
|
|
2238
1086
|
$metadata: deserializeMetadata(output),
|
|
2239
1087
|
...contents,
|
|
2240
1088
|
};
|
|
2241
1089
|
return response;
|
|
2242
1090
|
};
|
|
2243
|
-
const
|
|
2244
|
-
const parsedOutput = {
|
|
2245
|
-
...output,
|
|
2246
|
-
body: await parseErrorBody(output.body, context),
|
|
2247
|
-
};
|
|
2248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
|
-
switch (errorCode) {
|
|
2250
|
-
case "WAFInternalErrorException":
|
|
2251
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2252
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "WAFNonexistentItemException":
|
|
2254
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2255
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2256
|
-
default:
|
|
2257
|
-
const parsedBody = parsedOutput.body;
|
|
2258
|
-
return throwDefaultError({
|
|
2259
|
-
output,
|
|
2260
|
-
parsedBody,
|
|
2261
|
-
errorCode,
|
|
2262
|
-
});
|
|
2263
|
-
}
|
|
2264
|
-
};
|
|
2265
|
-
export const de_GetSizeConstraintSetCommand = async (output, context) => {
|
|
1091
|
+
export const de_ListIPSetsCommand = async (output, context) => {
|
|
2266
1092
|
if (output.statusCode >= 300) {
|
|
2267
|
-
return
|
|
1093
|
+
return de_CommandError(output, context);
|
|
2268
1094
|
}
|
|
2269
1095
|
const data = await parseBody(output.body, context);
|
|
2270
1096
|
let contents = {};
|
|
@@ -2275,34 +1101,9 @@ export const de_GetSizeConstraintSetCommand = async (output, context) => {
|
|
|
2275
1101
|
};
|
|
2276
1102
|
return response;
|
|
2277
1103
|
};
|
|
2278
|
-
const
|
|
2279
|
-
const parsedOutput = {
|
|
2280
|
-
...output,
|
|
2281
|
-
body: await parseErrorBody(output.body, context),
|
|
2282
|
-
};
|
|
2283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2284
|
-
switch (errorCode) {
|
|
2285
|
-
case "WAFInternalErrorException":
|
|
2286
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2287
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "WAFInvalidAccountException":
|
|
2289
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2290
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "WAFNonexistentItemException":
|
|
2292
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2293
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2294
|
-
default:
|
|
2295
|
-
const parsedBody = parsedOutput.body;
|
|
2296
|
-
return throwDefaultError({
|
|
2297
|
-
output,
|
|
2298
|
-
parsedBody,
|
|
2299
|
-
errorCode,
|
|
2300
|
-
});
|
|
2301
|
-
}
|
|
2302
|
-
};
|
|
2303
|
-
export const de_GetSqlInjectionMatchSetCommand = async (output, context) => {
|
|
1104
|
+
export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
2304
1105
|
if (output.statusCode >= 300) {
|
|
2305
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
2306
1107
|
}
|
|
2307
1108
|
const data = await parseBody(output.body, context);
|
|
2308
1109
|
let contents = {};
|
|
@@ -2313,34 +1114,9 @@ export const de_GetSqlInjectionMatchSetCommand = async (output, context) => {
|
|
|
2313
1114
|
};
|
|
2314
1115
|
return response;
|
|
2315
1116
|
};
|
|
2316
|
-
const
|
|
2317
|
-
const parsedOutput = {
|
|
2318
|
-
...output,
|
|
2319
|
-
body: await parseErrorBody(output.body, context),
|
|
2320
|
-
};
|
|
2321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
-
switch (errorCode) {
|
|
2323
|
-
case "WAFInternalErrorException":
|
|
2324
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2325
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "WAFInvalidAccountException":
|
|
2327
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2328
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "WAFNonexistentItemException":
|
|
2330
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2331
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2332
|
-
default:
|
|
2333
|
-
const parsedBody = parsedOutput.body;
|
|
2334
|
-
return throwDefaultError({
|
|
2335
|
-
output,
|
|
2336
|
-
parsedBody,
|
|
2337
|
-
errorCode,
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
};
|
|
2341
|
-
export const de_GetWebACLCommand = async (output, context) => {
|
|
1117
|
+
export const de_ListRateBasedRulesCommand = async (output, context) => {
|
|
2342
1118
|
if (output.statusCode >= 300) {
|
|
2343
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
2344
1120
|
}
|
|
2345
1121
|
const data = await parseBody(output.body, context);
|
|
2346
1122
|
let contents = {};
|
|
@@ -2351,34 +1127,9 @@ export const de_GetWebACLCommand = async (output, context) => {
|
|
|
2351
1127
|
};
|
|
2352
1128
|
return response;
|
|
2353
1129
|
};
|
|
2354
|
-
const
|
|
2355
|
-
const parsedOutput = {
|
|
2356
|
-
...output,
|
|
2357
|
-
body: await parseErrorBody(output.body, context),
|
|
2358
|
-
};
|
|
2359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
-
switch (errorCode) {
|
|
2361
|
-
case "WAFInternalErrorException":
|
|
2362
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2363
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "WAFInvalidAccountException":
|
|
2365
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2366
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "WAFNonexistentItemException":
|
|
2368
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2369
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2370
|
-
default:
|
|
2371
|
-
const parsedBody = parsedOutput.body;
|
|
2372
|
-
return throwDefaultError({
|
|
2373
|
-
output,
|
|
2374
|
-
parsedBody,
|
|
2375
|
-
errorCode,
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
};
|
|
2379
|
-
export const de_GetXssMatchSetCommand = async (output, context) => {
|
|
1130
|
+
export const de_ListRegexMatchSetsCommand = async (output, context) => {
|
|
2380
1131
|
if (output.statusCode >= 300) {
|
|
2381
|
-
return
|
|
1132
|
+
return de_CommandError(output, context);
|
|
2382
1133
|
}
|
|
2383
1134
|
const data = await parseBody(output.body, context);
|
|
2384
1135
|
let contents = {};
|
|
@@ -2389,34 +1140,9 @@ export const de_GetXssMatchSetCommand = async (output, context) => {
|
|
|
2389
1140
|
};
|
|
2390
1141
|
return response;
|
|
2391
1142
|
};
|
|
2392
|
-
const
|
|
2393
|
-
const parsedOutput = {
|
|
2394
|
-
...output,
|
|
2395
|
-
body: await parseErrorBody(output.body, context),
|
|
2396
|
-
};
|
|
2397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
|
-
switch (errorCode) {
|
|
2399
|
-
case "WAFInternalErrorException":
|
|
2400
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2401
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "WAFInvalidAccountException":
|
|
2403
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2404
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "WAFNonexistentItemException":
|
|
2406
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2407
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2408
|
-
default:
|
|
2409
|
-
const parsedBody = parsedOutput.body;
|
|
2410
|
-
return throwDefaultError({
|
|
2411
|
-
output,
|
|
2412
|
-
parsedBody,
|
|
2413
|
-
errorCode,
|
|
2414
|
-
});
|
|
2415
|
-
}
|
|
2416
|
-
};
|
|
2417
|
-
export const de_ListActivatedRulesInRuleGroupCommand = async (output, context) => {
|
|
1143
|
+
export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
2418
1144
|
if (output.statusCode >= 300) {
|
|
2419
|
-
return
|
|
1145
|
+
return de_CommandError(output, context);
|
|
2420
1146
|
}
|
|
2421
1147
|
const data = await parseBody(output.body, context);
|
|
2422
1148
|
let contents = {};
|
|
@@ -2427,34 +1153,9 @@ export const de_ListActivatedRulesInRuleGroupCommand = async (output, context) =
|
|
|
2427
1153
|
};
|
|
2428
1154
|
return response;
|
|
2429
1155
|
};
|
|
2430
|
-
const
|
|
2431
|
-
const parsedOutput = {
|
|
2432
|
-
...output,
|
|
2433
|
-
body: await parseErrorBody(output.body, context),
|
|
2434
|
-
};
|
|
2435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
|
-
switch (errorCode) {
|
|
2437
|
-
case "WAFInternalErrorException":
|
|
2438
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2439
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "WAFInvalidParameterException":
|
|
2441
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
2442
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2443
|
-
case "WAFNonexistentItemException":
|
|
2444
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2445
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2446
|
-
default:
|
|
2447
|
-
const parsedBody = parsedOutput.body;
|
|
2448
|
-
return throwDefaultError({
|
|
2449
|
-
output,
|
|
2450
|
-
parsedBody,
|
|
2451
|
-
errorCode,
|
|
2452
|
-
});
|
|
2453
|
-
}
|
|
2454
|
-
};
|
|
2455
|
-
export const de_ListByteMatchSetsCommand = async (output, context) => {
|
|
1156
|
+
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
2456
1157
|
if (output.statusCode >= 300) {
|
|
2457
|
-
return
|
|
1158
|
+
return de_CommandError(output, context);
|
|
2458
1159
|
}
|
|
2459
1160
|
const data = await parseBody(output.body, context);
|
|
2460
1161
|
let contents = {};
|
|
@@ -2465,31 +1166,9 @@ export const de_ListByteMatchSetsCommand = async (output, context) => {
|
|
|
2465
1166
|
};
|
|
2466
1167
|
return response;
|
|
2467
1168
|
};
|
|
2468
|
-
const
|
|
2469
|
-
const parsedOutput = {
|
|
2470
|
-
...output,
|
|
2471
|
-
body: await parseErrorBody(output.body, context),
|
|
2472
|
-
};
|
|
2473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
|
-
switch (errorCode) {
|
|
2475
|
-
case "WAFInternalErrorException":
|
|
2476
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2477
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "WAFInvalidAccountException":
|
|
2479
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2480
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2481
|
-
default:
|
|
2482
|
-
const parsedBody = parsedOutput.body;
|
|
2483
|
-
return throwDefaultError({
|
|
2484
|
-
output,
|
|
2485
|
-
parsedBody,
|
|
2486
|
-
errorCode,
|
|
2487
|
-
});
|
|
2488
|
-
}
|
|
2489
|
-
};
|
|
2490
|
-
export const de_ListGeoMatchSetsCommand = async (output, context) => {
|
|
1169
|
+
export const de_ListRulesCommand = async (output, context) => {
|
|
2491
1170
|
if (output.statusCode >= 300) {
|
|
2492
|
-
return
|
|
1171
|
+
return de_CommandError(output, context);
|
|
2493
1172
|
}
|
|
2494
1173
|
const data = await parseBody(output.body, context);
|
|
2495
1174
|
let contents = {};
|
|
@@ -2500,31 +1179,9 @@ export const de_ListGeoMatchSetsCommand = async (output, context) => {
|
|
|
2500
1179
|
};
|
|
2501
1180
|
return response;
|
|
2502
1181
|
};
|
|
2503
|
-
const
|
|
2504
|
-
const parsedOutput = {
|
|
2505
|
-
...output,
|
|
2506
|
-
body: await parseErrorBody(output.body, context),
|
|
2507
|
-
};
|
|
2508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
|
-
switch (errorCode) {
|
|
2510
|
-
case "WAFInternalErrorException":
|
|
2511
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2512
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "WAFInvalidAccountException":
|
|
2514
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2515
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2516
|
-
default:
|
|
2517
|
-
const parsedBody = parsedOutput.body;
|
|
2518
|
-
return throwDefaultError({
|
|
2519
|
-
output,
|
|
2520
|
-
parsedBody,
|
|
2521
|
-
errorCode,
|
|
2522
|
-
});
|
|
2523
|
-
}
|
|
2524
|
-
};
|
|
2525
|
-
export const de_ListIPSetsCommand = async (output, context) => {
|
|
1182
|
+
export const de_ListSizeConstraintSetsCommand = async (output, context) => {
|
|
2526
1183
|
if (output.statusCode >= 300) {
|
|
2527
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
2528
1185
|
}
|
|
2529
1186
|
const data = await parseBody(output.body, context);
|
|
2530
1187
|
let contents = {};
|
|
@@ -2535,31 +1192,9 @@ export const de_ListIPSetsCommand = async (output, context) => {
|
|
|
2535
1192
|
};
|
|
2536
1193
|
return response;
|
|
2537
1194
|
};
|
|
2538
|
-
const
|
|
2539
|
-
const parsedOutput = {
|
|
2540
|
-
...output,
|
|
2541
|
-
body: await parseErrorBody(output.body, context),
|
|
2542
|
-
};
|
|
2543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
|
-
switch (errorCode) {
|
|
2545
|
-
case "WAFInternalErrorException":
|
|
2546
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2547
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "WAFInvalidAccountException":
|
|
2549
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2550
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2551
|
-
default:
|
|
2552
|
-
const parsedBody = parsedOutput.body;
|
|
2553
|
-
return throwDefaultError({
|
|
2554
|
-
output,
|
|
2555
|
-
parsedBody,
|
|
2556
|
-
errorCode,
|
|
2557
|
-
});
|
|
2558
|
-
}
|
|
2559
|
-
};
|
|
2560
|
-
export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
1195
|
+
export const de_ListSqlInjectionMatchSetsCommand = async (output, context) => {
|
|
2561
1196
|
if (output.statusCode >= 300) {
|
|
2562
|
-
return
|
|
1197
|
+
return de_CommandError(output, context);
|
|
2563
1198
|
}
|
|
2564
1199
|
const data = await parseBody(output.body, context);
|
|
2565
1200
|
let contents = {};
|
|
@@ -2570,34 +1205,9 @@ export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
|
2570
1205
|
};
|
|
2571
1206
|
return response;
|
|
2572
1207
|
};
|
|
2573
|
-
const
|
|
2574
|
-
const parsedOutput = {
|
|
2575
|
-
...output,
|
|
2576
|
-
body: await parseErrorBody(output.body, context),
|
|
2577
|
-
};
|
|
2578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2579
|
-
switch (errorCode) {
|
|
2580
|
-
case "WAFInternalErrorException":
|
|
2581
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2582
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "WAFInvalidParameterException":
|
|
2584
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
2585
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "WAFNonexistentItemException":
|
|
2587
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2588
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2589
|
-
default:
|
|
2590
|
-
const parsedBody = parsedOutput.body;
|
|
2591
|
-
return throwDefaultError({
|
|
2592
|
-
output,
|
|
2593
|
-
parsedBody,
|
|
2594
|
-
errorCode,
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
};
|
|
2598
|
-
export const de_ListRateBasedRulesCommand = async (output, context) => {
|
|
1208
|
+
export const de_ListSubscribedRuleGroupsCommand = async (output, context) => {
|
|
2599
1209
|
if (output.statusCode >= 300) {
|
|
2600
|
-
return
|
|
1210
|
+
return de_CommandError(output, context);
|
|
2601
1211
|
}
|
|
2602
1212
|
const data = await parseBody(output.body, context);
|
|
2603
1213
|
let contents = {};
|
|
@@ -2608,31 +1218,9 @@ export const de_ListRateBasedRulesCommand = async (output, context) => {
|
|
|
2608
1218
|
};
|
|
2609
1219
|
return response;
|
|
2610
1220
|
};
|
|
2611
|
-
const
|
|
2612
|
-
const parsedOutput = {
|
|
2613
|
-
...output,
|
|
2614
|
-
body: await parseErrorBody(output.body, context),
|
|
2615
|
-
};
|
|
2616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
|
-
switch (errorCode) {
|
|
2618
|
-
case "WAFInternalErrorException":
|
|
2619
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2620
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "WAFInvalidAccountException":
|
|
2622
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2623
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2624
|
-
default:
|
|
2625
|
-
const parsedBody = parsedOutput.body;
|
|
2626
|
-
return throwDefaultError({
|
|
2627
|
-
output,
|
|
2628
|
-
parsedBody,
|
|
2629
|
-
errorCode,
|
|
2630
|
-
});
|
|
2631
|
-
}
|
|
2632
|
-
};
|
|
2633
|
-
export const de_ListRegexMatchSetsCommand = async (output, context) => {
|
|
1221
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2634
1222
|
if (output.statusCode >= 300) {
|
|
2635
|
-
return
|
|
1223
|
+
return de_CommandError(output, context);
|
|
2636
1224
|
}
|
|
2637
1225
|
const data = await parseBody(output.body, context);
|
|
2638
1226
|
let contents = {};
|
|
@@ -2643,31 +1231,9 @@ export const de_ListRegexMatchSetsCommand = async (output, context) => {
|
|
|
2643
1231
|
};
|
|
2644
1232
|
return response;
|
|
2645
1233
|
};
|
|
2646
|
-
const
|
|
2647
|
-
const parsedOutput = {
|
|
2648
|
-
...output,
|
|
2649
|
-
body: await parseErrorBody(output.body, context),
|
|
2650
|
-
};
|
|
2651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
|
-
switch (errorCode) {
|
|
2653
|
-
case "WAFInternalErrorException":
|
|
2654
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2655
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "WAFInvalidAccountException":
|
|
2657
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2658
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2659
|
-
default:
|
|
2660
|
-
const parsedBody = parsedOutput.body;
|
|
2661
|
-
return throwDefaultError({
|
|
2662
|
-
output,
|
|
2663
|
-
parsedBody,
|
|
2664
|
-
errorCode,
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
};
|
|
2668
|
-
export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
1234
|
+
export const de_ListWebACLsCommand = async (output, context) => {
|
|
2669
1235
|
if (output.statusCode >= 300) {
|
|
2670
|
-
return
|
|
1236
|
+
return de_CommandError(output, context);
|
|
2671
1237
|
}
|
|
2672
1238
|
const data = await parseBody(output.body, context);
|
|
2673
1239
|
let contents = {};
|
|
@@ -2678,31 +1244,9 @@ export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
|
2678
1244
|
};
|
|
2679
1245
|
return response;
|
|
2680
1246
|
};
|
|
2681
|
-
const
|
|
2682
|
-
const parsedOutput = {
|
|
2683
|
-
...output,
|
|
2684
|
-
body: await parseErrorBody(output.body, context),
|
|
2685
|
-
};
|
|
2686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2687
|
-
switch (errorCode) {
|
|
2688
|
-
case "WAFInternalErrorException":
|
|
2689
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2690
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "WAFInvalidAccountException":
|
|
2692
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2693
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2694
|
-
default:
|
|
2695
|
-
const parsedBody = parsedOutput.body;
|
|
2696
|
-
return throwDefaultError({
|
|
2697
|
-
output,
|
|
2698
|
-
parsedBody,
|
|
2699
|
-
errorCode,
|
|
2700
|
-
});
|
|
2701
|
-
}
|
|
2702
|
-
};
|
|
2703
|
-
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
1247
|
+
export const de_ListXssMatchSetsCommand = async (output, context) => {
|
|
2704
1248
|
if (output.statusCode >= 300) {
|
|
2705
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
2706
1250
|
}
|
|
2707
1251
|
const data = await parseBody(output.body, context);
|
|
2708
1252
|
let contents = {};
|
|
@@ -2713,28 +1257,9 @@ export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
|
2713
1257
|
};
|
|
2714
1258
|
return response;
|
|
2715
1259
|
};
|
|
2716
|
-
const
|
|
2717
|
-
const parsedOutput = {
|
|
2718
|
-
...output,
|
|
2719
|
-
body: await parseErrorBody(output.body, context),
|
|
2720
|
-
};
|
|
2721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
-
switch (errorCode) {
|
|
2723
|
-
case "WAFInternalErrorException":
|
|
2724
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2725
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2726
|
-
default:
|
|
2727
|
-
const parsedBody = parsedOutput.body;
|
|
2728
|
-
return throwDefaultError({
|
|
2729
|
-
output,
|
|
2730
|
-
parsedBody,
|
|
2731
|
-
errorCode,
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
};
|
|
2735
|
-
export const de_ListRulesCommand = async (output, context) => {
|
|
1260
|
+
export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
2736
1261
|
if (output.statusCode >= 300) {
|
|
2737
|
-
return
|
|
1262
|
+
return de_CommandError(output, context);
|
|
2738
1263
|
}
|
|
2739
1264
|
const data = await parseBody(output.body, context);
|
|
2740
1265
|
let contents = {};
|
|
@@ -2745,31 +1270,22 @@ export const de_ListRulesCommand = async (output, context) => {
|
|
|
2745
1270
|
};
|
|
2746
1271
|
return response;
|
|
2747
1272
|
};
|
|
2748
|
-
const
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
body: await parseErrorBody(output.body, context),
|
|
2752
|
-
};
|
|
2753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
-
switch (errorCode) {
|
|
2755
|
-
case "WAFInternalErrorException":
|
|
2756
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2757
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "WAFInvalidAccountException":
|
|
2759
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2760
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2761
|
-
default:
|
|
2762
|
-
const parsedBody = parsedOutput.body;
|
|
2763
|
-
return throwDefaultError({
|
|
2764
|
-
output,
|
|
2765
|
-
parsedBody,
|
|
2766
|
-
errorCode,
|
|
2767
|
-
});
|
|
1273
|
+
export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
1274
|
+
if (output.statusCode >= 300) {
|
|
1275
|
+
return de_CommandError(output, context);
|
|
2768
1276
|
}
|
|
1277
|
+
const data = await parseBody(output.body, context);
|
|
1278
|
+
let contents = {};
|
|
1279
|
+
contents = _json(data);
|
|
1280
|
+
const response = {
|
|
1281
|
+
$metadata: deserializeMetadata(output),
|
|
1282
|
+
...contents,
|
|
1283
|
+
};
|
|
1284
|
+
return response;
|
|
2769
1285
|
};
|
|
2770
|
-
export const
|
|
1286
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2771
1287
|
if (output.statusCode >= 300) {
|
|
2772
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
2773
1289
|
}
|
|
2774
1290
|
const data = await parseBody(output.body, context);
|
|
2775
1291
|
let contents = {};
|
|
@@ -2780,31 +1296,22 @@ export const de_ListSizeConstraintSetsCommand = async (output, context) => {
|
|
|
2780
1296
|
};
|
|
2781
1297
|
return response;
|
|
2782
1298
|
};
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
body: await parseErrorBody(output.body, context),
|
|
2787
|
-
};
|
|
2788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
|
-
switch (errorCode) {
|
|
2790
|
-
case "WAFInternalErrorException":
|
|
2791
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2792
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "WAFInvalidAccountException":
|
|
2794
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2795
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2796
|
-
default:
|
|
2797
|
-
const parsedBody = parsedOutput.body;
|
|
2798
|
-
return throwDefaultError({
|
|
2799
|
-
output,
|
|
2800
|
-
parsedBody,
|
|
2801
|
-
errorCode,
|
|
2802
|
-
});
|
|
1299
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1300
|
+
if (output.statusCode >= 300) {
|
|
1301
|
+
return de_CommandError(output, context);
|
|
2803
1302
|
}
|
|
1303
|
+
const data = await parseBody(output.body, context);
|
|
1304
|
+
let contents = {};
|
|
1305
|
+
contents = _json(data);
|
|
1306
|
+
const response = {
|
|
1307
|
+
$metadata: deserializeMetadata(output),
|
|
1308
|
+
...contents,
|
|
1309
|
+
};
|
|
1310
|
+
return response;
|
|
2804
1311
|
};
|
|
2805
|
-
export const
|
|
1312
|
+
export const de_UpdateByteMatchSetCommand = async (output, context) => {
|
|
2806
1313
|
if (output.statusCode >= 300) {
|
|
2807
|
-
return
|
|
1314
|
+
return de_CommandError(output, context);
|
|
2808
1315
|
}
|
|
2809
1316
|
const data = await parseBody(output.body, context);
|
|
2810
1317
|
let contents = {};
|
|
@@ -2815,31 +1322,22 @@ export const de_ListSqlInjectionMatchSetsCommand = async (output, context) => {
|
|
|
2815
1322
|
};
|
|
2816
1323
|
return response;
|
|
2817
1324
|
};
|
|
2818
|
-
const
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
body: await parseErrorBody(output.body, context),
|
|
2822
|
-
};
|
|
2823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
|
-
switch (errorCode) {
|
|
2825
|
-
case "WAFInternalErrorException":
|
|
2826
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2827
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "WAFInvalidAccountException":
|
|
2829
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2830
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2831
|
-
default:
|
|
2832
|
-
const parsedBody = parsedOutput.body;
|
|
2833
|
-
return throwDefaultError({
|
|
2834
|
-
output,
|
|
2835
|
-
parsedBody,
|
|
2836
|
-
errorCode,
|
|
2837
|
-
});
|
|
1325
|
+
export const de_UpdateGeoMatchSetCommand = async (output, context) => {
|
|
1326
|
+
if (output.statusCode >= 300) {
|
|
1327
|
+
return de_CommandError(output, context);
|
|
2838
1328
|
}
|
|
1329
|
+
const data = await parseBody(output.body, context);
|
|
1330
|
+
let contents = {};
|
|
1331
|
+
contents = _json(data);
|
|
1332
|
+
const response = {
|
|
1333
|
+
$metadata: deserializeMetadata(output),
|
|
1334
|
+
...contents,
|
|
1335
|
+
};
|
|
1336
|
+
return response;
|
|
2839
1337
|
};
|
|
2840
|
-
export const
|
|
1338
|
+
export const de_UpdateIPSetCommand = async (output, context) => {
|
|
2841
1339
|
if (output.statusCode >= 300) {
|
|
2842
|
-
return
|
|
1340
|
+
return de_CommandError(output, context);
|
|
2843
1341
|
}
|
|
2844
1342
|
const data = await parseBody(output.body, context);
|
|
2845
1343
|
let contents = {};
|
|
@@ -2850,31 +1348,22 @@ export const de_ListSubscribedRuleGroupsCommand = async (output, context) => {
|
|
|
2850
1348
|
};
|
|
2851
1349
|
return response;
|
|
2852
1350
|
};
|
|
2853
|
-
const
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
body: await parseErrorBody(output.body, context),
|
|
2857
|
-
};
|
|
2858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
|
-
switch (errorCode) {
|
|
2860
|
-
case "WAFInternalErrorException":
|
|
2861
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2862
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2863
|
-
case "WAFNonexistentItemException":
|
|
2864
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2865
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2866
|
-
default:
|
|
2867
|
-
const parsedBody = parsedOutput.body;
|
|
2868
|
-
return throwDefaultError({
|
|
2869
|
-
output,
|
|
2870
|
-
parsedBody,
|
|
2871
|
-
errorCode,
|
|
2872
|
-
});
|
|
1351
|
+
export const de_UpdateRateBasedRuleCommand = async (output, context) => {
|
|
1352
|
+
if (output.statusCode >= 300) {
|
|
1353
|
+
return de_CommandError(output, context);
|
|
2873
1354
|
}
|
|
1355
|
+
const data = await parseBody(output.body, context);
|
|
1356
|
+
let contents = {};
|
|
1357
|
+
contents = _json(data);
|
|
1358
|
+
const response = {
|
|
1359
|
+
$metadata: deserializeMetadata(output),
|
|
1360
|
+
...contents,
|
|
1361
|
+
};
|
|
1362
|
+
return response;
|
|
2874
1363
|
};
|
|
2875
|
-
export const
|
|
1364
|
+
export const de_UpdateRegexMatchSetCommand = async (output, context) => {
|
|
2876
1365
|
if (output.statusCode >= 300) {
|
|
2877
|
-
return
|
|
1366
|
+
return de_CommandError(output, context);
|
|
2878
1367
|
}
|
|
2879
1368
|
const data = await parseBody(output.body, context);
|
|
2880
1369
|
let contents = {};
|
|
@@ -2885,566 +1374,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2885
1374
|
};
|
|
2886
1375
|
return response;
|
|
2887
1376
|
};
|
|
2888
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2889
|
-
const parsedOutput = {
|
|
2890
|
-
...output,
|
|
2891
|
-
body: await parseErrorBody(output.body, context),
|
|
2892
|
-
};
|
|
2893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2894
|
-
switch (errorCode) {
|
|
2895
|
-
case "WAFBadRequestException":
|
|
2896
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
2897
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "WAFInternalErrorException":
|
|
2899
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2900
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2901
|
-
case "WAFInvalidParameterException":
|
|
2902
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
2903
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2904
|
-
case "WAFNonexistentItemException":
|
|
2905
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
2906
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2907
|
-
case "WAFTagOperationException":
|
|
2908
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
2909
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "WAFTagOperationInternalErrorException":
|
|
2911
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
2912
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2913
|
-
default:
|
|
2914
|
-
const parsedBody = parsedOutput.body;
|
|
2915
|
-
return throwDefaultError({
|
|
2916
|
-
output,
|
|
2917
|
-
parsedBody,
|
|
2918
|
-
errorCode,
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
};
|
|
2922
|
-
export const de_ListWebACLsCommand = async (output, context) => {
|
|
2923
|
-
if (output.statusCode >= 300) {
|
|
2924
|
-
return de_ListWebACLsCommandError(output, context);
|
|
2925
|
-
}
|
|
2926
|
-
const data = await parseBody(output.body, context);
|
|
2927
|
-
let contents = {};
|
|
2928
|
-
contents = _json(data);
|
|
2929
|
-
const response = {
|
|
2930
|
-
$metadata: deserializeMetadata(output),
|
|
2931
|
-
...contents,
|
|
2932
|
-
};
|
|
2933
|
-
return response;
|
|
2934
|
-
};
|
|
2935
|
-
const de_ListWebACLsCommandError = async (output, context) => {
|
|
2936
|
-
const parsedOutput = {
|
|
2937
|
-
...output,
|
|
2938
|
-
body: await parseErrorBody(output.body, context),
|
|
2939
|
-
};
|
|
2940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2941
|
-
switch (errorCode) {
|
|
2942
|
-
case "WAFInternalErrorException":
|
|
2943
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2944
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2945
|
-
case "WAFInvalidAccountException":
|
|
2946
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2947
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2948
|
-
default:
|
|
2949
|
-
const parsedBody = parsedOutput.body;
|
|
2950
|
-
return throwDefaultError({
|
|
2951
|
-
output,
|
|
2952
|
-
parsedBody,
|
|
2953
|
-
errorCode,
|
|
2954
|
-
});
|
|
2955
|
-
}
|
|
2956
|
-
};
|
|
2957
|
-
export const de_ListXssMatchSetsCommand = async (output, context) => {
|
|
2958
|
-
if (output.statusCode >= 300) {
|
|
2959
|
-
return de_ListXssMatchSetsCommandError(output, context);
|
|
2960
|
-
}
|
|
2961
|
-
const data = await parseBody(output.body, context);
|
|
2962
|
-
let contents = {};
|
|
2963
|
-
contents = _json(data);
|
|
2964
|
-
const response = {
|
|
2965
|
-
$metadata: deserializeMetadata(output),
|
|
2966
|
-
...contents,
|
|
2967
|
-
};
|
|
2968
|
-
return response;
|
|
2969
|
-
};
|
|
2970
|
-
const de_ListXssMatchSetsCommandError = async (output, context) => {
|
|
2971
|
-
const parsedOutput = {
|
|
2972
|
-
...output,
|
|
2973
|
-
body: await parseErrorBody(output.body, context),
|
|
2974
|
-
};
|
|
2975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2976
|
-
switch (errorCode) {
|
|
2977
|
-
case "WAFInternalErrorException":
|
|
2978
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2979
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "WAFInvalidAccountException":
|
|
2981
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
2982
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
2983
|
-
default:
|
|
2984
|
-
const parsedBody = parsedOutput.body;
|
|
2985
|
-
return throwDefaultError({
|
|
2986
|
-
output,
|
|
2987
|
-
parsedBody,
|
|
2988
|
-
errorCode,
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
};
|
|
2992
|
-
export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
2993
|
-
if (output.statusCode >= 300) {
|
|
2994
|
-
return de_PutLoggingConfigurationCommandError(output, context);
|
|
2995
|
-
}
|
|
2996
|
-
const data = await parseBody(output.body, context);
|
|
2997
|
-
let contents = {};
|
|
2998
|
-
contents = _json(data);
|
|
2999
|
-
const response = {
|
|
3000
|
-
$metadata: deserializeMetadata(output),
|
|
3001
|
-
...contents,
|
|
3002
|
-
};
|
|
3003
|
-
return response;
|
|
3004
|
-
};
|
|
3005
|
-
const de_PutLoggingConfigurationCommandError = async (output, context) => {
|
|
3006
|
-
const parsedOutput = {
|
|
3007
|
-
...output,
|
|
3008
|
-
body: await parseErrorBody(output.body, context),
|
|
3009
|
-
};
|
|
3010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3011
|
-
switch (errorCode) {
|
|
3012
|
-
case "WAFInternalErrorException":
|
|
3013
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3014
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "WAFNonexistentItemException":
|
|
3016
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3017
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "WAFServiceLinkedRoleErrorException":
|
|
3019
|
-
case "com.amazonaws.waf#WAFServiceLinkedRoleErrorException":
|
|
3020
|
-
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "WAFStaleDataException":
|
|
3022
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3023
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3024
|
-
default:
|
|
3025
|
-
const parsedBody = parsedOutput.body;
|
|
3026
|
-
return throwDefaultError({
|
|
3027
|
-
output,
|
|
3028
|
-
parsedBody,
|
|
3029
|
-
errorCode,
|
|
3030
|
-
});
|
|
3031
|
-
}
|
|
3032
|
-
};
|
|
3033
|
-
export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
3034
|
-
if (output.statusCode >= 300) {
|
|
3035
|
-
return de_PutPermissionPolicyCommandError(output, context);
|
|
3036
|
-
}
|
|
3037
|
-
const data = await parseBody(output.body, context);
|
|
3038
|
-
let contents = {};
|
|
3039
|
-
contents = _json(data);
|
|
3040
|
-
const response = {
|
|
3041
|
-
$metadata: deserializeMetadata(output),
|
|
3042
|
-
...contents,
|
|
3043
|
-
};
|
|
3044
|
-
return response;
|
|
3045
|
-
};
|
|
3046
|
-
const de_PutPermissionPolicyCommandError = async (output, context) => {
|
|
3047
|
-
const parsedOutput = {
|
|
3048
|
-
...output,
|
|
3049
|
-
body: await parseErrorBody(output.body, context),
|
|
3050
|
-
};
|
|
3051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
|
-
switch (errorCode) {
|
|
3053
|
-
case "WAFInternalErrorException":
|
|
3054
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3055
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "WAFInvalidPermissionPolicyException":
|
|
3057
|
-
case "com.amazonaws.waf#WAFInvalidPermissionPolicyException":
|
|
3058
|
-
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "WAFNonexistentItemException":
|
|
3060
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3061
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3062
|
-
case "WAFStaleDataException":
|
|
3063
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3064
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3065
|
-
default:
|
|
3066
|
-
const parsedBody = parsedOutput.body;
|
|
3067
|
-
return throwDefaultError({
|
|
3068
|
-
output,
|
|
3069
|
-
parsedBody,
|
|
3070
|
-
errorCode,
|
|
3071
|
-
});
|
|
3072
|
-
}
|
|
3073
|
-
};
|
|
3074
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
3075
|
-
if (output.statusCode >= 300) {
|
|
3076
|
-
return de_TagResourceCommandError(output, context);
|
|
3077
|
-
}
|
|
3078
|
-
const data = await parseBody(output.body, context);
|
|
3079
|
-
let contents = {};
|
|
3080
|
-
contents = _json(data);
|
|
3081
|
-
const response = {
|
|
3082
|
-
$metadata: deserializeMetadata(output),
|
|
3083
|
-
...contents,
|
|
3084
|
-
};
|
|
3085
|
-
return response;
|
|
3086
|
-
};
|
|
3087
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3088
|
-
const parsedOutput = {
|
|
3089
|
-
...output,
|
|
3090
|
-
body: await parseErrorBody(output.body, context),
|
|
3091
|
-
};
|
|
3092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
|
-
switch (errorCode) {
|
|
3094
|
-
case "WAFBadRequestException":
|
|
3095
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
3096
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "WAFInternalErrorException":
|
|
3098
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3099
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "WAFInvalidParameterException":
|
|
3101
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3102
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "WAFLimitsExceededException":
|
|
3104
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3105
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "WAFNonexistentItemException":
|
|
3107
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3108
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "WAFTagOperationException":
|
|
3110
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
3111
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
3112
|
-
case "WAFTagOperationInternalErrorException":
|
|
3113
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
3114
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
3115
|
-
default:
|
|
3116
|
-
const parsedBody = parsedOutput.body;
|
|
3117
|
-
return throwDefaultError({
|
|
3118
|
-
output,
|
|
3119
|
-
parsedBody,
|
|
3120
|
-
errorCode,
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
};
|
|
3124
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
3125
|
-
if (output.statusCode >= 300) {
|
|
3126
|
-
return de_UntagResourceCommandError(output, context);
|
|
3127
|
-
}
|
|
3128
|
-
const data = await parseBody(output.body, context);
|
|
3129
|
-
let contents = {};
|
|
3130
|
-
contents = _json(data);
|
|
3131
|
-
const response = {
|
|
3132
|
-
$metadata: deserializeMetadata(output),
|
|
3133
|
-
...contents,
|
|
3134
|
-
};
|
|
3135
|
-
return response;
|
|
3136
|
-
};
|
|
3137
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3138
|
-
const parsedOutput = {
|
|
3139
|
-
...output,
|
|
3140
|
-
body: await parseErrorBody(output.body, context),
|
|
3141
|
-
};
|
|
3142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
|
-
switch (errorCode) {
|
|
3144
|
-
case "WAFBadRequestException":
|
|
3145
|
-
case "com.amazonaws.waf#WAFBadRequestException":
|
|
3146
|
-
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "WAFInternalErrorException":
|
|
3148
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3149
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "WAFInvalidParameterException":
|
|
3151
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3152
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "WAFNonexistentItemException":
|
|
3154
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3155
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "WAFTagOperationException":
|
|
3157
|
-
case "com.amazonaws.waf#WAFTagOperationException":
|
|
3158
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "WAFTagOperationInternalErrorException":
|
|
3160
|
-
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
3161
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
3162
|
-
default:
|
|
3163
|
-
const parsedBody = parsedOutput.body;
|
|
3164
|
-
return throwDefaultError({
|
|
3165
|
-
output,
|
|
3166
|
-
parsedBody,
|
|
3167
|
-
errorCode,
|
|
3168
|
-
});
|
|
3169
|
-
}
|
|
3170
|
-
};
|
|
3171
|
-
export const de_UpdateByteMatchSetCommand = async (output, context) => {
|
|
3172
|
-
if (output.statusCode >= 300) {
|
|
3173
|
-
return de_UpdateByteMatchSetCommandError(output, context);
|
|
3174
|
-
}
|
|
3175
|
-
const data = await parseBody(output.body, context);
|
|
3176
|
-
let contents = {};
|
|
3177
|
-
contents = _json(data);
|
|
3178
|
-
const response = {
|
|
3179
|
-
$metadata: deserializeMetadata(output),
|
|
3180
|
-
...contents,
|
|
3181
|
-
};
|
|
3182
|
-
return response;
|
|
3183
|
-
};
|
|
3184
|
-
const de_UpdateByteMatchSetCommandError = async (output, context) => {
|
|
3185
|
-
const parsedOutput = {
|
|
3186
|
-
...output,
|
|
3187
|
-
body: await parseErrorBody(output.body, context),
|
|
3188
|
-
};
|
|
3189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
|
-
switch (errorCode) {
|
|
3191
|
-
case "WAFInternalErrorException":
|
|
3192
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3193
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "WAFInvalidAccountException":
|
|
3195
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3196
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "WAFInvalidOperationException":
|
|
3198
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3199
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "WAFInvalidParameterException":
|
|
3201
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3202
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "WAFLimitsExceededException":
|
|
3204
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3205
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3206
|
-
case "WAFNonexistentContainerException":
|
|
3207
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3208
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3209
|
-
case "WAFNonexistentItemException":
|
|
3210
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3211
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "WAFStaleDataException":
|
|
3213
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3214
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3215
|
-
default:
|
|
3216
|
-
const parsedBody = parsedOutput.body;
|
|
3217
|
-
return throwDefaultError({
|
|
3218
|
-
output,
|
|
3219
|
-
parsedBody,
|
|
3220
|
-
errorCode,
|
|
3221
|
-
});
|
|
3222
|
-
}
|
|
3223
|
-
};
|
|
3224
|
-
export const de_UpdateGeoMatchSetCommand = async (output, context) => {
|
|
3225
|
-
if (output.statusCode >= 300) {
|
|
3226
|
-
return de_UpdateGeoMatchSetCommandError(output, context);
|
|
3227
|
-
}
|
|
3228
|
-
const data = await parseBody(output.body, context);
|
|
3229
|
-
let contents = {};
|
|
3230
|
-
contents = _json(data);
|
|
3231
|
-
const response = {
|
|
3232
|
-
$metadata: deserializeMetadata(output),
|
|
3233
|
-
...contents,
|
|
3234
|
-
};
|
|
3235
|
-
return response;
|
|
3236
|
-
};
|
|
3237
|
-
const de_UpdateGeoMatchSetCommandError = async (output, context) => {
|
|
3238
|
-
const parsedOutput = {
|
|
3239
|
-
...output,
|
|
3240
|
-
body: await parseErrorBody(output.body, context),
|
|
3241
|
-
};
|
|
3242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3243
|
-
switch (errorCode) {
|
|
3244
|
-
case "WAFInternalErrorException":
|
|
3245
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3246
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3247
|
-
case "WAFInvalidAccountException":
|
|
3248
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3249
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3250
|
-
case "WAFInvalidOperationException":
|
|
3251
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3252
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3253
|
-
case "WAFInvalidParameterException":
|
|
3254
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3255
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3256
|
-
case "WAFLimitsExceededException":
|
|
3257
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3258
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3259
|
-
case "WAFNonexistentContainerException":
|
|
3260
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3261
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3262
|
-
case "WAFNonexistentItemException":
|
|
3263
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3264
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "WAFReferencedItemException":
|
|
3266
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
3267
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "WAFStaleDataException":
|
|
3269
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3270
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3271
|
-
default:
|
|
3272
|
-
const parsedBody = parsedOutput.body;
|
|
3273
|
-
return throwDefaultError({
|
|
3274
|
-
output,
|
|
3275
|
-
parsedBody,
|
|
3276
|
-
errorCode,
|
|
3277
|
-
});
|
|
3278
|
-
}
|
|
3279
|
-
};
|
|
3280
|
-
export const de_UpdateIPSetCommand = async (output, context) => {
|
|
3281
|
-
if (output.statusCode >= 300) {
|
|
3282
|
-
return de_UpdateIPSetCommandError(output, context);
|
|
3283
|
-
}
|
|
3284
|
-
const data = await parseBody(output.body, context);
|
|
3285
|
-
let contents = {};
|
|
3286
|
-
contents = _json(data);
|
|
3287
|
-
const response = {
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
...contents,
|
|
3290
|
-
};
|
|
3291
|
-
return response;
|
|
3292
|
-
};
|
|
3293
|
-
const de_UpdateIPSetCommandError = async (output, context) => {
|
|
3294
|
-
const parsedOutput = {
|
|
3295
|
-
...output,
|
|
3296
|
-
body: await parseErrorBody(output.body, context),
|
|
3297
|
-
};
|
|
3298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
|
-
switch (errorCode) {
|
|
3300
|
-
case "WAFInternalErrorException":
|
|
3301
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3302
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "WAFInvalidAccountException":
|
|
3304
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3305
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "WAFInvalidOperationException":
|
|
3307
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3308
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "WAFInvalidParameterException":
|
|
3310
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3311
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "WAFLimitsExceededException":
|
|
3313
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3314
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "WAFNonexistentContainerException":
|
|
3316
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3317
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3318
|
-
case "WAFNonexistentItemException":
|
|
3319
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3320
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3321
|
-
case "WAFReferencedItemException":
|
|
3322
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
3323
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "WAFStaleDataException":
|
|
3325
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3326
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3327
|
-
default:
|
|
3328
|
-
const parsedBody = parsedOutput.body;
|
|
3329
|
-
return throwDefaultError({
|
|
3330
|
-
output,
|
|
3331
|
-
parsedBody,
|
|
3332
|
-
errorCode,
|
|
3333
|
-
});
|
|
3334
|
-
}
|
|
3335
|
-
};
|
|
3336
|
-
export const de_UpdateRateBasedRuleCommand = async (output, context) => {
|
|
3337
|
-
if (output.statusCode >= 300) {
|
|
3338
|
-
return de_UpdateRateBasedRuleCommandError(output, context);
|
|
3339
|
-
}
|
|
3340
|
-
const data = await parseBody(output.body, context);
|
|
3341
|
-
let contents = {};
|
|
3342
|
-
contents = _json(data);
|
|
3343
|
-
const response = {
|
|
3344
|
-
$metadata: deserializeMetadata(output),
|
|
3345
|
-
...contents,
|
|
3346
|
-
};
|
|
3347
|
-
return response;
|
|
3348
|
-
};
|
|
3349
|
-
const de_UpdateRateBasedRuleCommandError = async (output, context) => {
|
|
3350
|
-
const parsedOutput = {
|
|
3351
|
-
...output,
|
|
3352
|
-
body: await parseErrorBody(output.body, context),
|
|
3353
|
-
};
|
|
3354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3355
|
-
switch (errorCode) {
|
|
3356
|
-
case "WAFInternalErrorException":
|
|
3357
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3358
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "WAFInvalidAccountException":
|
|
3360
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3361
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "WAFInvalidOperationException":
|
|
3363
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3364
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "WAFInvalidParameterException":
|
|
3366
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3367
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "WAFLimitsExceededException":
|
|
3369
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3370
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "WAFNonexistentContainerException":
|
|
3372
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3373
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "WAFNonexistentItemException":
|
|
3375
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3376
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "WAFReferencedItemException":
|
|
3378
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
3379
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "WAFStaleDataException":
|
|
3381
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3382
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3383
|
-
default:
|
|
3384
|
-
const parsedBody = parsedOutput.body;
|
|
3385
|
-
return throwDefaultError({
|
|
3386
|
-
output,
|
|
3387
|
-
parsedBody,
|
|
3388
|
-
errorCode,
|
|
3389
|
-
});
|
|
3390
|
-
}
|
|
3391
|
-
};
|
|
3392
|
-
export const de_UpdateRegexMatchSetCommand = async (output, context) => {
|
|
3393
|
-
if (output.statusCode >= 300) {
|
|
3394
|
-
return de_UpdateRegexMatchSetCommandError(output, context);
|
|
3395
|
-
}
|
|
3396
|
-
const data = await parseBody(output.body, context);
|
|
3397
|
-
let contents = {};
|
|
3398
|
-
contents = _json(data);
|
|
3399
|
-
const response = {
|
|
3400
|
-
$metadata: deserializeMetadata(output),
|
|
3401
|
-
...contents,
|
|
3402
|
-
};
|
|
3403
|
-
return response;
|
|
3404
|
-
};
|
|
3405
|
-
const de_UpdateRegexMatchSetCommandError = async (output, context) => {
|
|
3406
|
-
const parsedOutput = {
|
|
3407
|
-
...output,
|
|
3408
|
-
body: await parseErrorBody(output.body, context),
|
|
3409
|
-
};
|
|
3410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
|
-
switch (errorCode) {
|
|
3412
|
-
case "WAFDisallowedNameException":
|
|
3413
|
-
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
3414
|
-
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "WAFInternalErrorException":
|
|
3416
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3417
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "WAFInvalidAccountException":
|
|
3419
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3420
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "WAFInvalidOperationException":
|
|
3422
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3423
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "WAFLimitsExceededException":
|
|
3425
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3426
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3427
|
-
case "WAFNonexistentContainerException":
|
|
3428
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3429
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3430
|
-
case "WAFNonexistentItemException":
|
|
3431
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3432
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3433
|
-
case "WAFStaleDataException":
|
|
3434
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3435
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3436
|
-
default:
|
|
3437
|
-
const parsedBody = parsedOutput.body;
|
|
3438
|
-
return throwDefaultError({
|
|
3439
|
-
output,
|
|
3440
|
-
parsedBody,
|
|
3441
|
-
errorCode,
|
|
3442
|
-
});
|
|
3443
|
-
}
|
|
3444
|
-
};
|
|
3445
1377
|
export const de_UpdateRegexPatternSetCommand = async (output, context) => {
|
|
3446
1378
|
if (output.statusCode >= 300) {
|
|
3447
|
-
return
|
|
1379
|
+
return de_CommandError(output, context);
|
|
3448
1380
|
}
|
|
3449
1381
|
const data = await parseBody(output.body, context);
|
|
3450
1382
|
let contents = {};
|
|
@@ -3453,51 +1385,11 @@ export const de_UpdateRegexPatternSetCommand = async (output, context) => {
|
|
|
3453
1385
|
$metadata: deserializeMetadata(output),
|
|
3454
1386
|
...contents,
|
|
3455
1387
|
};
|
|
3456
|
-
return response;
|
|
3457
|
-
};
|
|
3458
|
-
const de_UpdateRegexPatternSetCommandError = async (output, context) => {
|
|
3459
|
-
const parsedOutput = {
|
|
3460
|
-
...output,
|
|
3461
|
-
body: await parseErrorBody(output.body, context),
|
|
3462
|
-
};
|
|
3463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3464
|
-
switch (errorCode) {
|
|
3465
|
-
case "WAFInternalErrorException":
|
|
3466
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3467
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3468
|
-
case "WAFInvalidAccountException":
|
|
3469
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3470
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3471
|
-
case "WAFInvalidOperationException":
|
|
3472
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3473
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3474
|
-
case "WAFInvalidRegexPatternException":
|
|
3475
|
-
case "com.amazonaws.waf#WAFInvalidRegexPatternException":
|
|
3476
|
-
throw await de_WAFInvalidRegexPatternExceptionRes(parsedOutput, context);
|
|
3477
|
-
case "WAFLimitsExceededException":
|
|
3478
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3479
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3480
|
-
case "WAFNonexistentContainerException":
|
|
3481
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3482
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3483
|
-
case "WAFNonexistentItemException":
|
|
3484
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3485
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "WAFStaleDataException":
|
|
3487
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3488
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3489
|
-
default:
|
|
3490
|
-
const parsedBody = parsedOutput.body;
|
|
3491
|
-
return throwDefaultError({
|
|
3492
|
-
output,
|
|
3493
|
-
parsedBody,
|
|
3494
|
-
errorCode,
|
|
3495
|
-
});
|
|
3496
|
-
}
|
|
1388
|
+
return response;
|
|
3497
1389
|
};
|
|
3498
1390
|
export const de_UpdateRuleCommand = async (output, context) => {
|
|
3499
1391
|
if (output.statusCode >= 300) {
|
|
3500
|
-
return
|
|
1392
|
+
return de_CommandError(output, context);
|
|
3501
1393
|
}
|
|
3502
1394
|
const data = await parseBody(output.body, context);
|
|
3503
1395
|
let contents = {};
|
|
@@ -3508,52 +1400,9 @@ export const de_UpdateRuleCommand = async (output, context) => {
|
|
|
3508
1400
|
};
|
|
3509
1401
|
return response;
|
|
3510
1402
|
};
|
|
3511
|
-
const de_UpdateRuleCommandError = async (output, context) => {
|
|
3512
|
-
const parsedOutput = {
|
|
3513
|
-
...output,
|
|
3514
|
-
body: await parseErrorBody(output.body, context),
|
|
3515
|
-
};
|
|
3516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3517
|
-
switch (errorCode) {
|
|
3518
|
-
case "WAFInternalErrorException":
|
|
3519
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3520
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3521
|
-
case "WAFInvalidAccountException":
|
|
3522
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3523
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3524
|
-
case "WAFInvalidOperationException":
|
|
3525
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3526
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3527
|
-
case "WAFInvalidParameterException":
|
|
3528
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3529
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3530
|
-
case "WAFLimitsExceededException":
|
|
3531
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3532
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3533
|
-
case "WAFNonexistentContainerException":
|
|
3534
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3535
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3536
|
-
case "WAFNonexistentItemException":
|
|
3537
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3538
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3539
|
-
case "WAFReferencedItemException":
|
|
3540
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
3541
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
3542
|
-
case "WAFStaleDataException":
|
|
3543
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3544
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3545
|
-
default:
|
|
3546
|
-
const parsedBody = parsedOutput.body;
|
|
3547
|
-
return throwDefaultError({
|
|
3548
|
-
output,
|
|
3549
|
-
parsedBody,
|
|
3550
|
-
errorCode,
|
|
3551
|
-
});
|
|
3552
|
-
}
|
|
3553
|
-
};
|
|
3554
1403
|
export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
3555
1404
|
if (output.statusCode >= 300) {
|
|
3556
|
-
return
|
|
1405
|
+
return de_CommandError(output, context);
|
|
3557
1406
|
}
|
|
3558
1407
|
const data = await parseBody(output.body, context);
|
|
3559
1408
|
let contents = {};
|
|
@@ -3564,46 +1413,9 @@ export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
|
3564
1413
|
};
|
|
3565
1414
|
return response;
|
|
3566
1415
|
};
|
|
3567
|
-
const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
3568
|
-
const parsedOutput = {
|
|
3569
|
-
...output,
|
|
3570
|
-
body: await parseErrorBody(output.body, context),
|
|
3571
|
-
};
|
|
3572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3573
|
-
switch (errorCode) {
|
|
3574
|
-
case "WAFInternalErrorException":
|
|
3575
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3576
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3577
|
-
case "WAFInvalidOperationException":
|
|
3578
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3579
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3580
|
-
case "WAFInvalidParameterException":
|
|
3581
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3582
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3583
|
-
case "WAFLimitsExceededException":
|
|
3584
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3585
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3586
|
-
case "WAFNonexistentContainerException":
|
|
3587
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3588
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3589
|
-
case "WAFNonexistentItemException":
|
|
3590
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3591
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3592
|
-
case "WAFStaleDataException":
|
|
3593
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3594
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3595
|
-
default:
|
|
3596
|
-
const parsedBody = parsedOutput.body;
|
|
3597
|
-
return throwDefaultError({
|
|
3598
|
-
output,
|
|
3599
|
-
parsedBody,
|
|
3600
|
-
errorCode,
|
|
3601
|
-
});
|
|
3602
|
-
}
|
|
3603
|
-
};
|
|
3604
1416
|
export const de_UpdateSizeConstraintSetCommand = async (output, context) => {
|
|
3605
1417
|
if (output.statusCode >= 300) {
|
|
3606
|
-
return
|
|
1418
|
+
return de_CommandError(output, context);
|
|
3607
1419
|
}
|
|
3608
1420
|
const data = await parseBody(output.body, context);
|
|
3609
1421
|
let contents = {};
|
|
@@ -3614,52 +1426,9 @@ export const de_UpdateSizeConstraintSetCommand = async (output, context) => {
|
|
|
3614
1426
|
};
|
|
3615
1427
|
return response;
|
|
3616
1428
|
};
|
|
3617
|
-
const de_UpdateSizeConstraintSetCommandError = async (output, context) => {
|
|
3618
|
-
const parsedOutput = {
|
|
3619
|
-
...output,
|
|
3620
|
-
body: await parseErrorBody(output.body, context),
|
|
3621
|
-
};
|
|
3622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3623
|
-
switch (errorCode) {
|
|
3624
|
-
case "WAFInternalErrorException":
|
|
3625
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3626
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "WAFInvalidAccountException":
|
|
3628
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3629
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3630
|
-
case "WAFInvalidOperationException":
|
|
3631
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3632
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3633
|
-
case "WAFInvalidParameterException":
|
|
3634
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3635
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3636
|
-
case "WAFLimitsExceededException":
|
|
3637
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3638
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3639
|
-
case "WAFNonexistentContainerException":
|
|
3640
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3641
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3642
|
-
case "WAFNonexistentItemException":
|
|
3643
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3644
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3645
|
-
case "WAFReferencedItemException":
|
|
3646
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
3647
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
3648
|
-
case "WAFStaleDataException":
|
|
3649
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3650
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3651
|
-
default:
|
|
3652
|
-
const parsedBody = parsedOutput.body;
|
|
3653
|
-
return throwDefaultError({
|
|
3654
|
-
output,
|
|
3655
|
-
parsedBody,
|
|
3656
|
-
errorCode,
|
|
3657
|
-
});
|
|
3658
|
-
}
|
|
3659
|
-
};
|
|
3660
1429
|
export const de_UpdateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
3661
1430
|
if (output.statusCode >= 300) {
|
|
3662
|
-
return
|
|
1431
|
+
return de_CommandError(output, context);
|
|
3663
1432
|
}
|
|
3664
1433
|
const data = await parseBody(output.body, context);
|
|
3665
1434
|
let contents = {};
|
|
@@ -3670,49 +1439,9 @@ export const de_UpdateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
|
3670
1439
|
};
|
|
3671
1440
|
return response;
|
|
3672
1441
|
};
|
|
3673
|
-
const de_UpdateSqlInjectionMatchSetCommandError = async (output, context) => {
|
|
3674
|
-
const parsedOutput = {
|
|
3675
|
-
...output,
|
|
3676
|
-
body: await parseErrorBody(output.body, context),
|
|
3677
|
-
};
|
|
3678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3679
|
-
switch (errorCode) {
|
|
3680
|
-
case "WAFInternalErrorException":
|
|
3681
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3682
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3683
|
-
case "WAFInvalidAccountException":
|
|
3684
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3685
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3686
|
-
case "WAFInvalidOperationException":
|
|
3687
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3688
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3689
|
-
case "WAFInvalidParameterException":
|
|
3690
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3691
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3692
|
-
case "WAFLimitsExceededException":
|
|
3693
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3694
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3695
|
-
case "WAFNonexistentContainerException":
|
|
3696
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3697
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3698
|
-
case "WAFNonexistentItemException":
|
|
3699
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3700
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3701
|
-
case "WAFStaleDataException":
|
|
3702
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3703
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3704
|
-
default:
|
|
3705
|
-
const parsedBody = parsedOutput.body;
|
|
3706
|
-
return throwDefaultError({
|
|
3707
|
-
output,
|
|
3708
|
-
parsedBody,
|
|
3709
|
-
errorCode,
|
|
3710
|
-
});
|
|
3711
|
-
}
|
|
3712
|
-
};
|
|
3713
1442
|
export const de_UpdateWebACLCommand = async (output, context) => {
|
|
3714
1443
|
if (output.statusCode >= 300) {
|
|
3715
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
3716
1445
|
}
|
|
3717
1446
|
const data = await parseBody(output.body, context);
|
|
3718
1447
|
let contents = {};
|
|
@@ -3723,55 +1452,9 @@ export const de_UpdateWebACLCommand = async (output, context) => {
|
|
|
3723
1452
|
};
|
|
3724
1453
|
return response;
|
|
3725
1454
|
};
|
|
3726
|
-
const de_UpdateWebACLCommandError = async (output, context) => {
|
|
3727
|
-
const parsedOutput = {
|
|
3728
|
-
...output,
|
|
3729
|
-
body: await parseErrorBody(output.body, context),
|
|
3730
|
-
};
|
|
3731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3732
|
-
switch (errorCode) {
|
|
3733
|
-
case "WAFInternalErrorException":
|
|
3734
|
-
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3735
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3736
|
-
case "WAFInvalidAccountException":
|
|
3737
|
-
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3738
|
-
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3739
|
-
case "WAFInvalidOperationException":
|
|
3740
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3741
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3742
|
-
case "WAFInvalidParameterException":
|
|
3743
|
-
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3744
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3745
|
-
case "WAFLimitsExceededException":
|
|
3746
|
-
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3747
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "WAFNonexistentContainerException":
|
|
3749
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3750
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "WAFNonexistentItemException":
|
|
3752
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3753
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "WAFReferencedItemException":
|
|
3755
|
-
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
3756
|
-
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "WAFStaleDataException":
|
|
3758
|
-
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3759
|
-
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "WAFSubscriptionNotFoundException":
|
|
3761
|
-
case "com.amazonaws.waf#WAFSubscriptionNotFoundException":
|
|
3762
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
3763
|
-
default:
|
|
3764
|
-
const parsedBody = parsedOutput.body;
|
|
3765
|
-
return throwDefaultError({
|
|
3766
|
-
output,
|
|
3767
|
-
parsedBody,
|
|
3768
|
-
errorCode,
|
|
3769
|
-
});
|
|
3770
|
-
}
|
|
3771
|
-
};
|
|
3772
1455
|
export const de_UpdateXssMatchSetCommand = async (output, context) => {
|
|
3773
1456
|
if (output.statusCode >= 300) {
|
|
3774
|
-
return
|
|
1457
|
+
return de_CommandError(output, context);
|
|
3775
1458
|
}
|
|
3776
1459
|
const data = await parseBody(output.body, context);
|
|
3777
1460
|
let contents = {};
|
|
@@ -3782,37 +1465,70 @@ export const de_UpdateXssMatchSetCommand = async (output, context) => {
|
|
|
3782
1465
|
};
|
|
3783
1466
|
return response;
|
|
3784
1467
|
};
|
|
3785
|
-
const
|
|
1468
|
+
const de_CommandError = async (output, context) => {
|
|
3786
1469
|
const parsedOutput = {
|
|
3787
1470
|
...output,
|
|
3788
1471
|
body: await parseErrorBody(output.body, context),
|
|
3789
1472
|
};
|
|
3790
1473
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3791
1474
|
switch (errorCode) {
|
|
1475
|
+
case "WAFDisallowedNameException":
|
|
1476
|
+
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
1477
|
+
throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
|
|
3792
1478
|
case "WAFInternalErrorException":
|
|
3793
1479
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3794
1480
|
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3795
1481
|
case "WAFInvalidAccountException":
|
|
3796
1482
|
case "com.amazonaws.waf#WAFInvalidAccountException":
|
|
3797
1483
|
throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "WAFInvalidOperationException":
|
|
3799
|
-
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
3800
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3801
1484
|
case "WAFInvalidParameterException":
|
|
3802
1485
|
case "com.amazonaws.waf#WAFInvalidParameterException":
|
|
3803
1486
|
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3804
1487
|
case "WAFLimitsExceededException":
|
|
3805
1488
|
case "com.amazonaws.waf#WAFLimitsExceededException":
|
|
3806
1489
|
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3807
|
-
case "WAFNonexistentContainerException":
|
|
3808
|
-
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
3809
|
-
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
3810
|
-
case "WAFNonexistentItemException":
|
|
3811
|
-
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
3812
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3813
1490
|
case "WAFStaleDataException":
|
|
3814
1491
|
case "com.amazonaws.waf#WAFStaleDataException":
|
|
3815
1492
|
throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
|
|
1493
|
+
case "WAFBadRequestException":
|
|
1494
|
+
case "com.amazonaws.waf#WAFBadRequestException":
|
|
1495
|
+
throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
|
|
1496
|
+
case "WAFTagOperationException":
|
|
1497
|
+
case "com.amazonaws.waf#WAFTagOperationException":
|
|
1498
|
+
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "WAFTagOperationInternalErrorException":
|
|
1500
|
+
case "com.amazonaws.waf#WAFTagOperationInternalErrorException":
|
|
1501
|
+
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "WAFEntityMigrationException":
|
|
1503
|
+
case "com.amazonaws.waf#WAFEntityMigrationException":
|
|
1504
|
+
throw await de_WAFEntityMigrationExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "WAFInvalidOperationException":
|
|
1506
|
+
case "com.amazonaws.waf#WAFInvalidOperationException":
|
|
1507
|
+
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1508
|
+
case "WAFNonexistentItemException":
|
|
1509
|
+
case "com.amazonaws.waf#WAFNonexistentItemException":
|
|
1510
|
+
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1511
|
+
case "WAFNonEmptyEntityException":
|
|
1512
|
+
case "com.amazonaws.waf#WAFNonEmptyEntityException":
|
|
1513
|
+
throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
|
|
1514
|
+
case "WAFReferencedItemException":
|
|
1515
|
+
case "com.amazonaws.waf#WAFReferencedItemException":
|
|
1516
|
+
throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
|
|
1517
|
+
case "WAFServiceLinkedRoleErrorException":
|
|
1518
|
+
case "com.amazonaws.waf#WAFServiceLinkedRoleErrorException":
|
|
1519
|
+
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
1520
|
+
case "WAFInvalidPermissionPolicyException":
|
|
1521
|
+
case "com.amazonaws.waf#WAFInvalidPermissionPolicyException":
|
|
1522
|
+
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
1523
|
+
case "WAFNonexistentContainerException":
|
|
1524
|
+
case "com.amazonaws.waf#WAFNonexistentContainerException":
|
|
1525
|
+
throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
|
|
1526
|
+
case "WAFInvalidRegexPatternException":
|
|
1527
|
+
case "com.amazonaws.waf#WAFInvalidRegexPatternException":
|
|
1528
|
+
throw await de_WAFInvalidRegexPatternExceptionRes(parsedOutput, context);
|
|
1529
|
+
case "WAFSubscriptionNotFoundException":
|
|
1530
|
+
case "com.amazonaws.waf#WAFSubscriptionNotFoundException":
|
|
1531
|
+
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
3816
1532
|
default:
|
|
3817
1533
|
const parsedBody = parsedOutput.body;
|
|
3818
1534
|
return throwDefaultError({
|