@aws-sdk/client-cloudwatch-events 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 +255 -205
- package/dist-es/protocols/Aws_json1_1.js +255 -205
- package/package.json +6 -6
|
@@ -534,8 +534,7 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
534
534
|
body: await parseBody(output.body, context),
|
|
535
535
|
};
|
|
536
536
|
let response;
|
|
537
|
-
|
|
538
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
538
|
switch (errorCode) {
|
|
540
539
|
case "ConcurrentModificationException":
|
|
541
540
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -554,10 +553,12 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
554
553
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
555
554
|
default:
|
|
556
555
|
const parsedBody = parsedOutput.body;
|
|
556
|
+
const $metadata = deserializeMetadata(output);
|
|
557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
557
558
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
559
560
|
$fault: "client",
|
|
560
|
-
$metadata
|
|
561
|
+
$metadata,
|
|
561
562
|
});
|
|
562
563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
564
|
}
|
|
@@ -582,8 +583,7 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
582
583
|
body: await parseBody(output.body, context),
|
|
583
584
|
};
|
|
584
585
|
let response;
|
|
585
|
-
|
|
586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
587
|
switch (errorCode) {
|
|
588
588
|
case "ConcurrentModificationException":
|
|
589
589
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -599,10 +599,12 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
599
599
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
600
600
|
default:
|
|
601
601
|
const parsedBody = parsedOutput.body;
|
|
602
|
+
const $metadata = deserializeMetadata(output);
|
|
603
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
602
604
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
603
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
605
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
604
606
|
$fault: "client",
|
|
605
|
-
$metadata
|
|
607
|
+
$metadata,
|
|
606
608
|
});
|
|
607
609
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
608
610
|
}
|
|
@@ -627,8 +629,7 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
627
629
|
body: await parseBody(output.body, context),
|
|
628
630
|
};
|
|
629
631
|
let response;
|
|
630
|
-
|
|
631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
632
633
|
switch (errorCode) {
|
|
633
634
|
case "InternalException":
|
|
634
635
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -644,10 +645,12 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
644
645
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
645
646
|
default:
|
|
646
647
|
const parsedBody = parsedOutput.body;
|
|
648
|
+
const $metadata = deserializeMetadata(output);
|
|
649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
647
650
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
649
652
|
$fault: "client",
|
|
650
|
-
$metadata
|
|
653
|
+
$metadata,
|
|
651
654
|
});
|
|
652
655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
653
656
|
}
|
|
@@ -672,8 +675,7 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
672
675
|
body: await parseBody(output.body, context),
|
|
673
676
|
};
|
|
674
677
|
let response;
|
|
675
|
-
|
|
676
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
679
|
switch (errorCode) {
|
|
678
680
|
case "ConcurrentModificationException":
|
|
679
681
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -695,10 +697,12 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
695
697
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
696
698
|
default:
|
|
697
699
|
const parsedBody = parsedOutput.body;
|
|
700
|
+
const $metadata = deserializeMetadata(output);
|
|
701
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
698
702
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
699
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
700
704
|
$fault: "client",
|
|
701
|
-
$metadata
|
|
705
|
+
$metadata,
|
|
702
706
|
});
|
|
703
707
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
704
708
|
}
|
|
@@ -723,8 +727,7 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
723
727
|
body: await parseBody(output.body, context),
|
|
724
728
|
};
|
|
725
729
|
let response;
|
|
726
|
-
|
|
727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
731
|
switch (errorCode) {
|
|
729
732
|
case "InternalException":
|
|
730
733
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -737,10 +740,12 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
737
740
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
738
741
|
default:
|
|
739
742
|
const parsedBody = parsedOutput.body;
|
|
743
|
+
const $metadata = deserializeMetadata(output);
|
|
744
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
740
745
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
741
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
742
747
|
$fault: "client",
|
|
743
|
-
$metadata
|
|
748
|
+
$metadata,
|
|
744
749
|
});
|
|
745
750
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
746
751
|
}
|
|
@@ -765,8 +770,7 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
765
770
|
body: await parseBody(output.body, context),
|
|
766
771
|
};
|
|
767
772
|
let response;
|
|
768
|
-
|
|
769
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
774
|
switch (errorCode) {
|
|
771
775
|
case "ConcurrentModificationException":
|
|
772
776
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -791,10 +795,12 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
791
795
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
792
796
|
default:
|
|
793
797
|
const parsedBody = parsedOutput.body;
|
|
798
|
+
const $metadata = deserializeMetadata(output);
|
|
799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
794
800
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
796
802
|
$fault: "client",
|
|
797
|
-
$metadata
|
|
803
|
+
$metadata,
|
|
798
804
|
});
|
|
799
805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
800
806
|
}
|
|
@@ -819,8 +825,7 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
819
825
|
body: await parseBody(output.body, context),
|
|
820
826
|
};
|
|
821
827
|
let response;
|
|
822
|
-
|
|
823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
829
|
switch (errorCode) {
|
|
825
830
|
case "ConcurrentModificationException":
|
|
826
831
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -839,10 +844,12 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
839
844
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
840
845
|
default:
|
|
841
846
|
const parsedBody = parsedOutput.body;
|
|
847
|
+
const $metadata = deserializeMetadata(output);
|
|
848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
842
849
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
843
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
844
851
|
$fault: "client",
|
|
845
|
-
$metadata
|
|
852
|
+
$metadata,
|
|
846
853
|
});
|
|
847
854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
848
855
|
}
|
|
@@ -864,8 +871,7 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
864
871
|
body: await parseBody(output.body, context),
|
|
865
872
|
};
|
|
866
873
|
let response;
|
|
867
|
-
|
|
868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
875
|
switch (errorCode) {
|
|
870
876
|
case "ConcurrentModificationException":
|
|
871
877
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -884,10 +890,12 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
884
890
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
885
891
|
default:
|
|
886
892
|
const parsedBody = parsedOutput.body;
|
|
893
|
+
const $metadata = deserializeMetadata(output);
|
|
894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
887
895
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
889
897
|
$fault: "client",
|
|
890
|
-
$metadata
|
|
898
|
+
$metadata,
|
|
891
899
|
});
|
|
892
900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
901
|
}
|
|
@@ -912,8 +920,7 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
912
920
|
body: await parseBody(output.body, context),
|
|
913
921
|
};
|
|
914
922
|
let response;
|
|
915
|
-
|
|
916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
924
|
switch (errorCode) {
|
|
918
925
|
case "ConcurrentModificationException":
|
|
919
926
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -926,10 +933,12 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
926
933
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
927
934
|
default:
|
|
928
935
|
const parsedBody = parsedOutput.body;
|
|
936
|
+
const $metadata = deserializeMetadata(output);
|
|
937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
929
938
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
930
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
931
940
|
$fault: "client",
|
|
932
|
-
$metadata
|
|
941
|
+
$metadata,
|
|
933
942
|
});
|
|
934
943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
935
944
|
}
|
|
@@ -954,8 +963,7 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
954
963
|
body: await parseBody(output.body, context),
|
|
955
964
|
};
|
|
956
965
|
let response;
|
|
957
|
-
|
|
958
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
967
|
switch (errorCode) {
|
|
960
968
|
case "ConcurrentModificationException":
|
|
961
969
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -968,10 +976,12 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
968
976
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
969
977
|
default:
|
|
970
978
|
const parsedBody = parsedOutput.body;
|
|
979
|
+
const $metadata = deserializeMetadata(output);
|
|
980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
971
981
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
973
983
|
$fault: "client",
|
|
974
|
-
$metadata
|
|
984
|
+
$metadata,
|
|
975
985
|
});
|
|
976
986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
977
987
|
}
|
|
@@ -996,8 +1006,7 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
996
1006
|
body: await parseBody(output.body, context),
|
|
997
1007
|
};
|
|
998
1008
|
let response;
|
|
999
|
-
|
|
1000
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
1010
|
switch (errorCode) {
|
|
1002
1011
|
case "ConcurrentModificationException":
|
|
1003
1012
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1010,10 +1019,12 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
1010
1019
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1011
1020
|
default:
|
|
1012
1021
|
const parsedBody = parsedOutput.body;
|
|
1022
|
+
const $metadata = deserializeMetadata(output);
|
|
1023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1013
1024
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1014
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1015
1026
|
$fault: "client",
|
|
1016
|
-
$metadata
|
|
1027
|
+
$metadata,
|
|
1017
1028
|
});
|
|
1018
1029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1019
1030
|
}
|
|
@@ -1038,8 +1049,7 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1038
1049
|
body: await parseBody(output.body, context),
|
|
1039
1050
|
};
|
|
1040
1051
|
let response;
|
|
1041
|
-
|
|
1042
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
1053
|
switch (errorCode) {
|
|
1044
1054
|
case "ConcurrentModificationException":
|
|
1045
1055
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1052,10 +1062,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1052
1062
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1053
1063
|
default:
|
|
1054
1064
|
const parsedBody = parsedOutput.body;
|
|
1065
|
+
const $metadata = deserializeMetadata(output);
|
|
1066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1055
1067
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1056
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1057
1069
|
$fault: "client",
|
|
1058
|
-
$metadata
|
|
1070
|
+
$metadata,
|
|
1059
1071
|
});
|
|
1060
1072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1061
1073
|
}
|
|
@@ -1077,8 +1089,7 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1077
1089
|
body: await parseBody(output.body, context),
|
|
1078
1090
|
};
|
|
1079
1091
|
let response;
|
|
1080
|
-
|
|
1081
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
1093
|
switch (errorCode) {
|
|
1083
1094
|
case "ConcurrentModificationException":
|
|
1084
1095
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1088,10 +1099,12 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1088
1099
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1089
1100
|
default:
|
|
1090
1101
|
const parsedBody = parsedOutput.body;
|
|
1102
|
+
const $metadata = deserializeMetadata(output);
|
|
1103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1091
1104
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1093
1106
|
$fault: "client",
|
|
1094
|
-
$metadata
|
|
1107
|
+
$metadata,
|
|
1095
1108
|
});
|
|
1096
1109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1097
1110
|
}
|
|
@@ -1113,8 +1126,7 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1113
1126
|
body: await parseBody(output.body, context),
|
|
1114
1127
|
};
|
|
1115
1128
|
let response;
|
|
1116
|
-
|
|
1117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
1130
|
switch (errorCode) {
|
|
1119
1131
|
case "ConcurrentModificationException":
|
|
1120
1132
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1127,10 +1139,12 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1127
1139
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1128
1140
|
default:
|
|
1129
1141
|
const parsedBody = parsedOutput.body;
|
|
1142
|
+
const $metadata = deserializeMetadata(output);
|
|
1143
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1130
1144
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1132
1146
|
$fault: "client",
|
|
1133
|
-
$metadata
|
|
1147
|
+
$metadata,
|
|
1134
1148
|
});
|
|
1135
1149
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1136
1150
|
}
|
|
@@ -1152,8 +1166,7 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1152
1166
|
body: await parseBody(output.body, context),
|
|
1153
1167
|
};
|
|
1154
1168
|
let response;
|
|
1155
|
-
|
|
1156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1170
|
switch (errorCode) {
|
|
1158
1171
|
case "ConcurrentModificationException":
|
|
1159
1172
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1169,10 +1182,12 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1169
1182
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1170
1183
|
default:
|
|
1171
1184
|
const parsedBody = parsedOutput.body;
|
|
1185
|
+
const $metadata = deserializeMetadata(output);
|
|
1186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1172
1187
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1173
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1174
1189
|
$fault: "client",
|
|
1175
|
-
$metadata
|
|
1190
|
+
$metadata,
|
|
1176
1191
|
});
|
|
1177
1192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1178
1193
|
}
|
|
@@ -1197,8 +1212,7 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1197
1212
|
body: await parseBody(output.body, context),
|
|
1198
1213
|
};
|
|
1199
1214
|
let response;
|
|
1200
|
-
|
|
1201
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
1216
|
switch (errorCode) {
|
|
1203
1217
|
case "InternalException":
|
|
1204
1218
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1208,10 +1222,12 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1208
1222
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1209
1223
|
default:
|
|
1210
1224
|
const parsedBody = parsedOutput.body;
|
|
1225
|
+
const $metadata = deserializeMetadata(output);
|
|
1226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1211
1227
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1228
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1213
1229
|
$fault: "client",
|
|
1214
|
-
$metadata
|
|
1230
|
+
$metadata,
|
|
1215
1231
|
});
|
|
1216
1232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1217
1233
|
}
|
|
@@ -1236,8 +1252,7 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1236
1252
|
body: await parseBody(output.body, context),
|
|
1237
1253
|
};
|
|
1238
1254
|
let response;
|
|
1239
|
-
|
|
1240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1256
|
switch (errorCode) {
|
|
1242
1257
|
case "InternalException":
|
|
1243
1258
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1250,10 +1265,12 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1250
1265
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1251
1266
|
default:
|
|
1252
1267
|
const parsedBody = parsedOutput.body;
|
|
1268
|
+
const $metadata = deserializeMetadata(output);
|
|
1269
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1253
1270
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1271
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1255
1272
|
$fault: "client",
|
|
1256
|
-
$metadata
|
|
1273
|
+
$metadata,
|
|
1257
1274
|
});
|
|
1258
1275
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1259
1276
|
}
|
|
@@ -1278,8 +1295,7 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1278
1295
|
body: await parseBody(output.body, context),
|
|
1279
1296
|
};
|
|
1280
1297
|
let response;
|
|
1281
|
-
|
|
1282
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1299
|
switch (errorCode) {
|
|
1284
1300
|
case "InternalException":
|
|
1285
1301
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1289,10 +1305,12 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1289
1305
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1290
1306
|
default:
|
|
1291
1307
|
const parsedBody = parsedOutput.body;
|
|
1308
|
+
const $metadata = deserializeMetadata(output);
|
|
1309
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1292
1310
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1294
1312
|
$fault: "client",
|
|
1295
|
-
$metadata
|
|
1313
|
+
$metadata,
|
|
1296
1314
|
});
|
|
1297
1315
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1298
1316
|
}
|
|
@@ -1317,8 +1335,7 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1317
1335
|
body: await parseBody(output.body, context),
|
|
1318
1336
|
};
|
|
1319
1337
|
let response;
|
|
1320
|
-
|
|
1321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
1339
|
switch (errorCode) {
|
|
1323
1340
|
case "InternalException":
|
|
1324
1341
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1328,10 +1345,12 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1328
1345
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1329
1346
|
default:
|
|
1330
1347
|
const parsedBody = parsedOutput.body;
|
|
1348
|
+
const $metadata = deserializeMetadata(output);
|
|
1349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1331
1350
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1332
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1333
1352
|
$fault: "client",
|
|
1334
|
-
$metadata
|
|
1353
|
+
$metadata,
|
|
1335
1354
|
});
|
|
1336
1355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1337
1356
|
}
|
|
@@ -1356,8 +1375,7 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1356
1375
|
body: await parseBody(output.body, context),
|
|
1357
1376
|
};
|
|
1358
1377
|
let response;
|
|
1359
|
-
|
|
1360
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
1379
|
switch (errorCode) {
|
|
1362
1380
|
case "InternalException":
|
|
1363
1381
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1370,10 +1388,12 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1370
1388
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1371
1389
|
default:
|
|
1372
1390
|
const parsedBody = parsedOutput.body;
|
|
1391
|
+
const $metadata = deserializeMetadata(output);
|
|
1392
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1373
1393
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1375
1395
|
$fault: "client",
|
|
1376
|
-
$metadata
|
|
1396
|
+
$metadata,
|
|
1377
1397
|
});
|
|
1378
1398
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1379
1399
|
}
|
|
@@ -1398,8 +1418,7 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1398
1418
|
body: await parseBody(output.body, context),
|
|
1399
1419
|
};
|
|
1400
1420
|
let response;
|
|
1401
|
-
|
|
1402
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1422
|
switch (errorCode) {
|
|
1404
1423
|
case "InternalException":
|
|
1405
1424
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1412,10 +1431,12 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1412
1431
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1413
1432
|
default:
|
|
1414
1433
|
const parsedBody = parsedOutput.body;
|
|
1434
|
+
const $metadata = deserializeMetadata(output);
|
|
1435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1415
1436
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1416
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1417
1438
|
$fault: "client",
|
|
1418
|
-
$metadata
|
|
1439
|
+
$metadata,
|
|
1419
1440
|
});
|
|
1420
1441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1421
1442
|
}
|
|
@@ -1440,8 +1461,7 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1440
1461
|
body: await parseBody(output.body, context),
|
|
1441
1462
|
};
|
|
1442
1463
|
let response;
|
|
1443
|
-
|
|
1444
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
1465
|
switch (errorCode) {
|
|
1446
1466
|
case "InternalException":
|
|
1447
1467
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1451,10 +1471,12 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1451
1471
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1452
1472
|
default:
|
|
1453
1473
|
const parsedBody = parsedOutput.body;
|
|
1474
|
+
const $metadata = deserializeMetadata(output);
|
|
1475
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1454
1476
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1477
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1456
1478
|
$fault: "client",
|
|
1457
|
-
$metadata
|
|
1479
|
+
$metadata,
|
|
1458
1480
|
});
|
|
1459
1481
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1460
1482
|
}
|
|
@@ -1479,8 +1501,7 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1479
1501
|
body: await parseBody(output.body, context),
|
|
1480
1502
|
};
|
|
1481
1503
|
let response;
|
|
1482
|
-
|
|
1483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
1505
|
switch (errorCode) {
|
|
1485
1506
|
case "InternalException":
|
|
1486
1507
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1490,10 +1511,12 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1490
1511
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1491
1512
|
default:
|
|
1492
1513
|
const parsedBody = parsedOutput.body;
|
|
1514
|
+
const $metadata = deserializeMetadata(output);
|
|
1515
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1493
1516
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1517
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1495
1518
|
$fault: "client",
|
|
1496
|
-
$metadata
|
|
1519
|
+
$metadata,
|
|
1497
1520
|
});
|
|
1498
1521
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1499
1522
|
}
|
|
@@ -1515,8 +1538,7 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
1515
1538
|
body: await parseBody(output.body, context),
|
|
1516
1539
|
};
|
|
1517
1540
|
let response;
|
|
1518
|
-
|
|
1519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1542
|
switch (errorCode) {
|
|
1521
1543
|
case "ConcurrentModificationException":
|
|
1522
1544
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1532,10 +1554,12 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
1532
1554
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1533
1555
|
default:
|
|
1534
1556
|
const parsedBody = parsedOutput.body;
|
|
1557
|
+
const $metadata = deserializeMetadata(output);
|
|
1558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1535
1559
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1536
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1537
1561
|
$fault: "client",
|
|
1538
|
-
$metadata
|
|
1562
|
+
$metadata,
|
|
1539
1563
|
});
|
|
1540
1564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1541
1565
|
}
|
|
@@ -1557,8 +1581,7 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
1557
1581
|
body: await parseBody(output.body, context),
|
|
1558
1582
|
};
|
|
1559
1583
|
let response;
|
|
1560
|
-
|
|
1561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
1585
|
switch (errorCode) {
|
|
1563
1586
|
case "ConcurrentModificationException":
|
|
1564
1587
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -1574,10 +1597,12 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
1574
1597
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1575
1598
|
default:
|
|
1576
1599
|
const parsedBody = parsedOutput.body;
|
|
1600
|
+
const $metadata = deserializeMetadata(output);
|
|
1601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1577
1602
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1579
1604
|
$fault: "client",
|
|
1580
|
-
$metadata
|
|
1605
|
+
$metadata,
|
|
1581
1606
|
});
|
|
1582
1607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1583
1608
|
}
|
|
@@ -1602,18 +1627,19 @@ const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, con
|
|
|
1602
1627
|
body: await parseBody(output.body, context),
|
|
1603
1628
|
};
|
|
1604
1629
|
let response;
|
|
1605
|
-
|
|
1606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
1631
|
switch (errorCode) {
|
|
1608
1632
|
case "InternalException":
|
|
1609
1633
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1610
1634
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1611
1635
|
default:
|
|
1612
1636
|
const parsedBody = parsedOutput.body;
|
|
1637
|
+
const $metadata = deserializeMetadata(output);
|
|
1638
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1613
1639
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1615
1641
|
$fault: "client",
|
|
1616
|
-
$metadata
|
|
1642
|
+
$metadata,
|
|
1617
1643
|
});
|
|
1618
1644
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1619
1645
|
}
|
|
@@ -1638,8 +1664,7 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
1638
1664
|
body: await parseBody(output.body, context),
|
|
1639
1665
|
};
|
|
1640
1666
|
let response;
|
|
1641
|
-
|
|
1642
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1668
|
switch (errorCode) {
|
|
1644
1669
|
case "InternalException":
|
|
1645
1670
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1649,10 +1674,12 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
1649
1674
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1650
1675
|
default:
|
|
1651
1676
|
const parsedBody = parsedOutput.body;
|
|
1677
|
+
const $metadata = deserializeMetadata(output);
|
|
1678
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1652
1679
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1653
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1680
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1654
1681
|
$fault: "client",
|
|
1655
|
-
$metadata
|
|
1682
|
+
$metadata,
|
|
1656
1683
|
});
|
|
1657
1684
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1658
1685
|
}
|
|
@@ -1677,18 +1704,19 @@ const deserializeAws_json1_1ListConnectionsCommandError = async (output, context
|
|
|
1677
1704
|
body: await parseBody(output.body, context),
|
|
1678
1705
|
};
|
|
1679
1706
|
let response;
|
|
1680
|
-
|
|
1681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
1708
|
switch (errorCode) {
|
|
1683
1709
|
case "InternalException":
|
|
1684
1710
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1685
1711
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1686
1712
|
default:
|
|
1687
1713
|
const parsedBody = parsedOutput.body;
|
|
1714
|
+
const $metadata = deserializeMetadata(output);
|
|
1715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1688
1716
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1689
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1690
1718
|
$fault: "client",
|
|
1691
|
-
$metadata
|
|
1719
|
+
$metadata,
|
|
1692
1720
|
});
|
|
1693
1721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1694
1722
|
}
|
|
@@ -1713,18 +1741,19 @@ const deserializeAws_json1_1ListEventBusesCommandError = async (output, context)
|
|
|
1713
1741
|
body: await parseBody(output.body, context),
|
|
1714
1742
|
};
|
|
1715
1743
|
let response;
|
|
1716
|
-
|
|
1717
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
1745
|
switch (errorCode) {
|
|
1719
1746
|
case "InternalException":
|
|
1720
1747
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1721
1748
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1722
1749
|
default:
|
|
1723
1750
|
const parsedBody = parsedOutput.body;
|
|
1751
|
+
const $metadata = deserializeMetadata(output);
|
|
1752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1724
1753
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1726
1755
|
$fault: "client",
|
|
1727
|
-
$metadata
|
|
1756
|
+
$metadata,
|
|
1728
1757
|
});
|
|
1729
1758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1730
1759
|
}
|
|
@@ -1749,8 +1778,7 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
1749
1778
|
body: await parseBody(output.body, context),
|
|
1750
1779
|
};
|
|
1751
1780
|
let response;
|
|
1752
|
-
|
|
1753
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1782
|
switch (errorCode) {
|
|
1755
1783
|
case "InternalException":
|
|
1756
1784
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1760,10 +1788,12 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
1760
1788
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1761
1789
|
default:
|
|
1762
1790
|
const parsedBody = parsedOutput.body;
|
|
1791
|
+
const $metadata = deserializeMetadata(output);
|
|
1792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1763
1793
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1764
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1765
1795
|
$fault: "client",
|
|
1766
|
-
$metadata
|
|
1796
|
+
$metadata,
|
|
1767
1797
|
});
|
|
1768
1798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1769
1799
|
}
|
|
@@ -1788,8 +1818,7 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
1788
1818
|
body: await parseBody(output.body, context),
|
|
1789
1819
|
};
|
|
1790
1820
|
let response;
|
|
1791
|
-
|
|
1792
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1822
|
switch (errorCode) {
|
|
1794
1823
|
case "InternalException":
|
|
1795
1824
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1802,10 +1831,12 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
1802
1831
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1803
1832
|
default:
|
|
1804
1833
|
const parsedBody = parsedOutput.body;
|
|
1834
|
+
const $metadata = deserializeMetadata(output);
|
|
1835
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1805
1836
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1837
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1807
1838
|
$fault: "client",
|
|
1808
|
-
$metadata
|
|
1839
|
+
$metadata,
|
|
1809
1840
|
});
|
|
1810
1841
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1811
1842
|
}
|
|
@@ -1830,8 +1861,7 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
1830
1861
|
body: await parseBody(output.body, context),
|
|
1831
1862
|
};
|
|
1832
1863
|
let response;
|
|
1833
|
-
|
|
1834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
1865
|
switch (errorCode) {
|
|
1836
1866
|
case "InternalException":
|
|
1837
1867
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1841,10 +1871,12 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
1841
1871
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1842
1872
|
default:
|
|
1843
1873
|
const parsedBody = parsedOutput.body;
|
|
1874
|
+
const $metadata = deserializeMetadata(output);
|
|
1875
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1844
1876
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1845
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1877
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1846
1878
|
$fault: "client",
|
|
1847
|
-
$metadata
|
|
1879
|
+
$metadata,
|
|
1848
1880
|
});
|
|
1849
1881
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1850
1882
|
}
|
|
@@ -1869,18 +1901,19 @@ const deserializeAws_json1_1ListReplaysCommandError = async (output, context) =>
|
|
|
1869
1901
|
body: await parseBody(output.body, context),
|
|
1870
1902
|
};
|
|
1871
1903
|
let response;
|
|
1872
|
-
|
|
1873
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
1905
|
switch (errorCode) {
|
|
1875
1906
|
case "InternalException":
|
|
1876
1907
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1877
1908
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1878
1909
|
default:
|
|
1879
1910
|
const parsedBody = parsedOutput.body;
|
|
1911
|
+
const $metadata = deserializeMetadata(output);
|
|
1912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1880
1913
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1882
1915
|
$fault: "client",
|
|
1883
|
-
$metadata
|
|
1916
|
+
$metadata,
|
|
1884
1917
|
});
|
|
1885
1918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1886
1919
|
}
|
|
@@ -1905,8 +1938,7 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
1905
1938
|
body: await parseBody(output.body, context),
|
|
1906
1939
|
};
|
|
1907
1940
|
let response;
|
|
1908
|
-
|
|
1909
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
1942
|
switch (errorCode) {
|
|
1911
1943
|
case "InternalException":
|
|
1912
1944
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1916,10 +1948,12 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
1916
1948
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1917
1949
|
default:
|
|
1918
1950
|
const parsedBody = parsedOutput.body;
|
|
1951
|
+
const $metadata = deserializeMetadata(output);
|
|
1952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1919
1953
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1920
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1921
1955
|
$fault: "client",
|
|
1922
|
-
$metadata
|
|
1956
|
+
$metadata,
|
|
1923
1957
|
});
|
|
1924
1958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1925
1959
|
}
|
|
@@ -1944,8 +1978,7 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
1944
1978
|
body: await parseBody(output.body, context),
|
|
1945
1979
|
};
|
|
1946
1980
|
let response;
|
|
1947
|
-
|
|
1948
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1982
|
switch (errorCode) {
|
|
1950
1983
|
case "InternalException":
|
|
1951
1984
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1955,10 +1988,12 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
1955
1988
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1956
1989
|
default:
|
|
1957
1990
|
const parsedBody = parsedOutput.body;
|
|
1991
|
+
const $metadata = deserializeMetadata(output);
|
|
1992
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1958
1993
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1960
1995
|
$fault: "client",
|
|
1961
|
-
$metadata
|
|
1996
|
+
$metadata,
|
|
1962
1997
|
});
|
|
1963
1998
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1964
1999
|
}
|
|
@@ -1983,8 +2018,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1983
2018
|
body: await parseBody(output.body, context),
|
|
1984
2019
|
};
|
|
1985
2020
|
let response;
|
|
1986
|
-
|
|
1987
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
2022
|
switch (errorCode) {
|
|
1989
2023
|
case "InternalException":
|
|
1990
2024
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -1994,10 +2028,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1994
2028
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1995
2029
|
default:
|
|
1996
2030
|
const parsedBody = parsedOutput.body;
|
|
2031
|
+
const $metadata = deserializeMetadata(output);
|
|
2032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1997
2033
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1999
2035
|
$fault: "client",
|
|
2000
|
-
$metadata
|
|
2036
|
+
$metadata,
|
|
2001
2037
|
});
|
|
2002
2038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2003
2039
|
}
|
|
@@ -2022,8 +2058,7 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2022
2058
|
body: await parseBody(output.body, context),
|
|
2023
2059
|
};
|
|
2024
2060
|
let response;
|
|
2025
|
-
|
|
2026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
2062
|
switch (errorCode) {
|
|
2028
2063
|
case "InternalException":
|
|
2029
2064
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -2033,10 +2068,12 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2033
2068
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2034
2069
|
default:
|
|
2035
2070
|
const parsedBody = parsedOutput.body;
|
|
2071
|
+
const $metadata = deserializeMetadata(output);
|
|
2072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2036
2073
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2038
2075
|
$fault: "client",
|
|
2039
|
-
$metadata
|
|
2076
|
+
$metadata,
|
|
2040
2077
|
});
|
|
2041
2078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2042
2079
|
}
|
|
@@ -2061,18 +2098,19 @@ const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
|
2061
2098
|
body: await parseBody(output.body, context),
|
|
2062
2099
|
};
|
|
2063
2100
|
let response;
|
|
2064
|
-
|
|
2065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
2102
|
switch (errorCode) {
|
|
2067
2103
|
case "InternalException":
|
|
2068
2104
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2069
2105
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2070
2106
|
default:
|
|
2071
2107
|
const parsedBody = parsedOutput.body;
|
|
2108
|
+
const $metadata = deserializeMetadata(output);
|
|
2109
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2072
2110
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2074
2112
|
$fault: "client",
|
|
2075
|
-
$metadata
|
|
2113
|
+
$metadata,
|
|
2076
2114
|
});
|
|
2077
2115
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2078
2116
|
}
|
|
@@ -2097,8 +2135,7 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2097
2135
|
body: await parseBody(output.body, context),
|
|
2098
2136
|
};
|
|
2099
2137
|
let response;
|
|
2100
|
-
|
|
2101
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
2139
|
switch (errorCode) {
|
|
2103
2140
|
case "InternalException":
|
|
2104
2141
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -2108,10 +2145,12 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2108
2145
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2109
2146
|
default:
|
|
2110
2147
|
const parsedBody = parsedOutput.body;
|
|
2148
|
+
const $metadata = deserializeMetadata(output);
|
|
2149
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2111
2150
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2112
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2113
2152
|
$fault: "client",
|
|
2114
|
-
$metadata
|
|
2153
|
+
$metadata,
|
|
2115
2154
|
});
|
|
2116
2155
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2117
2156
|
}
|
|
@@ -2133,8 +2172,7 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2133
2172
|
body: await parseBody(output.body, context),
|
|
2134
2173
|
};
|
|
2135
2174
|
let response;
|
|
2136
|
-
|
|
2137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
2176
|
switch (errorCode) {
|
|
2139
2177
|
case "ConcurrentModificationException":
|
|
2140
2178
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2153,10 +2191,12 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2153
2191
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2154
2192
|
default:
|
|
2155
2193
|
const parsedBody = parsedOutput.body;
|
|
2194
|
+
const $metadata = deserializeMetadata(output);
|
|
2195
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2156
2196
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2158
2198
|
$fault: "client",
|
|
2159
|
-
$metadata
|
|
2199
|
+
$metadata,
|
|
2160
2200
|
});
|
|
2161
2201
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2162
2202
|
}
|
|
@@ -2181,8 +2221,7 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
2181
2221
|
body: await parseBody(output.body, context),
|
|
2182
2222
|
};
|
|
2183
2223
|
let response;
|
|
2184
|
-
|
|
2185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2186
2225
|
switch (errorCode) {
|
|
2187
2226
|
case "ConcurrentModificationException":
|
|
2188
2227
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2204,10 +2243,12 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
2204
2243
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2205
2244
|
default:
|
|
2206
2245
|
const parsedBody = parsedOutput.body;
|
|
2246
|
+
const $metadata = deserializeMetadata(output);
|
|
2247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2207
2248
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2209
2250
|
$fault: "client",
|
|
2210
|
-
$metadata
|
|
2251
|
+
$metadata,
|
|
2211
2252
|
});
|
|
2212
2253
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2213
2254
|
}
|
|
@@ -2232,8 +2273,7 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
2232
2273
|
body: await parseBody(output.body, context),
|
|
2233
2274
|
};
|
|
2234
2275
|
let response;
|
|
2235
|
-
|
|
2236
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
2277
|
switch (errorCode) {
|
|
2238
2278
|
case "ConcurrentModificationException":
|
|
2239
2279
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2252,10 +2292,12 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
2252
2292
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2253
2293
|
default:
|
|
2254
2294
|
const parsedBody = parsedOutput.body;
|
|
2295
|
+
const $metadata = deserializeMetadata(output);
|
|
2296
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2255
2297
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2298
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2257
2299
|
$fault: "client",
|
|
2258
|
-
$metadata
|
|
2300
|
+
$metadata,
|
|
2259
2301
|
});
|
|
2260
2302
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2261
2303
|
}
|
|
@@ -2277,8 +2319,7 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
2277
2319
|
body: await parseBody(output.body, context),
|
|
2278
2320
|
};
|
|
2279
2321
|
let response;
|
|
2280
|
-
|
|
2281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2323
|
switch (errorCode) {
|
|
2283
2324
|
case "ConcurrentModificationException":
|
|
2284
2325
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2294,10 +2335,12 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
2294
2335
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2295
2336
|
default:
|
|
2296
2337
|
const parsedBody = parsedOutput.body;
|
|
2338
|
+
const $metadata = deserializeMetadata(output);
|
|
2339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2297
2340
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2298
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2299
2342
|
$fault: "client",
|
|
2300
|
-
$metadata
|
|
2343
|
+
$metadata,
|
|
2301
2344
|
});
|
|
2302
2345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2303
2346
|
}
|
|
@@ -2322,8 +2365,7 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
2322
2365
|
body: await parseBody(output.body, context),
|
|
2323
2366
|
};
|
|
2324
2367
|
let response;
|
|
2325
|
-
|
|
2326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
2369
|
switch (errorCode) {
|
|
2328
2370
|
case "ConcurrentModificationException":
|
|
2329
2371
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2339,10 +2381,12 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
2339
2381
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2340
2382
|
default:
|
|
2341
2383
|
const parsedBody = parsedOutput.body;
|
|
2384
|
+
const $metadata = deserializeMetadata(output);
|
|
2385
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2342
2386
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2343
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2344
2388
|
$fault: "client",
|
|
2345
|
-
$metadata
|
|
2389
|
+
$metadata,
|
|
2346
2390
|
});
|
|
2347
2391
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2348
2392
|
}
|
|
@@ -2367,8 +2411,7 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
2367
2411
|
body: await parseBody(output.body, context),
|
|
2368
2412
|
};
|
|
2369
2413
|
let response;
|
|
2370
|
-
|
|
2371
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
2415
|
switch (errorCode) {
|
|
2373
2416
|
case "InternalException":
|
|
2374
2417
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -2387,10 +2430,12 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
2387
2430
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2388
2431
|
default:
|
|
2389
2432
|
const parsedBody = parsedOutput.body;
|
|
2433
|
+
const $metadata = deserializeMetadata(output);
|
|
2434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2390
2435
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2392
2437
|
$fault: "client",
|
|
2393
|
-
$metadata
|
|
2438
|
+
$metadata,
|
|
2394
2439
|
});
|
|
2395
2440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2396
2441
|
}
|
|
@@ -2415,8 +2460,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2415
2460
|
body: await parseBody(output.body, context),
|
|
2416
2461
|
};
|
|
2417
2462
|
let response;
|
|
2418
|
-
|
|
2419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
2464
|
switch (errorCode) {
|
|
2421
2465
|
case "ConcurrentModificationException":
|
|
2422
2466
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2432,10 +2476,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2432
2476
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2433
2477
|
default:
|
|
2434
2478
|
const parsedBody = parsedOutput.body;
|
|
2479
|
+
const $metadata = deserializeMetadata(output);
|
|
2480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2435
2481
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2436
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2437
2483
|
$fault: "client",
|
|
2438
|
-
$metadata
|
|
2484
|
+
$metadata,
|
|
2439
2485
|
});
|
|
2440
2486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2441
2487
|
}
|
|
@@ -2460,8 +2506,7 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
2460
2506
|
body: await parseBody(output.body, context),
|
|
2461
2507
|
};
|
|
2462
2508
|
let response;
|
|
2463
|
-
|
|
2464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2510
|
switch (errorCode) {
|
|
2466
2511
|
case "InternalException":
|
|
2467
2512
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
@@ -2471,10 +2516,12 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
2471
2516
|
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
2472
2517
|
default:
|
|
2473
2518
|
const parsedBody = parsedOutput.body;
|
|
2519
|
+
const $metadata = deserializeMetadata(output);
|
|
2520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2474
2521
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2476
2523
|
$fault: "client",
|
|
2477
|
-
$metadata
|
|
2524
|
+
$metadata,
|
|
2478
2525
|
});
|
|
2479
2526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2480
2527
|
}
|
|
@@ -2499,8 +2546,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2499
2546
|
body: await parseBody(output.body, context),
|
|
2500
2547
|
};
|
|
2501
2548
|
let response;
|
|
2502
|
-
|
|
2503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
2550
|
switch (errorCode) {
|
|
2505
2551
|
case "ConcurrentModificationException":
|
|
2506
2552
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2516,10 +2562,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2516
2562
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2517
2563
|
default:
|
|
2518
2564
|
const parsedBody = parsedOutput.body;
|
|
2565
|
+
const $metadata = deserializeMetadata(output);
|
|
2566
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2519
2567
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2568
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2521
2569
|
$fault: "client",
|
|
2522
|
-
$metadata
|
|
2570
|
+
$metadata,
|
|
2523
2571
|
});
|
|
2524
2572
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2525
2573
|
}
|
|
@@ -2544,8 +2592,7 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
2544
2592
|
body: await parseBody(output.body, context),
|
|
2545
2593
|
};
|
|
2546
2594
|
let response;
|
|
2547
|
-
|
|
2548
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
2596
|
switch (errorCode) {
|
|
2550
2597
|
case "ConcurrentModificationException":
|
|
2551
2598
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2561,10 +2608,12 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
2561
2608
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2562
2609
|
default:
|
|
2563
2610
|
const parsedBody = parsedOutput.body;
|
|
2611
|
+
const $metadata = deserializeMetadata(output);
|
|
2612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2564
2613
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2566
2615
|
$fault: "client",
|
|
2567
|
-
$metadata
|
|
2616
|
+
$metadata,
|
|
2568
2617
|
});
|
|
2569
2618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2619
|
}
|
|
@@ -2589,8 +2638,7 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
2589
2638
|
body: await parseBody(output.body, context),
|
|
2590
2639
|
};
|
|
2591
2640
|
let response;
|
|
2592
|
-
|
|
2593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2594
2642
|
switch (errorCode) {
|
|
2595
2643
|
case "ConcurrentModificationException":
|
|
2596
2644
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2609,10 +2657,12 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
2609
2657
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2610
2658
|
default:
|
|
2611
2659
|
const parsedBody = parsedOutput.body;
|
|
2660
|
+
const $metadata = deserializeMetadata(output);
|
|
2661
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2612
2662
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2613
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2663
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2614
2664
|
$fault: "client",
|
|
2615
|
-
$metadata
|
|
2665
|
+
$metadata,
|
|
2616
2666
|
});
|
|
2617
2667
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2618
2668
|
}
|
|
@@ -2637,8 +2687,7 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2637
2687
|
body: await parseBody(output.body, context),
|
|
2638
2688
|
};
|
|
2639
2689
|
let response;
|
|
2640
|
-
|
|
2641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
2691
|
switch (errorCode) {
|
|
2643
2692
|
case "ConcurrentModificationException":
|
|
2644
2693
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
@@ -2654,10 +2703,12 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2654
2703
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2655
2704
|
default:
|
|
2656
2705
|
const parsedBody = parsedOutput.body;
|
|
2706
|
+
const $metadata = deserializeMetadata(output);
|
|
2707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2657
2708
|
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2659
2710
|
$fault: "client",
|
|
2660
|
-
$metadata
|
|
2711
|
+
$metadata,
|
|
2661
2712
|
});
|
|
2662
2713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2663
2714
|
}
|
|
@@ -5104,5 +5155,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5104
5155
|
if (data["__type"] !== undefined) {
|
|
5105
5156
|
return sanitizeErrorCode(data["__type"]);
|
|
5106
5157
|
}
|
|
5107
|
-
return "";
|
|
5108
5158
|
};
|