@aws-sdk/client-shield 3.140.0 → 3.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +180 -321
- package/dist-es/protocols/Aws_json1_1.js +289 -322
- package/package.json +11 -6
|
@@ -385,7 +385,6 @@ const deserializeAws_json1_1AssociateDRTLogBucketCommandError = async (output, c
|
|
|
385
385
|
...output,
|
|
386
386
|
body: await parseBody(output.body, context),
|
|
387
387
|
};
|
|
388
|
-
let response;
|
|
389
388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
389
|
switch (errorCode) {
|
|
391
390
|
case "AccessDeniedForDependencyException":
|
|
@@ -414,14 +413,12 @@ const deserializeAws_json1_1AssociateDRTLogBucketCommandError = async (output, c
|
|
|
414
413
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
415
414
|
default:
|
|
416
415
|
const parsedBody = parsedOutput.body;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
$metadata,
|
|
416
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
417
|
+
output,
|
|
418
|
+
parsedBody,
|
|
419
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
420
|
+
errorCode,
|
|
423
421
|
});
|
|
424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
425
422
|
}
|
|
426
423
|
};
|
|
427
424
|
const deserializeAws_json1_1AssociateDRTRoleCommand = async (output, context) => {
|
|
@@ -443,7 +440,6 @@ const deserializeAws_json1_1AssociateDRTRoleCommandError = async (output, contex
|
|
|
443
440
|
...output,
|
|
444
441
|
body: await parseBody(output.body, context),
|
|
445
442
|
};
|
|
446
|
-
let response;
|
|
447
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
444
|
switch (errorCode) {
|
|
449
445
|
case "AccessDeniedForDependencyException":
|
|
@@ -466,14 +462,12 @@ const deserializeAws_json1_1AssociateDRTRoleCommandError = async (output, contex
|
|
|
466
462
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
467
463
|
default:
|
|
468
464
|
const parsedBody = parsedOutput.body;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
$metadata,
|
|
465
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
466
|
+
output,
|
|
467
|
+
parsedBody,
|
|
468
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
469
|
+
errorCode,
|
|
475
470
|
});
|
|
476
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
477
471
|
}
|
|
478
472
|
};
|
|
479
473
|
const deserializeAws_json1_1AssociateHealthCheckCommand = async (output, context) => {
|
|
@@ -495,7 +489,6 @@ const deserializeAws_json1_1AssociateHealthCheckCommandError = async (output, co
|
|
|
495
489
|
...output,
|
|
496
490
|
body: await parseBody(output.body, context),
|
|
497
491
|
};
|
|
498
|
-
let response;
|
|
499
492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
493
|
switch (errorCode) {
|
|
501
494
|
case "InternalErrorException":
|
|
@@ -518,14 +511,12 @@ const deserializeAws_json1_1AssociateHealthCheckCommandError = async (output, co
|
|
|
518
511
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
519
512
|
default:
|
|
520
513
|
const parsedBody = parsedOutput.body;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
$metadata,
|
|
514
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
515
|
+
output,
|
|
516
|
+
parsedBody,
|
|
517
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
518
|
+
errorCode,
|
|
527
519
|
});
|
|
528
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
520
|
}
|
|
530
521
|
};
|
|
531
522
|
const deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand = async (output, context) => {
|
|
@@ -547,7 +538,6 @@ const deserializeAws_json1_1AssociateProactiveEngagementDetailsCommandError = as
|
|
|
547
538
|
...output,
|
|
548
539
|
body: await parseBody(output.body, context),
|
|
549
540
|
};
|
|
550
|
-
let response;
|
|
551
541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
542
|
switch (errorCode) {
|
|
553
543
|
case "InternalErrorException":
|
|
@@ -567,14 +557,12 @@ const deserializeAws_json1_1AssociateProactiveEngagementDetailsCommandError = as
|
|
|
567
557
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
568
558
|
default:
|
|
569
559
|
const parsedBody = parsedOutput.body;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
$metadata,
|
|
560
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
561
|
+
output,
|
|
562
|
+
parsedBody,
|
|
563
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
564
|
+
errorCode,
|
|
576
565
|
});
|
|
577
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
578
566
|
}
|
|
579
567
|
};
|
|
580
568
|
const deserializeAws_json1_1CreateProtectionCommand = async (output, context) => {
|
|
@@ -596,7 +584,6 @@ const deserializeAws_json1_1CreateProtectionCommandError = async (output, contex
|
|
|
596
584
|
...output,
|
|
597
585
|
body: await parseBody(output.body, context),
|
|
598
586
|
};
|
|
599
|
-
let response;
|
|
600
587
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
601
588
|
switch (errorCode) {
|
|
602
589
|
case "InternalErrorException":
|
|
@@ -625,14 +612,12 @@ const deserializeAws_json1_1CreateProtectionCommandError = async (output, contex
|
|
|
625
612
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
626
613
|
default:
|
|
627
614
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
$metadata,
|
|
615
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
616
|
+
output,
|
|
617
|
+
parsedBody,
|
|
618
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
619
|
+
errorCode,
|
|
634
620
|
});
|
|
635
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
636
621
|
}
|
|
637
622
|
};
|
|
638
623
|
const deserializeAws_json1_1CreateProtectionGroupCommand = async (output, context) => {
|
|
@@ -654,7 +639,6 @@ const deserializeAws_json1_1CreateProtectionGroupCommandError = async (output, c
|
|
|
654
639
|
...output,
|
|
655
640
|
body: await parseBody(output.body, context),
|
|
656
641
|
};
|
|
657
|
-
let response;
|
|
658
642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
643
|
switch (errorCode) {
|
|
660
644
|
case "InternalErrorException":
|
|
@@ -677,14 +661,12 @@ const deserializeAws_json1_1CreateProtectionGroupCommandError = async (output, c
|
|
|
677
661
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
678
662
|
default:
|
|
679
663
|
const parsedBody = parsedOutput.body;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
$metadata,
|
|
664
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
665
|
+
output,
|
|
666
|
+
parsedBody,
|
|
667
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
668
|
+
errorCode,
|
|
686
669
|
});
|
|
687
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
688
670
|
}
|
|
689
671
|
};
|
|
690
672
|
const deserializeAws_json1_1CreateSubscriptionCommand = async (output, context) => {
|
|
@@ -706,7 +688,6 @@ const deserializeAws_json1_1CreateSubscriptionCommandError = async (output, cont
|
|
|
706
688
|
...output,
|
|
707
689
|
body: await parseBody(output.body, context),
|
|
708
690
|
};
|
|
709
|
-
let response;
|
|
710
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
692
|
switch (errorCode) {
|
|
712
693
|
case "InternalErrorException":
|
|
@@ -717,14 +698,12 @@ const deserializeAws_json1_1CreateSubscriptionCommandError = async (output, cont
|
|
|
717
698
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
718
699
|
default:
|
|
719
700
|
const parsedBody = parsedOutput.body;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
$metadata,
|
|
701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
702
|
+
output,
|
|
703
|
+
parsedBody,
|
|
704
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
705
|
+
errorCode,
|
|
726
706
|
});
|
|
727
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
728
707
|
}
|
|
729
708
|
};
|
|
730
709
|
const deserializeAws_json1_1DeleteProtectionCommand = async (output, context) => {
|
|
@@ -746,7 +725,6 @@ const deserializeAws_json1_1DeleteProtectionCommandError = async (output, contex
|
|
|
746
725
|
...output,
|
|
747
726
|
body: await parseBody(output.body, context),
|
|
748
727
|
};
|
|
749
|
-
let response;
|
|
750
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
729
|
switch (errorCode) {
|
|
752
730
|
case "InternalErrorException":
|
|
@@ -760,14 +738,12 @@ const deserializeAws_json1_1DeleteProtectionCommandError = async (output, contex
|
|
|
760
738
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
761
739
|
default:
|
|
762
740
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
$metadata,
|
|
741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
742
|
+
output,
|
|
743
|
+
parsedBody,
|
|
744
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
745
|
+
errorCode,
|
|
769
746
|
});
|
|
770
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
771
747
|
}
|
|
772
748
|
};
|
|
773
749
|
const deserializeAws_json1_1DeleteProtectionGroupCommand = async (output, context) => {
|
|
@@ -789,7 +765,6 @@ const deserializeAws_json1_1DeleteProtectionGroupCommandError = async (output, c
|
|
|
789
765
|
...output,
|
|
790
766
|
body: await parseBody(output.body, context),
|
|
791
767
|
};
|
|
792
|
-
let response;
|
|
793
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
769
|
switch (errorCode) {
|
|
795
770
|
case "InternalErrorException":
|
|
@@ -803,14 +778,12 @@ const deserializeAws_json1_1DeleteProtectionGroupCommandError = async (output, c
|
|
|
803
778
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
804
779
|
default:
|
|
805
780
|
const parsedBody = parsedOutput.body;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
$metadata,
|
|
781
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
782
|
+
output,
|
|
783
|
+
parsedBody,
|
|
784
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
785
|
+
errorCode,
|
|
812
786
|
});
|
|
813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
814
787
|
}
|
|
815
788
|
};
|
|
816
789
|
const deserializeAws_json1_1DeleteSubscriptionCommand = async (output, context) => {
|
|
@@ -832,7 +805,6 @@ const deserializeAws_json1_1DeleteSubscriptionCommandError = async (output, cont
|
|
|
832
805
|
...output,
|
|
833
806
|
body: await parseBody(output.body, context),
|
|
834
807
|
};
|
|
835
|
-
let response;
|
|
836
808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
809
|
switch (errorCode) {
|
|
838
810
|
case "InternalErrorException":
|
|
@@ -846,14 +818,12 @@ const deserializeAws_json1_1DeleteSubscriptionCommandError = async (output, cont
|
|
|
846
818
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
847
819
|
default:
|
|
848
820
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
$metadata,
|
|
821
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
822
|
+
output,
|
|
823
|
+
parsedBody,
|
|
824
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
825
|
+
errorCode,
|
|
855
826
|
});
|
|
856
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
857
827
|
}
|
|
858
828
|
};
|
|
859
829
|
const deserializeAws_json1_1DescribeAttackCommand = async (output, context) => {
|
|
@@ -875,7 +845,6 @@ const deserializeAws_json1_1DescribeAttackCommandError = async (output, context)
|
|
|
875
845
|
...output,
|
|
876
846
|
body: await parseBody(output.body, context),
|
|
877
847
|
};
|
|
878
|
-
let response;
|
|
879
848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
849
|
switch (errorCode) {
|
|
881
850
|
case "AccessDeniedException":
|
|
@@ -886,14 +855,12 @@ const deserializeAws_json1_1DescribeAttackCommandError = async (output, context)
|
|
|
886
855
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
887
856
|
default:
|
|
888
857
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
$metadata,
|
|
858
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
859
|
+
output,
|
|
860
|
+
parsedBody,
|
|
861
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
862
|
+
errorCode,
|
|
895
863
|
});
|
|
896
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
897
864
|
}
|
|
898
865
|
};
|
|
899
866
|
const deserializeAws_json1_1DescribeAttackStatisticsCommand = async (output, context) => {
|
|
@@ -915,7 +882,6 @@ const deserializeAws_json1_1DescribeAttackStatisticsCommandError = async (output
|
|
|
915
882
|
...output,
|
|
916
883
|
body: await parseBody(output.body, context),
|
|
917
884
|
};
|
|
918
|
-
let response;
|
|
919
885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
886
|
switch (errorCode) {
|
|
921
887
|
case "InternalErrorException":
|
|
@@ -923,14 +889,12 @@ const deserializeAws_json1_1DescribeAttackStatisticsCommandError = async (output
|
|
|
923
889
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
924
890
|
default:
|
|
925
891
|
const parsedBody = parsedOutput.body;
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
$metadata,
|
|
892
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
893
|
+
output,
|
|
894
|
+
parsedBody,
|
|
895
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
896
|
+
errorCode,
|
|
932
897
|
});
|
|
933
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
934
898
|
}
|
|
935
899
|
};
|
|
936
900
|
const deserializeAws_json1_1DescribeDRTAccessCommand = async (output, context) => {
|
|
@@ -952,7 +916,6 @@ const deserializeAws_json1_1DescribeDRTAccessCommandError = async (output, conte
|
|
|
952
916
|
...output,
|
|
953
917
|
body: await parseBody(output.body, context),
|
|
954
918
|
};
|
|
955
|
-
let response;
|
|
956
919
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
920
|
switch (errorCode) {
|
|
958
921
|
case "InternalErrorException":
|
|
@@ -963,14 +926,12 @@ const deserializeAws_json1_1DescribeDRTAccessCommandError = async (output, conte
|
|
|
963
926
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
964
927
|
default:
|
|
965
928
|
const parsedBody = parsedOutput.body;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
$metadata,
|
|
929
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
930
|
+
output,
|
|
931
|
+
parsedBody,
|
|
932
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
933
|
+
errorCode,
|
|
972
934
|
});
|
|
973
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
974
935
|
}
|
|
975
936
|
};
|
|
976
937
|
const deserializeAws_json1_1DescribeEmergencyContactSettingsCommand = async (output, context) => {
|
|
@@ -992,7 +953,6 @@ const deserializeAws_json1_1DescribeEmergencyContactSettingsCommandError = async
|
|
|
992
953
|
...output,
|
|
993
954
|
body: await parseBody(output.body, context),
|
|
994
955
|
};
|
|
995
|
-
let response;
|
|
996
956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
957
|
switch (errorCode) {
|
|
998
958
|
case "InternalErrorException":
|
|
@@ -1003,14 +963,12 @@ const deserializeAws_json1_1DescribeEmergencyContactSettingsCommandError = async
|
|
|
1003
963
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1004
964
|
default:
|
|
1005
965
|
const parsedBody = parsedOutput.body;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
$metadata,
|
|
966
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
967
|
+
output,
|
|
968
|
+
parsedBody,
|
|
969
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
970
|
+
errorCode,
|
|
1012
971
|
});
|
|
1013
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1014
972
|
}
|
|
1015
973
|
};
|
|
1016
974
|
const deserializeAws_json1_1DescribeProtectionCommand = async (output, context) => {
|
|
@@ -1032,7 +990,6 @@ const deserializeAws_json1_1DescribeProtectionCommandError = async (output, cont
|
|
|
1032
990
|
...output,
|
|
1033
991
|
body: await parseBody(output.body, context),
|
|
1034
992
|
};
|
|
1035
|
-
let response;
|
|
1036
993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
994
|
switch (errorCode) {
|
|
1038
995
|
case "InternalErrorException":
|
|
@@ -1046,14 +1003,12 @@ const deserializeAws_json1_1DescribeProtectionCommandError = async (output, cont
|
|
|
1046
1003
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1047
1004
|
default:
|
|
1048
1005
|
const parsedBody = parsedOutput.body;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
$metadata,
|
|
1006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1007
|
+
output,
|
|
1008
|
+
parsedBody,
|
|
1009
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1010
|
+
errorCode,
|
|
1055
1011
|
});
|
|
1056
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1057
1012
|
}
|
|
1058
1013
|
};
|
|
1059
1014
|
const deserializeAws_json1_1DescribeProtectionGroupCommand = async (output, context) => {
|
|
@@ -1075,7 +1030,6 @@ const deserializeAws_json1_1DescribeProtectionGroupCommandError = async (output,
|
|
|
1075
1030
|
...output,
|
|
1076
1031
|
body: await parseBody(output.body, context),
|
|
1077
1032
|
};
|
|
1078
|
-
let response;
|
|
1079
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
1034
|
switch (errorCode) {
|
|
1081
1035
|
case "InternalErrorException":
|
|
@@ -1086,14 +1040,12 @@ const deserializeAws_json1_1DescribeProtectionGroupCommandError = async (output,
|
|
|
1086
1040
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1087
1041
|
default:
|
|
1088
1042
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
$metadata,
|
|
1043
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1044
|
+
output,
|
|
1045
|
+
parsedBody,
|
|
1046
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1047
|
+
errorCode,
|
|
1095
1048
|
});
|
|
1096
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1097
1049
|
}
|
|
1098
1050
|
};
|
|
1099
1051
|
const deserializeAws_json1_1DescribeSubscriptionCommand = async (output, context) => {
|
|
@@ -1115,7 +1067,6 @@ const deserializeAws_json1_1DescribeSubscriptionCommandError = async (output, co
|
|
|
1115
1067
|
...output,
|
|
1116
1068
|
body: await parseBody(output.body, context),
|
|
1117
1069
|
};
|
|
1118
|
-
let response;
|
|
1119
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1071
|
switch (errorCode) {
|
|
1121
1072
|
case "InternalErrorException":
|
|
@@ -1126,14 +1077,12 @@ const deserializeAws_json1_1DescribeSubscriptionCommandError = async (output, co
|
|
|
1126
1077
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1127
1078
|
default:
|
|
1128
1079
|
const parsedBody = parsedOutput.body;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
$metadata,
|
|
1080
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1081
|
+
output,
|
|
1082
|
+
parsedBody,
|
|
1083
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1084
|
+
errorCode,
|
|
1135
1085
|
});
|
|
1136
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1137
1086
|
}
|
|
1138
1087
|
};
|
|
1139
1088
|
const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
@@ -1155,7 +1104,6 @@ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError
|
|
|
1155
1104
|
...output,
|
|
1156
1105
|
body: await parseBody(output.body, context),
|
|
1157
1106
|
};
|
|
1158
|
-
let response;
|
|
1159
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
1108
|
switch (errorCode) {
|
|
1161
1109
|
case "InternalErrorException":
|
|
@@ -1175,14 +1123,12 @@ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError
|
|
|
1175
1123
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1176
1124
|
default:
|
|
1177
1125
|
const parsedBody = parsedOutput.body;
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
$metadata,
|
|
1126
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1127
|
+
output,
|
|
1128
|
+
parsedBody,
|
|
1129
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1130
|
+
errorCode,
|
|
1184
1131
|
});
|
|
1185
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1186
1132
|
}
|
|
1187
1133
|
};
|
|
1188
1134
|
const deserializeAws_json1_1DisableProactiveEngagementCommand = async (output, context) => {
|
|
@@ -1204,7 +1150,6 @@ const deserializeAws_json1_1DisableProactiveEngagementCommandError = async (outp
|
|
|
1204
1150
|
...output,
|
|
1205
1151
|
body: await parseBody(output.body, context),
|
|
1206
1152
|
};
|
|
1207
|
-
let response;
|
|
1208
1153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1154
|
switch (errorCode) {
|
|
1210
1155
|
case "InternalErrorException":
|
|
@@ -1224,14 +1169,12 @@ const deserializeAws_json1_1DisableProactiveEngagementCommandError = async (outp
|
|
|
1224
1169
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1225
1170
|
default:
|
|
1226
1171
|
const parsedBody = parsedOutput.body;
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
$metadata,
|
|
1172
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1173
|
+
output,
|
|
1174
|
+
parsedBody,
|
|
1175
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1176
|
+
errorCode,
|
|
1233
1177
|
});
|
|
1234
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1235
1178
|
}
|
|
1236
1179
|
};
|
|
1237
1180
|
const deserializeAws_json1_1DisassociateDRTLogBucketCommand = async (output, context) => {
|
|
@@ -1253,7 +1196,6 @@ const deserializeAws_json1_1DisassociateDRTLogBucketCommandError = async (output
|
|
|
1253
1196
|
...output,
|
|
1254
1197
|
body: await parseBody(output.body, context),
|
|
1255
1198
|
};
|
|
1256
|
-
let response;
|
|
1257
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
1200
|
switch (errorCode) {
|
|
1259
1201
|
case "AccessDeniedForDependencyException":
|
|
@@ -1276,14 +1218,12 @@ const deserializeAws_json1_1DisassociateDRTLogBucketCommandError = async (output
|
|
|
1276
1218
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1277
1219
|
default:
|
|
1278
1220
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata,
|
|
1221
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1222
|
+
output,
|
|
1223
|
+
parsedBody,
|
|
1224
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1225
|
+
errorCode,
|
|
1285
1226
|
});
|
|
1286
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1287
1227
|
}
|
|
1288
1228
|
};
|
|
1289
1229
|
const deserializeAws_json1_1DisassociateDRTRoleCommand = async (output, context) => {
|
|
@@ -1305,7 +1245,6 @@ const deserializeAws_json1_1DisassociateDRTRoleCommandError = async (output, con
|
|
|
1305
1245
|
...output,
|
|
1306
1246
|
body: await parseBody(output.body, context),
|
|
1307
1247
|
};
|
|
1308
|
-
let response;
|
|
1309
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1249
|
switch (errorCode) {
|
|
1311
1250
|
case "InternalErrorException":
|
|
@@ -1322,14 +1261,12 @@ const deserializeAws_json1_1DisassociateDRTRoleCommandError = async (output, con
|
|
|
1322
1261
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1323
1262
|
default:
|
|
1324
1263
|
const parsedBody = parsedOutput.body;
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
$metadata,
|
|
1264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1265
|
+
output,
|
|
1266
|
+
parsedBody,
|
|
1267
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1268
|
+
errorCode,
|
|
1331
1269
|
});
|
|
1332
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1333
1270
|
}
|
|
1334
1271
|
};
|
|
1335
1272
|
const deserializeAws_json1_1DisassociateHealthCheckCommand = async (output, context) => {
|
|
@@ -1351,7 +1288,6 @@ const deserializeAws_json1_1DisassociateHealthCheckCommandError = async (output,
|
|
|
1351
1288
|
...output,
|
|
1352
1289
|
body: await parseBody(output.body, context),
|
|
1353
1290
|
};
|
|
1354
|
-
let response;
|
|
1355
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1292
|
switch (errorCode) {
|
|
1357
1293
|
case "InternalErrorException":
|
|
@@ -1371,14 +1307,12 @@ const deserializeAws_json1_1DisassociateHealthCheckCommandError = async (output,
|
|
|
1371
1307
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1372
1308
|
default:
|
|
1373
1309
|
const parsedBody = parsedOutput.body;
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
$metadata,
|
|
1310
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1311
|
+
output,
|
|
1312
|
+
parsedBody,
|
|
1313
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1314
|
+
errorCode,
|
|
1380
1315
|
});
|
|
1381
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1382
1316
|
}
|
|
1383
1317
|
};
|
|
1384
1318
|
const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
@@ -1400,7 +1334,6 @@ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError
|
|
|
1400
1334
|
...output,
|
|
1401
1335
|
body: await parseBody(output.body, context),
|
|
1402
1336
|
};
|
|
1403
|
-
let response;
|
|
1404
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
1338
|
switch (errorCode) {
|
|
1406
1339
|
case "InternalErrorException":
|
|
@@ -1423,14 +1356,12 @@ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError
|
|
|
1423
1356
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1424
1357
|
default:
|
|
1425
1358
|
const parsedBody = parsedOutput.body;
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
$metadata,
|
|
1359
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1360
|
+
output,
|
|
1361
|
+
parsedBody,
|
|
1362
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1363
|
+
errorCode,
|
|
1432
1364
|
});
|
|
1433
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1434
1365
|
}
|
|
1435
1366
|
};
|
|
1436
1367
|
const deserializeAws_json1_1EnableProactiveEngagementCommand = async (output, context) => {
|
|
@@ -1452,7 +1383,6 @@ const deserializeAws_json1_1EnableProactiveEngagementCommandError = async (outpu
|
|
|
1452
1383
|
...output,
|
|
1453
1384
|
body: await parseBody(output.body, context),
|
|
1454
1385
|
};
|
|
1455
|
-
let response;
|
|
1456
1386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
1387
|
switch (errorCode) {
|
|
1458
1388
|
case "InternalErrorException":
|
|
@@ -1472,14 +1402,12 @@ const deserializeAws_json1_1EnableProactiveEngagementCommandError = async (outpu
|
|
|
1472
1402
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1473
1403
|
default:
|
|
1474
1404
|
const parsedBody = parsedOutput.body;
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
$metadata,
|
|
1405
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1406
|
+
output,
|
|
1407
|
+
parsedBody,
|
|
1408
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1409
|
+
errorCode,
|
|
1481
1410
|
});
|
|
1482
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1483
1411
|
}
|
|
1484
1412
|
};
|
|
1485
1413
|
const deserializeAws_json1_1GetSubscriptionStateCommand = async (output, context) => {
|
|
@@ -1501,7 +1429,6 @@ const deserializeAws_json1_1GetSubscriptionStateCommandError = async (output, co
|
|
|
1501
1429
|
...output,
|
|
1502
1430
|
body: await parseBody(output.body, context),
|
|
1503
1431
|
};
|
|
1504
|
-
let response;
|
|
1505
1432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1433
|
switch (errorCode) {
|
|
1507
1434
|
case "InternalErrorException":
|
|
@@ -1509,14 +1436,12 @@ const deserializeAws_json1_1GetSubscriptionStateCommandError = async (output, co
|
|
|
1509
1436
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1510
1437
|
default:
|
|
1511
1438
|
const parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
$metadata,
|
|
1439
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1440
|
+
output,
|
|
1441
|
+
parsedBody,
|
|
1442
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1443
|
+
errorCode,
|
|
1518
1444
|
});
|
|
1519
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1520
1445
|
}
|
|
1521
1446
|
};
|
|
1522
1447
|
const deserializeAws_json1_1ListAttacksCommand = async (output, context) => {
|
|
@@ -1538,7 +1463,6 @@ const deserializeAws_json1_1ListAttacksCommandError = async (output, context) =>
|
|
|
1538
1463
|
...output,
|
|
1539
1464
|
body: await parseBody(output.body, context),
|
|
1540
1465
|
};
|
|
1541
|
-
let response;
|
|
1542
1466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
1467
|
switch (errorCode) {
|
|
1544
1468
|
case "InternalErrorException":
|
|
@@ -1552,14 +1476,12 @@ const deserializeAws_json1_1ListAttacksCommandError = async (output, context) =>
|
|
|
1552
1476
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1553
1477
|
default:
|
|
1554
1478
|
const parsedBody = parsedOutput.body;
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
$metadata,
|
|
1479
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1480
|
+
output,
|
|
1481
|
+
parsedBody,
|
|
1482
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1483
|
+
errorCode,
|
|
1561
1484
|
});
|
|
1562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1563
1485
|
}
|
|
1564
1486
|
};
|
|
1565
1487
|
const deserializeAws_json1_1ListProtectionGroupsCommand = async (output, context) => {
|
|
@@ -1581,7 +1503,6 @@ const deserializeAws_json1_1ListProtectionGroupsCommandError = async (output, co
|
|
|
1581
1503
|
...output,
|
|
1582
1504
|
body: await parseBody(output.body, context),
|
|
1583
1505
|
};
|
|
1584
|
-
let response;
|
|
1585
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
1507
|
switch (errorCode) {
|
|
1587
1508
|
case "InternalErrorException":
|
|
@@ -1595,14 +1516,12 @@ const deserializeAws_json1_1ListProtectionGroupsCommandError = async (output, co
|
|
|
1595
1516
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1596
1517
|
default:
|
|
1597
1518
|
const parsedBody = parsedOutput.body;
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
$metadata,
|
|
1519
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1520
|
+
output,
|
|
1521
|
+
parsedBody,
|
|
1522
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1523
|
+
errorCode,
|
|
1604
1524
|
});
|
|
1605
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1606
1525
|
}
|
|
1607
1526
|
};
|
|
1608
1527
|
const deserializeAws_json1_1ListProtectionsCommand = async (output, context) => {
|
|
@@ -1624,7 +1543,6 @@ const deserializeAws_json1_1ListProtectionsCommandError = async (output, context
|
|
|
1624
1543
|
...output,
|
|
1625
1544
|
body: await parseBody(output.body, context),
|
|
1626
1545
|
};
|
|
1627
|
-
let response;
|
|
1628
1546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
1547
|
switch (errorCode) {
|
|
1630
1548
|
case "InternalErrorException":
|
|
@@ -1638,14 +1556,12 @@ const deserializeAws_json1_1ListProtectionsCommandError = async (output, context
|
|
|
1638
1556
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1639
1557
|
default:
|
|
1640
1558
|
const parsedBody = parsedOutput.body;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
$metadata,
|
|
1559
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1560
|
+
output,
|
|
1561
|
+
parsedBody,
|
|
1562
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1563
|
+
errorCode,
|
|
1647
1564
|
});
|
|
1648
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1649
1565
|
}
|
|
1650
1566
|
};
|
|
1651
1567
|
const deserializeAws_json1_1ListResourcesInProtectionGroupCommand = async (output, context) => {
|
|
@@ -1667,7 +1583,6 @@ const deserializeAws_json1_1ListResourcesInProtectionGroupCommandError = async (
|
|
|
1667
1583
|
...output,
|
|
1668
1584
|
body: await parseBody(output.body, context),
|
|
1669
1585
|
};
|
|
1670
|
-
let response;
|
|
1671
1586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1587
|
switch (errorCode) {
|
|
1673
1588
|
case "InternalErrorException":
|
|
@@ -1681,14 +1596,12 @@ const deserializeAws_json1_1ListResourcesInProtectionGroupCommandError = async (
|
|
|
1681
1596
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1682
1597
|
default:
|
|
1683
1598
|
const parsedBody = parsedOutput.body;
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
$metadata,
|
|
1599
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1600
|
+
output,
|
|
1601
|
+
parsedBody,
|
|
1602
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1603
|
+
errorCode,
|
|
1690
1604
|
});
|
|
1691
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1692
1605
|
}
|
|
1693
1606
|
};
|
|
1694
1607
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1710,7 +1623,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1710
1623
|
...output,
|
|
1711
1624
|
body: await parseBody(output.body, context),
|
|
1712
1625
|
};
|
|
1713
|
-
let response;
|
|
1714
1626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1715
1627
|
switch (errorCode) {
|
|
1716
1628
|
case "InternalErrorException":
|
|
@@ -1724,14 +1636,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1724
1636
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1725
1637
|
default:
|
|
1726
1638
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
$metadata,
|
|
1639
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1640
|
+
output,
|
|
1641
|
+
parsedBody,
|
|
1642
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1643
|
+
errorCode,
|
|
1733
1644
|
});
|
|
1734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1645
|
}
|
|
1736
1646
|
};
|
|
1737
1647
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1753,7 +1663,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1753
1663
|
...output,
|
|
1754
1664
|
body: await parseBody(output.body, context),
|
|
1755
1665
|
};
|
|
1756
|
-
let response;
|
|
1757
1666
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
1667
|
switch (errorCode) {
|
|
1759
1668
|
case "InternalErrorException":
|
|
@@ -1770,14 +1679,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1770
1679
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1771
1680
|
default:
|
|
1772
1681
|
const parsedBody = parsedOutput.body;
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
$metadata,
|
|
1682
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1683
|
+
output,
|
|
1684
|
+
parsedBody,
|
|
1685
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1686
|
+
errorCode,
|
|
1779
1687
|
});
|
|
1780
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1781
1688
|
}
|
|
1782
1689
|
};
|
|
1783
1690
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1799,7 +1706,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1799
1706
|
...output,
|
|
1800
1707
|
body: await parseBody(output.body, context),
|
|
1801
1708
|
};
|
|
1802
|
-
let response;
|
|
1803
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
1710
|
switch (errorCode) {
|
|
1805
1711
|
case "InternalErrorException":
|
|
@@ -1816,14 +1722,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1816
1722
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1817
1723
|
default:
|
|
1818
1724
|
const parsedBody = parsedOutput.body;
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
$metadata,
|
|
1725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1726
|
+
output,
|
|
1727
|
+
parsedBody,
|
|
1728
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1729
|
+
errorCode,
|
|
1825
1730
|
});
|
|
1826
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1827
1731
|
}
|
|
1828
1732
|
};
|
|
1829
1733
|
const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
@@ -1845,7 +1749,6 @@ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError
|
|
|
1845
1749
|
...output,
|
|
1846
1750
|
body: await parseBody(output.body, context),
|
|
1847
1751
|
};
|
|
1848
|
-
let response;
|
|
1849
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1753
|
switch (errorCode) {
|
|
1851
1754
|
case "InternalErrorException":
|
|
@@ -1865,14 +1768,12 @@ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError
|
|
|
1865
1768
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1866
1769
|
default:
|
|
1867
1770
|
const parsedBody = parsedOutput.body;
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
$metadata,
|
|
1771
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1772
|
+
output,
|
|
1773
|
+
parsedBody,
|
|
1774
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1775
|
+
errorCode,
|
|
1874
1776
|
});
|
|
1875
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1876
1777
|
}
|
|
1877
1778
|
};
|
|
1878
1779
|
const deserializeAws_json1_1UpdateEmergencyContactSettingsCommand = async (output, context) => {
|
|
@@ -1894,7 +1795,6 @@ const deserializeAws_json1_1UpdateEmergencyContactSettingsCommandError = async (
|
|
|
1894
1795
|
...output,
|
|
1895
1796
|
body: await parseBody(output.body, context),
|
|
1896
1797
|
};
|
|
1897
|
-
let response;
|
|
1898
1798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
1799
|
switch (errorCode) {
|
|
1900
1800
|
case "InternalErrorException":
|
|
@@ -1911,14 +1811,12 @@ const deserializeAws_json1_1UpdateEmergencyContactSettingsCommandError = async (
|
|
|
1911
1811
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1912
1812
|
default:
|
|
1913
1813
|
const parsedBody = parsedOutput.body;
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
$metadata,
|
|
1814
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1815
|
+
output,
|
|
1816
|
+
parsedBody,
|
|
1817
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1818
|
+
errorCode,
|
|
1920
1819
|
});
|
|
1921
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1922
1820
|
}
|
|
1923
1821
|
};
|
|
1924
1822
|
const deserializeAws_json1_1UpdateProtectionGroupCommand = async (output, context) => {
|
|
@@ -1940,7 +1838,6 @@ const deserializeAws_json1_1UpdateProtectionGroupCommandError = async (output, c
|
|
|
1940
1838
|
...output,
|
|
1941
1839
|
body: await parseBody(output.body, context),
|
|
1942
1840
|
};
|
|
1943
|
-
let response;
|
|
1944
1841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
1842
|
switch (errorCode) {
|
|
1946
1843
|
case "InternalErrorException":
|
|
@@ -1957,14 +1854,12 @@ const deserializeAws_json1_1UpdateProtectionGroupCommandError = async (output, c
|
|
|
1957
1854
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1958
1855
|
default:
|
|
1959
1856
|
const parsedBody = parsedOutput.body;
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
$metadata,
|
|
1857
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1858
|
+
output,
|
|
1859
|
+
parsedBody,
|
|
1860
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1861
|
+
errorCode,
|
|
1966
1862
|
});
|
|
1967
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1968
1863
|
}
|
|
1969
1864
|
};
|
|
1970
1865
|
const deserializeAws_json1_1UpdateSubscriptionCommand = async (output, context) => {
|
|
@@ -1986,7 +1881,6 @@ const deserializeAws_json1_1UpdateSubscriptionCommandError = async (output, cont
|
|
|
1986
1881
|
...output,
|
|
1987
1882
|
body: await parseBody(output.body, context),
|
|
1988
1883
|
};
|
|
1989
|
-
let response;
|
|
1990
1884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
1885
|
switch (errorCode) {
|
|
1992
1886
|
case "InternalErrorException":
|
|
@@ -2006,14 +1900,12 @@ const deserializeAws_json1_1UpdateSubscriptionCommandError = async (output, cont
|
|
|
2006
1900
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2007
1901
|
default:
|
|
2008
1902
|
const parsedBody = parsedOutput.body;
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
$metadata,
|
|
1903
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1904
|
+
output,
|
|
1905
|
+
parsedBody,
|
|
1906
|
+
exceptionCtor: ShieldServiceException_1.ShieldServiceException,
|
|
1907
|
+
errorCode,
|
|
2015
1908
|
});
|
|
2016
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2017
1909
|
}
|
|
2018
1910
|
};
|
|
2019
1911
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2256,9 +2148,6 @@ const serializeAws_json1_1EmergencyContactList = (input, context) => {
|
|
|
2256
2148
|
return input
|
|
2257
2149
|
.filter((e) => e != null)
|
|
2258
2150
|
.map((entry) => {
|
|
2259
|
-
if (entry === null) {
|
|
2260
|
-
return null;
|
|
2261
|
-
}
|
|
2262
2151
|
return serializeAws_json1_1EmergencyContact(entry, context);
|
|
2263
2152
|
});
|
|
2264
2153
|
};
|
|
@@ -2348,9 +2237,6 @@ const serializeAws_json1_1ProtectedResourceTypeFilters = (input, context) => {
|
|
|
2348
2237
|
return input
|
|
2349
2238
|
.filter((e) => e != null)
|
|
2350
2239
|
.map((entry) => {
|
|
2351
|
-
if (entry === null) {
|
|
2352
|
-
return null;
|
|
2353
|
-
}
|
|
2354
2240
|
return entry;
|
|
2355
2241
|
});
|
|
2356
2242
|
};
|
|
@@ -2358,9 +2244,6 @@ const serializeAws_json1_1ProtectionGroupAggregationFilters = (input, context) =
|
|
|
2358
2244
|
return input
|
|
2359
2245
|
.filter((e) => e != null)
|
|
2360
2246
|
.map((entry) => {
|
|
2361
|
-
if (entry === null) {
|
|
2362
|
-
return null;
|
|
2363
|
-
}
|
|
2364
2247
|
return entry;
|
|
2365
2248
|
});
|
|
2366
2249
|
};
|
|
@@ -2368,9 +2251,6 @@ const serializeAws_json1_1ProtectionGroupIdFilters = (input, context) => {
|
|
|
2368
2251
|
return input
|
|
2369
2252
|
.filter((e) => e != null)
|
|
2370
2253
|
.map((entry) => {
|
|
2371
|
-
if (entry === null) {
|
|
2372
|
-
return null;
|
|
2373
|
-
}
|
|
2374
2254
|
return entry;
|
|
2375
2255
|
});
|
|
2376
2256
|
};
|
|
@@ -2378,9 +2258,6 @@ const serializeAws_json1_1ProtectionGroupMembers = (input, context) => {
|
|
|
2378
2258
|
return input
|
|
2379
2259
|
.filter((e) => e != null)
|
|
2380
2260
|
.map((entry) => {
|
|
2381
|
-
if (entry === null) {
|
|
2382
|
-
return null;
|
|
2383
|
-
}
|
|
2384
2261
|
return entry;
|
|
2385
2262
|
});
|
|
2386
2263
|
};
|
|
@@ -2388,9 +2265,6 @@ const serializeAws_json1_1ProtectionGroupPatternFilters = (input, context) => {
|
|
|
2388
2265
|
return input
|
|
2389
2266
|
.filter((e) => e != null)
|
|
2390
2267
|
.map((entry) => {
|
|
2391
|
-
if (entry === null) {
|
|
2392
|
-
return null;
|
|
2393
|
-
}
|
|
2394
2268
|
return entry;
|
|
2395
2269
|
});
|
|
2396
2270
|
};
|
|
@@ -2398,9 +2272,6 @@ const serializeAws_json1_1ProtectionNameFilters = (input, context) => {
|
|
|
2398
2272
|
return input
|
|
2399
2273
|
.filter((e) => e != null)
|
|
2400
2274
|
.map((entry) => {
|
|
2401
|
-
if (entry === null) {
|
|
2402
|
-
return null;
|
|
2403
|
-
}
|
|
2404
2275
|
return entry;
|
|
2405
2276
|
});
|
|
2406
2277
|
};
|
|
@@ -2408,9 +2279,6 @@ const serializeAws_json1_1ResourceArnFilterList = (input, context) => {
|
|
|
2408
2279
|
return input
|
|
2409
2280
|
.filter((e) => e != null)
|
|
2410
2281
|
.map((entry) => {
|
|
2411
|
-
if (entry === null) {
|
|
2412
|
-
return null;
|
|
2413
|
-
}
|
|
2414
2282
|
return entry;
|
|
2415
2283
|
});
|
|
2416
2284
|
};
|
|
@@ -2418,9 +2286,6 @@ const serializeAws_json1_1ResourceArnFilters = (input, context) => {
|
|
|
2418
2286
|
return input
|
|
2419
2287
|
.filter((e) => e != null)
|
|
2420
2288
|
.map((entry) => {
|
|
2421
|
-
if (entry === null) {
|
|
2422
|
-
return null;
|
|
2423
|
-
}
|
|
2424
2289
|
return entry;
|
|
2425
2290
|
});
|
|
2426
2291
|
};
|
|
@@ -2440,9 +2305,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2440
2305
|
return input
|
|
2441
2306
|
.filter((e) => e != null)
|
|
2442
2307
|
.map((entry) => {
|
|
2443
|
-
if (entry === null) {
|
|
2444
|
-
return null;
|
|
2445
|
-
}
|
|
2446
2308
|
return entry;
|
|
2447
2309
|
});
|
|
2448
2310
|
};
|
|
@@ -2450,9 +2312,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2450
2312
|
return input
|
|
2451
2313
|
.filter((e) => e != null)
|
|
2452
2314
|
.map((entry) => {
|
|
2453
|
-
if (entry === null) {
|
|
2454
|
-
return null;
|
|
2455
|
-
}
|
|
2456
2315
|
return serializeAws_json1_1Tag(entry, context);
|
|
2457
2316
|
});
|
|
2458
2317
|
};
|