@aws-sdk/client-shield 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.
- package/dist-cjs/index.js +75 -1022
- package/dist-es/protocols/Aws_json1_1.js +81 -1028
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -716,7 +716,7 @@ var se_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
716
716
|
}, "se_UpdateSubscriptionCommand");
|
|
717
717
|
var de_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
718
718
|
if (output.statusCode >= 300) {
|
|
719
|
-
return
|
|
719
|
+
return de_CommandError(output, context);
|
|
720
720
|
}
|
|
721
721
|
const data = await parseBody(output.body, context);
|
|
722
722
|
let contents = {};
|
|
@@ -727,49 +727,9 @@ var de_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
727
727
|
};
|
|
728
728
|
return response;
|
|
729
729
|
}, "de_AssociateDRTLogBucketCommand");
|
|
730
|
-
var de_AssociateDRTLogBucketCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
731
|
-
const parsedOutput = {
|
|
732
|
-
...output,
|
|
733
|
-
body: await parseErrorBody(output.body, context)
|
|
734
|
-
};
|
|
735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
-
switch (errorCode) {
|
|
737
|
-
case "AccessDeniedForDependencyException":
|
|
738
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
739
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
740
|
-
case "InternalErrorException":
|
|
741
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
742
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
743
|
-
case "InvalidOperationException":
|
|
744
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
745
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
746
|
-
case "InvalidParameterException":
|
|
747
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
748
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
749
|
-
case "LimitsExceededException":
|
|
750
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
751
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
752
|
-
case "NoAssociatedRoleException":
|
|
753
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
754
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
755
|
-
case "OptimisticLockException":
|
|
756
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
757
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ResourceNotFoundException":
|
|
759
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
760
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
761
|
-
default:
|
|
762
|
-
const parsedBody = parsedOutput.body;
|
|
763
|
-
return throwDefaultError({
|
|
764
|
-
output,
|
|
765
|
-
parsedBody,
|
|
766
|
-
errorCode
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
}, "de_AssociateDRTLogBucketCommandError");
|
|
770
730
|
var de_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
771
731
|
if (output.statusCode >= 300) {
|
|
772
|
-
return
|
|
732
|
+
return de_CommandError(output, context);
|
|
773
733
|
}
|
|
774
734
|
const data = await parseBody(output.body, context);
|
|
775
735
|
let contents = {};
|
|
@@ -780,43 +740,9 @@ var de_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
780
740
|
};
|
|
781
741
|
return response;
|
|
782
742
|
}, "de_AssociateDRTRoleCommand");
|
|
783
|
-
var de_AssociateDRTRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context)
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "AccessDeniedForDependencyException":
|
|
791
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
792
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InternalErrorException":
|
|
794
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
795
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InvalidOperationException":
|
|
797
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
798
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
799
|
-
case "InvalidParameterException":
|
|
800
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
801
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
802
|
-
case "OptimisticLockException":
|
|
803
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
804
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ResourceNotFoundException":
|
|
806
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
}, "de_AssociateDRTRoleCommandError");
|
|
817
743
|
var de_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
744
|
if (output.statusCode >= 300) {
|
|
819
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
820
746
|
}
|
|
821
747
|
const data = await parseBody(output.body, context);
|
|
822
748
|
let contents = {};
|
|
@@ -827,43 +753,9 @@ var de_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
827
753
|
};
|
|
828
754
|
return response;
|
|
829
755
|
}, "de_AssociateHealthCheckCommand");
|
|
830
|
-
var de_AssociateHealthCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
-
const parsedOutput = {
|
|
832
|
-
...output,
|
|
833
|
-
body: await parseErrorBody(output.body, context)
|
|
834
|
-
};
|
|
835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
-
switch (errorCode) {
|
|
837
|
-
case "InternalErrorException":
|
|
838
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
839
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
840
|
-
case "InvalidParameterException":
|
|
841
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
842
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InvalidResourceException":
|
|
844
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
845
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
846
|
-
case "LimitsExceededException":
|
|
847
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
848
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
849
|
-
case "OptimisticLockException":
|
|
850
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
851
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ResourceNotFoundException":
|
|
853
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
855
|
-
default:
|
|
856
|
-
const parsedBody = parsedOutput.body;
|
|
857
|
-
return throwDefaultError({
|
|
858
|
-
output,
|
|
859
|
-
parsedBody,
|
|
860
|
-
errorCode
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
}, "de_AssociateHealthCheckCommandError");
|
|
864
756
|
var de_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
757
|
if (output.statusCode >= 300) {
|
|
866
|
-
return
|
|
758
|
+
return de_CommandError(output, context);
|
|
867
759
|
}
|
|
868
760
|
const data = await parseBody(output.body, context);
|
|
869
761
|
let contents = {};
|
|
@@ -874,40 +766,9 @@ var de_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async
|
|
|
874
766
|
};
|
|
875
767
|
return response;
|
|
876
768
|
}, "de_AssociateProactiveEngagementDetailsCommand");
|
|
877
|
-
var de_AssociateProactiveEngagementDetailsCommandError = /* @__PURE__ */ __name(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 "InternalErrorException":
|
|
885
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
886
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
887
|
-
case "InvalidOperationException":
|
|
888
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
889
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
890
|
-
case "InvalidParameterException":
|
|
891
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
892
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
893
|
-
case "OptimisticLockException":
|
|
894
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
895
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ResourceNotFoundException":
|
|
897
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
}, "de_AssociateProactiveEngagementDetailsCommandError");
|
|
908
769
|
var de_CreateProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
770
|
if (output.statusCode >= 300) {
|
|
910
|
-
return
|
|
771
|
+
return de_CommandError(output, context);
|
|
911
772
|
}
|
|
912
773
|
const data = await parseBody(output.body, context);
|
|
913
774
|
let contents = {};
|
|
@@ -918,49 +779,9 @@ var de_CreateProtectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
918
779
|
};
|
|
919
780
|
return response;
|
|
920
781
|
}, "de_CreateProtectionCommand");
|
|
921
|
-
var de_CreateProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context)
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "InternalErrorException":
|
|
929
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
930
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InvalidOperationException":
|
|
932
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
933
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
934
|
-
case "InvalidParameterException":
|
|
935
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
936
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InvalidResourceException":
|
|
938
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
939
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
940
|
-
case "LimitsExceededException":
|
|
941
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
942
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
943
|
-
case "OptimisticLockException":
|
|
944
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
945
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ResourceAlreadyExistsException":
|
|
947
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
948
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ResourceNotFoundException":
|
|
950
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
951
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
default:
|
|
953
|
-
const parsedBody = parsedOutput.body;
|
|
954
|
-
return throwDefaultError({
|
|
955
|
-
output,
|
|
956
|
-
parsedBody,
|
|
957
|
-
errorCode
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
}, "de_CreateProtectionCommandError");
|
|
961
782
|
var de_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
783
|
if (output.statusCode >= 300) {
|
|
963
|
-
return
|
|
784
|
+
return de_CommandError(output, context);
|
|
964
785
|
}
|
|
965
786
|
const data = await parseBody(output.body, context);
|
|
966
787
|
let contents = {};
|
|
@@ -971,43 +792,9 @@ var de_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
971
792
|
};
|
|
972
793
|
return response;
|
|
973
794
|
}, "de_CreateProtectionGroupCommand");
|
|
974
|
-
var de_CreateProtectionGroupCommandError = /* @__PURE__ */ __name(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 "InternalErrorException":
|
|
982
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
983
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
984
|
-
case "InvalidParameterException":
|
|
985
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
986
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
987
|
-
case "LimitsExceededException":
|
|
988
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
989
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
990
|
-
case "OptimisticLockException":
|
|
991
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
992
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ResourceAlreadyExistsException":
|
|
994
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
995
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ResourceNotFoundException":
|
|
997
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
998
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
}, "de_CreateProtectionGroupCommandError");
|
|
1008
795
|
var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
796
|
if (output.statusCode >= 300) {
|
|
1010
|
-
return
|
|
797
|
+
return de_CommandError(output, context);
|
|
1011
798
|
}
|
|
1012
799
|
const data = await parseBody(output.body, context);
|
|
1013
800
|
let contents = {};
|
|
@@ -1018,31 +805,9 @@ var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1018
805
|
};
|
|
1019
806
|
return response;
|
|
1020
807
|
}, "de_CreateSubscriptionCommand");
|
|
1021
|
-
var de_CreateSubscriptionCommandError = /* @__PURE__ */ __name(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 "InternalErrorException":
|
|
1029
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1030
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ResourceAlreadyExistsException":
|
|
1032
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
1033
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1034
|
-
default:
|
|
1035
|
-
const parsedBody = parsedOutput.body;
|
|
1036
|
-
return throwDefaultError({
|
|
1037
|
-
output,
|
|
1038
|
-
parsedBody,
|
|
1039
|
-
errorCode
|
|
1040
|
-
});
|
|
1041
|
-
}
|
|
1042
|
-
}, "de_CreateSubscriptionCommandError");
|
|
1043
808
|
var de_DeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
809
|
if (output.statusCode >= 300) {
|
|
1045
|
-
return
|
|
810
|
+
return de_CommandError(output, context);
|
|
1046
811
|
}
|
|
1047
812
|
const data = await parseBody(output.body, context);
|
|
1048
813
|
let contents = {};
|
|
@@ -1053,34 +818,9 @@ var de_DeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1053
818
|
};
|
|
1054
819
|
return response;
|
|
1055
820
|
}, "de_DeleteProtectionCommand");
|
|
1056
|
-
var de_DeleteProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1057
|
-
const parsedOutput = {
|
|
1058
|
-
...output,
|
|
1059
|
-
body: await parseErrorBody(output.body, context)
|
|
1060
|
-
};
|
|
1061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
-
switch (errorCode) {
|
|
1063
|
-
case "InternalErrorException":
|
|
1064
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1065
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "OptimisticLockException":
|
|
1067
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1068
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ResourceNotFoundException":
|
|
1070
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
}, "de_DeleteProtectionCommandError");
|
|
1081
821
|
var de_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
822
|
if (output.statusCode >= 300) {
|
|
1083
|
-
return
|
|
823
|
+
return de_CommandError(output, context);
|
|
1084
824
|
}
|
|
1085
825
|
const data = await parseBody(output.body, context);
|
|
1086
826
|
let contents = {};
|
|
@@ -1091,34 +831,9 @@ var de_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1091
831
|
};
|
|
1092
832
|
return response;
|
|
1093
833
|
}, "de_DeleteProtectionGroupCommand");
|
|
1094
|
-
var de_DeleteProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1095
|
-
const parsedOutput = {
|
|
1096
|
-
...output,
|
|
1097
|
-
body: await parseErrorBody(output.body, context)
|
|
1098
|
-
};
|
|
1099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
|
-
switch (errorCode) {
|
|
1101
|
-
case "InternalErrorException":
|
|
1102
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1103
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "OptimisticLockException":
|
|
1105
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1106
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ResourceNotFoundException":
|
|
1108
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
}, "de_DeleteProtectionGroupCommandError");
|
|
1119
834
|
var de_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
835
|
if (output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
836
|
+
return de_CommandError(output, context);
|
|
1122
837
|
}
|
|
1123
838
|
const data = await parseBody(output.body, context);
|
|
1124
839
|
let contents = {};
|
|
@@ -1129,34 +844,9 @@ var de_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1129
844
|
};
|
|
1130
845
|
return response;
|
|
1131
846
|
}, "de_DeleteSubscriptionCommand");
|
|
1132
|
-
var de_DeleteSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
|
-
const parsedOutput = {
|
|
1134
|
-
...output,
|
|
1135
|
-
body: await parseErrorBody(output.body, context)
|
|
1136
|
-
};
|
|
1137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "InternalErrorException":
|
|
1140
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1141
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "LockedSubscriptionException":
|
|
1143
|
-
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
1144
|
-
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ResourceNotFoundException":
|
|
1146
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1148
|
-
default:
|
|
1149
|
-
const parsedBody = parsedOutput.body;
|
|
1150
|
-
return throwDefaultError({
|
|
1151
|
-
output,
|
|
1152
|
-
parsedBody,
|
|
1153
|
-
errorCode
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
}, "de_DeleteSubscriptionCommandError");
|
|
1157
847
|
var de_DescribeAttackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1158
848
|
if (output.statusCode >= 300) {
|
|
1159
|
-
return
|
|
849
|
+
return de_CommandError(output, context);
|
|
1160
850
|
}
|
|
1161
851
|
const data = await parseBody(output.body, context);
|
|
1162
852
|
let contents = {};
|
|
@@ -1167,31 +857,9 @@ var de_DescribeAttackCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1167
857
|
};
|
|
1168
858
|
return response;
|
|
1169
859
|
}, "de_DescribeAttackCommand");
|
|
1170
|
-
var de_DescribeAttackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
|
-
const parsedOutput = {
|
|
1172
|
-
...output,
|
|
1173
|
-
body: await parseErrorBody(output.body, context)
|
|
1174
|
-
};
|
|
1175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
|
-
switch (errorCode) {
|
|
1177
|
-
case "AccessDeniedException":
|
|
1178
|
-
case "com.amazonaws.shield#AccessDeniedException":
|
|
1179
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "InternalErrorException":
|
|
1181
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1182
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1183
|
-
default:
|
|
1184
|
-
const parsedBody = parsedOutput.body;
|
|
1185
|
-
return throwDefaultError({
|
|
1186
|
-
output,
|
|
1187
|
-
parsedBody,
|
|
1188
|
-
errorCode
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
}, "de_DescribeAttackCommandError");
|
|
1192
860
|
var de_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
861
|
if (output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1195
863
|
}
|
|
1196
864
|
const data = await parseBody(output.body, context);
|
|
1197
865
|
let contents = {};
|
|
@@ -1202,28 +870,9 @@ var de_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1202
870
|
};
|
|
1203
871
|
return response;
|
|
1204
872
|
}, "de_DescribeAttackStatisticsCommand");
|
|
1205
|
-
var de_DescribeAttackStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
|
-
const parsedOutput = {
|
|
1207
|
-
...output,
|
|
1208
|
-
body: await parseErrorBody(output.body, context)
|
|
1209
|
-
};
|
|
1210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
-
switch (errorCode) {
|
|
1212
|
-
case "InternalErrorException":
|
|
1213
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1214
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
}, "de_DescribeAttackStatisticsCommandError");
|
|
1224
873
|
var de_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1225
874
|
if (output.statusCode >= 300) {
|
|
1226
|
-
return
|
|
875
|
+
return de_CommandError(output, context);
|
|
1227
876
|
}
|
|
1228
877
|
const data = await parseBody(output.body, context);
|
|
1229
878
|
let contents = {};
|
|
@@ -1234,31 +883,9 @@ var de_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1234
883
|
};
|
|
1235
884
|
return response;
|
|
1236
885
|
}, "de_DescribeDRTAccessCommand");
|
|
1237
|
-
var de_DescribeDRTAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context)
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "InternalErrorException":
|
|
1245
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1246
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ResourceNotFoundException":
|
|
1248
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
-
default:
|
|
1251
|
-
const parsedBody = parsedOutput.body;
|
|
1252
|
-
return throwDefaultError({
|
|
1253
|
-
output,
|
|
1254
|
-
parsedBody,
|
|
1255
|
-
errorCode
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
}, "de_DescribeDRTAccessCommandError");
|
|
1259
886
|
var de_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1260
887
|
if (output.statusCode >= 300) {
|
|
1261
|
-
return
|
|
888
|
+
return de_CommandError(output, context);
|
|
1262
889
|
}
|
|
1263
890
|
const data = await parseBody(output.body, context);
|
|
1264
891
|
let contents = {};
|
|
@@ -1269,31 +896,9 @@ var de_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1269
896
|
};
|
|
1270
897
|
return response;
|
|
1271
898
|
}, "de_DescribeEmergencyContactSettingsCommand");
|
|
1272
|
-
var de_DescribeEmergencyContactSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context)
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "InternalErrorException":
|
|
1280
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1281
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ResourceNotFoundException":
|
|
1283
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
return throwDefaultError({
|
|
1288
|
-
output,
|
|
1289
|
-
parsedBody,
|
|
1290
|
-
errorCode
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
}, "de_DescribeEmergencyContactSettingsCommandError");
|
|
1294
899
|
var de_DescribeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1295
900
|
if (output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
901
|
+
return de_CommandError(output, context);
|
|
1297
902
|
}
|
|
1298
903
|
const data = await parseBody(output.body, context);
|
|
1299
904
|
let contents = {};
|
|
@@ -1304,34 +909,9 @@ var de_DescribeProtectionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1304
909
|
};
|
|
1305
910
|
return response;
|
|
1306
911
|
}, "de_DescribeProtectionCommand");
|
|
1307
|
-
var de_DescribeProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context)
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "InternalErrorException":
|
|
1315
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1316
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "InvalidParameterException":
|
|
1318
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1319
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ResourceNotFoundException":
|
|
1321
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody,
|
|
1328
|
-
errorCode
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
}, "de_DescribeProtectionCommandError");
|
|
1332
912
|
var de_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1333
913
|
if (output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
914
|
+
return de_CommandError(output, context);
|
|
1335
915
|
}
|
|
1336
916
|
const data = await parseBody(output.body, context);
|
|
1337
917
|
let contents = {};
|
|
@@ -1342,66 +922,22 @@ var de_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1342
922
|
};
|
|
1343
923
|
return response;
|
|
1344
924
|
}, "de_DescribeProtectionGroupCommand");
|
|
1345
|
-
var de_DescribeProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1346
|
-
const parsedOutput = {
|
|
1347
|
-
...output,
|
|
1348
|
-
body: await parseErrorBody(output.body, context)
|
|
1349
|
-
};
|
|
1350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
|
-
switch (errorCode) {
|
|
1352
|
-
case "InternalErrorException":
|
|
1353
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1354
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ResourceNotFoundException":
|
|
1356
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1358
|
-
default:
|
|
1359
|
-
const parsedBody = parsedOutput.body;
|
|
1360
|
-
return throwDefaultError({
|
|
1361
|
-
output,
|
|
1362
|
-
parsedBody,
|
|
1363
|
-
errorCode
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
}, "de_DescribeProtectionGroupCommandError");
|
|
1367
925
|
var de_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1368
926
|
if (output.statusCode >= 300) {
|
|
1369
|
-
return
|
|
1370
|
-
}
|
|
1371
|
-
const data = await parseBody(output.body, context);
|
|
1372
|
-
let contents = {};
|
|
1373
|
-
contents = de_DescribeSubscriptionResponse(data, context);
|
|
1374
|
-
const response = {
|
|
1375
|
-
$metadata: deserializeMetadata(output),
|
|
1376
|
-
...contents
|
|
1377
|
-
};
|
|
1378
|
-
return response;
|
|
1379
|
-
}, "de_DescribeSubscriptionCommand");
|
|
1380
|
-
var de_DescribeSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
|
-
const parsedOutput = {
|
|
1382
|
-
...output,
|
|
1383
|
-
body: await parseErrorBody(output.body, context)
|
|
1384
|
-
};
|
|
1385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
-
switch (errorCode) {
|
|
1387
|
-
case "InternalErrorException":
|
|
1388
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1389
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ResourceNotFoundException":
|
|
1391
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
-
default:
|
|
1394
|
-
const parsedBody = parsedOutput.body;
|
|
1395
|
-
return throwDefaultError({
|
|
1396
|
-
output,
|
|
1397
|
-
parsedBody,
|
|
1398
|
-
errorCode
|
|
1399
|
-
});
|
|
927
|
+
return de_CommandError(output, context);
|
|
1400
928
|
}
|
|
1401
|
-
|
|
929
|
+
const data = await parseBody(output.body, context);
|
|
930
|
+
let contents = {};
|
|
931
|
+
contents = de_DescribeSubscriptionResponse(data, context);
|
|
932
|
+
const response = {
|
|
933
|
+
$metadata: deserializeMetadata(output),
|
|
934
|
+
...contents
|
|
935
|
+
};
|
|
936
|
+
return response;
|
|
937
|
+
}, "de_DescribeSubscriptionCommand");
|
|
1402
938
|
var de_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
939
|
if (output.statusCode >= 300) {
|
|
1404
|
-
return
|
|
940
|
+
return de_CommandError(output, context);
|
|
1405
941
|
}
|
|
1406
942
|
const data = await parseBody(output.body, context);
|
|
1407
943
|
let contents = {};
|
|
@@ -1412,40 +948,9 @@ var de_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(
|
|
|
1412
948
|
};
|
|
1413
949
|
return response;
|
|
1414
950
|
}, "de_DisableApplicationLayerAutomaticResponseCommand");
|
|
1415
|
-
var de_DisableApplicationLayerAutomaticResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context)
|
|
1419
|
-
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "InternalErrorException":
|
|
1423
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1424
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "InvalidOperationException":
|
|
1426
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1427
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "InvalidParameterException":
|
|
1429
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1430
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "OptimisticLockException":
|
|
1432
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1433
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ResourceNotFoundException":
|
|
1435
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1436
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1437
|
-
default:
|
|
1438
|
-
const parsedBody = parsedOutput.body;
|
|
1439
|
-
return throwDefaultError({
|
|
1440
|
-
output,
|
|
1441
|
-
parsedBody,
|
|
1442
|
-
errorCode
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
}, "de_DisableApplicationLayerAutomaticResponseCommandError");
|
|
1446
951
|
var de_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1447
952
|
if (output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
953
|
+
return de_CommandError(output, context);
|
|
1449
954
|
}
|
|
1450
955
|
const data = await parseBody(output.body, context);
|
|
1451
956
|
let contents = {};
|
|
@@ -1456,40 +961,9 @@ var de_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1456
961
|
};
|
|
1457
962
|
return response;
|
|
1458
963
|
}, "de_DisableProactiveEngagementCommand");
|
|
1459
|
-
var de_DisableProactiveEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1460
|
-
const parsedOutput = {
|
|
1461
|
-
...output,
|
|
1462
|
-
body: await parseErrorBody(output.body, context)
|
|
1463
|
-
};
|
|
1464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
-
switch (errorCode) {
|
|
1466
|
-
case "InternalErrorException":
|
|
1467
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1468
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "InvalidOperationException":
|
|
1470
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1471
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "InvalidParameterException":
|
|
1473
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1474
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "OptimisticLockException":
|
|
1476
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1477
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ResourceNotFoundException":
|
|
1479
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1481
|
-
default:
|
|
1482
|
-
const parsedBody = parsedOutput.body;
|
|
1483
|
-
return throwDefaultError({
|
|
1484
|
-
output,
|
|
1485
|
-
parsedBody,
|
|
1486
|
-
errorCode
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
}, "de_DisableProactiveEngagementCommandError");
|
|
1490
964
|
var de_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
965
|
if (output.statusCode >= 300) {
|
|
1492
|
-
return
|
|
966
|
+
return de_CommandError(output, context);
|
|
1493
967
|
}
|
|
1494
968
|
const data = await parseBody(output.body, context);
|
|
1495
969
|
let contents = {};
|
|
@@ -1500,43 +974,9 @@ var de_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1500
974
|
};
|
|
1501
975
|
return response;
|
|
1502
976
|
}, "de_DisassociateDRTLogBucketCommand");
|
|
1503
|
-
var de_DisassociateDRTLogBucketCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
|
-
const parsedOutput = {
|
|
1505
|
-
...output,
|
|
1506
|
-
body: await parseErrorBody(output.body, context)
|
|
1507
|
-
};
|
|
1508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
-
switch (errorCode) {
|
|
1510
|
-
case "AccessDeniedForDependencyException":
|
|
1511
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1512
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "InternalErrorException":
|
|
1514
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1515
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "InvalidOperationException":
|
|
1517
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1518
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "NoAssociatedRoleException":
|
|
1520
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1521
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "OptimisticLockException":
|
|
1523
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1524
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ResourceNotFoundException":
|
|
1526
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
}, "de_DisassociateDRTLogBucketCommandError");
|
|
1537
977
|
var de_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
978
|
if (output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
979
|
+
return de_CommandError(output, context);
|
|
1540
980
|
}
|
|
1541
981
|
const data = await parseBody(output.body, context);
|
|
1542
982
|
let contents = {};
|
|
@@ -1547,37 +987,9 @@ var de_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1547
987
|
};
|
|
1548
988
|
return response;
|
|
1549
989
|
}, "de_DisassociateDRTRoleCommand");
|
|
1550
|
-
var de_DisassociateDRTRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context)
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "InternalErrorException":
|
|
1558
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1559
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "InvalidOperationException":
|
|
1561
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1562
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "OptimisticLockException":
|
|
1564
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1565
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ResourceNotFoundException":
|
|
1567
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
return throwDefaultError({
|
|
1572
|
-
output,
|
|
1573
|
-
parsedBody,
|
|
1574
|
-
errorCode
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
}, "de_DisassociateDRTRoleCommandError");
|
|
1578
990
|
var de_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1579
991
|
if (output.statusCode >= 300) {
|
|
1580
|
-
return
|
|
992
|
+
return de_CommandError(output, context);
|
|
1581
993
|
}
|
|
1582
994
|
const data = await parseBody(output.body, context);
|
|
1583
995
|
let contents = {};
|
|
@@ -1588,40 +1000,9 @@ var de_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1588
1000
|
};
|
|
1589
1001
|
return response;
|
|
1590
1002
|
}, "de_DisassociateHealthCheckCommand");
|
|
1591
|
-
var de_DisassociateHealthCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1592
|
-
const parsedOutput = {
|
|
1593
|
-
...output,
|
|
1594
|
-
body: await parseErrorBody(output.body, context)
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "InternalErrorException":
|
|
1599
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1600
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "InvalidParameterException":
|
|
1602
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1603
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "InvalidResourceException":
|
|
1605
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1606
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "OptimisticLockException":
|
|
1608
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1609
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ResourceNotFoundException":
|
|
1611
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1612
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1613
|
-
default:
|
|
1614
|
-
const parsedBody = parsedOutput.body;
|
|
1615
|
-
return throwDefaultError({
|
|
1616
|
-
output,
|
|
1617
|
-
parsedBody,
|
|
1618
|
-
errorCode
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
}, "de_DisassociateHealthCheckCommandError");
|
|
1622
1003
|
var de_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1623
1004
|
if (output.statusCode >= 300) {
|
|
1624
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1625
1006
|
}
|
|
1626
1007
|
const data = await parseBody(output.body, context);
|
|
1627
1008
|
let contents = {};
|
|
@@ -1632,43 +1013,9 @@ var de_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(a
|
|
|
1632
1013
|
};
|
|
1633
1014
|
return response;
|
|
1634
1015
|
}, "de_EnableApplicationLayerAutomaticResponseCommand");
|
|
1635
|
-
var de_EnableApplicationLayerAutomaticResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context)
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "InternalErrorException":
|
|
1643
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1644
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "InvalidOperationException":
|
|
1646
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1647
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "InvalidParameterException":
|
|
1649
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1650
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "LimitsExceededException":
|
|
1652
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
1653
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "OptimisticLockException":
|
|
1655
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1656
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ResourceNotFoundException":
|
|
1658
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1660
|
-
default:
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody,
|
|
1665
|
-
errorCode
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
}, "de_EnableApplicationLayerAutomaticResponseCommandError");
|
|
1669
1016
|
var de_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
1017
|
if (output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
1018
|
+
return de_CommandError(output, context);
|
|
1672
1019
|
}
|
|
1673
1020
|
const data = await parseBody(output.body, context);
|
|
1674
1021
|
let contents = {};
|
|
@@ -1679,40 +1026,9 @@ var de_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1679
1026
|
};
|
|
1680
1027
|
return response;
|
|
1681
1028
|
}, "de_EnableProactiveEngagementCommand");
|
|
1682
|
-
var de_EnableProactiveEngagementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
-
const parsedOutput = {
|
|
1684
|
-
...output,
|
|
1685
|
-
body: await parseErrorBody(output.body, context)
|
|
1686
|
-
};
|
|
1687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
-
switch (errorCode) {
|
|
1689
|
-
case "InternalErrorException":
|
|
1690
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1691
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "InvalidOperationException":
|
|
1693
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1694
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "InvalidParameterException":
|
|
1696
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1697
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "OptimisticLockException":
|
|
1699
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1700
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ResourceNotFoundException":
|
|
1702
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1704
|
-
default:
|
|
1705
|
-
const parsedBody = parsedOutput.body;
|
|
1706
|
-
return throwDefaultError({
|
|
1707
|
-
output,
|
|
1708
|
-
parsedBody,
|
|
1709
|
-
errorCode
|
|
1710
|
-
});
|
|
1711
|
-
}
|
|
1712
|
-
}, "de_EnableProactiveEngagementCommandError");
|
|
1713
1029
|
var de_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1714
1030
|
if (output.statusCode >= 300) {
|
|
1715
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1716
1032
|
}
|
|
1717
1033
|
const data = await parseBody(output.body, context);
|
|
1718
1034
|
let contents = {};
|
|
@@ -1723,28 +1039,9 @@ var de_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1723
1039
|
};
|
|
1724
1040
|
return response;
|
|
1725
1041
|
}, "de_GetSubscriptionStateCommand");
|
|
1726
|
-
var de_GetSubscriptionStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1727
|
-
const parsedOutput = {
|
|
1728
|
-
...output,
|
|
1729
|
-
body: await parseErrorBody(output.body, context)
|
|
1730
|
-
};
|
|
1731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
|
-
switch (errorCode) {
|
|
1733
|
-
case "InternalErrorException":
|
|
1734
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1735
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
}, "de_GetSubscriptionStateCommandError");
|
|
1745
1042
|
var de_ListAttacksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1746
1043
|
if (output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1044
|
+
return de_CommandError(output, context);
|
|
1748
1045
|
}
|
|
1749
1046
|
const data = await parseBody(output.body, context);
|
|
1750
1047
|
let contents = {};
|
|
@@ -1754,35 +1051,10 @@ var de_ListAttacksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1754
1051
|
...contents
|
|
1755
1052
|
};
|
|
1756
1053
|
return response;
|
|
1757
|
-
}, "de_ListAttacksCommand");
|
|
1758
|
-
var de_ListAttacksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context)
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "InternalErrorException":
|
|
1766
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1767
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InvalidOperationException":
|
|
1769
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1770
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "InvalidParameterException":
|
|
1772
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1773
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1774
|
-
default:
|
|
1775
|
-
const parsedBody = parsedOutput.body;
|
|
1776
|
-
return throwDefaultError({
|
|
1777
|
-
output,
|
|
1778
|
-
parsedBody,
|
|
1779
|
-
errorCode
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
}, "de_ListAttacksCommandError");
|
|
1054
|
+
}, "de_ListAttacksCommand");
|
|
1783
1055
|
var de_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1784
1056
|
if (output.statusCode >= 300) {
|
|
1785
|
-
return
|
|
1057
|
+
return de_CommandError(output, context);
|
|
1786
1058
|
}
|
|
1787
1059
|
const data = await parseBody(output.body, context);
|
|
1788
1060
|
let contents = {};
|
|
@@ -1793,34 +1065,9 @@ var de_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1793
1065
|
};
|
|
1794
1066
|
return response;
|
|
1795
1067
|
}, "de_ListProtectionGroupsCommand");
|
|
1796
|
-
var de_ListProtectionGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1797
|
-
const parsedOutput = {
|
|
1798
|
-
...output,
|
|
1799
|
-
body: await parseErrorBody(output.body, context)
|
|
1800
|
-
};
|
|
1801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
-
switch (errorCode) {
|
|
1803
|
-
case "InternalErrorException":
|
|
1804
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1805
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "InvalidPaginationTokenException":
|
|
1807
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1808
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ResourceNotFoundException":
|
|
1810
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1811
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1812
|
-
default:
|
|
1813
|
-
const parsedBody = parsedOutput.body;
|
|
1814
|
-
return throwDefaultError({
|
|
1815
|
-
output,
|
|
1816
|
-
parsedBody,
|
|
1817
|
-
errorCode
|
|
1818
|
-
});
|
|
1819
|
-
}
|
|
1820
|
-
}, "de_ListProtectionGroupsCommandError");
|
|
1821
1068
|
var de_ListProtectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1822
1069
|
if (output.statusCode >= 300) {
|
|
1823
|
-
return
|
|
1070
|
+
return de_CommandError(output, context);
|
|
1824
1071
|
}
|
|
1825
1072
|
const data = await parseBody(output.body, context);
|
|
1826
1073
|
let contents = {};
|
|
@@ -1831,34 +1078,9 @@ var de_ListProtectionsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1831
1078
|
};
|
|
1832
1079
|
return response;
|
|
1833
1080
|
}, "de_ListProtectionsCommand");
|
|
1834
|
-
var de_ListProtectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1835
|
-
const parsedOutput = {
|
|
1836
|
-
...output,
|
|
1837
|
-
body: await parseErrorBody(output.body, context)
|
|
1838
|
-
};
|
|
1839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
|
-
switch (errorCode) {
|
|
1841
|
-
case "InternalErrorException":
|
|
1842
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1843
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "InvalidPaginationTokenException":
|
|
1845
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1846
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "ResourceNotFoundException":
|
|
1848
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1849
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1850
|
-
default:
|
|
1851
|
-
const parsedBody = parsedOutput.body;
|
|
1852
|
-
return throwDefaultError({
|
|
1853
|
-
output,
|
|
1854
|
-
parsedBody,
|
|
1855
|
-
errorCode
|
|
1856
|
-
});
|
|
1857
|
-
}
|
|
1858
|
-
}, "de_ListProtectionsCommandError");
|
|
1859
1081
|
var de_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
1082
|
if (output.statusCode >= 300) {
|
|
1861
|
-
return
|
|
1083
|
+
return de_CommandError(output, context);
|
|
1862
1084
|
}
|
|
1863
1085
|
const data = await parseBody(output.body, context);
|
|
1864
1086
|
let contents = {};
|
|
@@ -1869,34 +1091,9 @@ var de_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (out
|
|
|
1869
1091
|
};
|
|
1870
1092
|
return response;
|
|
1871
1093
|
}, "de_ListResourcesInProtectionGroupCommand");
|
|
1872
|
-
var de_ListResourcesInProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context)
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "InternalErrorException":
|
|
1880
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1881
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "InvalidPaginationTokenException":
|
|
1883
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1884
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ResourceNotFoundException":
|
|
1886
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1888
|
-
default:
|
|
1889
|
-
const parsedBody = parsedOutput.body;
|
|
1890
|
-
return throwDefaultError({
|
|
1891
|
-
output,
|
|
1892
|
-
parsedBody,
|
|
1893
|
-
errorCode
|
|
1894
|
-
});
|
|
1895
|
-
}
|
|
1896
|
-
}, "de_ListResourcesInProtectionGroupCommandError");
|
|
1897
1094
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1898
1095
|
if (output.statusCode >= 300) {
|
|
1899
|
-
return
|
|
1096
|
+
return de_CommandError(output, context);
|
|
1900
1097
|
}
|
|
1901
1098
|
const data = await parseBody(output.body, context);
|
|
1902
1099
|
let contents = {};
|
|
@@ -1907,34 +1104,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1907
1104
|
};
|
|
1908
1105
|
return response;
|
|
1909
1106
|
}, "de_ListTagsForResourceCommand");
|
|
1910
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1911
|
-
const parsedOutput = {
|
|
1912
|
-
...output,
|
|
1913
|
-
body: await parseErrorBody(output.body, context)
|
|
1914
|
-
};
|
|
1915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
|
-
switch (errorCode) {
|
|
1917
|
-
case "InternalErrorException":
|
|
1918
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1919
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "InvalidResourceException":
|
|
1921
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1922
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "ResourceNotFoundException":
|
|
1924
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1925
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1926
|
-
default:
|
|
1927
|
-
const parsedBody = parsedOutput.body;
|
|
1928
|
-
return throwDefaultError({
|
|
1929
|
-
output,
|
|
1930
|
-
parsedBody,
|
|
1931
|
-
errorCode
|
|
1932
|
-
});
|
|
1933
|
-
}
|
|
1934
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1935
1107
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
1108
|
if (output.statusCode >= 300) {
|
|
1937
|
-
return
|
|
1109
|
+
return de_CommandError(output, context);
|
|
1938
1110
|
}
|
|
1939
1111
|
const data = await parseBody(output.body, context);
|
|
1940
1112
|
let contents = {};
|
|
@@ -1945,37 +1117,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1945
1117
|
};
|
|
1946
1118
|
return response;
|
|
1947
1119
|
}, "de_TagResourceCommand");
|
|
1948
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1949
|
-
const parsedOutput = {
|
|
1950
|
-
...output,
|
|
1951
|
-
body: await parseErrorBody(output.body, context)
|
|
1952
|
-
};
|
|
1953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
-
switch (errorCode) {
|
|
1955
|
-
case "InternalErrorException":
|
|
1956
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1957
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "InvalidParameterException":
|
|
1959
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1960
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "InvalidResourceException":
|
|
1962
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1963
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ResourceNotFoundException":
|
|
1965
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1966
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1967
|
-
default:
|
|
1968
|
-
const parsedBody = parsedOutput.body;
|
|
1969
|
-
return throwDefaultError({
|
|
1970
|
-
output,
|
|
1971
|
-
parsedBody,
|
|
1972
|
-
errorCode
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
}, "de_TagResourceCommandError");
|
|
1976
1120
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1977
1121
|
if (output.statusCode >= 300) {
|
|
1978
|
-
return
|
|
1122
|
+
return de_CommandError(output, context);
|
|
1979
1123
|
}
|
|
1980
1124
|
const data = await parseBody(output.body, context);
|
|
1981
1125
|
let contents = {};
|
|
@@ -1986,37 +1130,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1986
1130
|
};
|
|
1987
1131
|
return response;
|
|
1988
1132
|
}, "de_UntagResourceCommand");
|
|
1989
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1990
|
-
const parsedOutput = {
|
|
1991
|
-
...output,
|
|
1992
|
-
body: await parseErrorBody(output.body, context)
|
|
1993
|
-
};
|
|
1994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
-
switch (errorCode) {
|
|
1996
|
-
case "InternalErrorException":
|
|
1997
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1998
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InvalidParameterException":
|
|
2000
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
2001
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "InvalidResourceException":
|
|
2003
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
2004
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ResourceNotFoundException":
|
|
2006
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
2007
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
}, "de_UntagResourceCommandError");
|
|
2017
1133
|
var de_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
1134
|
if (output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
1135
|
+
return de_CommandError(output, context);
|
|
2020
1136
|
}
|
|
2021
1137
|
const data = await parseBody(output.body, context);
|
|
2022
1138
|
let contents = {};
|
|
@@ -2027,40 +1143,9 @@ var de_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(a
|
|
|
2027
1143
|
};
|
|
2028
1144
|
return response;
|
|
2029
1145
|
}, "de_UpdateApplicationLayerAutomaticResponseCommand");
|
|
2030
|
-
var de_UpdateApplicationLayerAutomaticResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
|
-
const parsedOutput = {
|
|
2032
|
-
...output,
|
|
2033
|
-
body: await parseErrorBody(output.body, context)
|
|
2034
|
-
};
|
|
2035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "InternalErrorException":
|
|
2038
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
2039
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "InvalidOperationException":
|
|
2041
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
2042
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "InvalidParameterException":
|
|
2044
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
2045
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "OptimisticLockException":
|
|
2047
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
2048
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ResourceNotFoundException":
|
|
2050
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
2051
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2052
|
-
default:
|
|
2053
|
-
const parsedBody = parsedOutput.body;
|
|
2054
|
-
return throwDefaultError({
|
|
2055
|
-
output,
|
|
2056
|
-
parsedBody,
|
|
2057
|
-
errorCode
|
|
2058
|
-
});
|
|
2059
|
-
}
|
|
2060
|
-
}, "de_UpdateApplicationLayerAutomaticResponseCommandError");
|
|
2061
1146
|
var de_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2062
1147
|
if (output.statusCode >= 300) {
|
|
2063
|
-
return
|
|
1148
|
+
return de_CommandError(output, context);
|
|
2064
1149
|
}
|
|
2065
1150
|
const data = await parseBody(output.body, context);
|
|
2066
1151
|
let contents = {};
|
|
@@ -2071,37 +1156,9 @@ var de_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2071
1156
|
};
|
|
2072
1157
|
return response;
|
|
2073
1158
|
}, "de_UpdateEmergencyContactSettingsCommand");
|
|
2074
|
-
var de_UpdateEmergencyContactSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2075
|
-
const parsedOutput = {
|
|
2076
|
-
...output,
|
|
2077
|
-
body: await parseErrorBody(output.body, context)
|
|
2078
|
-
};
|
|
2079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
-
switch (errorCode) {
|
|
2081
|
-
case "InternalErrorException":
|
|
2082
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
2083
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "InvalidParameterException":
|
|
2085
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
2086
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "OptimisticLockException":
|
|
2088
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
2089
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ResourceNotFoundException":
|
|
2091
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
2092
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
}, "de_UpdateEmergencyContactSettingsCommandError");
|
|
2102
1159
|
var de_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1160
|
if (output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
2105
1162
|
}
|
|
2106
1163
|
const data = await parseBody(output.body, context);
|
|
2107
1164
|
let contents = {};
|
|
@@ -2112,37 +1169,9 @@ var de_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2112
1169
|
};
|
|
2113
1170
|
return response;
|
|
2114
1171
|
}, "de_UpdateProtectionGroupCommand");
|
|
2115
|
-
var de_UpdateProtectionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
|
-
const parsedOutput = {
|
|
2117
|
-
...output,
|
|
2118
|
-
body: await parseErrorBody(output.body, context)
|
|
2119
|
-
};
|
|
2120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
-
switch (errorCode) {
|
|
2122
|
-
case "InternalErrorException":
|
|
2123
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
2124
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "InvalidParameterException":
|
|
2126
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
2127
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "OptimisticLockException":
|
|
2129
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
2130
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ResourceNotFoundException":
|
|
2132
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
2133
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2134
|
-
default:
|
|
2135
|
-
const parsedBody = parsedOutput.body;
|
|
2136
|
-
return throwDefaultError({
|
|
2137
|
-
output,
|
|
2138
|
-
parsedBody,
|
|
2139
|
-
errorCode
|
|
2140
|
-
});
|
|
2141
|
-
}
|
|
2142
|
-
}, "de_UpdateProtectionGroupCommandError");
|
|
2143
1172
|
var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
1173
|
if (output.statusCode >= 300) {
|
|
2145
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
2146
1175
|
}
|
|
2147
1176
|
const data = await parseBody(output.body, context);
|
|
2148
1177
|
let contents = {};
|
|
@@ -2153,28 +1182,52 @@ var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2153
1182
|
};
|
|
2154
1183
|
return response;
|
|
2155
1184
|
}, "de_UpdateSubscriptionCommand");
|
|
2156
|
-
var
|
|
1185
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2157
1186
|
const parsedOutput = {
|
|
2158
1187
|
...output,
|
|
2159
1188
|
body: await parseErrorBody(output.body, context)
|
|
2160
1189
|
};
|
|
2161
1190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
1191
|
switch (errorCode) {
|
|
1192
|
+
case "AccessDeniedForDependencyException":
|
|
1193
|
+
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1194
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
2163
1195
|
case "InternalErrorException":
|
|
2164
1196
|
case "com.amazonaws.shield#InternalErrorException":
|
|
2165
1197
|
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1198
|
+
case "InvalidOperationException":
|
|
1199
|
+
case "com.amazonaws.shield#InvalidOperationException":
|
|
1200
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2166
1201
|
case "InvalidParameterException":
|
|
2167
1202
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
2168
1203
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "
|
|
2170
|
-
case "com.amazonaws.shield#
|
|
2171
|
-
throw await
|
|
1204
|
+
case "LimitsExceededException":
|
|
1205
|
+
case "com.amazonaws.shield#LimitsExceededException":
|
|
1206
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
1207
|
+
case "NoAssociatedRoleException":
|
|
1208
|
+
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1209
|
+
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
2172
1210
|
case "OptimisticLockException":
|
|
2173
1211
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
2174
1212
|
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
2175
1213
|
case "ResourceNotFoundException":
|
|
2176
1214
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
2177
1215
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
+
case "InvalidResourceException":
|
|
1217
|
+
case "com.amazonaws.shield#InvalidResourceException":
|
|
1218
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1219
|
+
case "ResourceAlreadyExistsException":
|
|
1220
|
+
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
1221
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1222
|
+
case "LockedSubscriptionException":
|
|
1223
|
+
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
1224
|
+
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
1225
|
+
case "AccessDeniedException":
|
|
1226
|
+
case "com.amazonaws.shield#AccessDeniedException":
|
|
1227
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1228
|
+
case "InvalidPaginationTokenException":
|
|
1229
|
+
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1230
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2178
1231
|
default:
|
|
2179
1232
|
const parsedBody = parsedOutput.body;
|
|
2180
1233
|
return throwDefaultError({
|
|
@@ -2183,7 +1236,7 @@ var de_UpdateSubscriptionCommandError = /* @__PURE__ */ __name(async (output, co
|
|
|
2183
1236
|
errorCode
|
|
2184
1237
|
});
|
|
2185
1238
|
}
|
|
2186
|
-
}, "
|
|
1239
|
+
}, "de_CommandError");
|
|
2187
1240
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2188
1241
|
const body = parsedOutput.body;
|
|
2189
1242
|
const deserialized = (0, import_smithy_client._json)(body);
|