@aws-sdk/client-outposts 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 +56 -762
- package/dist-es/protocols/Aws_restJson1.js +46 -752
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -837,7 +837,7 @@ var se_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (i
|
|
|
837
837
|
}, "se_UpdateSiteRackPhysicalPropertiesCommand");
|
|
838
838
|
var de_CancelOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
839
839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
840
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
841
841
|
}
|
|
842
842
|
const contents = (0, import_smithy_client.map)({
|
|
843
843
|
$metadata: deserializeMetadata(output)
|
|
@@ -845,40 +845,9 @@ var de_CancelOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
845
845
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
846
846
|
return contents;
|
|
847
847
|
}, "de_CancelOrderCommand");
|
|
848
|
-
var de_CancelOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
|
-
const parsedOutput = {
|
|
850
|
-
...output,
|
|
851
|
-
body: await parseErrorBody(output.body, context)
|
|
852
|
-
};
|
|
853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "AccessDeniedException":
|
|
856
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
857
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ConflictException":
|
|
859
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
860
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
861
|
-
case "InternalServerException":
|
|
862
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
863
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
864
|
-
case "NotFoundException":
|
|
865
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
866
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ValidationException":
|
|
868
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
870
|
-
default:
|
|
871
|
-
const parsedBody = parsedOutput.body;
|
|
872
|
-
return throwDefaultError({
|
|
873
|
-
output,
|
|
874
|
-
parsedBody,
|
|
875
|
-
errorCode
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
}, "de_CancelOrderCommandError");
|
|
879
848
|
var de_CreateOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
880
849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
882
851
|
}
|
|
883
852
|
const contents = (0, import_smithy_client.map)({
|
|
884
853
|
$metadata: deserializeMetadata(output)
|
|
@@ -890,43 +859,9 @@ var de_CreateOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
890
859
|
Object.assign(contents, doc);
|
|
891
860
|
return contents;
|
|
892
861
|
}, "de_CreateOrderCommand");
|
|
893
|
-
var de_CreateOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
-
const parsedOutput = {
|
|
895
|
-
...output,
|
|
896
|
-
body: await parseErrorBody(output.body, context)
|
|
897
|
-
};
|
|
898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
|
-
switch (errorCode) {
|
|
900
|
-
case "AccessDeniedException":
|
|
901
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
902
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ConflictException":
|
|
904
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
905
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
906
|
-
case "InternalServerException":
|
|
907
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
908
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
909
|
-
case "NotFoundException":
|
|
910
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
911
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ServiceQuotaExceededException":
|
|
913
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
914
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ValidationException":
|
|
916
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
}, "de_CreateOrderCommandError");
|
|
927
862
|
var de_CreateOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
930
865
|
}
|
|
931
866
|
const contents = (0, import_smithy_client.map)({
|
|
932
867
|
$metadata: deserializeMetadata(output)
|
|
@@ -938,43 +873,9 @@ var de_CreateOutpostCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
938
873
|
Object.assign(contents, doc);
|
|
939
874
|
return contents;
|
|
940
875
|
}, "de_CreateOutpostCommand");
|
|
941
|
-
var de_CreateOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context)
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "AccessDeniedException":
|
|
949
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ConflictException":
|
|
952
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
953
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
954
|
-
case "InternalServerException":
|
|
955
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
956
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
957
|
-
case "NotFoundException":
|
|
958
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
959
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ServiceQuotaExceededException":
|
|
961
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
962
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ValidationException":
|
|
964
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
965
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
966
|
-
default:
|
|
967
|
-
const parsedBody = parsedOutput.body;
|
|
968
|
-
return throwDefaultError({
|
|
969
|
-
output,
|
|
970
|
-
parsedBody,
|
|
971
|
-
errorCode
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
}, "de_CreateOutpostCommandError");
|
|
975
876
|
var de_CreateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
-
return
|
|
878
|
+
return de_CommandError(output, context);
|
|
978
879
|
}
|
|
979
880
|
const contents = (0, import_smithy_client.map)({
|
|
980
881
|
$metadata: deserializeMetadata(output)
|
|
@@ -986,40 +887,9 @@ var de_CreateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
986
887
|
Object.assign(contents, doc);
|
|
987
888
|
return contents;
|
|
988
889
|
}, "de_CreateSiteCommand");
|
|
989
|
-
var de_CreateSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
|
-
const parsedOutput = {
|
|
991
|
-
...output,
|
|
992
|
-
body: await parseErrorBody(output.body, context)
|
|
993
|
-
};
|
|
994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
|
-
switch (errorCode) {
|
|
996
|
-
case "AccessDeniedException":
|
|
997
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
998
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ConflictException":
|
|
1000
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1001
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "InternalServerException":
|
|
1003
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1004
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ServiceQuotaExceededException":
|
|
1006
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
1007
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ValidationException":
|
|
1009
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
}, "de_CreateSiteCommandError");
|
|
1020
890
|
var de_DeleteOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1021
891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1023
893
|
}
|
|
1024
894
|
const contents = (0, import_smithy_client.map)({
|
|
1025
895
|
$metadata: deserializeMetadata(output)
|
|
@@ -1027,40 +897,9 @@ var de_DeleteOutpostCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1027
897
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1028
898
|
return contents;
|
|
1029
899
|
}, "de_DeleteOutpostCommand");
|
|
1030
|
-
var de_DeleteOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
|
-
const parsedOutput = {
|
|
1032
|
-
...output,
|
|
1033
|
-
body: await parseErrorBody(output.body, context)
|
|
1034
|
-
};
|
|
1035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
-
switch (errorCode) {
|
|
1037
|
-
case "AccessDeniedException":
|
|
1038
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1039
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ConflictException":
|
|
1041
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1042
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "InternalServerException":
|
|
1044
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1045
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "NotFoundException":
|
|
1047
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1048
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ValidationException":
|
|
1050
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
|
-
default:
|
|
1053
|
-
const parsedBody = parsedOutput.body;
|
|
1054
|
-
return throwDefaultError({
|
|
1055
|
-
output,
|
|
1056
|
-
parsedBody,
|
|
1057
|
-
errorCode
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
}, "de_DeleteOutpostCommandError");
|
|
1061
900
|
var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1062
901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1064
903
|
}
|
|
1065
904
|
const contents = (0, import_smithy_client.map)({
|
|
1066
905
|
$metadata: deserializeMetadata(output)
|
|
@@ -1068,40 +907,9 @@ var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1068
907
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1069
908
|
return contents;
|
|
1070
909
|
}, "de_DeleteSiteCommand");
|
|
1071
|
-
var de_DeleteSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1072
|
-
const parsedOutput = {
|
|
1073
|
-
...output,
|
|
1074
|
-
body: await parseErrorBody(output.body, context)
|
|
1075
|
-
};
|
|
1076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
-
switch (errorCode) {
|
|
1078
|
-
case "AccessDeniedException":
|
|
1079
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1080
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ConflictException":
|
|
1082
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1083
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "InternalServerException":
|
|
1085
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1086
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "NotFoundException":
|
|
1088
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1089
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ValidationException":
|
|
1091
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
return throwDefaultError({
|
|
1096
|
-
output,
|
|
1097
|
-
parsedBody,
|
|
1098
|
-
errorCode
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
}, "de_DeleteSiteCommandError");
|
|
1102
910
|
var de_GetCatalogItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1105
913
|
}
|
|
1106
914
|
const contents = (0, import_smithy_client.map)({
|
|
1107
915
|
$metadata: deserializeMetadata(output)
|
|
@@ -1113,34 +921,9 @@ var de_GetCatalogItemCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1113
921
|
Object.assign(contents, doc);
|
|
1114
922
|
return contents;
|
|
1115
923
|
}, "de_GetCatalogItemCommand");
|
|
1116
|
-
var de_GetCatalogItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
|
-
const parsedOutput = {
|
|
1118
|
-
...output,
|
|
1119
|
-
body: await parseErrorBody(output.body, context)
|
|
1120
|
-
};
|
|
1121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
-
switch (errorCode) {
|
|
1123
|
-
case "InternalServerException":
|
|
1124
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1125
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "NotFoundException":
|
|
1127
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1128
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ValidationException":
|
|
1130
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
}, "de_GetCatalogItemCommandError");
|
|
1141
924
|
var de_GetConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1142
925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
926
|
+
return de_CommandError(output, context);
|
|
1144
927
|
}
|
|
1145
928
|
const contents = (0, import_smithy_client.map)({
|
|
1146
929
|
$metadata: deserializeMetadata(output)
|
|
@@ -1153,37 +936,9 @@ var de_GetConnectionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1153
936
|
Object.assign(contents, doc);
|
|
1154
937
|
return contents;
|
|
1155
938
|
}, "de_GetConnectionCommand");
|
|
1156
|
-
var de_GetConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context)
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "AccessDeniedException":
|
|
1164
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "InternalServerException":
|
|
1167
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1168
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "NotFoundException":
|
|
1170
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1171
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ValidationException":
|
|
1173
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
}, "de_GetConnectionCommandError");
|
|
1184
939
|
var de_GetOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1185
940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1187
942
|
}
|
|
1188
943
|
const contents = (0, import_smithy_client.map)({
|
|
1189
944
|
$metadata: deserializeMetadata(output)
|
|
@@ -1195,34 +950,9 @@ var de_GetOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1195
950
|
Object.assign(contents, doc);
|
|
1196
951
|
return contents;
|
|
1197
952
|
}, "de_GetOrderCommand");
|
|
1198
|
-
var de_GetOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context)
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "InternalServerException":
|
|
1206
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1207
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "NotFoundException":
|
|
1209
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1210
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ValidationException":
|
|
1212
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1213
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1214
|
-
default:
|
|
1215
|
-
const parsedBody = parsedOutput.body;
|
|
1216
|
-
return throwDefaultError({
|
|
1217
|
-
output,
|
|
1218
|
-
parsedBody,
|
|
1219
|
-
errorCode
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
}, "de_GetOrderCommandError");
|
|
1223
953
|
var de_GetOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1226
956
|
}
|
|
1227
957
|
const contents = (0, import_smithy_client.map)({
|
|
1228
958
|
$metadata: deserializeMetadata(output)
|
|
@@ -1234,37 +964,9 @@ var de_GetOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1234
964
|
Object.assign(contents, doc);
|
|
1235
965
|
return contents;
|
|
1236
966
|
}, "de_GetOutpostCommand");
|
|
1237
|
-
var de_GetOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context)
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "AccessDeniedException":
|
|
1245
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1246
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "InternalServerException":
|
|
1248
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1249
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "NotFoundException":
|
|
1251
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1252
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ValidationException":
|
|
1254
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
-
default:
|
|
1257
|
-
const parsedBody = parsedOutput.body;
|
|
1258
|
-
return throwDefaultError({
|
|
1259
|
-
output,
|
|
1260
|
-
parsedBody,
|
|
1261
|
-
errorCode
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
}, "de_GetOutpostCommandError");
|
|
1265
967
|
var de_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
969
|
+
return de_CommandError(output, context);
|
|
1268
970
|
}
|
|
1269
971
|
const contents = (0, import_smithy_client.map)({
|
|
1270
972
|
$metadata: deserializeMetadata(output)
|
|
@@ -1279,37 +981,9 @@ var de_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1279
981
|
Object.assign(contents, doc);
|
|
1280
982
|
return contents;
|
|
1281
983
|
}, "de_GetOutpostInstanceTypesCommand");
|
|
1282
|
-
var de_GetOutpostInstanceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1283
|
-
const parsedOutput = {
|
|
1284
|
-
...output,
|
|
1285
|
-
body: await parseErrorBody(output.body, context)
|
|
1286
|
-
};
|
|
1287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
-
switch (errorCode) {
|
|
1289
|
-
case "AccessDeniedException":
|
|
1290
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "InternalServerException":
|
|
1293
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "NotFoundException":
|
|
1296
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1297
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ValidationException":
|
|
1299
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1301
|
-
default:
|
|
1302
|
-
const parsedBody = parsedOutput.body;
|
|
1303
|
-
return throwDefaultError({
|
|
1304
|
-
output,
|
|
1305
|
-
parsedBody,
|
|
1306
|
-
errorCode
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
}, "de_GetOutpostInstanceTypesCommandError");
|
|
1310
984
|
var de_GetSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1311
985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1312
|
-
return
|
|
986
|
+
return de_CommandError(output, context);
|
|
1313
987
|
}
|
|
1314
988
|
const contents = (0, import_smithy_client.map)({
|
|
1315
989
|
$metadata: deserializeMetadata(output)
|
|
@@ -1321,37 +995,9 @@ var de_GetSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1321
995
|
Object.assign(contents, doc);
|
|
1322
996
|
return contents;
|
|
1323
997
|
}, "de_GetSiteCommand");
|
|
1324
|
-
var de_GetSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
|
-
const parsedOutput = {
|
|
1326
|
-
...output,
|
|
1327
|
-
body: await parseErrorBody(output.body, context)
|
|
1328
|
-
};
|
|
1329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
|
-
switch (errorCode) {
|
|
1331
|
-
case "AccessDeniedException":
|
|
1332
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1333
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "InternalServerException":
|
|
1335
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1336
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "NotFoundException":
|
|
1338
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1339
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ValidationException":
|
|
1341
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1342
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1343
|
-
default:
|
|
1344
|
-
const parsedBody = parsedOutput.body;
|
|
1345
|
-
return throwDefaultError({
|
|
1346
|
-
output,
|
|
1347
|
-
parsedBody,
|
|
1348
|
-
errorCode
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
}, "de_GetSiteCommandError");
|
|
1352
998
|
var de_GetSiteAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1353
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1354
|
-
return
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1355
1001
|
}
|
|
1356
1002
|
const contents = (0, import_smithy_client.map)({
|
|
1357
1003
|
$metadata: deserializeMetadata(output)
|
|
@@ -1365,37 +1011,9 @@ var de_GetSiteAddressCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1365
1011
|
Object.assign(contents, doc);
|
|
1366
1012
|
return contents;
|
|
1367
1013
|
}, "de_GetSiteAddressCommand");
|
|
1368
|
-
var de_GetSiteAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1369
|
-
const parsedOutput = {
|
|
1370
|
-
...output,
|
|
1371
|
-
body: await parseErrorBody(output.body, context)
|
|
1372
|
-
};
|
|
1373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
-
switch (errorCode) {
|
|
1375
|
-
case "AccessDeniedException":
|
|
1376
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1377
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "InternalServerException":
|
|
1379
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1380
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "NotFoundException":
|
|
1382
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1383
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ValidationException":
|
|
1385
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
}, "de_GetSiteAddressCommandError");
|
|
1396
1014
|
var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1397
1015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1399
1017
|
}
|
|
1400
1018
|
const contents = (0, import_smithy_client.map)({
|
|
1401
1019
|
$metadata: deserializeMetadata(output)
|
|
@@ -1408,120 +1026,39 @@ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1408
1026
|
Object.assign(contents, doc);
|
|
1409
1027
|
return contents;
|
|
1410
1028
|
}, "de_ListAssetsCommand");
|
|
1411
|
-
var de_ListAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1412
|
-
const parsedOutput = {
|
|
1413
|
-
...output,
|
|
1414
|
-
body: await parseErrorBody(output.body, context)
|
|
1415
|
-
};
|
|
1416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
-
switch (errorCode) {
|
|
1418
|
-
case "AccessDeniedException":
|
|
1419
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1420
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "InternalServerException":
|
|
1422
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1423
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "NotFoundException":
|
|
1425
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1426
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ValidationException":
|
|
1428
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1429
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
}, "de_ListAssetsCommandError");
|
|
1439
1029
|
var de_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
1442
|
-
}
|
|
1443
|
-
const contents = (0, import_smithy_client.map)({
|
|
1444
|
-
$metadata: deserializeMetadata(output)
|
|
1445
|
-
});
|
|
1446
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1447
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1448
|
-
CatalogItems: (_) => de_CatalogItemListDefinition(_, context),
|
|
1449
|
-
NextToken: import_smithy_client.expectString
|
|
1450
|
-
});
|
|
1451
|
-
Object.assign(contents, doc);
|
|
1452
|
-
return contents;
|
|
1453
|
-
}, "de_ListCatalogItemsCommand");
|
|
1454
|
-
var de_ListCatalogItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context)
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "InternalServerException":
|
|
1462
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1463
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "NotFoundException":
|
|
1465
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1466
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ValidationException":
|
|
1468
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1469
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1470
|
-
default:
|
|
1471
|
-
const parsedBody = parsedOutput.body;
|
|
1472
|
-
return throwDefaultError({
|
|
1473
|
-
output,
|
|
1474
|
-
parsedBody,
|
|
1475
|
-
errorCode
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
}, "de_ListCatalogItemsCommandError");
|
|
1479
|
-
var de_ListOrdersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return de_ListOrdersCommandError(output, context);
|
|
1482
|
-
}
|
|
1483
|
-
const contents = (0, import_smithy_client.map)({
|
|
1484
|
-
$metadata: deserializeMetadata(output)
|
|
1485
|
-
});
|
|
1486
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1487
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1488
|
-
NextToken: import_smithy_client.expectString,
|
|
1489
|
-
Orders: (_) => de_OrderSummaryListDefinition(_, context)
|
|
1490
|
-
});
|
|
1491
|
-
Object.assign(contents, doc);
|
|
1492
|
-
return contents;
|
|
1493
|
-
}, "de_ListOrdersCommand");
|
|
1494
|
-
var de_ListOrdersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1495
|
-
const parsedOutput = {
|
|
1496
|
-
...output,
|
|
1497
|
-
body: await parseErrorBody(output.body, context)
|
|
1498
|
-
};
|
|
1499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
-
switch (errorCode) {
|
|
1501
|
-
case "AccessDeniedException":
|
|
1502
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "InternalServerException":
|
|
1505
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1506
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "NotFoundException":
|
|
1508
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1509
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ValidationException":
|
|
1511
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1512
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1513
|
-
default:
|
|
1514
|
-
const parsedBody = parsedOutput.body;
|
|
1515
|
-
return throwDefaultError({
|
|
1516
|
-
output,
|
|
1517
|
-
parsedBody,
|
|
1518
|
-
errorCode
|
|
1519
|
-
});
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1520
1032
|
}
|
|
1521
|
-
|
|
1033
|
+
const contents = (0, import_smithy_client.map)({
|
|
1034
|
+
$metadata: deserializeMetadata(output)
|
|
1035
|
+
});
|
|
1036
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1037
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1038
|
+
CatalogItems: (_) => de_CatalogItemListDefinition(_, context),
|
|
1039
|
+
NextToken: import_smithy_client.expectString
|
|
1040
|
+
});
|
|
1041
|
+
Object.assign(contents, doc);
|
|
1042
|
+
return contents;
|
|
1043
|
+
}, "de_ListCatalogItemsCommand");
|
|
1044
|
+
var de_ListOrdersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1045
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1047
|
+
}
|
|
1048
|
+
const contents = (0, import_smithy_client.map)({
|
|
1049
|
+
$metadata: deserializeMetadata(output)
|
|
1050
|
+
});
|
|
1051
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1052
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1053
|
+
NextToken: import_smithy_client.expectString,
|
|
1054
|
+
Orders: (_) => de_OrderSummaryListDefinition(_, context)
|
|
1055
|
+
});
|
|
1056
|
+
Object.assign(contents, doc);
|
|
1057
|
+
return contents;
|
|
1058
|
+
}, "de_ListOrdersCommand");
|
|
1522
1059
|
var de_ListOutpostsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1523
1060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1524
|
-
return
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1525
1062
|
}
|
|
1526
1063
|
const contents = (0, import_smithy_client.map)({
|
|
1527
1064
|
$metadata: deserializeMetadata(output)
|
|
@@ -1534,34 +1071,9 @@ var de_ListOutpostsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1534
1071
|
Object.assign(contents, doc);
|
|
1535
1072
|
return contents;
|
|
1536
1073
|
}, "de_ListOutpostsCommand");
|
|
1537
|
-
var de_ListOutpostsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
|
-
const parsedOutput = {
|
|
1539
|
-
...output,
|
|
1540
|
-
body: await parseErrorBody(output.body, context)
|
|
1541
|
-
};
|
|
1542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
-
switch (errorCode) {
|
|
1544
|
-
case "AccessDeniedException":
|
|
1545
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1546
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "InternalServerException":
|
|
1548
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1549
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ValidationException":
|
|
1551
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1553
|
-
default:
|
|
1554
|
-
const parsedBody = parsedOutput.body;
|
|
1555
|
-
return throwDefaultError({
|
|
1556
|
-
output,
|
|
1557
|
-
parsedBody,
|
|
1558
|
-
errorCode
|
|
1559
|
-
});
|
|
1560
|
-
}
|
|
1561
|
-
}, "de_ListOutpostsCommandError");
|
|
1562
1074
|
var de_ListSitesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1563
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1565
1077
|
}
|
|
1566
1078
|
const contents = (0, import_smithy_client.map)({
|
|
1567
1079
|
$metadata: deserializeMetadata(output)
|
|
@@ -1574,34 +1086,9 @@ var de_ListSitesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1574
1086
|
Object.assign(contents, doc);
|
|
1575
1087
|
return contents;
|
|
1576
1088
|
}, "de_ListSitesCommand");
|
|
1577
|
-
var de_ListSitesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1578
|
-
const parsedOutput = {
|
|
1579
|
-
...output,
|
|
1580
|
-
body: await parseErrorBody(output.body, context)
|
|
1581
|
-
};
|
|
1582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
|
-
switch (errorCode) {
|
|
1584
|
-
case "AccessDeniedException":
|
|
1585
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "InternalServerException":
|
|
1588
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ValidationException":
|
|
1591
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody,
|
|
1598
|
-
errorCode
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
}, "de_ListSitesCommandError");
|
|
1602
1089
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1603
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1605
1092
|
}
|
|
1606
1093
|
const contents = (0, import_smithy_client.map)({
|
|
1607
1094
|
$metadata: deserializeMetadata(output)
|
|
@@ -1613,34 +1100,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1613
1100
|
Object.assign(contents, doc);
|
|
1614
1101
|
return contents;
|
|
1615
1102
|
}, "de_ListTagsForResourceCommand");
|
|
1616
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1617
|
-
const parsedOutput = {
|
|
1618
|
-
...output,
|
|
1619
|
-
body: await parseErrorBody(output.body, context)
|
|
1620
|
-
};
|
|
1621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
|
-
switch (errorCode) {
|
|
1623
|
-
case "InternalServerException":
|
|
1624
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1625
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "NotFoundException":
|
|
1627
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1628
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "ValidationException":
|
|
1630
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1631
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1632
|
-
default:
|
|
1633
|
-
const parsedBody = parsedOutput.body;
|
|
1634
|
-
return throwDefaultError({
|
|
1635
|
-
output,
|
|
1636
|
-
parsedBody,
|
|
1637
|
-
errorCode
|
|
1638
|
-
});
|
|
1639
|
-
}
|
|
1640
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1641
1103
|
var de_StartConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1642
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1643
|
-
return
|
|
1105
|
+
return de_CommandError(output, context);
|
|
1644
1106
|
}
|
|
1645
1107
|
const contents = (0, import_smithy_client.map)({
|
|
1646
1108
|
$metadata: deserializeMetadata(output)
|
|
@@ -1653,37 +1115,9 @@ var de_StartConnectionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1653
1115
|
Object.assign(contents, doc);
|
|
1654
1116
|
return contents;
|
|
1655
1117
|
}, "de_StartConnectionCommand");
|
|
1656
|
-
var de_StartConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
|
-
const parsedOutput = {
|
|
1658
|
-
...output,
|
|
1659
|
-
body: await parseErrorBody(output.body, context)
|
|
1660
|
-
};
|
|
1661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
-
switch (errorCode) {
|
|
1663
|
-
case "AccessDeniedException":
|
|
1664
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1665
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "InternalServerException":
|
|
1667
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1668
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "NotFoundException":
|
|
1670
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1671
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "ValidationException":
|
|
1673
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1674
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1675
|
-
default:
|
|
1676
|
-
const parsedBody = parsedOutput.body;
|
|
1677
|
-
return throwDefaultError({
|
|
1678
|
-
output,
|
|
1679
|
-
parsedBody,
|
|
1680
|
-
errorCode
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
}, "de_StartConnectionCommandError");
|
|
1684
1118
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
1687
1121
|
}
|
|
1688
1122
|
const contents = (0, import_smithy_client.map)({
|
|
1689
1123
|
$metadata: deserializeMetadata(output)
|
|
@@ -1691,34 +1125,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1691
1125
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1692
1126
|
return contents;
|
|
1693
1127
|
}, "de_TagResourceCommand");
|
|
1694
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1695
|
-
const parsedOutput = {
|
|
1696
|
-
...output,
|
|
1697
|
-
body: await parseErrorBody(output.body, context)
|
|
1698
|
-
};
|
|
1699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
-
switch (errorCode) {
|
|
1701
|
-
case "InternalServerException":
|
|
1702
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1703
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "NotFoundException":
|
|
1705
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1706
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ValidationException":
|
|
1708
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
}, "de_TagResourceCommandError");
|
|
1719
1128
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1720
1129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1721
|
-
return
|
|
1130
|
+
return de_CommandError(output, context);
|
|
1722
1131
|
}
|
|
1723
1132
|
const contents = (0, import_smithy_client.map)({
|
|
1724
1133
|
$metadata: deserializeMetadata(output)
|
|
@@ -1726,34 +1135,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1726
1135
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1727
1136
|
return contents;
|
|
1728
1137
|
}, "de_UntagResourceCommand");
|
|
1729
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context)
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "InternalServerException":
|
|
1737
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1738
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "NotFoundException":
|
|
1740
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1741
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ValidationException":
|
|
1743
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1744
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1745
|
-
default:
|
|
1746
|
-
const parsedBody = parsedOutput.body;
|
|
1747
|
-
return throwDefaultError({
|
|
1748
|
-
output,
|
|
1749
|
-
parsedBody,
|
|
1750
|
-
errorCode
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
}, "de_UntagResourceCommandError");
|
|
1754
1138
|
var de_UpdateOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1756
|
-
return
|
|
1140
|
+
return de_CommandError(output, context);
|
|
1757
1141
|
}
|
|
1758
1142
|
const contents = (0, import_smithy_client.map)({
|
|
1759
1143
|
$metadata: deserializeMetadata(output)
|
|
@@ -1765,40 +1149,9 @@ var de_UpdateOutpostCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1765
1149
|
Object.assign(contents, doc);
|
|
1766
1150
|
return contents;
|
|
1767
1151
|
}, "de_UpdateOutpostCommand");
|
|
1768
|
-
var de_UpdateOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context)
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "AccessDeniedException":
|
|
1776
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ConflictException":
|
|
1779
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "InternalServerException":
|
|
1782
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1783
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "NotFoundException":
|
|
1785
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1786
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ValidationException":
|
|
1788
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
}, "de_UpdateOutpostCommandError");
|
|
1799
1152
|
var de_UpdateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
|
-
return
|
|
1154
|
+
return de_CommandError(output, context);
|
|
1802
1155
|
}
|
|
1803
1156
|
const contents = (0, import_smithy_client.map)({
|
|
1804
1157
|
$metadata: deserializeMetadata(output)
|
|
@@ -1810,40 +1163,9 @@ var de_UpdateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1810
1163
|
Object.assign(contents, doc);
|
|
1811
1164
|
return contents;
|
|
1812
1165
|
}, "de_UpdateSiteCommand");
|
|
1813
|
-
var de_UpdateSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1814
|
-
const parsedOutput = {
|
|
1815
|
-
...output,
|
|
1816
|
-
body: await parseErrorBody(output.body, context)
|
|
1817
|
-
};
|
|
1818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
-
switch (errorCode) {
|
|
1820
|
-
case "AccessDeniedException":
|
|
1821
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ConflictException":
|
|
1824
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1825
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "InternalServerException":
|
|
1827
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1828
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "NotFoundException":
|
|
1830
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1831
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "ValidationException":
|
|
1833
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1834
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1835
|
-
default:
|
|
1836
|
-
const parsedBody = parsedOutput.body;
|
|
1837
|
-
return throwDefaultError({
|
|
1838
|
-
output,
|
|
1839
|
-
parsedBody,
|
|
1840
|
-
errorCode
|
|
1841
|
-
});
|
|
1842
|
-
}
|
|
1843
|
-
}, "de_UpdateSiteCommandError");
|
|
1844
1166
|
var de_UpdateSiteAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1845
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return
|
|
1168
|
+
return de_CommandError(output, context);
|
|
1847
1169
|
}
|
|
1848
1170
|
const contents = (0, import_smithy_client.map)({
|
|
1849
1171
|
$metadata: deserializeMetadata(output)
|
|
@@ -1856,40 +1178,9 @@ var de_UpdateSiteAddressCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1856
1178
|
Object.assign(contents, doc);
|
|
1857
1179
|
return contents;
|
|
1858
1180
|
}, "de_UpdateSiteAddressCommand");
|
|
1859
|
-
var de_UpdateSiteAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context)
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "AccessDeniedException":
|
|
1867
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1868
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ConflictException":
|
|
1870
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1871
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "InternalServerException":
|
|
1873
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "NotFoundException":
|
|
1876
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1877
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ValidationException":
|
|
1879
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1881
|
-
default:
|
|
1882
|
-
const parsedBody = parsedOutput.body;
|
|
1883
|
-
return throwDefaultError({
|
|
1884
|
-
output,
|
|
1885
|
-
parsedBody,
|
|
1886
|
-
errorCode
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
}, "de_UpdateSiteAddressCommandError");
|
|
1890
1181
|
var de_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
1182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1892
|
-
return
|
|
1183
|
+
return de_CommandError(output, context);
|
|
1893
1184
|
}
|
|
1894
1185
|
const contents = (0, import_smithy_client.map)({
|
|
1895
1186
|
$metadata: deserializeMetadata(output)
|
|
@@ -1901,7 +1192,7 @@ var de_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (o
|
|
|
1901
1192
|
Object.assign(contents, doc);
|
|
1902
1193
|
return contents;
|
|
1903
1194
|
}, "de_UpdateSiteRackPhysicalPropertiesCommand");
|
|
1904
|
-
var
|
|
1195
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1905
1196
|
const parsedOutput = {
|
|
1906
1197
|
...output,
|
|
1907
1198
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1923,6 +1214,9 @@ var de_UpdateSiteRackPhysicalPropertiesCommandError = /* @__PURE__ */ __name(asy
|
|
|
1923
1214
|
case "ValidationException":
|
|
1924
1215
|
case "com.amazonaws.outposts#ValidationException":
|
|
1925
1216
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
|
+
case "ServiceQuotaExceededException":
|
|
1218
|
+
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
1219
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1926
1220
|
default:
|
|
1927
1221
|
const parsedBody = parsedOutput.body;
|
|
1928
1222
|
return throwDefaultError({
|
|
@@ -1931,7 +1225,7 @@ var de_UpdateSiteRackPhysicalPropertiesCommandError = /* @__PURE__ */ __name(asy
|
|
|
1931
1225
|
errorCode
|
|
1932
1226
|
});
|
|
1933
1227
|
}
|
|
1934
|
-
}, "
|
|
1228
|
+
}, "de_CommandError");
|
|
1935
1229
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(OutpostsServiceException);
|
|
1936
1230
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1937
1231
|
const contents = (0, import_smithy_client.map)({});
|