@aws-sdk/client-waf-regional 3.503.1 → 3.507.0

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