@aws-sdk/client-eventbridge 3.112.0 → 3.121.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +280 -225
- package/dist-es/protocols/Aws_json1_1.js +280 -225
- package/package.json +7 -7
|
@@ -584,8 +584,7 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
584
584
|
body: await parseBody(output.body, context),
|
|
585
585
|
};
|
|
586
586
|
let response;
|
|
587
|
-
|
|
588
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
588
|
switch (errorCode) {
|
|
590
589
|
case "ConcurrentModificationException":
|
|
591
590
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -604,10 +603,12 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
604
603
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
605
604
|
default:
|
|
606
605
|
const parsedBody = parsedOutput.body;
|
|
606
|
+
const $metadata = deserializeMetadata(output);
|
|
607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
607
608
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
608
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
609
610
|
$fault: "client",
|
|
610
|
-
$metadata
|
|
611
|
+
$metadata,
|
|
611
612
|
});
|
|
612
613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
613
614
|
}
|
|
@@ -632,8 +633,7 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
632
633
|
body: await parseBody(output.body, context),
|
|
633
634
|
};
|
|
634
635
|
let response;
|
|
635
|
-
|
|
636
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
637
|
switch (errorCode) {
|
|
638
638
|
case "ConcurrentModificationException":
|
|
639
639
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -649,10 +649,12 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
649
649
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
650
650
|
default:
|
|
651
651
|
const parsedBody = parsedOutput.body;
|
|
652
|
+
const $metadata = deserializeMetadata(output);
|
|
653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
652
654
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
653
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
654
656
|
$fault: "client",
|
|
655
|
-
$metadata
|
|
657
|
+
$metadata,
|
|
656
658
|
});
|
|
657
659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
658
660
|
}
|
|
@@ -677,8 +679,7 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
677
679
|
body: await parseBody(output.body, context),
|
|
678
680
|
};
|
|
679
681
|
let response;
|
|
680
|
-
|
|
681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
683
|
switch (errorCode) {
|
|
683
684
|
case "InternalException":
|
|
684
685
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -694,10 +695,12 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
694
695
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
695
696
|
default:
|
|
696
697
|
const parsedBody = parsedOutput.body;
|
|
698
|
+
const $metadata = deserializeMetadata(output);
|
|
699
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
697
700
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
699
702
|
$fault: "client",
|
|
700
|
-
$metadata
|
|
703
|
+
$metadata,
|
|
701
704
|
});
|
|
702
705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
703
706
|
}
|
|
@@ -722,8 +725,7 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
722
725
|
body: await parseBody(output.body, context),
|
|
723
726
|
};
|
|
724
727
|
let response;
|
|
725
|
-
|
|
726
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
729
|
switch (errorCode) {
|
|
728
730
|
case "ConcurrentModificationException":
|
|
729
731
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -745,10 +747,12 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
745
747
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
746
748
|
default:
|
|
747
749
|
const parsedBody = parsedOutput.body;
|
|
750
|
+
const $metadata = deserializeMetadata(output);
|
|
751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
748
752
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
749
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
750
754
|
$fault: "client",
|
|
751
|
-
$metadata
|
|
755
|
+
$metadata,
|
|
752
756
|
});
|
|
753
757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
754
758
|
}
|
|
@@ -773,8 +777,7 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
773
777
|
body: await parseBody(output.body, context),
|
|
774
778
|
};
|
|
775
779
|
let response;
|
|
776
|
-
|
|
777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
781
|
switch (errorCode) {
|
|
779
782
|
case "InternalException":
|
|
780
783
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -787,10 +790,12 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
787
790
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
788
791
|
default:
|
|
789
792
|
const parsedBody = parsedOutput.body;
|
|
793
|
+
const $metadata = deserializeMetadata(output);
|
|
794
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
790
795
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
791
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
796
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
792
797
|
$fault: "client",
|
|
793
|
-
$metadata
|
|
798
|
+
$metadata,
|
|
794
799
|
});
|
|
795
800
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
796
801
|
}
|
|
@@ -815,8 +820,7 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
815
820
|
body: await parseBody(output.body, context),
|
|
816
821
|
};
|
|
817
822
|
let response;
|
|
818
|
-
|
|
819
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
824
|
switch (errorCode) {
|
|
821
825
|
case "InternalException":
|
|
822
826
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -829,10 +833,12 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
829
833
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
830
834
|
default:
|
|
831
835
|
const parsedBody = parsedOutput.body;
|
|
836
|
+
const $metadata = deserializeMetadata(output);
|
|
837
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
832
838
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
839
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
834
840
|
$fault: "client",
|
|
835
|
-
$metadata
|
|
841
|
+
$metadata,
|
|
836
842
|
});
|
|
837
843
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
844
|
}
|
|
@@ -857,8 +863,7 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
857
863
|
body: await parseBody(output.body, context),
|
|
858
864
|
};
|
|
859
865
|
let response;
|
|
860
|
-
|
|
861
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
867
|
switch (errorCode) {
|
|
863
868
|
case "ConcurrentModificationException":
|
|
864
869
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -883,10 +888,12 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
883
888
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
884
889
|
default:
|
|
885
890
|
const parsedBody = parsedOutput.body;
|
|
891
|
+
const $metadata = deserializeMetadata(output);
|
|
892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
886
893
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
887
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
888
895
|
$fault: "client",
|
|
889
|
-
$metadata
|
|
896
|
+
$metadata,
|
|
890
897
|
});
|
|
891
898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
892
899
|
}
|
|
@@ -911,8 +918,7 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
911
918
|
body: await parseBody(output.body, context),
|
|
912
919
|
};
|
|
913
920
|
let response;
|
|
914
|
-
|
|
915
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
922
|
switch (errorCode) {
|
|
917
923
|
case "ConcurrentModificationException":
|
|
918
924
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -931,10 +937,12 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
931
937
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
932
938
|
default:
|
|
933
939
|
const parsedBody = parsedOutput.body;
|
|
940
|
+
const $metadata = deserializeMetadata(output);
|
|
941
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
934
942
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
943
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
936
944
|
$fault: "client",
|
|
937
|
-
$metadata
|
|
945
|
+
$metadata,
|
|
938
946
|
});
|
|
939
947
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
940
948
|
}
|
|
@@ -956,8 +964,7 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
956
964
|
body: await parseBody(output.body, context),
|
|
957
965
|
};
|
|
958
966
|
let response;
|
|
959
|
-
|
|
960
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
968
|
switch (errorCode) {
|
|
962
969
|
case "ConcurrentModificationException":
|
|
963
970
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -976,10 +983,12 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
976
983
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
977
984
|
default:
|
|
978
985
|
const parsedBody = parsedOutput.body;
|
|
986
|
+
const $metadata = deserializeMetadata(output);
|
|
987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
979
988
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
980
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
981
990
|
$fault: "client",
|
|
982
|
-
$metadata
|
|
991
|
+
$metadata,
|
|
983
992
|
});
|
|
984
993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
985
994
|
}
|
|
@@ -1004,8 +1013,7 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
1004
1013
|
body: await parseBody(output.body, context),
|
|
1005
1014
|
};
|
|
1006
1015
|
let response;
|
|
1007
|
-
|
|
1008
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
1017
|
switch (errorCode) {
|
|
1010
1018
|
case "ConcurrentModificationException":
|
|
1011
1019
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1018,10 +1026,12 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
1018
1026
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1019
1027
|
default:
|
|
1020
1028
|
const parsedBody = parsedOutput.body;
|
|
1029
|
+
const $metadata = deserializeMetadata(output);
|
|
1030
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1021
1031
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1032
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1023
1033
|
$fault: "client",
|
|
1024
|
-
$metadata
|
|
1034
|
+
$metadata,
|
|
1025
1035
|
});
|
|
1026
1036
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1027
1037
|
}
|
|
@@ -1046,8 +1056,7 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
1046
1056
|
body: await parseBody(output.body, context),
|
|
1047
1057
|
};
|
|
1048
1058
|
let response;
|
|
1049
|
-
|
|
1050
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
1060
|
switch (errorCode) {
|
|
1052
1061
|
case "ConcurrentModificationException":
|
|
1053
1062
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1060,10 +1069,12 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
1060
1069
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1061
1070
|
default:
|
|
1062
1071
|
const parsedBody = parsedOutput.body;
|
|
1072
|
+
const $metadata = deserializeMetadata(output);
|
|
1073
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1063
1074
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1064
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1075
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1065
1076
|
$fault: "client",
|
|
1066
|
-
$metadata
|
|
1077
|
+
$metadata,
|
|
1067
1078
|
});
|
|
1068
1079
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1069
1080
|
}
|
|
@@ -1088,8 +1099,7 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
1088
1099
|
body: await parseBody(output.body, context),
|
|
1089
1100
|
};
|
|
1090
1101
|
let response;
|
|
1091
|
-
|
|
1092
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1103
|
switch (errorCode) {
|
|
1094
1104
|
case "ConcurrentModificationException":
|
|
1095
1105
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1102,10 +1112,12 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
1102
1112
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1103
1113
|
default:
|
|
1104
1114
|
const parsedBody = parsedOutput.body;
|
|
1115
|
+
const $metadata = deserializeMetadata(output);
|
|
1116
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1105
1117
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1118
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1107
1119
|
$fault: "client",
|
|
1108
|
-
$metadata
|
|
1120
|
+
$metadata,
|
|
1109
1121
|
});
|
|
1110
1122
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1111
1123
|
}
|
|
@@ -1130,8 +1142,7 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1130
1142
|
body: await parseBody(output.body, context),
|
|
1131
1143
|
};
|
|
1132
1144
|
let response;
|
|
1133
|
-
|
|
1134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1146
|
switch (errorCode) {
|
|
1136
1147
|
case "ConcurrentModificationException":
|
|
1137
1148
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1144,10 +1155,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1144
1155
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1145
1156
|
default:
|
|
1146
1157
|
const parsedBody = parsedOutput.body;
|
|
1158
|
+
const $metadata = deserializeMetadata(output);
|
|
1159
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1147
1160
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1149
1162
|
$fault: "client",
|
|
1150
|
-
$metadata
|
|
1163
|
+
$metadata,
|
|
1151
1164
|
});
|
|
1152
1165
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1153
1166
|
}
|
|
@@ -1172,8 +1185,7 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1172
1185
|
body: await parseBody(output.body, context),
|
|
1173
1186
|
};
|
|
1174
1187
|
let response;
|
|
1175
|
-
|
|
1176
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1189
|
switch (errorCode) {
|
|
1178
1190
|
case "ConcurrentModificationException":
|
|
1179
1191
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1186,10 +1198,12 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1186
1198
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1187
1199
|
default:
|
|
1188
1200
|
const parsedBody = parsedOutput.body;
|
|
1201
|
+
const $metadata = deserializeMetadata(output);
|
|
1202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1189
1203
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1190
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1191
1205
|
$fault: "client",
|
|
1192
|
-
$metadata
|
|
1206
|
+
$metadata,
|
|
1193
1207
|
});
|
|
1194
1208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1195
1209
|
}
|
|
@@ -1211,8 +1225,7 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1211
1225
|
body: await parseBody(output.body, context),
|
|
1212
1226
|
};
|
|
1213
1227
|
let response;
|
|
1214
|
-
|
|
1215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1229
|
switch (errorCode) {
|
|
1217
1230
|
case "ConcurrentModificationException":
|
|
1218
1231
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1222,10 +1235,12 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1222
1235
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1223
1236
|
default:
|
|
1224
1237
|
const parsedBody = parsedOutput.body;
|
|
1238
|
+
const $metadata = deserializeMetadata(output);
|
|
1239
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1225
1240
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1226
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1241
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1227
1242
|
$fault: "client",
|
|
1228
|
-
$metadata
|
|
1243
|
+
$metadata,
|
|
1229
1244
|
});
|
|
1230
1245
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1231
1246
|
}
|
|
@@ -1247,8 +1262,7 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1247
1262
|
body: await parseBody(output.body, context),
|
|
1248
1263
|
};
|
|
1249
1264
|
let response;
|
|
1250
|
-
|
|
1251
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1266
|
switch (errorCode) {
|
|
1253
1267
|
case "ConcurrentModificationException":
|
|
1254
1268
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1261,10 +1275,12 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1261
1275
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1262
1276
|
default:
|
|
1263
1277
|
const parsedBody = parsedOutput.body;
|
|
1278
|
+
const $metadata = deserializeMetadata(output);
|
|
1279
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1264
1280
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1281
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1266
1282
|
$fault: "client",
|
|
1267
|
-
$metadata
|
|
1283
|
+
$metadata,
|
|
1268
1284
|
});
|
|
1269
1285
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1270
1286
|
}
|
|
@@ -1286,8 +1302,7 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1286
1302
|
body: await parseBody(output.body, context),
|
|
1287
1303
|
};
|
|
1288
1304
|
let response;
|
|
1289
|
-
|
|
1290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
1306
|
switch (errorCode) {
|
|
1292
1307
|
case "ConcurrentModificationException":
|
|
1293
1308
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1303,10 +1318,12 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1303
1318
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1304
1319
|
default:
|
|
1305
1320
|
const parsedBody = parsedOutput.body;
|
|
1321
|
+
const $metadata = deserializeMetadata(output);
|
|
1322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1306
1323
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1308
1325
|
$fault: "client",
|
|
1309
|
-
$metadata
|
|
1326
|
+
$metadata,
|
|
1310
1327
|
});
|
|
1311
1328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1329
|
}
|
|
@@ -1331,8 +1348,7 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1331
1348
|
body: await parseBody(output.body, context),
|
|
1332
1349
|
};
|
|
1333
1350
|
let response;
|
|
1334
|
-
|
|
1335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1352
|
switch (errorCode) {
|
|
1337
1353
|
case "InternalException":
|
|
1338
1354
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1342,10 +1358,12 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1342
1358
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1343
1359
|
default:
|
|
1344
1360
|
const parsedBody = parsedOutput.body;
|
|
1361
|
+
const $metadata = deserializeMetadata(output);
|
|
1362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1345
1363
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1347
1365
|
$fault: "client",
|
|
1348
|
-
$metadata
|
|
1366
|
+
$metadata,
|
|
1349
1367
|
});
|
|
1350
1368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1351
1369
|
}
|
|
@@ -1370,8 +1388,7 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1370
1388
|
body: await parseBody(output.body, context),
|
|
1371
1389
|
};
|
|
1372
1390
|
let response;
|
|
1373
|
-
|
|
1374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
1392
|
switch (errorCode) {
|
|
1376
1393
|
case "InternalException":
|
|
1377
1394
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1384,10 +1401,12 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1384
1401
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1385
1402
|
default:
|
|
1386
1403
|
const parsedBody = parsedOutput.body;
|
|
1404
|
+
const $metadata = deserializeMetadata(output);
|
|
1405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1387
1406
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1389
1408
|
$fault: "client",
|
|
1390
|
-
$metadata
|
|
1409
|
+
$metadata,
|
|
1391
1410
|
});
|
|
1392
1411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1393
1412
|
}
|
|
@@ -1412,8 +1431,7 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1412
1431
|
body: await parseBody(output.body, context),
|
|
1413
1432
|
};
|
|
1414
1433
|
let response;
|
|
1415
|
-
|
|
1416
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
1435
|
switch (errorCode) {
|
|
1418
1436
|
case "InternalException":
|
|
1419
1437
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1423,10 +1441,12 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1423
1441
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1424
1442
|
default:
|
|
1425
1443
|
const parsedBody = parsedOutput.body;
|
|
1444
|
+
const $metadata = deserializeMetadata(output);
|
|
1445
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1426
1446
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1447
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1428
1448
|
$fault: "client",
|
|
1429
|
-
$metadata
|
|
1449
|
+
$metadata,
|
|
1430
1450
|
});
|
|
1431
1451
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1432
1452
|
}
|
|
@@ -1451,8 +1471,7 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
|
|
|
1451
1471
|
body: await parseBody(output.body, context),
|
|
1452
1472
|
};
|
|
1453
1473
|
let response;
|
|
1454
|
-
|
|
1455
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1475
|
switch (errorCode) {
|
|
1457
1476
|
case "InternalException":
|
|
1458
1477
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1462,10 +1481,12 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
|
|
|
1462
1481
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1463
1482
|
default:
|
|
1464
1483
|
const parsedBody = parsedOutput.body;
|
|
1484
|
+
const $metadata = deserializeMetadata(output);
|
|
1485
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1465
1486
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1487
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1467
1488
|
$fault: "client",
|
|
1468
|
-
$metadata
|
|
1489
|
+
$metadata,
|
|
1469
1490
|
});
|
|
1470
1491
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1471
1492
|
}
|
|
@@ -1490,8 +1511,7 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1490
1511
|
body: await parseBody(output.body, context),
|
|
1491
1512
|
};
|
|
1492
1513
|
let response;
|
|
1493
|
-
|
|
1494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
1515
|
switch (errorCode) {
|
|
1496
1516
|
case "InternalException":
|
|
1497
1517
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1501,10 +1521,12 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1501
1521
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1502
1522
|
default:
|
|
1503
1523
|
const parsedBody = parsedOutput.body;
|
|
1524
|
+
const $metadata = deserializeMetadata(output);
|
|
1525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1504
1526
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1505
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1506
1528
|
$fault: "client",
|
|
1507
|
-
$metadata
|
|
1529
|
+
$metadata,
|
|
1508
1530
|
});
|
|
1509
1531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1510
1532
|
}
|
|
@@ -1529,8 +1551,7 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1529
1551
|
body: await parseBody(output.body, context),
|
|
1530
1552
|
};
|
|
1531
1553
|
let response;
|
|
1532
|
-
|
|
1533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1555
|
switch (errorCode) {
|
|
1535
1556
|
case "InternalException":
|
|
1536
1557
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1543,10 +1564,12 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1543
1564
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1544
1565
|
default:
|
|
1545
1566
|
const parsedBody = parsedOutput.body;
|
|
1567
|
+
const $metadata = deserializeMetadata(output);
|
|
1568
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1546
1569
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1548
1571
|
$fault: "client",
|
|
1549
|
-
$metadata
|
|
1572
|
+
$metadata,
|
|
1550
1573
|
});
|
|
1551
1574
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1552
1575
|
}
|
|
@@ -1571,8 +1594,7 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1571
1594
|
body: await parseBody(output.body, context),
|
|
1572
1595
|
};
|
|
1573
1596
|
let response;
|
|
1574
|
-
|
|
1575
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1598
|
switch (errorCode) {
|
|
1577
1599
|
case "InternalException":
|
|
1578
1600
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1585,10 +1607,12 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1585
1607
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1586
1608
|
default:
|
|
1587
1609
|
const parsedBody = parsedOutput.body;
|
|
1610
|
+
const $metadata = deserializeMetadata(output);
|
|
1611
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1588
1612
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1589
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1613
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1590
1614
|
$fault: "client",
|
|
1591
|
-
$metadata
|
|
1615
|
+
$metadata,
|
|
1592
1616
|
});
|
|
1593
1617
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1594
1618
|
}
|
|
@@ -1613,8 +1637,7 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1613
1637
|
body: await parseBody(output.body, context),
|
|
1614
1638
|
};
|
|
1615
1639
|
let response;
|
|
1616
|
-
|
|
1617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1641
|
switch (errorCode) {
|
|
1619
1642
|
case "InternalException":
|
|
1620
1643
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1624,10 +1647,12 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1624
1647
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1625
1648
|
default:
|
|
1626
1649
|
const parsedBody = parsedOutput.body;
|
|
1650
|
+
const $metadata = deserializeMetadata(output);
|
|
1651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1627
1652
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1629
1654
|
$fault: "client",
|
|
1630
|
-
$metadata
|
|
1655
|
+
$metadata,
|
|
1631
1656
|
});
|
|
1632
1657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1633
1658
|
}
|
|
@@ -1652,8 +1677,7 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1652
1677
|
body: await parseBody(output.body, context),
|
|
1653
1678
|
};
|
|
1654
1679
|
let response;
|
|
1655
|
-
|
|
1656
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1681
|
switch (errorCode) {
|
|
1658
1682
|
case "InternalException":
|
|
1659
1683
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1663,10 +1687,12 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1663
1687
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1664
1688
|
default:
|
|
1665
1689
|
const parsedBody = parsedOutput.body;
|
|
1690
|
+
const $metadata = deserializeMetadata(output);
|
|
1691
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1666
1692
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1667
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1693
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1668
1694
|
$fault: "client",
|
|
1669
|
-
$metadata
|
|
1695
|
+
$metadata,
|
|
1670
1696
|
});
|
|
1671
1697
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1672
1698
|
}
|
|
@@ -1688,8 +1714,7 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
1688
1714
|
body: await parseBody(output.body, context),
|
|
1689
1715
|
};
|
|
1690
1716
|
let response;
|
|
1691
|
-
|
|
1692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
1718
|
switch (errorCode) {
|
|
1694
1719
|
case "ConcurrentModificationException":
|
|
1695
1720
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1705,10 +1730,12 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
1705
1730
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1706
1731
|
default:
|
|
1707
1732
|
const parsedBody = parsedOutput.body;
|
|
1733
|
+
const $metadata = deserializeMetadata(output);
|
|
1734
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1708
1735
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1710
1737
|
$fault: "client",
|
|
1711
|
-
$metadata
|
|
1738
|
+
$metadata,
|
|
1712
1739
|
});
|
|
1713
1740
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1714
1741
|
}
|
|
@@ -1730,8 +1757,7 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
1730
1757
|
body: await parseBody(output.body, context),
|
|
1731
1758
|
};
|
|
1732
1759
|
let response;
|
|
1733
|
-
|
|
1734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1761
|
switch (errorCode) {
|
|
1736
1762
|
case "ConcurrentModificationException":
|
|
1737
1763
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -1747,10 +1773,12 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
1747
1773
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1748
1774
|
default:
|
|
1749
1775
|
const parsedBody = parsedOutput.body;
|
|
1776
|
+
const $metadata = deserializeMetadata(output);
|
|
1777
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1750
1778
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1751
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1752
1780
|
$fault: "client",
|
|
1753
|
-
$metadata
|
|
1781
|
+
$metadata,
|
|
1754
1782
|
});
|
|
1755
1783
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1756
1784
|
}
|
|
@@ -1775,18 +1803,19 @@ const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, con
|
|
|
1775
1803
|
body: await parseBody(output.body, context),
|
|
1776
1804
|
};
|
|
1777
1805
|
let response;
|
|
1778
|
-
|
|
1779
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1780
1807
|
switch (errorCode) {
|
|
1781
1808
|
case "InternalException":
|
|
1782
1809
|
case "com.amazonaws.eventbridge#InternalException":
|
|
1783
1810
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1784
1811
|
default:
|
|
1785
1812
|
const parsedBody = parsedOutput.body;
|
|
1813
|
+
const $metadata = deserializeMetadata(output);
|
|
1814
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1786
1815
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1816
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1788
1817
|
$fault: "client",
|
|
1789
|
-
$metadata
|
|
1818
|
+
$metadata,
|
|
1790
1819
|
});
|
|
1791
1820
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1792
1821
|
}
|
|
@@ -1811,8 +1840,7 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
1811
1840
|
body: await parseBody(output.body, context),
|
|
1812
1841
|
};
|
|
1813
1842
|
let response;
|
|
1814
|
-
|
|
1815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1844
|
switch (errorCode) {
|
|
1817
1845
|
case "InternalException":
|
|
1818
1846
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1822,10 +1850,12 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
1822
1850
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1823
1851
|
default:
|
|
1824
1852
|
const parsedBody = parsedOutput.body;
|
|
1853
|
+
const $metadata = deserializeMetadata(output);
|
|
1854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1825
1855
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1827
1857
|
$fault: "client",
|
|
1828
|
-
$metadata
|
|
1858
|
+
$metadata,
|
|
1829
1859
|
});
|
|
1830
1860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1831
1861
|
}
|
|
@@ -1850,18 +1880,19 @@ const deserializeAws_json1_1ListConnectionsCommandError = async (output, context
|
|
|
1850
1880
|
body: await parseBody(output.body, context),
|
|
1851
1881
|
};
|
|
1852
1882
|
let response;
|
|
1853
|
-
|
|
1854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
1884
|
switch (errorCode) {
|
|
1856
1885
|
case "InternalException":
|
|
1857
1886
|
case "com.amazonaws.eventbridge#InternalException":
|
|
1858
1887
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1859
1888
|
default:
|
|
1860
1889
|
const parsedBody = parsedOutput.body;
|
|
1890
|
+
const $metadata = deserializeMetadata(output);
|
|
1891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1861
1892
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1863
1894
|
$fault: "client",
|
|
1864
|
-
$metadata
|
|
1895
|
+
$metadata,
|
|
1865
1896
|
});
|
|
1866
1897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1867
1898
|
}
|
|
@@ -1886,18 +1917,19 @@ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context)
|
|
|
1886
1917
|
body: await parseBody(output.body, context),
|
|
1887
1918
|
};
|
|
1888
1919
|
let response;
|
|
1889
|
-
|
|
1890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
1921
|
switch (errorCode) {
|
|
1892
1922
|
case "InternalException":
|
|
1893
1923
|
case "com.amazonaws.eventbridge#InternalException":
|
|
1894
1924
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1895
1925
|
default:
|
|
1896
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1897
1929
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1899
1931
|
$fault: "client",
|
|
1900
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1901
1933
|
});
|
|
1902
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1903
1935
|
}
|
|
@@ -1922,18 +1954,19 @@ const deserializeAws_json1_1ListEventBusesCommandError = async (output, context)
|
|
|
1922
1954
|
body: await parseBody(output.body, context),
|
|
1923
1955
|
};
|
|
1924
1956
|
let response;
|
|
1925
|
-
|
|
1926
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
1958
|
switch (errorCode) {
|
|
1928
1959
|
case "InternalException":
|
|
1929
1960
|
case "com.amazonaws.eventbridge#InternalException":
|
|
1930
1961
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1931
1962
|
default:
|
|
1932
1963
|
const parsedBody = parsedOutput.body;
|
|
1964
|
+
const $metadata = deserializeMetadata(output);
|
|
1965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1933
1966
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1935
1968
|
$fault: "client",
|
|
1936
|
-
$metadata
|
|
1969
|
+
$metadata,
|
|
1937
1970
|
});
|
|
1938
1971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1939
1972
|
}
|
|
@@ -1958,8 +1991,7 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
1958
1991
|
body: await parseBody(output.body, context),
|
|
1959
1992
|
};
|
|
1960
1993
|
let response;
|
|
1961
|
-
|
|
1962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1995
|
switch (errorCode) {
|
|
1964
1996
|
case "InternalException":
|
|
1965
1997
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -1969,10 +2001,12 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
1969
2001
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1970
2002
|
default:
|
|
1971
2003
|
const parsedBody = parsedOutput.body;
|
|
2004
|
+
const $metadata = deserializeMetadata(output);
|
|
2005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1972
2006
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
1973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1974
2008
|
$fault: "client",
|
|
1975
|
-
$metadata
|
|
2009
|
+
$metadata,
|
|
1976
2010
|
});
|
|
1977
2011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1978
2012
|
}
|
|
@@ -1997,8 +2031,7 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
1997
2031
|
body: await parseBody(output.body, context),
|
|
1998
2032
|
};
|
|
1999
2033
|
let response;
|
|
2000
|
-
|
|
2001
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
2035
|
switch (errorCode) {
|
|
2003
2036
|
case "InternalException":
|
|
2004
2037
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2011,10 +2044,12 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
2011
2044
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2012
2045
|
default:
|
|
2013
2046
|
const parsedBody = parsedOutput.body;
|
|
2047
|
+
const $metadata = deserializeMetadata(output);
|
|
2048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2014
2049
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2016
2051
|
$fault: "client",
|
|
2017
|
-
$metadata
|
|
2052
|
+
$metadata,
|
|
2018
2053
|
});
|
|
2019
2054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2020
2055
|
}
|
|
@@ -2039,8 +2074,7 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
2039
2074
|
body: await parseBody(output.body, context),
|
|
2040
2075
|
};
|
|
2041
2076
|
let response;
|
|
2042
|
-
|
|
2043
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
2078
|
switch (errorCode) {
|
|
2045
2079
|
case "InternalException":
|
|
2046
2080
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2050,10 +2084,12 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
2050
2084
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2051
2085
|
default:
|
|
2052
2086
|
const parsedBody = parsedOutput.body;
|
|
2087
|
+
const $metadata = deserializeMetadata(output);
|
|
2088
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2053
2089
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2054
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2055
2091
|
$fault: "client",
|
|
2056
|
-
$metadata
|
|
2092
|
+
$metadata,
|
|
2057
2093
|
});
|
|
2058
2094
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2059
2095
|
}
|
|
@@ -2078,18 +2114,19 @@ const deserializeAws_json1_1ListReplaysCommandError = async (output, context) =>
|
|
|
2078
2114
|
body: await parseBody(output.body, context),
|
|
2079
2115
|
};
|
|
2080
2116
|
let response;
|
|
2081
|
-
|
|
2082
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
2118
|
switch (errorCode) {
|
|
2084
2119
|
case "InternalException":
|
|
2085
2120
|
case "com.amazonaws.eventbridge#InternalException":
|
|
2086
2121
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2087
2122
|
default:
|
|
2088
2123
|
const parsedBody = parsedOutput.body;
|
|
2124
|
+
const $metadata = deserializeMetadata(output);
|
|
2125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2089
2126
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2090
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2091
2128
|
$fault: "client",
|
|
2092
|
-
$metadata
|
|
2129
|
+
$metadata,
|
|
2093
2130
|
});
|
|
2094
2131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2095
2132
|
}
|
|
@@ -2114,8 +2151,7 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
2114
2151
|
body: await parseBody(output.body, context),
|
|
2115
2152
|
};
|
|
2116
2153
|
let response;
|
|
2117
|
-
|
|
2118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2155
|
switch (errorCode) {
|
|
2120
2156
|
case "InternalException":
|
|
2121
2157
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2125,10 +2161,12 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
2125
2161
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2126
2162
|
default:
|
|
2127
2163
|
const parsedBody = parsedOutput.body;
|
|
2164
|
+
const $metadata = deserializeMetadata(output);
|
|
2165
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2128
2166
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2129
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2167
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2130
2168
|
$fault: "client",
|
|
2131
|
-
$metadata
|
|
2169
|
+
$metadata,
|
|
2132
2170
|
});
|
|
2133
2171
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2134
2172
|
}
|
|
@@ -2153,8 +2191,7 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
2153
2191
|
body: await parseBody(output.body, context),
|
|
2154
2192
|
};
|
|
2155
2193
|
let response;
|
|
2156
|
-
|
|
2157
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
2195
|
switch (errorCode) {
|
|
2159
2196
|
case "InternalException":
|
|
2160
2197
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2164,10 +2201,12 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
2164
2201
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2165
2202
|
default:
|
|
2166
2203
|
const parsedBody = parsedOutput.body;
|
|
2204
|
+
const $metadata = deserializeMetadata(output);
|
|
2205
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2167
2206
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2168
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2207
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2169
2208
|
$fault: "client",
|
|
2170
|
-
$metadata
|
|
2209
|
+
$metadata,
|
|
2171
2210
|
});
|
|
2172
2211
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2173
2212
|
}
|
|
@@ -2192,8 +2231,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2192
2231
|
body: await parseBody(output.body, context),
|
|
2193
2232
|
};
|
|
2194
2233
|
let response;
|
|
2195
|
-
|
|
2196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
2235
|
switch (errorCode) {
|
|
2198
2236
|
case "InternalException":
|
|
2199
2237
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2203,10 +2241,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2203
2241
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2204
2242
|
default:
|
|
2205
2243
|
const parsedBody = parsedOutput.body;
|
|
2244
|
+
const $metadata = deserializeMetadata(output);
|
|
2245
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2206
2246
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2207
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2247
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2208
2248
|
$fault: "client",
|
|
2209
|
-
$metadata
|
|
2249
|
+
$metadata,
|
|
2210
2250
|
});
|
|
2211
2251
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2212
2252
|
}
|
|
@@ -2231,8 +2271,7 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2231
2271
|
body: await parseBody(output.body, context),
|
|
2232
2272
|
};
|
|
2233
2273
|
let response;
|
|
2234
|
-
|
|
2235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
2275
|
switch (errorCode) {
|
|
2237
2276
|
case "InternalException":
|
|
2238
2277
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2242,10 +2281,12 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2242
2281
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2243
2282
|
default:
|
|
2244
2283
|
const parsedBody = parsedOutput.body;
|
|
2284
|
+
const $metadata = deserializeMetadata(output);
|
|
2285
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2245
2286
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2246
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2287
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2247
2288
|
$fault: "client",
|
|
2248
|
-
$metadata
|
|
2289
|
+
$metadata,
|
|
2249
2290
|
});
|
|
2250
2291
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2251
2292
|
}
|
|
@@ -2270,18 +2311,19 @@ const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
|
2270
2311
|
body: await parseBody(output.body, context),
|
|
2271
2312
|
};
|
|
2272
2313
|
let response;
|
|
2273
|
-
|
|
2274
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2275
2315
|
switch (errorCode) {
|
|
2276
2316
|
case "InternalException":
|
|
2277
2317
|
case "com.amazonaws.eventbridge#InternalException":
|
|
2278
2318
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2279
2319
|
default:
|
|
2280
2320
|
const parsedBody = parsedOutput.body;
|
|
2321
|
+
const $metadata = deserializeMetadata(output);
|
|
2322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2281
2323
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2283
2325
|
$fault: "client",
|
|
2284
|
-
$metadata
|
|
2326
|
+
$metadata,
|
|
2285
2327
|
});
|
|
2286
2328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2287
2329
|
}
|
|
@@ -2306,8 +2348,7 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2306
2348
|
body: await parseBody(output.body, context),
|
|
2307
2349
|
};
|
|
2308
2350
|
let response;
|
|
2309
|
-
|
|
2310
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2311
2352
|
switch (errorCode) {
|
|
2312
2353
|
case "InternalException":
|
|
2313
2354
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2317,10 +2358,12 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2317
2358
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2318
2359
|
default:
|
|
2319
2360
|
const parsedBody = parsedOutput.body;
|
|
2361
|
+
const $metadata = deserializeMetadata(output);
|
|
2362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2320
2363
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2322
2365
|
$fault: "client",
|
|
2323
|
-
$metadata
|
|
2366
|
+
$metadata,
|
|
2324
2367
|
});
|
|
2325
2368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2326
2369
|
}
|
|
@@ -2342,8 +2385,7 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2342
2385
|
body: await parseBody(output.body, context),
|
|
2343
2386
|
};
|
|
2344
2387
|
let response;
|
|
2345
|
-
|
|
2346
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2347
2389
|
switch (errorCode) {
|
|
2348
2390
|
case "ConcurrentModificationException":
|
|
2349
2391
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2362,10 +2404,12 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2362
2404
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2363
2405
|
default:
|
|
2364
2406
|
const parsedBody = parsedOutput.body;
|
|
2407
|
+
const $metadata = deserializeMetadata(output);
|
|
2408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2365
2409
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2366
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2367
2411
|
$fault: "client",
|
|
2368
|
-
$metadata
|
|
2412
|
+
$metadata,
|
|
2369
2413
|
});
|
|
2370
2414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2371
2415
|
}
|
|
@@ -2390,8 +2434,7 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
2390
2434
|
body: await parseBody(output.body, context),
|
|
2391
2435
|
};
|
|
2392
2436
|
let response;
|
|
2393
|
-
|
|
2394
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2395
2438
|
switch (errorCode) {
|
|
2396
2439
|
case "ConcurrentModificationException":
|
|
2397
2440
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2413,10 +2456,12 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
2413
2456
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2414
2457
|
default:
|
|
2415
2458
|
const parsedBody = parsedOutput.body;
|
|
2459
|
+
const $metadata = deserializeMetadata(output);
|
|
2460
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2416
2461
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2418
2463
|
$fault: "client",
|
|
2419
|
-
$metadata
|
|
2464
|
+
$metadata,
|
|
2420
2465
|
});
|
|
2421
2466
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2422
2467
|
}
|
|
@@ -2441,8 +2486,7 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
2441
2486
|
body: await parseBody(output.body, context),
|
|
2442
2487
|
};
|
|
2443
2488
|
let response;
|
|
2444
|
-
|
|
2445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2489
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
2490
|
switch (errorCode) {
|
|
2447
2491
|
case "ConcurrentModificationException":
|
|
2448
2492
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2461,10 +2505,12 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
2461
2505
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2462
2506
|
default:
|
|
2463
2507
|
const parsedBody = parsedOutput.body;
|
|
2508
|
+
const $metadata = deserializeMetadata(output);
|
|
2509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2464
2510
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2466
2512
|
$fault: "client",
|
|
2467
|
-
$metadata
|
|
2513
|
+
$metadata,
|
|
2468
2514
|
});
|
|
2469
2515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2470
2516
|
}
|
|
@@ -2486,8 +2532,7 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
2486
2532
|
body: await parseBody(output.body, context),
|
|
2487
2533
|
};
|
|
2488
2534
|
let response;
|
|
2489
|
-
|
|
2490
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
2536
|
switch (errorCode) {
|
|
2492
2537
|
case "ConcurrentModificationException":
|
|
2493
2538
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2503,10 +2548,12 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
2503
2548
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2504
2549
|
default:
|
|
2505
2550
|
const parsedBody = parsedOutput.body;
|
|
2551
|
+
const $metadata = deserializeMetadata(output);
|
|
2552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2506
2553
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2508
2555
|
$fault: "client",
|
|
2509
|
-
$metadata
|
|
2556
|
+
$metadata,
|
|
2510
2557
|
});
|
|
2511
2558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2512
2559
|
}
|
|
@@ -2531,8 +2578,7 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
2531
2578
|
body: await parseBody(output.body, context),
|
|
2532
2579
|
};
|
|
2533
2580
|
let response;
|
|
2534
|
-
|
|
2535
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
2582
|
switch (errorCode) {
|
|
2537
2583
|
case "ConcurrentModificationException":
|
|
2538
2584
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2548,10 +2594,12 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
2548
2594
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2549
2595
|
default:
|
|
2550
2596
|
const parsedBody = parsedOutput.body;
|
|
2597
|
+
const $metadata = deserializeMetadata(output);
|
|
2598
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2551
2599
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2552
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2600
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2553
2601
|
$fault: "client",
|
|
2554
|
-
$metadata
|
|
2602
|
+
$metadata,
|
|
2555
2603
|
});
|
|
2556
2604
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2557
2605
|
}
|
|
@@ -2576,8 +2624,7 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
2576
2624
|
body: await parseBody(output.body, context),
|
|
2577
2625
|
};
|
|
2578
2626
|
let response;
|
|
2579
|
-
|
|
2580
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2581
2628
|
switch (errorCode) {
|
|
2582
2629
|
case "InternalException":
|
|
2583
2630
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2596,10 +2643,12 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
2596
2643
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2597
2644
|
default:
|
|
2598
2645
|
const parsedBody = parsedOutput.body;
|
|
2646
|
+
const $metadata = deserializeMetadata(output);
|
|
2647
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2599
2648
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2649
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2601
2650
|
$fault: "client",
|
|
2602
|
-
$metadata
|
|
2651
|
+
$metadata,
|
|
2603
2652
|
});
|
|
2604
2653
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2605
2654
|
}
|
|
@@ -2624,8 +2673,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2624
2673
|
body: await parseBody(output.body, context),
|
|
2625
2674
|
};
|
|
2626
2675
|
let response;
|
|
2627
|
-
|
|
2628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
2677
|
switch (errorCode) {
|
|
2630
2678
|
case "ConcurrentModificationException":
|
|
2631
2679
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2641,10 +2689,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2641
2689
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2642
2690
|
default:
|
|
2643
2691
|
const parsedBody = parsedOutput.body;
|
|
2692
|
+
const $metadata = deserializeMetadata(output);
|
|
2693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2644
2694
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2646
2696
|
$fault: "client",
|
|
2647
|
-
$metadata
|
|
2697
|
+
$metadata,
|
|
2648
2698
|
});
|
|
2649
2699
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2650
2700
|
}
|
|
@@ -2669,8 +2719,7 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
2669
2719
|
body: await parseBody(output.body, context),
|
|
2670
2720
|
};
|
|
2671
2721
|
let response;
|
|
2672
|
-
|
|
2673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
2723
|
switch (errorCode) {
|
|
2675
2724
|
case "InternalException":
|
|
2676
2725
|
case "com.amazonaws.eventbridge#InternalException":
|
|
@@ -2680,10 +2729,12 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
2680
2729
|
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
2681
2730
|
default:
|
|
2682
2731
|
const parsedBody = parsedOutput.body;
|
|
2732
|
+
const $metadata = deserializeMetadata(output);
|
|
2733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2683
2734
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2685
2736
|
$fault: "client",
|
|
2686
|
-
$metadata
|
|
2737
|
+
$metadata,
|
|
2687
2738
|
});
|
|
2688
2739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2689
2740
|
}
|
|
@@ -2708,8 +2759,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2708
2759
|
body: await parseBody(output.body, context),
|
|
2709
2760
|
};
|
|
2710
2761
|
let response;
|
|
2711
|
-
|
|
2712
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2713
2763
|
switch (errorCode) {
|
|
2714
2764
|
case "ConcurrentModificationException":
|
|
2715
2765
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2725,10 +2775,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2725
2775
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2726
2776
|
default:
|
|
2727
2777
|
const parsedBody = parsedOutput.body;
|
|
2778
|
+
const $metadata = deserializeMetadata(output);
|
|
2779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2728
2780
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2730
2782
|
$fault: "client",
|
|
2731
|
-
$metadata
|
|
2783
|
+
$metadata,
|
|
2732
2784
|
});
|
|
2733
2785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2734
2786
|
}
|
|
@@ -2753,8 +2805,7 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
2753
2805
|
body: await parseBody(output.body, context),
|
|
2754
2806
|
};
|
|
2755
2807
|
let response;
|
|
2756
|
-
|
|
2757
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2758
2809
|
switch (errorCode) {
|
|
2759
2810
|
case "ConcurrentModificationException":
|
|
2760
2811
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2770,10 +2821,12 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
2770
2821
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2771
2822
|
default:
|
|
2772
2823
|
const parsedBody = parsedOutput.body;
|
|
2824
|
+
const $metadata = deserializeMetadata(output);
|
|
2825
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2773
2826
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2775
2828
|
$fault: "client",
|
|
2776
|
-
$metadata
|
|
2829
|
+
$metadata,
|
|
2777
2830
|
});
|
|
2778
2831
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2832
|
}
|
|
@@ -2798,8 +2851,7 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
2798
2851
|
body: await parseBody(output.body, context),
|
|
2799
2852
|
};
|
|
2800
2853
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2855
|
switch (errorCode) {
|
|
2804
2856
|
case "ConcurrentModificationException":
|
|
2805
2857
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2818,10 +2870,12 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
2818
2870
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2819
2871
|
default:
|
|
2820
2872
|
const parsedBody = parsedOutput.body;
|
|
2873
|
+
const $metadata = deserializeMetadata(output);
|
|
2874
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2821
2875
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2822
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2876
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2823
2877
|
$fault: "client",
|
|
2824
|
-
$metadata
|
|
2878
|
+
$metadata,
|
|
2825
2879
|
});
|
|
2826
2880
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2827
2881
|
}
|
|
@@ -2846,8 +2900,7 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2846
2900
|
body: await parseBody(output.body, context),
|
|
2847
2901
|
};
|
|
2848
2902
|
let response;
|
|
2849
|
-
|
|
2850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
2904
|
switch (errorCode) {
|
|
2852
2905
|
case "ConcurrentModificationException":
|
|
2853
2906
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2863,10 +2916,12 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2863
2916
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2864
2917
|
default:
|
|
2865
2918
|
const parsedBody = parsedOutput.body;
|
|
2919
|
+
const $metadata = deserializeMetadata(output);
|
|
2920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2866
2921
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2867
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2868
2923
|
$fault: "client",
|
|
2869
|
-
$metadata
|
|
2924
|
+
$metadata,
|
|
2870
2925
|
});
|
|
2871
2926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2872
2927
|
}
|
|
@@ -2891,8 +2946,7 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
2891
2946
|
body: await parseBody(output.body, context),
|
|
2892
2947
|
};
|
|
2893
2948
|
let response;
|
|
2894
|
-
|
|
2895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2949
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
2950
|
switch (errorCode) {
|
|
2897
2951
|
case "ConcurrentModificationException":
|
|
2898
2952
|
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
@@ -2905,10 +2959,12 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
2905
2959
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2906
2960
|
default:
|
|
2907
2961
|
const parsedBody = parsedOutput.body;
|
|
2962
|
+
const $metadata = deserializeMetadata(output);
|
|
2963
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2908
2964
|
response = new EventBridgeServiceException_1.EventBridgeServiceException({
|
|
2909
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2965
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2910
2966
|
$fault: "client",
|
|
2911
|
-
$metadata
|
|
2967
|
+
$metadata,
|
|
2912
2968
|
});
|
|
2913
2969
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2914
2970
|
}
|
|
@@ -5615,5 +5671,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5615
5671
|
if (data["__type"] !== undefined) {
|
|
5616
5672
|
return sanitizeErrorCode(data["__type"]);
|
|
5617
5673
|
}
|
|
5618
|
-
return "";
|
|
5619
5674
|
};
|