@aws-sdk/client-cloudwatch-events 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +255 -465
- package/dist-es/protocols/Aws_json1_1.js +409 -466
- package/package.json +6 -6
|
@@ -533,7 +533,6 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
533
533
|
...output,
|
|
534
534
|
body: await parseBody(output.body, context),
|
|
535
535
|
};
|
|
536
|
-
let response;
|
|
537
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
538
537
|
switch (errorCode) {
|
|
539
538
|
case "ConcurrentModificationException":
|
|
@@ -553,14 +552,12 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
553
552
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
554
553
|
default:
|
|
555
554
|
const parsedBody = parsedOutput.body;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
$metadata,
|
|
555
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
556
|
+
output,
|
|
557
|
+
parsedBody,
|
|
558
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
559
|
+
errorCode,
|
|
562
560
|
});
|
|
563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
564
561
|
}
|
|
565
562
|
};
|
|
566
563
|
const deserializeAws_json1_1CancelReplayCommand = async (output, context) => {
|
|
@@ -582,7 +579,6 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
582
579
|
...output,
|
|
583
580
|
body: await parseBody(output.body, context),
|
|
584
581
|
};
|
|
585
|
-
let response;
|
|
586
582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
583
|
switch (errorCode) {
|
|
588
584
|
case "ConcurrentModificationException":
|
|
@@ -599,14 +595,12 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
599
595
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
600
596
|
default:
|
|
601
597
|
const parsedBody = parsedOutput.body;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
$metadata,
|
|
598
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
599
|
+
output,
|
|
600
|
+
parsedBody,
|
|
601
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
602
|
+
errorCode,
|
|
608
603
|
});
|
|
609
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
610
604
|
}
|
|
611
605
|
};
|
|
612
606
|
const deserializeAws_json1_1CreateApiDestinationCommand = async (output, context) => {
|
|
@@ -628,7 +622,6 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
628
622
|
...output,
|
|
629
623
|
body: await parseBody(output.body, context),
|
|
630
624
|
};
|
|
631
|
-
let response;
|
|
632
625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
626
|
switch (errorCode) {
|
|
634
627
|
case "InternalException":
|
|
@@ -645,14 +638,12 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
645
638
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
646
639
|
default:
|
|
647
640
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
$metadata,
|
|
641
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
642
|
+
output,
|
|
643
|
+
parsedBody,
|
|
644
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
645
|
+
errorCode,
|
|
654
646
|
});
|
|
655
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
656
647
|
}
|
|
657
648
|
};
|
|
658
649
|
const deserializeAws_json1_1CreateArchiveCommand = async (output, context) => {
|
|
@@ -674,7 +665,6 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
674
665
|
...output,
|
|
675
666
|
body: await parseBody(output.body, context),
|
|
676
667
|
};
|
|
677
|
-
let response;
|
|
678
668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
669
|
switch (errorCode) {
|
|
680
670
|
case "ConcurrentModificationException":
|
|
@@ -697,14 +687,12 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
697
687
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
698
688
|
default:
|
|
699
689
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
$metadata,
|
|
690
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
691
|
+
output,
|
|
692
|
+
parsedBody,
|
|
693
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
694
|
+
errorCode,
|
|
706
695
|
});
|
|
707
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
696
|
}
|
|
709
697
|
};
|
|
710
698
|
const deserializeAws_json1_1CreateConnectionCommand = async (output, context) => {
|
|
@@ -726,7 +714,6 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
726
714
|
...output,
|
|
727
715
|
body: await parseBody(output.body, context),
|
|
728
716
|
};
|
|
729
|
-
let response;
|
|
730
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
718
|
switch (errorCode) {
|
|
732
719
|
case "InternalException":
|
|
@@ -740,14 +727,12 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
740
727
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
741
728
|
default:
|
|
742
729
|
const parsedBody = parsedOutput.body;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
$metadata,
|
|
730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
734
|
+
errorCode,
|
|
749
735
|
});
|
|
750
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
751
736
|
}
|
|
752
737
|
};
|
|
753
738
|
const deserializeAws_json1_1CreateEventBusCommand = async (output, context) => {
|
|
@@ -769,7 +754,6 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
769
754
|
...output,
|
|
770
755
|
body: await parseBody(output.body, context),
|
|
771
756
|
};
|
|
772
|
-
let response;
|
|
773
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
758
|
switch (errorCode) {
|
|
775
759
|
case "ConcurrentModificationException":
|
|
@@ -795,14 +779,12 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
795
779
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
796
780
|
default:
|
|
797
781
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
$metadata,
|
|
782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
783
|
+
output,
|
|
784
|
+
parsedBody,
|
|
785
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
786
|
+
errorCode,
|
|
804
787
|
});
|
|
805
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
806
788
|
}
|
|
807
789
|
};
|
|
808
790
|
const deserializeAws_json1_1CreatePartnerEventSourceCommand = async (output, context) => {
|
|
@@ -824,7 +806,6 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
824
806
|
...output,
|
|
825
807
|
body: await parseBody(output.body, context),
|
|
826
808
|
};
|
|
827
|
-
let response;
|
|
828
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
810
|
switch (errorCode) {
|
|
830
811
|
case "ConcurrentModificationException":
|
|
@@ -844,14 +825,12 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
844
825
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
845
826
|
default:
|
|
846
827
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
$metadata,
|
|
828
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
832
|
+
errorCode,
|
|
853
833
|
});
|
|
854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
855
834
|
}
|
|
856
835
|
};
|
|
857
836
|
const deserializeAws_json1_1DeactivateEventSourceCommand = async (output, context) => {
|
|
@@ -870,7 +849,6 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
870
849
|
...output,
|
|
871
850
|
body: await parseBody(output.body, context),
|
|
872
851
|
};
|
|
873
|
-
let response;
|
|
874
852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
853
|
switch (errorCode) {
|
|
876
854
|
case "ConcurrentModificationException":
|
|
@@ -890,14 +868,12 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
890
868
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
891
869
|
default:
|
|
892
870
|
const parsedBody = parsedOutput.body;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
$metadata,
|
|
871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
872
|
+
output,
|
|
873
|
+
parsedBody,
|
|
874
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
875
|
+
errorCode,
|
|
899
876
|
});
|
|
900
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
901
877
|
}
|
|
902
878
|
};
|
|
903
879
|
const deserializeAws_json1_1DeauthorizeConnectionCommand = async (output, context) => {
|
|
@@ -919,7 +895,6 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
919
895
|
...output,
|
|
920
896
|
body: await parseBody(output.body, context),
|
|
921
897
|
};
|
|
922
|
-
let response;
|
|
923
898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
899
|
switch (errorCode) {
|
|
925
900
|
case "ConcurrentModificationException":
|
|
@@ -933,14 +908,12 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
933
908
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
934
909
|
default:
|
|
935
910
|
const parsedBody = parsedOutput.body;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
$metadata,
|
|
911
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
912
|
+
output,
|
|
913
|
+
parsedBody,
|
|
914
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
915
|
+
errorCode,
|
|
942
916
|
});
|
|
943
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
944
917
|
}
|
|
945
918
|
};
|
|
946
919
|
const deserializeAws_json1_1DeleteApiDestinationCommand = async (output, context) => {
|
|
@@ -962,7 +935,6 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
962
935
|
...output,
|
|
963
936
|
body: await parseBody(output.body, context),
|
|
964
937
|
};
|
|
965
|
-
let response;
|
|
966
938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
939
|
switch (errorCode) {
|
|
968
940
|
case "ConcurrentModificationException":
|
|
@@ -976,14 +948,12 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
976
948
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
977
949
|
default:
|
|
978
950
|
const parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
$metadata,
|
|
951
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
952
|
+
output,
|
|
953
|
+
parsedBody,
|
|
954
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
955
|
+
errorCode,
|
|
985
956
|
});
|
|
986
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
987
957
|
}
|
|
988
958
|
};
|
|
989
959
|
const deserializeAws_json1_1DeleteArchiveCommand = async (output, context) => {
|
|
@@ -1005,7 +975,6 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
1005
975
|
...output,
|
|
1006
976
|
body: await parseBody(output.body, context),
|
|
1007
977
|
};
|
|
1008
|
-
let response;
|
|
1009
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
979
|
switch (errorCode) {
|
|
1011
980
|
case "ConcurrentModificationException":
|
|
@@ -1019,14 +988,12 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
1019
988
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1020
989
|
default:
|
|
1021
990
|
const parsedBody = parsedOutput.body;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
$metadata,
|
|
991
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
992
|
+
output,
|
|
993
|
+
parsedBody,
|
|
994
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
995
|
+
errorCode,
|
|
1028
996
|
});
|
|
1029
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1030
997
|
}
|
|
1031
998
|
};
|
|
1032
999
|
const deserializeAws_json1_1DeleteConnectionCommand = async (output, context) => {
|
|
@@ -1048,7 +1015,6 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1048
1015
|
...output,
|
|
1049
1016
|
body: await parseBody(output.body, context),
|
|
1050
1017
|
};
|
|
1051
|
-
let response;
|
|
1052
1018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1019
|
switch (errorCode) {
|
|
1054
1020
|
case "ConcurrentModificationException":
|
|
@@ -1062,14 +1028,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1062
1028
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1063
1029
|
default:
|
|
1064
1030
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
$metadata,
|
|
1031
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1032
|
+
output,
|
|
1033
|
+
parsedBody,
|
|
1034
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1035
|
+
errorCode,
|
|
1071
1036
|
});
|
|
1072
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1073
1037
|
}
|
|
1074
1038
|
};
|
|
1075
1039
|
const deserializeAws_json1_1DeleteEventBusCommand = async (output, context) => {
|
|
@@ -1088,7 +1052,6 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1088
1052
|
...output,
|
|
1089
1053
|
body: await parseBody(output.body, context),
|
|
1090
1054
|
};
|
|
1091
|
-
let response;
|
|
1092
1055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1056
|
switch (errorCode) {
|
|
1094
1057
|
case "ConcurrentModificationException":
|
|
@@ -1099,14 +1062,12 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1099
1062
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1100
1063
|
default:
|
|
1101
1064
|
const parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
$metadata,
|
|
1065
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1066
|
+
output,
|
|
1067
|
+
parsedBody,
|
|
1068
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1069
|
+
errorCode,
|
|
1108
1070
|
});
|
|
1109
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1071
|
}
|
|
1111
1072
|
};
|
|
1112
1073
|
const deserializeAws_json1_1DeletePartnerEventSourceCommand = async (output, context) => {
|
|
@@ -1125,7 +1086,6 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1125
1086
|
...output,
|
|
1126
1087
|
body: await parseBody(output.body, context),
|
|
1127
1088
|
};
|
|
1128
|
-
let response;
|
|
1129
1089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1090
|
switch (errorCode) {
|
|
1131
1091
|
case "ConcurrentModificationException":
|
|
@@ -1139,14 +1099,12 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1139
1099
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1140
1100
|
default:
|
|
1141
1101
|
const parsedBody = parsedOutput.body;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
$metadata,
|
|
1102
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1103
|
+
output,
|
|
1104
|
+
parsedBody,
|
|
1105
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1106
|
+
errorCode,
|
|
1148
1107
|
});
|
|
1149
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1150
1108
|
}
|
|
1151
1109
|
};
|
|
1152
1110
|
const deserializeAws_json1_1DeleteRuleCommand = async (output, context) => {
|
|
@@ -1165,7 +1123,6 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1165
1123
|
...output,
|
|
1166
1124
|
body: await parseBody(output.body, context),
|
|
1167
1125
|
};
|
|
1168
|
-
let response;
|
|
1169
1126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1127
|
switch (errorCode) {
|
|
1171
1128
|
case "ConcurrentModificationException":
|
|
@@ -1182,14 +1139,12 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1182
1139
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1183
1140
|
default:
|
|
1184
1141
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
$metadata,
|
|
1142
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1143
|
+
output,
|
|
1144
|
+
parsedBody,
|
|
1145
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1146
|
+
errorCode,
|
|
1191
1147
|
});
|
|
1192
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1193
1148
|
}
|
|
1194
1149
|
};
|
|
1195
1150
|
const deserializeAws_json1_1DescribeApiDestinationCommand = async (output, context) => {
|
|
@@ -1211,7 +1166,6 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1211
1166
|
...output,
|
|
1212
1167
|
body: await parseBody(output.body, context),
|
|
1213
1168
|
};
|
|
1214
|
-
let response;
|
|
1215
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1170
|
switch (errorCode) {
|
|
1217
1171
|
case "InternalException":
|
|
@@ -1222,14 +1176,12 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1222
1176
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1223
1177
|
default:
|
|
1224
1178
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
$metadata,
|
|
1179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1180
|
+
output,
|
|
1181
|
+
parsedBody,
|
|
1182
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1183
|
+
errorCode,
|
|
1231
1184
|
});
|
|
1232
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1233
1185
|
}
|
|
1234
1186
|
};
|
|
1235
1187
|
const deserializeAws_json1_1DescribeArchiveCommand = async (output, context) => {
|
|
@@ -1251,7 +1203,6 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1251
1203
|
...output,
|
|
1252
1204
|
body: await parseBody(output.body, context),
|
|
1253
1205
|
};
|
|
1254
|
-
let response;
|
|
1255
1206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1207
|
switch (errorCode) {
|
|
1257
1208
|
case "InternalException":
|
|
@@ -1265,14 +1216,12 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1265
1216
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1266
1217
|
default:
|
|
1267
1218
|
const parsedBody = parsedOutput.body;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
$metadata,
|
|
1219
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1220
|
+
output,
|
|
1221
|
+
parsedBody,
|
|
1222
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1223
|
+
errorCode,
|
|
1274
1224
|
});
|
|
1275
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1276
1225
|
}
|
|
1277
1226
|
};
|
|
1278
1227
|
const deserializeAws_json1_1DescribeConnectionCommand = async (output, context) => {
|
|
@@ -1294,7 +1243,6 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1294
1243
|
...output,
|
|
1295
1244
|
body: await parseBody(output.body, context),
|
|
1296
1245
|
};
|
|
1297
|
-
let response;
|
|
1298
1246
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
1247
|
switch (errorCode) {
|
|
1300
1248
|
case "InternalException":
|
|
@@ -1305,14 +1253,12 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1305
1253
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1306
1254
|
default:
|
|
1307
1255
|
const parsedBody = parsedOutput.body;
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
$metadata,
|
|
1256
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1257
|
+
output,
|
|
1258
|
+
parsedBody,
|
|
1259
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1260
|
+
errorCode,
|
|
1314
1261
|
});
|
|
1315
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1316
1262
|
}
|
|
1317
1263
|
};
|
|
1318
1264
|
const deserializeAws_json1_1DescribeEventBusCommand = async (output, context) => {
|
|
@@ -1334,7 +1280,6 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1334
1280
|
...output,
|
|
1335
1281
|
body: await parseBody(output.body, context),
|
|
1336
1282
|
};
|
|
1337
|
-
let response;
|
|
1338
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
1284
|
switch (errorCode) {
|
|
1340
1285
|
case "InternalException":
|
|
@@ -1345,14 +1290,12 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1345
1290
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1346
1291
|
default:
|
|
1347
1292
|
const parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
$metadata,
|
|
1293
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1294
|
+
output,
|
|
1295
|
+
parsedBody,
|
|
1296
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1297
|
+
errorCode,
|
|
1354
1298
|
});
|
|
1355
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1299
|
}
|
|
1357
1300
|
};
|
|
1358
1301
|
const deserializeAws_json1_1DescribeEventSourceCommand = async (output, context) => {
|
|
@@ -1374,7 +1317,6 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1374
1317
|
...output,
|
|
1375
1318
|
body: await parseBody(output.body, context),
|
|
1376
1319
|
};
|
|
1377
|
-
let response;
|
|
1378
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1321
|
switch (errorCode) {
|
|
1380
1322
|
case "InternalException":
|
|
@@ -1388,14 +1330,12 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1388
1330
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1389
1331
|
default:
|
|
1390
1332
|
const parsedBody = parsedOutput.body;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
$metadata,
|
|
1333
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1334
|
+
output,
|
|
1335
|
+
parsedBody,
|
|
1336
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1337
|
+
errorCode,
|
|
1397
1338
|
});
|
|
1398
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1399
1339
|
}
|
|
1400
1340
|
};
|
|
1401
1341
|
const deserializeAws_json1_1DescribePartnerEventSourceCommand = async (output, context) => {
|
|
@@ -1417,7 +1357,6 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1417
1357
|
...output,
|
|
1418
1358
|
body: await parseBody(output.body, context),
|
|
1419
1359
|
};
|
|
1420
|
-
let response;
|
|
1421
1360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
1361
|
switch (errorCode) {
|
|
1423
1362
|
case "InternalException":
|
|
@@ -1431,14 +1370,12 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1431
1370
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1432
1371
|
default:
|
|
1433
1372
|
const parsedBody = parsedOutput.body;
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
$metadata,
|
|
1373
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1374
|
+
output,
|
|
1375
|
+
parsedBody,
|
|
1376
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1377
|
+
errorCode,
|
|
1440
1378
|
});
|
|
1441
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1442
1379
|
}
|
|
1443
1380
|
};
|
|
1444
1381
|
const deserializeAws_json1_1DescribeReplayCommand = async (output, context) => {
|
|
@@ -1460,7 +1397,6 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1460
1397
|
...output,
|
|
1461
1398
|
body: await parseBody(output.body, context),
|
|
1462
1399
|
};
|
|
1463
|
-
let response;
|
|
1464
1400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1401
|
switch (errorCode) {
|
|
1466
1402
|
case "InternalException":
|
|
@@ -1471,14 +1407,12 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1471
1407
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1472
1408
|
default:
|
|
1473
1409
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
$metadata,
|
|
1410
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1411
|
+
output,
|
|
1412
|
+
parsedBody,
|
|
1413
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1414
|
+
errorCode,
|
|
1480
1415
|
});
|
|
1481
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1482
1416
|
}
|
|
1483
1417
|
};
|
|
1484
1418
|
const deserializeAws_json1_1DescribeRuleCommand = async (output, context) => {
|
|
@@ -1500,7 +1434,6 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1500
1434
|
...output,
|
|
1501
1435
|
body: await parseBody(output.body, context),
|
|
1502
1436
|
};
|
|
1503
|
-
let response;
|
|
1504
1437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
1438
|
switch (errorCode) {
|
|
1506
1439
|
case "InternalException":
|
|
@@ -1511,14 +1444,12 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1511
1444
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1512
1445
|
default:
|
|
1513
1446
|
const parsedBody = parsedOutput.body;
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
$metadata,
|
|
1447
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1448
|
+
output,
|
|
1449
|
+
parsedBody,
|
|
1450
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1451
|
+
errorCode,
|
|
1520
1452
|
});
|
|
1521
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1522
1453
|
}
|
|
1523
1454
|
};
|
|
1524
1455
|
const deserializeAws_json1_1DisableRuleCommand = async (output, context) => {
|
|
@@ -1537,7 +1468,6 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
1537
1468
|
...output,
|
|
1538
1469
|
body: await parseBody(output.body, context),
|
|
1539
1470
|
};
|
|
1540
|
-
let response;
|
|
1541
1471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
1472
|
switch (errorCode) {
|
|
1543
1473
|
case "ConcurrentModificationException":
|
|
@@ -1554,14 +1484,12 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
1554
1484
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1555
1485
|
default:
|
|
1556
1486
|
const parsedBody = parsedOutput.body;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
$metadata,
|
|
1487
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1488
|
+
output,
|
|
1489
|
+
parsedBody,
|
|
1490
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1491
|
+
errorCode,
|
|
1563
1492
|
});
|
|
1564
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1565
1493
|
}
|
|
1566
1494
|
};
|
|
1567
1495
|
const deserializeAws_json1_1EnableRuleCommand = async (output, context) => {
|
|
@@ -1580,7 +1508,6 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
1580
1508
|
...output,
|
|
1581
1509
|
body: await parseBody(output.body, context),
|
|
1582
1510
|
};
|
|
1583
|
-
let response;
|
|
1584
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
1512
|
switch (errorCode) {
|
|
1586
1513
|
case "ConcurrentModificationException":
|
|
@@ -1597,14 +1524,12 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
1597
1524
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1598
1525
|
default:
|
|
1599
1526
|
const parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
$metadata,
|
|
1527
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1528
|
+
output,
|
|
1529
|
+
parsedBody,
|
|
1530
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1531
|
+
errorCode,
|
|
1606
1532
|
});
|
|
1607
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1608
1533
|
}
|
|
1609
1534
|
};
|
|
1610
1535
|
const deserializeAws_json1_1ListApiDestinationsCommand = async (output, context) => {
|
|
@@ -1626,7 +1551,6 @@ const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, con
|
|
|
1626
1551
|
...output,
|
|
1627
1552
|
body: await parseBody(output.body, context),
|
|
1628
1553
|
};
|
|
1629
|
-
let response;
|
|
1630
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1555
|
switch (errorCode) {
|
|
1632
1556
|
case "InternalException":
|
|
@@ -1634,14 +1558,12 @@ const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, con
|
|
|
1634
1558
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1635
1559
|
default:
|
|
1636
1560
|
const parsedBody = parsedOutput.body;
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
$metadata,
|
|
1561
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1562
|
+
output,
|
|
1563
|
+
parsedBody,
|
|
1564
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1565
|
+
errorCode,
|
|
1643
1566
|
});
|
|
1644
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1645
1567
|
}
|
|
1646
1568
|
};
|
|
1647
1569
|
const deserializeAws_json1_1ListArchivesCommand = async (output, context) => {
|
|
@@ -1663,7 +1585,6 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
1663
1585
|
...output,
|
|
1664
1586
|
body: await parseBody(output.body, context),
|
|
1665
1587
|
};
|
|
1666
|
-
let response;
|
|
1667
1588
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1589
|
switch (errorCode) {
|
|
1669
1590
|
case "InternalException":
|
|
@@ -1674,14 +1595,12 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
1674
1595
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1675
1596
|
default:
|
|
1676
1597
|
const parsedBody = parsedOutput.body;
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
$metadata,
|
|
1598
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1599
|
+
output,
|
|
1600
|
+
parsedBody,
|
|
1601
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1602
|
+
errorCode,
|
|
1683
1603
|
});
|
|
1684
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1685
1604
|
}
|
|
1686
1605
|
};
|
|
1687
1606
|
const deserializeAws_json1_1ListConnectionsCommand = async (output, context) => {
|
|
@@ -1703,7 +1622,6 @@ const deserializeAws_json1_1ListConnectionsCommandError = async (output, context
|
|
|
1703
1622
|
...output,
|
|
1704
1623
|
body: await parseBody(output.body, context),
|
|
1705
1624
|
};
|
|
1706
|
-
let response;
|
|
1707
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
1626
|
switch (errorCode) {
|
|
1709
1627
|
case "InternalException":
|
|
@@ -1711,14 +1629,12 @@ const deserializeAws_json1_1ListConnectionsCommandError = async (output, context
|
|
|
1711
1629
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1712
1630
|
default:
|
|
1713
1631
|
const parsedBody = parsedOutput.body;
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
$metadata,
|
|
1632
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1633
|
+
output,
|
|
1634
|
+
parsedBody,
|
|
1635
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1636
|
+
errorCode,
|
|
1720
1637
|
});
|
|
1721
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1722
1638
|
}
|
|
1723
1639
|
};
|
|
1724
1640
|
const deserializeAws_json1_1ListEventBusesCommand = async (output, context) => {
|
|
@@ -1740,7 +1656,6 @@ const deserializeAws_json1_1ListEventBusesCommandError = async (output, context)
|
|
|
1740
1656
|
...output,
|
|
1741
1657
|
body: await parseBody(output.body, context),
|
|
1742
1658
|
};
|
|
1743
|
-
let response;
|
|
1744
1659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1660
|
switch (errorCode) {
|
|
1746
1661
|
case "InternalException":
|
|
@@ -1748,14 +1663,12 @@ const deserializeAws_json1_1ListEventBusesCommandError = async (output, context)
|
|
|
1748
1663
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1749
1664
|
default:
|
|
1750
1665
|
const parsedBody = parsedOutput.body;
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
$metadata,
|
|
1666
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1667
|
+
output,
|
|
1668
|
+
parsedBody,
|
|
1669
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1670
|
+
errorCode,
|
|
1757
1671
|
});
|
|
1758
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1759
1672
|
}
|
|
1760
1673
|
};
|
|
1761
1674
|
const deserializeAws_json1_1ListEventSourcesCommand = async (output, context) => {
|
|
@@ -1777,7 +1690,6 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
1777
1690
|
...output,
|
|
1778
1691
|
body: await parseBody(output.body, context),
|
|
1779
1692
|
};
|
|
1780
|
-
let response;
|
|
1781
1693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
1694
|
switch (errorCode) {
|
|
1783
1695
|
case "InternalException":
|
|
@@ -1788,14 +1700,12 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
1788
1700
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1789
1701
|
default:
|
|
1790
1702
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
$metadata,
|
|
1703
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1704
|
+
output,
|
|
1705
|
+
parsedBody,
|
|
1706
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1707
|
+
errorCode,
|
|
1797
1708
|
});
|
|
1798
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1799
1709
|
}
|
|
1800
1710
|
};
|
|
1801
1711
|
const deserializeAws_json1_1ListPartnerEventSourceAccountsCommand = async (output, context) => {
|
|
@@ -1817,7 +1727,6 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
1817
1727
|
...output,
|
|
1818
1728
|
body: await parseBody(output.body, context),
|
|
1819
1729
|
};
|
|
1820
|
-
let response;
|
|
1821
1730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1731
|
switch (errorCode) {
|
|
1823
1732
|
case "InternalException":
|
|
@@ -1831,14 +1740,12 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
1831
1740
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1832
1741
|
default:
|
|
1833
1742
|
const parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
$metadata,
|
|
1743
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1744
|
+
output,
|
|
1745
|
+
parsedBody,
|
|
1746
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1747
|
+
errorCode,
|
|
1840
1748
|
});
|
|
1841
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1842
1749
|
}
|
|
1843
1750
|
};
|
|
1844
1751
|
const deserializeAws_json1_1ListPartnerEventSourcesCommand = async (output, context) => {
|
|
@@ -1860,7 +1767,6 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
1860
1767
|
...output,
|
|
1861
1768
|
body: await parseBody(output.body, context),
|
|
1862
1769
|
};
|
|
1863
|
-
let response;
|
|
1864
1770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1771
|
switch (errorCode) {
|
|
1866
1772
|
case "InternalException":
|
|
@@ -1871,14 +1777,12 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
1871
1777
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1872
1778
|
default:
|
|
1873
1779
|
const parsedBody = parsedOutput.body;
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
$metadata,
|
|
1780
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1781
|
+
output,
|
|
1782
|
+
parsedBody,
|
|
1783
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1784
|
+
errorCode,
|
|
1880
1785
|
});
|
|
1881
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1882
1786
|
}
|
|
1883
1787
|
};
|
|
1884
1788
|
const deserializeAws_json1_1ListReplaysCommand = async (output, context) => {
|
|
@@ -1900,7 +1804,6 @@ const deserializeAws_json1_1ListReplaysCommandError = async (output, context) =>
|
|
|
1900
1804
|
...output,
|
|
1901
1805
|
body: await parseBody(output.body, context),
|
|
1902
1806
|
};
|
|
1903
|
-
let response;
|
|
1904
1807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
1808
|
switch (errorCode) {
|
|
1906
1809
|
case "InternalException":
|
|
@@ -1908,14 +1811,12 @@ const deserializeAws_json1_1ListReplaysCommandError = async (output, context) =>
|
|
|
1908
1811
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1909
1812
|
default:
|
|
1910
1813
|
const parsedBody = parsedOutput.body;
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
$metadata,
|
|
1814
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1815
|
+
output,
|
|
1816
|
+
parsedBody,
|
|
1817
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1818
|
+
errorCode,
|
|
1917
1819
|
});
|
|
1918
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1919
1820
|
}
|
|
1920
1821
|
};
|
|
1921
1822
|
const deserializeAws_json1_1ListRuleNamesByTargetCommand = async (output, context) => {
|
|
@@ -1937,7 +1838,6 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
1937
1838
|
...output,
|
|
1938
1839
|
body: await parseBody(output.body, context),
|
|
1939
1840
|
};
|
|
1940
|
-
let response;
|
|
1941
1841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
1842
|
switch (errorCode) {
|
|
1943
1843
|
case "InternalException":
|
|
@@ -1948,14 +1848,12 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
1948
1848
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1949
1849
|
default:
|
|
1950
1850
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
$metadata,
|
|
1851
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1852
|
+
output,
|
|
1853
|
+
parsedBody,
|
|
1854
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1855
|
+
errorCode,
|
|
1957
1856
|
});
|
|
1958
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1959
1857
|
}
|
|
1960
1858
|
};
|
|
1961
1859
|
const deserializeAws_json1_1ListRulesCommand = async (output, context) => {
|
|
@@ -1977,7 +1875,6 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
1977
1875
|
...output,
|
|
1978
1876
|
body: await parseBody(output.body, context),
|
|
1979
1877
|
};
|
|
1980
|
-
let response;
|
|
1981
1878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1879
|
switch (errorCode) {
|
|
1983
1880
|
case "InternalException":
|
|
@@ -1988,14 +1885,12 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
1988
1885
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1989
1886
|
default:
|
|
1990
1887
|
const parsedBody = parsedOutput.body;
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
$metadata,
|
|
1888
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1889
|
+
output,
|
|
1890
|
+
parsedBody,
|
|
1891
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1892
|
+
errorCode,
|
|
1997
1893
|
});
|
|
1998
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1999
1894
|
}
|
|
2000
1895
|
};
|
|
2001
1896
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2017,7 +1912,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2017
1912
|
...output,
|
|
2018
1913
|
body: await parseBody(output.body, context),
|
|
2019
1914
|
};
|
|
2020
|
-
let response;
|
|
2021
1915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
1916
|
switch (errorCode) {
|
|
2023
1917
|
case "InternalException":
|
|
@@ -2028,14 +1922,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2028
1922
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2029
1923
|
default:
|
|
2030
1924
|
const parsedBody = parsedOutput.body;
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
$metadata,
|
|
1925
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1926
|
+
output,
|
|
1927
|
+
parsedBody,
|
|
1928
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1929
|
+
errorCode,
|
|
2037
1930
|
});
|
|
2038
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2039
1931
|
}
|
|
2040
1932
|
};
|
|
2041
1933
|
const deserializeAws_json1_1ListTargetsByRuleCommand = async (output, context) => {
|
|
@@ -2057,7 +1949,6 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2057
1949
|
...output,
|
|
2058
1950
|
body: await parseBody(output.body, context),
|
|
2059
1951
|
};
|
|
2060
|
-
let response;
|
|
2061
1952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
1953
|
switch (errorCode) {
|
|
2063
1954
|
case "InternalException":
|
|
@@ -2068,14 +1959,12 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2068
1959
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2069
1960
|
default:
|
|
2070
1961
|
const parsedBody = parsedOutput.body;
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
$metadata,
|
|
1962
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1963
|
+
output,
|
|
1964
|
+
parsedBody,
|
|
1965
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
1966
|
+
errorCode,
|
|
2077
1967
|
});
|
|
2078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2079
1968
|
}
|
|
2080
1969
|
};
|
|
2081
1970
|
const deserializeAws_json1_1PutEventsCommand = async (output, context) => {
|
|
@@ -2097,7 +1986,6 @@ const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
|
2097
1986
|
...output,
|
|
2098
1987
|
body: await parseBody(output.body, context),
|
|
2099
1988
|
};
|
|
2100
|
-
let response;
|
|
2101
1989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
1990
|
switch (errorCode) {
|
|
2103
1991
|
case "InternalException":
|
|
@@ -2105,14 +1993,12 @@ const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
|
2105
1993
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2106
1994
|
default:
|
|
2107
1995
|
const parsedBody = parsedOutput.body;
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
$metadata,
|
|
1996
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1997
|
+
output,
|
|
1998
|
+
parsedBody,
|
|
1999
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2000
|
+
errorCode,
|
|
2114
2001
|
});
|
|
2115
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2116
2002
|
}
|
|
2117
2003
|
};
|
|
2118
2004
|
const deserializeAws_json1_1PutPartnerEventsCommand = async (output, context) => {
|
|
@@ -2134,7 +2020,6 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2134
2020
|
...output,
|
|
2135
2021
|
body: await parseBody(output.body, context),
|
|
2136
2022
|
};
|
|
2137
|
-
let response;
|
|
2138
2023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
2024
|
switch (errorCode) {
|
|
2140
2025
|
case "InternalException":
|
|
@@ -2145,14 +2030,12 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2145
2030
|
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2146
2031
|
default:
|
|
2147
2032
|
const parsedBody = parsedOutput.body;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
$metadata,
|
|
2033
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2034
|
+
output,
|
|
2035
|
+
parsedBody,
|
|
2036
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2037
|
+
errorCode,
|
|
2154
2038
|
});
|
|
2155
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2039
|
}
|
|
2157
2040
|
};
|
|
2158
2041
|
const deserializeAws_json1_1PutPermissionCommand = async (output, context) => {
|
|
@@ -2171,7 +2054,6 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2171
2054
|
...output,
|
|
2172
2055
|
body: await parseBody(output.body, context),
|
|
2173
2056
|
};
|
|
2174
|
-
let response;
|
|
2175
2057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2176
2058
|
switch (errorCode) {
|
|
2177
2059
|
case "ConcurrentModificationException":
|
|
@@ -2191,14 +2073,12 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2191
2073
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2192
2074
|
default:
|
|
2193
2075
|
const parsedBody = parsedOutput.body;
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
$metadata,
|
|
2076
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2077
|
+
output,
|
|
2078
|
+
parsedBody,
|
|
2079
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2080
|
+
errorCode,
|
|
2200
2081
|
});
|
|
2201
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2202
2082
|
}
|
|
2203
2083
|
};
|
|
2204
2084
|
const deserializeAws_json1_1PutRuleCommand = async (output, context) => {
|
|
@@ -2220,7 +2100,6 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
2220
2100
|
...output,
|
|
2221
2101
|
body: await parseBody(output.body, context),
|
|
2222
2102
|
};
|
|
2223
|
-
let response;
|
|
2224
2103
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2104
|
switch (errorCode) {
|
|
2226
2105
|
case "ConcurrentModificationException":
|
|
@@ -2243,14 +2122,12 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
2243
2122
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2244
2123
|
default:
|
|
2245
2124
|
const parsedBody = parsedOutput.body;
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
$metadata,
|
|
2125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2126
|
+
output,
|
|
2127
|
+
parsedBody,
|
|
2128
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2129
|
+
errorCode,
|
|
2252
2130
|
});
|
|
2253
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2254
2131
|
}
|
|
2255
2132
|
};
|
|
2256
2133
|
const deserializeAws_json1_1PutTargetsCommand = async (output, context) => {
|
|
@@ -2272,7 +2149,6 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
2272
2149
|
...output,
|
|
2273
2150
|
body: await parseBody(output.body, context),
|
|
2274
2151
|
};
|
|
2275
|
-
let response;
|
|
2276
2152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
2153
|
switch (errorCode) {
|
|
2278
2154
|
case "ConcurrentModificationException":
|
|
@@ -2292,14 +2168,12 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
2292
2168
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2293
2169
|
default:
|
|
2294
2170
|
const parsedBody = parsedOutput.body;
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
$metadata,
|
|
2171
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2172
|
+
output,
|
|
2173
|
+
parsedBody,
|
|
2174
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2175
|
+
errorCode,
|
|
2301
2176
|
});
|
|
2302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2303
2177
|
}
|
|
2304
2178
|
};
|
|
2305
2179
|
const deserializeAws_json1_1RemovePermissionCommand = async (output, context) => {
|
|
@@ -2318,7 +2192,6 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
2318
2192
|
...output,
|
|
2319
2193
|
body: await parseBody(output.body, context),
|
|
2320
2194
|
};
|
|
2321
|
-
let response;
|
|
2322
2195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2196
|
switch (errorCode) {
|
|
2324
2197
|
case "ConcurrentModificationException":
|
|
@@ -2335,14 +2208,12 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
2335
2208
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2336
2209
|
default:
|
|
2337
2210
|
const parsedBody = parsedOutput.body;
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
$metadata,
|
|
2211
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2212
|
+
output,
|
|
2213
|
+
parsedBody,
|
|
2214
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2215
|
+
errorCode,
|
|
2344
2216
|
});
|
|
2345
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2346
2217
|
}
|
|
2347
2218
|
};
|
|
2348
2219
|
const deserializeAws_json1_1RemoveTargetsCommand = async (output, context) => {
|
|
@@ -2364,7 +2235,6 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
2364
2235
|
...output,
|
|
2365
2236
|
body: await parseBody(output.body, context),
|
|
2366
2237
|
};
|
|
2367
|
-
let response;
|
|
2368
2238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2239
|
switch (errorCode) {
|
|
2370
2240
|
case "ConcurrentModificationException":
|
|
@@ -2381,14 +2251,12 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
2381
2251
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2382
2252
|
default:
|
|
2383
2253
|
const parsedBody = parsedOutput.body;
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
$metadata,
|
|
2254
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2255
|
+
output,
|
|
2256
|
+
parsedBody,
|
|
2257
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2258
|
+
errorCode,
|
|
2390
2259
|
});
|
|
2391
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2392
2260
|
}
|
|
2393
2261
|
};
|
|
2394
2262
|
const deserializeAws_json1_1StartReplayCommand = async (output, context) => {
|
|
@@ -2410,7 +2278,6 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
2410
2278
|
...output,
|
|
2411
2279
|
body: await parseBody(output.body, context),
|
|
2412
2280
|
};
|
|
2413
|
-
let response;
|
|
2414
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
2282
|
switch (errorCode) {
|
|
2416
2283
|
case "InternalException":
|
|
@@ -2430,14 +2297,12 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
2430
2297
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2431
2298
|
default:
|
|
2432
2299
|
const parsedBody = parsedOutput.body;
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
$metadata,
|
|
2300
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2301
|
+
output,
|
|
2302
|
+
parsedBody,
|
|
2303
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2304
|
+
errorCode,
|
|
2439
2305
|
});
|
|
2440
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2441
2306
|
}
|
|
2442
2307
|
};
|
|
2443
2308
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2459,7 +2324,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2459
2324
|
...output,
|
|
2460
2325
|
body: await parseBody(output.body, context),
|
|
2461
2326
|
};
|
|
2462
|
-
let response;
|
|
2463
2327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
2328
|
switch (errorCode) {
|
|
2465
2329
|
case "ConcurrentModificationException":
|
|
@@ -2476,14 +2340,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2476
2340
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2477
2341
|
default:
|
|
2478
2342
|
const parsedBody = parsedOutput.body;
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
$metadata,
|
|
2343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2344
|
+
output,
|
|
2345
|
+
parsedBody,
|
|
2346
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2347
|
+
errorCode,
|
|
2485
2348
|
});
|
|
2486
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2487
2349
|
}
|
|
2488
2350
|
};
|
|
2489
2351
|
const deserializeAws_json1_1TestEventPatternCommand = async (output, context) => {
|
|
@@ -2505,7 +2367,6 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
2505
2367
|
...output,
|
|
2506
2368
|
body: await parseBody(output.body, context),
|
|
2507
2369
|
};
|
|
2508
|
-
let response;
|
|
2509
2370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2371
|
switch (errorCode) {
|
|
2511
2372
|
case "InternalException":
|
|
@@ -2516,14 +2377,12 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
2516
2377
|
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
2517
2378
|
default:
|
|
2518
2379
|
const parsedBody = parsedOutput.body;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
$metadata,
|
|
2380
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2381
|
+
output,
|
|
2382
|
+
parsedBody,
|
|
2383
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2384
|
+
errorCode,
|
|
2525
2385
|
});
|
|
2526
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2527
2386
|
}
|
|
2528
2387
|
};
|
|
2529
2388
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2545,7 +2404,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2545
2404
|
...output,
|
|
2546
2405
|
body: await parseBody(output.body, context),
|
|
2547
2406
|
};
|
|
2548
|
-
let response;
|
|
2549
2407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
2408
|
switch (errorCode) {
|
|
2551
2409
|
case "ConcurrentModificationException":
|
|
@@ -2562,14 +2420,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2562
2420
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2563
2421
|
default:
|
|
2564
2422
|
const parsedBody = parsedOutput.body;
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
$metadata,
|
|
2423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2424
|
+
output,
|
|
2425
|
+
parsedBody,
|
|
2426
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2427
|
+
errorCode,
|
|
2571
2428
|
});
|
|
2572
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2573
2429
|
}
|
|
2574
2430
|
};
|
|
2575
2431
|
const deserializeAws_json1_1UpdateApiDestinationCommand = async (output, context) => {
|
|
@@ -2591,7 +2447,6 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
2591
2447
|
...output,
|
|
2592
2448
|
body: await parseBody(output.body, context),
|
|
2593
2449
|
};
|
|
2594
|
-
let response;
|
|
2595
2450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
2451
|
switch (errorCode) {
|
|
2597
2452
|
case "ConcurrentModificationException":
|
|
@@ -2608,14 +2463,12 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
2608
2463
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2609
2464
|
default:
|
|
2610
2465
|
const parsedBody = parsedOutput.body;
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
$metadata,
|
|
2466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2467
|
+
output,
|
|
2468
|
+
parsedBody,
|
|
2469
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2470
|
+
errorCode,
|
|
2617
2471
|
});
|
|
2618
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2619
2472
|
}
|
|
2620
2473
|
};
|
|
2621
2474
|
const deserializeAws_json1_1UpdateArchiveCommand = async (output, context) => {
|
|
@@ -2637,7 +2490,6 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
2637
2490
|
...output,
|
|
2638
2491
|
body: await parseBody(output.body, context),
|
|
2639
2492
|
};
|
|
2640
|
-
let response;
|
|
2641
2493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
2494
|
switch (errorCode) {
|
|
2643
2495
|
case "ConcurrentModificationException":
|
|
@@ -2657,14 +2509,12 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
2657
2509
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2658
2510
|
default:
|
|
2659
2511
|
const parsedBody = parsedOutput.body;
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
$metadata,
|
|
2512
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2513
|
+
output,
|
|
2514
|
+
parsedBody,
|
|
2515
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2516
|
+
errorCode,
|
|
2666
2517
|
});
|
|
2667
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2668
2518
|
}
|
|
2669
2519
|
};
|
|
2670
2520
|
const deserializeAws_json1_1UpdateConnectionCommand = async (output, context) => {
|
|
@@ -2686,7 +2536,6 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2686
2536
|
...output,
|
|
2687
2537
|
body: await parseBody(output.body, context),
|
|
2688
2538
|
};
|
|
2689
|
-
let response;
|
|
2690
2539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
2540
|
switch (errorCode) {
|
|
2692
2541
|
case "ConcurrentModificationException":
|
|
@@ -2703,14 +2552,12 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2703
2552
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2704
2553
|
default:
|
|
2705
2554
|
const parsedBody = parsedOutput.body;
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
$metadata,
|
|
2555
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2556
|
+
output,
|
|
2557
|
+
parsedBody,
|
|
2558
|
+
exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
|
|
2559
|
+
errorCode,
|
|
2712
2560
|
});
|
|
2713
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2714
2561
|
}
|
|
2715
2562
|
};
|
|
2716
2563
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2857,9 +2704,6 @@ const serializeAws_json1_1CapacityProviderStrategy = (input, context) => {
|
|
|
2857
2704
|
return input
|
|
2858
2705
|
.filter((e) => e != null)
|
|
2859
2706
|
.map((entry) => {
|
|
2860
|
-
if (entry === null) {
|
|
2861
|
-
return null;
|
|
2862
|
-
}
|
|
2863
2707
|
return serializeAws_json1_1CapacityProviderStrategyItem(entry, context);
|
|
2864
2708
|
});
|
|
2865
2709
|
};
|
|
@@ -2888,9 +2732,6 @@ const serializeAws_json1_1ConnectionBodyParametersList = (input, context) => {
|
|
|
2888
2732
|
return input
|
|
2889
2733
|
.filter((e) => e != null)
|
|
2890
2734
|
.map((entry) => {
|
|
2891
|
-
if (entry === null) {
|
|
2892
|
-
return null;
|
|
2893
|
-
}
|
|
2894
2735
|
return serializeAws_json1_1ConnectionBodyParameter(entry, context);
|
|
2895
2736
|
});
|
|
2896
2737
|
};
|
|
@@ -2905,9 +2746,6 @@ const serializeAws_json1_1ConnectionHeaderParametersList = (input, context) => {
|
|
|
2905
2746
|
return input
|
|
2906
2747
|
.filter((e) => e != null)
|
|
2907
2748
|
.map((entry) => {
|
|
2908
|
-
if (entry === null) {
|
|
2909
|
-
return null;
|
|
2910
|
-
}
|
|
2911
2749
|
return serializeAws_json1_1ConnectionHeaderParameter(entry, context);
|
|
2912
2750
|
});
|
|
2913
2751
|
};
|
|
@@ -2935,9 +2773,6 @@ const serializeAws_json1_1ConnectionQueryStringParametersList = (input, context)
|
|
|
2935
2773
|
return input
|
|
2936
2774
|
.filter((e) => e != null)
|
|
2937
2775
|
.map((entry) => {
|
|
2938
|
-
if (entry === null) {
|
|
2939
|
-
return null;
|
|
2940
|
-
}
|
|
2941
2776
|
return serializeAws_json1_1ConnectionQueryStringParameter(entry, context);
|
|
2942
2777
|
});
|
|
2943
2778
|
};
|
|
@@ -3162,9 +2997,6 @@ const serializeAws_json1_1EventResourceList = (input, context) => {
|
|
|
3162
2997
|
return input
|
|
3163
2998
|
.filter((e) => e != null)
|
|
3164
2999
|
.map((entry) => {
|
|
3165
|
-
if (entry === null) {
|
|
3166
|
-
return null;
|
|
3167
|
-
}
|
|
3168
3000
|
return entry;
|
|
3169
3001
|
});
|
|
3170
3002
|
};
|
|
@@ -3307,9 +3139,6 @@ const serializeAws_json1_1PathParameterList = (input, context) => {
|
|
|
3307
3139
|
return input
|
|
3308
3140
|
.filter((e) => e != null)
|
|
3309
3141
|
.map((entry) => {
|
|
3310
|
-
if (entry === null) {
|
|
3311
|
-
return null;
|
|
3312
|
-
}
|
|
3313
3142
|
return entry;
|
|
3314
3143
|
});
|
|
3315
3144
|
};
|
|
@@ -3323,9 +3152,6 @@ const serializeAws_json1_1PlacementConstraints = (input, context) => {
|
|
|
3323
3152
|
return input
|
|
3324
3153
|
.filter((e) => e != null)
|
|
3325
3154
|
.map((entry) => {
|
|
3326
|
-
if (entry === null) {
|
|
3327
|
-
return null;
|
|
3328
|
-
}
|
|
3329
3155
|
return serializeAws_json1_1PlacementConstraint(entry, context);
|
|
3330
3156
|
});
|
|
3331
3157
|
};
|
|
@@ -3333,9 +3159,6 @@ const serializeAws_json1_1PlacementStrategies = (input, context) => {
|
|
|
3333
3159
|
return input
|
|
3334
3160
|
.filter((e) => e != null)
|
|
3335
3161
|
.map((entry) => {
|
|
3336
|
-
if (entry === null) {
|
|
3337
|
-
return null;
|
|
3338
|
-
}
|
|
3339
3162
|
return serializeAws_json1_1PlacementStrategy(entry, context);
|
|
3340
3163
|
});
|
|
3341
3164
|
};
|
|
@@ -3365,9 +3188,6 @@ const serializeAws_json1_1PutEventsRequestEntryList = (input, context) => {
|
|
|
3365
3188
|
return input
|
|
3366
3189
|
.filter((e) => e != null)
|
|
3367
3190
|
.map((entry) => {
|
|
3368
|
-
if (entry === null) {
|
|
3369
|
-
return null;
|
|
3370
|
-
}
|
|
3371
3191
|
return serializeAws_json1_1PutEventsRequestEntry(entry, context);
|
|
3372
3192
|
});
|
|
3373
3193
|
};
|
|
@@ -3391,9 +3211,6 @@ const serializeAws_json1_1PutPartnerEventsRequestEntryList = (input, context) =>
|
|
|
3391
3211
|
return input
|
|
3392
3212
|
.filter((e) => e != null)
|
|
3393
3213
|
.map((entry) => {
|
|
3394
|
-
if (entry === null) {
|
|
3395
|
-
return null;
|
|
3396
|
-
}
|
|
3397
3214
|
return serializeAws_json1_1PutPartnerEventsRequestEntry(entry, context);
|
|
3398
3215
|
});
|
|
3399
3216
|
};
|
|
@@ -3474,9 +3291,6 @@ const serializeAws_json1_1ReplayDestinationFilters = (input, context) => {
|
|
|
3474
3291
|
return input
|
|
3475
3292
|
.filter((e) => e != null)
|
|
3476
3293
|
.map((entry) => {
|
|
3477
|
-
if (entry === null) {
|
|
3478
|
-
return null;
|
|
3479
|
-
}
|
|
3480
3294
|
return entry;
|
|
3481
3295
|
});
|
|
3482
3296
|
};
|
|
@@ -3503,9 +3317,6 @@ const serializeAws_json1_1RunCommandTargets = (input, context) => {
|
|
|
3503
3317
|
return input
|
|
3504
3318
|
.filter((e) => e != null)
|
|
3505
3319
|
.map((entry) => {
|
|
3506
|
-
if (entry === null) {
|
|
3507
|
-
return null;
|
|
3508
|
-
}
|
|
3509
3320
|
return serializeAws_json1_1RunCommandTarget(entry, context);
|
|
3510
3321
|
});
|
|
3511
3322
|
};
|
|
@@ -3513,9 +3324,6 @@ const serializeAws_json1_1RunCommandTargetValues = (input, context) => {
|
|
|
3513
3324
|
return input
|
|
3514
3325
|
.filter((e) => e != null)
|
|
3515
3326
|
.map((entry) => {
|
|
3516
|
-
if (entry === null) {
|
|
3517
|
-
return null;
|
|
3518
|
-
}
|
|
3519
3327
|
return entry;
|
|
3520
3328
|
});
|
|
3521
3329
|
};
|
|
@@ -3529,9 +3337,6 @@ const serializeAws_json1_1SageMakerPipelineParameterList = (input, context) => {
|
|
|
3529
3337
|
return input
|
|
3530
3338
|
.filter((e) => e != null)
|
|
3531
3339
|
.map((entry) => {
|
|
3532
|
-
if (entry === null) {
|
|
3533
|
-
return null;
|
|
3534
|
-
}
|
|
3535
3340
|
return serializeAws_json1_1SageMakerPipelineParameter(entry, context);
|
|
3536
3341
|
});
|
|
3537
3342
|
};
|
|
@@ -3563,9 +3368,6 @@ const serializeAws_json1_1StringList = (input, context) => {
|
|
|
3563
3368
|
return input
|
|
3564
3369
|
.filter((e) => e != null)
|
|
3565
3370
|
.map((entry) => {
|
|
3566
|
-
if (entry === null) {
|
|
3567
|
-
return null;
|
|
3568
|
-
}
|
|
3569
3371
|
return entry;
|
|
3570
3372
|
});
|
|
3571
3373
|
};
|
|
@@ -3579,9 +3381,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
3579
3381
|
return input
|
|
3580
3382
|
.filter((e) => e != null)
|
|
3581
3383
|
.map((entry) => {
|
|
3582
|
-
if (entry === null) {
|
|
3583
|
-
return null;
|
|
3584
|
-
}
|
|
3585
3384
|
return entry;
|
|
3586
3385
|
});
|
|
3587
3386
|
};
|
|
@@ -3589,9 +3388,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3589
3388
|
return input
|
|
3590
3389
|
.filter((e) => e != null)
|
|
3591
3390
|
.map((entry) => {
|
|
3592
|
-
if (entry === null) {
|
|
3593
|
-
return null;
|
|
3594
|
-
}
|
|
3595
3391
|
return serializeAws_json1_1Tag(entry, context);
|
|
3596
3392
|
});
|
|
3597
3393
|
};
|
|
@@ -3645,9 +3441,6 @@ const serializeAws_json1_1TargetIdList = (input, context) => {
|
|
|
3645
3441
|
return input
|
|
3646
3442
|
.filter((e) => e != null)
|
|
3647
3443
|
.map((entry) => {
|
|
3648
|
-
if (entry === null) {
|
|
3649
|
-
return null;
|
|
3650
|
-
}
|
|
3651
3444
|
return entry;
|
|
3652
3445
|
});
|
|
3653
3446
|
};
|
|
@@ -3655,9 +3448,6 @@ const serializeAws_json1_1TargetList = (input, context) => {
|
|
|
3655
3448
|
return input
|
|
3656
3449
|
.filter((e) => e != null)
|
|
3657
3450
|
.map((entry) => {
|
|
3658
|
-
if (entry === null) {
|
|
3659
|
-
return null;
|
|
3660
|
-
}
|
|
3661
3451
|
return serializeAws_json1_1Target(entry, context);
|
|
3662
3452
|
});
|
|
3663
3453
|
};
|