@aws-sdk/client-synthetics 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +42 -560
- package/dist-es/protocols/Aws_restJson1.js +40 -558
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -720,7 +720,7 @@ var se_UpdateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
720
720
|
}, "se_UpdateCanaryCommand");
|
|
721
721
|
var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
724
724
|
}
|
|
725
725
|
const contents = (0, import_smithy_client.map)({
|
|
726
726
|
$metadata: deserializeMetadata(output)
|
|
@@ -728,40 +728,9 @@ var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
728
728
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
729
729
|
return contents;
|
|
730
730
|
}, "de_AssociateResourceCommand");
|
|
731
|
-
var de_AssociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
732
|
-
const parsedOutput = {
|
|
733
|
-
...output,
|
|
734
|
-
body: await parseErrorBody(output.body, context)
|
|
735
|
-
};
|
|
736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
-
switch (errorCode) {
|
|
738
|
-
case "ConflictException":
|
|
739
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
740
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
741
|
-
case "InternalServerException":
|
|
742
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
743
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ResourceNotFoundException":
|
|
745
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
746
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ServiceQuotaExceededException":
|
|
748
|
-
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
749
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ValidationException":
|
|
751
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
}, "de_AssociateResourceCommandError");
|
|
762
731
|
var de_CreateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
763
732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
765
734
|
}
|
|
766
735
|
const contents = (0, import_smithy_client.map)({
|
|
767
736
|
$metadata: deserializeMetadata(output)
|
|
@@ -773,34 +742,9 @@ var de_CreateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
773
742
|
Object.assign(contents, doc);
|
|
774
743
|
return contents;
|
|
775
744
|
}, "de_CreateCanaryCommand");
|
|
776
|
-
var de_CreateCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context)
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "InternalServerException":
|
|
784
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
785
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
786
|
-
case "RequestEntityTooLargeException":
|
|
787
|
-
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
788
|
-
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ValidationException":
|
|
790
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
791
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
}, "de_CreateCanaryCommandError");
|
|
801
745
|
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return
|
|
747
|
+
return de_CommandError(output, context);
|
|
804
748
|
}
|
|
805
749
|
const contents = (0, import_smithy_client.map)({
|
|
806
750
|
$metadata: deserializeMetadata(output)
|
|
@@ -812,37 +756,9 @@ var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
812
756
|
Object.assign(contents, doc);
|
|
813
757
|
return contents;
|
|
814
758
|
}, "de_CreateGroupCommand");
|
|
815
|
-
var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
816
|
-
const parsedOutput = {
|
|
817
|
-
...output,
|
|
818
|
-
body: await parseErrorBody(output.body, context)
|
|
819
|
-
};
|
|
820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
-
switch (errorCode) {
|
|
822
|
-
case "ConflictException":
|
|
823
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
824
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InternalServerException":
|
|
826
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
827
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ServiceQuotaExceededException":
|
|
829
|
-
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
830
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ValidationException":
|
|
832
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
}, "de_CreateGroupCommandError");
|
|
843
759
|
var de_DeleteCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
-
return
|
|
761
|
+
return de_CommandError(output, context);
|
|
846
762
|
}
|
|
847
763
|
const contents = (0, import_smithy_client.map)({
|
|
848
764
|
$metadata: deserializeMetadata(output)
|
|
@@ -850,37 +766,9 @@ var de_DeleteCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
850
766
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
851
767
|
return contents;
|
|
852
768
|
}, "de_DeleteCanaryCommand");
|
|
853
|
-
var de_DeleteCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
-
const parsedOutput = {
|
|
855
|
-
...output,
|
|
856
|
-
body: await parseErrorBody(output.body, context)
|
|
857
|
-
};
|
|
858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
-
switch (errorCode) {
|
|
860
|
-
case "ConflictException":
|
|
861
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
862
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
863
|
-
case "InternalServerException":
|
|
864
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ResourceNotFoundException":
|
|
867
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ValidationException":
|
|
870
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
|
-
default:
|
|
873
|
-
const parsedBody = parsedOutput.body;
|
|
874
|
-
return throwDefaultError({
|
|
875
|
-
output,
|
|
876
|
-
parsedBody,
|
|
877
|
-
errorCode
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
}, "de_DeleteCanaryCommandError");
|
|
881
769
|
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
-
return
|
|
771
|
+
return de_CommandError(output, context);
|
|
884
772
|
}
|
|
885
773
|
const contents = (0, import_smithy_client.map)({
|
|
886
774
|
$metadata: deserializeMetadata(output)
|
|
@@ -888,37 +776,9 @@ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
888
776
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
889
777
|
return contents;
|
|
890
778
|
}, "de_DeleteGroupCommand");
|
|
891
|
-
var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context)
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "ConflictException":
|
|
899
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
900
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
901
|
-
case "InternalServerException":
|
|
902
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
903
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ResourceNotFoundException":
|
|
905
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ValidationException":
|
|
908
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
909
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
910
|
-
default:
|
|
911
|
-
const parsedBody = parsedOutput.body;
|
|
912
|
-
return throwDefaultError({
|
|
913
|
-
output,
|
|
914
|
-
parsedBody,
|
|
915
|
-
errorCode
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
}, "de_DeleteGroupCommandError");
|
|
919
779
|
var de_DescribeCanariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
922
782
|
}
|
|
923
783
|
const contents = (0, import_smithy_client.map)({
|
|
924
784
|
$metadata: deserializeMetadata(output)
|
|
@@ -931,31 +791,9 @@ var de_DescribeCanariesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
931
791
|
Object.assign(contents, doc);
|
|
932
792
|
return contents;
|
|
933
793
|
}, "de_DescribeCanariesCommand");
|
|
934
|
-
var de_DescribeCanariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
-
const parsedOutput = {
|
|
936
|
-
...output,
|
|
937
|
-
body: await parseErrorBody(output.body, context)
|
|
938
|
-
};
|
|
939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
-
switch (errorCode) {
|
|
941
|
-
case "InternalServerException":
|
|
942
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
943
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ValidationException":
|
|
945
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
946
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
947
|
-
default:
|
|
948
|
-
const parsedBody = parsedOutput.body;
|
|
949
|
-
return throwDefaultError({
|
|
950
|
-
output,
|
|
951
|
-
parsedBody,
|
|
952
|
-
errorCode
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
}, "de_DescribeCanariesCommandError");
|
|
956
794
|
var de_DescribeCanariesLastRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return
|
|
796
|
+
return de_CommandError(output, context);
|
|
959
797
|
}
|
|
960
798
|
const contents = (0, import_smithy_client.map)({
|
|
961
799
|
$metadata: deserializeMetadata(output)
|
|
@@ -968,31 +806,9 @@ var de_DescribeCanariesLastRunCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
968
806
|
Object.assign(contents, doc);
|
|
969
807
|
return contents;
|
|
970
808
|
}, "de_DescribeCanariesLastRunCommand");
|
|
971
|
-
var de_DescribeCanariesLastRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context)
|
|
975
|
-
};
|
|
976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
-
switch (errorCode) {
|
|
978
|
-
case "InternalServerException":
|
|
979
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
980
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ValidationException":
|
|
982
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
983
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
}, "de_DescribeCanariesLastRunCommandError");
|
|
993
809
|
var de_DescribeRuntimeVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
996
812
|
}
|
|
997
813
|
const contents = (0, import_smithy_client.map)({
|
|
998
814
|
$metadata: deserializeMetadata(output)
|
|
@@ -1005,31 +821,9 @@ var de_DescribeRuntimeVersionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1005
821
|
Object.assign(contents, doc);
|
|
1006
822
|
return contents;
|
|
1007
823
|
}, "de_DescribeRuntimeVersionsCommand");
|
|
1008
|
-
var de_DescribeRuntimeVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
|
-
const parsedOutput = {
|
|
1010
|
-
...output,
|
|
1011
|
-
body: await parseErrorBody(output.body, context)
|
|
1012
|
-
};
|
|
1013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
-
switch (errorCode) {
|
|
1015
|
-
case "InternalServerException":
|
|
1016
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ValidationException":
|
|
1019
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1020
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
}, "de_DescribeRuntimeVersionsCommandError");
|
|
1030
824
|
var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
1033
827
|
}
|
|
1034
828
|
const contents = (0, import_smithy_client.map)({
|
|
1035
829
|
$metadata: deserializeMetadata(output)
|
|
@@ -1037,37 +831,9 @@ var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1037
831
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1038
832
|
return contents;
|
|
1039
833
|
}, "de_DisassociateResourceCommand");
|
|
1040
|
-
var de_DisassociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
|
-
const parsedOutput = {
|
|
1042
|
-
...output,
|
|
1043
|
-
body: await parseErrorBody(output.body, context)
|
|
1044
|
-
};
|
|
1045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
-
switch (errorCode) {
|
|
1047
|
-
case "ConflictException":
|
|
1048
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1049
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InternalServerException":
|
|
1051
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1052
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ResourceNotFoundException":
|
|
1054
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ValidationException":
|
|
1057
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1058
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
|
-
default:
|
|
1060
|
-
const parsedBody = parsedOutput.body;
|
|
1061
|
-
return throwDefaultError({
|
|
1062
|
-
output,
|
|
1063
|
-
parsedBody,
|
|
1064
|
-
errorCode
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
}, "de_DisassociateResourceCommandError");
|
|
1068
834
|
var de_GetCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
836
|
+
return de_CommandError(output, context);
|
|
1071
837
|
}
|
|
1072
838
|
const contents = (0, import_smithy_client.map)({
|
|
1073
839
|
$metadata: deserializeMetadata(output)
|
|
@@ -1079,31 +845,9 @@ var de_GetCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1079
845
|
Object.assign(contents, doc);
|
|
1080
846
|
return contents;
|
|
1081
847
|
}, "de_GetCanaryCommand");
|
|
1082
|
-
var de_GetCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context)
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "InternalServerException":
|
|
1090
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1091
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ValidationException":
|
|
1093
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1094
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1095
|
-
default:
|
|
1096
|
-
const parsedBody = parsedOutput.body;
|
|
1097
|
-
return throwDefaultError({
|
|
1098
|
-
output,
|
|
1099
|
-
parsedBody,
|
|
1100
|
-
errorCode
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
}, "de_GetCanaryCommandError");
|
|
1104
848
|
var de_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1105
849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
1107
851
|
}
|
|
1108
852
|
const contents = (0, import_smithy_client.map)({
|
|
1109
853
|
$metadata: deserializeMetadata(output)
|
|
@@ -1115,35 +859,10 @@ var de_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1115
859
|
});
|
|
1116
860
|
Object.assign(contents, doc);
|
|
1117
861
|
return contents;
|
|
1118
|
-
}, "de_GetCanaryRunsCommand");
|
|
1119
|
-
var de_GetCanaryRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context)
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "InternalServerException":
|
|
1127
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1128
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ResourceNotFoundException":
|
|
1130
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1131
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ValidationException":
|
|
1133
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1134
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
return throwDefaultError({
|
|
1138
|
-
output,
|
|
1139
|
-
parsedBody,
|
|
1140
|
-
errorCode
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}, "de_GetCanaryRunsCommandError");
|
|
862
|
+
}, "de_GetCanaryRunsCommand");
|
|
1144
863
|
var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return
|
|
865
|
+
return de_CommandError(output, context);
|
|
1147
866
|
}
|
|
1148
867
|
const contents = (0, import_smithy_client.map)({
|
|
1149
868
|
$metadata: deserializeMetadata(output)
|
|
@@ -1155,37 +874,9 @@ var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1155
874
|
Object.assign(contents, doc);
|
|
1156
875
|
return contents;
|
|
1157
876
|
}, "de_GetGroupCommand");
|
|
1158
|
-
var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
-
const parsedOutput = {
|
|
1160
|
-
...output,
|
|
1161
|
-
body: await parseErrorBody(output.body, context)
|
|
1162
|
-
};
|
|
1163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
-
switch (errorCode) {
|
|
1165
|
-
case "ConflictException":
|
|
1166
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1167
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "InternalServerException":
|
|
1169
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1170
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ResourceNotFoundException":
|
|
1172
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ValidationException":
|
|
1175
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1176
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1177
|
-
default:
|
|
1178
|
-
const parsedBody = parsedOutput.body;
|
|
1179
|
-
return throwDefaultError({
|
|
1180
|
-
output,
|
|
1181
|
-
parsedBody,
|
|
1182
|
-
errorCode
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
}, "de_GetGroupCommandError");
|
|
1186
877
|
var de_ListAssociatedGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1189
880
|
}
|
|
1190
881
|
const contents = (0, import_smithy_client.map)({
|
|
1191
882
|
$metadata: deserializeMetadata(output)
|
|
@@ -1198,34 +889,9 @@ var de_ListAssociatedGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1198
889
|
Object.assign(contents, doc);
|
|
1199
890
|
return contents;
|
|
1200
891
|
}, "de_ListAssociatedGroupsCommand");
|
|
1201
|
-
var de_ListAssociatedGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1202
|
-
const parsedOutput = {
|
|
1203
|
-
...output,
|
|
1204
|
-
body: await parseErrorBody(output.body, context)
|
|
1205
|
-
};
|
|
1206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
-
switch (errorCode) {
|
|
1208
|
-
case "InternalServerException":
|
|
1209
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1210
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ResourceNotFoundException":
|
|
1212
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ValidationException":
|
|
1215
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1216
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
|
-
default:
|
|
1218
|
-
const parsedBody = parsedOutput.body;
|
|
1219
|
-
return throwDefaultError({
|
|
1220
|
-
output,
|
|
1221
|
-
parsedBody,
|
|
1222
|
-
errorCode
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
}, "de_ListAssociatedGroupsCommandError");
|
|
1226
892
|
var de_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
1229
895
|
}
|
|
1230
896
|
const contents = (0, import_smithy_client.map)({
|
|
1231
897
|
$metadata: deserializeMetadata(output)
|
|
@@ -1238,37 +904,9 @@ var de_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1238
904
|
Object.assign(contents, doc);
|
|
1239
905
|
return contents;
|
|
1240
906
|
}, "de_ListGroupResourcesCommand");
|
|
1241
|
-
var de_ListGroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1242
|
-
const parsedOutput = {
|
|
1243
|
-
...output,
|
|
1244
|
-
body: await parseErrorBody(output.body, context)
|
|
1245
|
-
};
|
|
1246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
|
-
switch (errorCode) {
|
|
1248
|
-
case "ConflictException":
|
|
1249
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1250
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "InternalServerException":
|
|
1252
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1253
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ResourceNotFoundException":
|
|
1255
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ValidationException":
|
|
1258
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1260
|
-
default:
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
return throwDefaultError({
|
|
1263
|
-
output,
|
|
1264
|
-
parsedBody,
|
|
1265
|
-
errorCode
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
}, "de_ListGroupResourcesCommandError");
|
|
1269
907
|
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1270
908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1271
|
-
return
|
|
909
|
+
return de_CommandError(output, context);
|
|
1272
910
|
}
|
|
1273
911
|
const contents = (0, import_smithy_client.map)({
|
|
1274
912
|
$metadata: deserializeMetadata(output)
|
|
@@ -1281,31 +919,9 @@ var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1281
919
|
Object.assign(contents, doc);
|
|
1282
920
|
return contents;
|
|
1283
921
|
}, "de_ListGroupsCommand");
|
|
1284
|
-
var de_ListGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
|
-
const parsedOutput = {
|
|
1286
|
-
...output,
|
|
1287
|
-
body: await parseErrorBody(output.body, context)
|
|
1288
|
-
};
|
|
1289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
-
switch (errorCode) {
|
|
1291
|
-
case "InternalServerException":
|
|
1292
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1293
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ValidationException":
|
|
1295
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1296
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1297
|
-
default:
|
|
1298
|
-
const parsedBody = parsedOutput.body;
|
|
1299
|
-
return throwDefaultError({
|
|
1300
|
-
output,
|
|
1301
|
-
parsedBody,
|
|
1302
|
-
errorCode
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}, "de_ListGroupsCommandError");
|
|
1306
922
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
1309
925
|
}
|
|
1310
926
|
const contents = (0, import_smithy_client.map)({
|
|
1311
927
|
$metadata: deserializeMetadata(output)
|
|
@@ -1317,40 +933,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1317
933
|
Object.assign(contents, doc);
|
|
1318
934
|
return contents;
|
|
1319
935
|
}, "de_ListTagsForResourceCommand");
|
|
1320
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1321
|
-
const parsedOutput = {
|
|
1322
|
-
...output,
|
|
1323
|
-
body: await parseErrorBody(output.body, context)
|
|
1324
|
-
};
|
|
1325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
-
switch (errorCode) {
|
|
1327
|
-
case "BadRequestException":
|
|
1328
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
1329
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ConflictException":
|
|
1331
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1332
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "InternalFailureException":
|
|
1334
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1335
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "NotFoundException":
|
|
1337
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
1338
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "TooManyRequestsException":
|
|
1340
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1341
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1342
|
-
default:
|
|
1343
|
-
const parsedBody = parsedOutput.body;
|
|
1344
|
-
return throwDefaultError({
|
|
1345
|
-
output,
|
|
1346
|
-
parsedBody,
|
|
1347
|
-
errorCode
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1351
936
|
var de_StartCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
1354
939
|
}
|
|
1355
940
|
const contents = (0, import_smithy_client.map)({
|
|
1356
941
|
$metadata: deserializeMetadata(output)
|
|
@@ -1358,37 +943,9 @@ var de_StartCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1358
943
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1359
944
|
return contents;
|
|
1360
945
|
}, "de_StartCanaryCommand");
|
|
1361
|
-
var de_StartCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context)
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "ConflictException":
|
|
1369
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1370
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "InternalServerException":
|
|
1372
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1373
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ResourceNotFoundException":
|
|
1375
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ValidationException":
|
|
1378
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
}, "de_StartCanaryCommandError");
|
|
1389
946
|
var de_StopCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
948
|
+
return de_CommandError(output, context);
|
|
1392
949
|
}
|
|
1393
950
|
const contents = (0, import_smithy_client.map)({
|
|
1394
951
|
$metadata: deserializeMetadata(output)
|
|
@@ -1396,37 +953,9 @@ var de_StopCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1396
953
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1397
954
|
return contents;
|
|
1398
955
|
}, "de_StopCanaryCommand");
|
|
1399
|
-
var de_StopCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
|
-
const parsedOutput = {
|
|
1401
|
-
...output,
|
|
1402
|
-
body: await parseErrorBody(output.body, context)
|
|
1403
|
-
};
|
|
1404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
-
switch (errorCode) {
|
|
1406
|
-
case "ConflictException":
|
|
1407
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1408
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "InternalServerException":
|
|
1410
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
1411
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ResourceNotFoundException":
|
|
1413
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ValidationException":
|
|
1416
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
1417
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1418
|
-
default:
|
|
1419
|
-
const parsedBody = parsedOutput.body;
|
|
1420
|
-
return throwDefaultError({
|
|
1421
|
-
output,
|
|
1422
|
-
parsedBody,
|
|
1423
|
-
errorCode
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
}, "de_StopCanaryCommandError");
|
|
1427
956
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
958
|
+
return de_CommandError(output, context);
|
|
1430
959
|
}
|
|
1431
960
|
const contents = (0, import_smithy_client.map)({
|
|
1432
961
|
$metadata: deserializeMetadata(output)
|
|
@@ -1434,40 +963,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1434
963
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1435
964
|
return contents;
|
|
1436
965
|
}, "de_TagResourceCommand");
|
|
1437
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
-
const parsedOutput = {
|
|
1439
|
-
...output,
|
|
1440
|
-
body: await parseErrorBody(output.body, context)
|
|
1441
|
-
};
|
|
1442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
-
switch (errorCode) {
|
|
1444
|
-
case "BadRequestException":
|
|
1445
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
1446
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ConflictException":
|
|
1448
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1449
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "InternalFailureException":
|
|
1451
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1452
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "NotFoundException":
|
|
1454
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
1455
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "TooManyRequestsException":
|
|
1457
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1458
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1459
|
-
default:
|
|
1460
|
-
const parsedBody = parsedOutput.body;
|
|
1461
|
-
return throwDefaultError({
|
|
1462
|
-
output,
|
|
1463
|
-
parsedBody,
|
|
1464
|
-
errorCode
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
}, "de_TagResourceCommandError");
|
|
1468
966
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1469
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
1471
969
|
}
|
|
1472
970
|
const contents = (0, import_smithy_client.map)({
|
|
1473
971
|
$metadata: deserializeMetadata(output)
|
|
@@ -1475,40 +973,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1475
973
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1476
974
|
return contents;
|
|
1477
975
|
}, "de_UntagResourceCommand");
|
|
1478
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context)
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "BadRequestException":
|
|
1486
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
1487
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ConflictException":
|
|
1489
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1490
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InternalFailureException":
|
|
1492
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1493
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "NotFoundException":
|
|
1495
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
1496
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "TooManyRequestsException":
|
|
1498
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1499
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
}, "de_UntagResourceCommandError");
|
|
1509
976
|
var de_UpdateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
978
|
+
return de_CommandError(output, context);
|
|
1512
979
|
}
|
|
1513
980
|
const contents = (0, import_smithy_client.map)({
|
|
1514
981
|
$metadata: deserializeMetadata(output)
|
|
@@ -1516,7 +983,7 @@ var de_UpdateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1516
983
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1517
984
|
return contents;
|
|
1518
985
|
}, "de_UpdateCanaryCommand");
|
|
1519
|
-
var
|
|
986
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1520
987
|
const parsedOutput = {
|
|
1521
988
|
...output,
|
|
1522
989
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1529,15 +996,30 @@ var de_UpdateCanaryCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1529
996
|
case "InternalServerException":
|
|
1530
997
|
case "com.amazonaws.synthetics#InternalServerException":
|
|
1531
998
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "RequestEntityTooLargeException":
|
|
1533
|
-
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
1534
|
-
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
1535
999
|
case "ResourceNotFoundException":
|
|
1536
1000
|
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1537
1001
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
+
case "ServiceQuotaExceededException":
|
|
1003
|
+
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
1004
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1538
1005
|
case "ValidationException":
|
|
1539
1006
|
case "com.amazonaws.synthetics#ValidationException":
|
|
1540
1007
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "RequestEntityTooLargeException":
|
|
1009
|
+
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
1010
|
+
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "BadRequestException":
|
|
1012
|
+
case "com.amazonaws.synthetics#BadRequestException":
|
|
1013
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1014
|
+
case "InternalFailureException":
|
|
1015
|
+
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1016
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1017
|
+
case "NotFoundException":
|
|
1018
|
+
case "com.amazonaws.synthetics#NotFoundException":
|
|
1019
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1020
|
+
case "TooManyRequestsException":
|
|
1021
|
+
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1022
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1541
1023
|
default:
|
|
1542
1024
|
const parsedBody = parsedOutput.body;
|
|
1543
1025
|
return throwDefaultError({
|
|
@@ -1546,7 +1028,7 @@ var de_UpdateCanaryCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1546
1028
|
errorCode
|
|
1547
1029
|
});
|
|
1548
1030
|
}
|
|
1549
|
-
}, "
|
|
1031
|
+
}, "de_CommandError");
|
|
1550
1032
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SyntheticsServiceException);
|
|
1551
1033
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1552
1034
|
const contents = (0, import_smithy_client.map)({});
|