@aws-sdk/client-glacier 3.504.0 → 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 +63 -953
- package/dist-es/protocols/Aws_restJson1.js +53 -943
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -916,7 +916,7 @@ var se_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
916
916
|
}, "se_UploadMultipartPartCommand");
|
|
917
917
|
var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
918
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
919
|
-
return
|
|
919
|
+
return de_CommandError(output, context);
|
|
920
920
|
}
|
|
921
921
|
const contents = (0, import_smithy_client.map)({
|
|
922
922
|
$metadata: deserializeMetadata(output)
|
|
@@ -924,37 +924,9 @@ var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
924
924
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
925
925
|
return contents;
|
|
926
926
|
}, "de_AbortMultipartUploadCommand");
|
|
927
|
-
var de_AbortMultipartUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context)
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "InvalidParameterValueException":
|
|
935
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
936
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
937
|
-
case "MissingParameterValueException":
|
|
938
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
939
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ResourceNotFoundException":
|
|
941
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
942
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ServiceUnavailableException":
|
|
944
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
945
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
946
|
-
default:
|
|
947
|
-
const parsedBody = parsedOutput.body;
|
|
948
|
-
return throwDefaultError({
|
|
949
|
-
output,
|
|
950
|
-
parsedBody,
|
|
951
|
-
errorCode
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
}, "de_AbortMultipartUploadCommandError");
|
|
955
927
|
var de_AbortVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
928
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
957
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
958
930
|
}
|
|
959
931
|
const contents = (0, import_smithy_client.map)({
|
|
960
932
|
$metadata: deserializeMetadata(output)
|
|
@@ -962,37 +934,9 @@ var de_AbortVaultLockCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
962
934
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
963
935
|
return contents;
|
|
964
936
|
}, "de_AbortVaultLockCommand");
|
|
965
|
-
var de_AbortVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context)
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "InvalidParameterValueException":
|
|
973
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
974
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
975
|
-
case "MissingParameterValueException":
|
|
976
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
977
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ResourceNotFoundException":
|
|
979
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
980
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ServiceUnavailableException":
|
|
982
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
983
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
}, "de_AbortVaultLockCommandError");
|
|
993
937
|
var de_AddTagsToVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
938
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
995
|
-
return
|
|
939
|
+
return de_CommandError(output, context);
|
|
996
940
|
}
|
|
997
941
|
const contents = (0, import_smithy_client.map)({
|
|
998
942
|
$metadata: deserializeMetadata(output)
|
|
@@ -1000,40 +944,9 @@ var de_AddTagsToVaultCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1000
944
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1001
945
|
return contents;
|
|
1002
946
|
}, "de_AddTagsToVaultCommand");
|
|
1003
|
-
var de_AddTagsToVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context)
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "InvalidParameterValueException":
|
|
1011
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1012
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "LimitExceededException":
|
|
1014
|
-
case "com.amazonaws.glacier#LimitExceededException":
|
|
1015
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "MissingParameterValueException":
|
|
1017
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1018
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ServiceUnavailableException":
|
|
1023
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1024
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
}, "de_AddTagsToVaultCommandError");
|
|
1034
947
|
var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
948
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
949
|
+
return de_CommandError(output, context);
|
|
1037
950
|
}
|
|
1038
951
|
const contents = (0, import_smithy_client.map)({
|
|
1039
952
|
$metadata: deserializeMetadata(output),
|
|
@@ -1044,37 +957,9 @@ var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1044
957
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1045
958
|
return contents;
|
|
1046
959
|
}, "de_CompleteMultipartUploadCommand");
|
|
1047
|
-
var de_CompleteMultipartUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context)
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "InvalidParameterValueException":
|
|
1055
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1056
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "MissingParameterValueException":
|
|
1058
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1059
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ServiceUnavailableException":
|
|
1064
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1065
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}, "de_CompleteMultipartUploadCommandError");
|
|
1075
960
|
var de_CompleteVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
961
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
1078
963
|
}
|
|
1079
964
|
const contents = (0, import_smithy_client.map)({
|
|
1080
965
|
$metadata: deserializeMetadata(output)
|
|
@@ -1082,37 +967,9 @@ var de_CompleteVaultLockCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1082
967
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1083
968
|
return contents;
|
|
1084
969
|
}, "de_CompleteVaultLockCommand");
|
|
1085
|
-
var de_CompleteVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
-
const parsedOutput = {
|
|
1087
|
-
...output,
|
|
1088
|
-
body: await parseErrorBody(output.body, context)
|
|
1089
|
-
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
-
switch (errorCode) {
|
|
1092
|
-
case "InvalidParameterValueException":
|
|
1093
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1094
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "MissingParameterValueException":
|
|
1096
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1097
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ServiceUnavailableException":
|
|
1102
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1103
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1104
|
-
default:
|
|
1105
|
-
const parsedBody = parsedOutput.body;
|
|
1106
|
-
return throwDefaultError({
|
|
1107
|
-
output,
|
|
1108
|
-
parsedBody,
|
|
1109
|
-
errorCode
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
}, "de_CompleteVaultLockCommandError");
|
|
1113
970
|
var de_CreateVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
971
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
972
|
+
return de_CommandError(output, context);
|
|
1116
973
|
}
|
|
1117
974
|
const contents = (0, import_smithy_client.map)({
|
|
1118
975
|
$metadata: deserializeMetadata(output),
|
|
@@ -1121,37 +978,9 @@ var de_CreateVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1121
978
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1122
979
|
return contents;
|
|
1123
980
|
}, "de_CreateVaultCommand");
|
|
1124
|
-
var de_CreateVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context)
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "InvalidParameterValueException":
|
|
1132
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1133
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "LimitExceededException":
|
|
1135
|
-
case "com.amazonaws.glacier#LimitExceededException":
|
|
1136
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "MissingParameterValueException":
|
|
1138
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1139
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ServiceUnavailableException":
|
|
1141
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1142
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
}, "de_CreateVaultCommandError");
|
|
1152
981
|
var de_DeleteArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1153
982
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
983
|
+
return de_CommandError(output, context);
|
|
1155
984
|
}
|
|
1156
985
|
const contents = (0, import_smithy_client.map)({
|
|
1157
986
|
$metadata: deserializeMetadata(output)
|
|
@@ -1159,37 +988,9 @@ var de_DeleteArchiveCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1159
988
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1160
989
|
return contents;
|
|
1161
990
|
}, "de_DeleteArchiveCommand");
|
|
1162
|
-
var de_DeleteArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await parseErrorBody(output.body, context)
|
|
1166
|
-
};
|
|
1167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "InvalidParameterValueException":
|
|
1170
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1171
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "MissingParameterValueException":
|
|
1173
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1174
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ResourceNotFoundException":
|
|
1176
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1177
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ServiceUnavailableException":
|
|
1179
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1180
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1181
|
-
default:
|
|
1182
|
-
const parsedBody = parsedOutput.body;
|
|
1183
|
-
return throwDefaultError({
|
|
1184
|
-
output,
|
|
1185
|
-
parsedBody,
|
|
1186
|
-
errorCode
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
}, "de_DeleteArchiveCommandError");
|
|
1190
991
|
var de_DeleteVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
992
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1193
994
|
}
|
|
1194
995
|
const contents = (0, import_smithy_client.map)({
|
|
1195
996
|
$metadata: deserializeMetadata(output)
|
|
@@ -1197,37 +998,9 @@ var de_DeleteVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1197
998
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1198
999
|
return contents;
|
|
1199
1000
|
}, "de_DeleteVaultCommand");
|
|
1200
|
-
var de_DeleteVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context)
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "InvalidParameterValueException":
|
|
1208
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1209
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "MissingParameterValueException":
|
|
1211
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1212
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ResourceNotFoundException":
|
|
1214
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ServiceUnavailableException":
|
|
1217
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1218
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
}, "de_DeleteVaultCommandError");
|
|
1228
1001
|
var de_DeleteVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1229
1002
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1230
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
1231
1004
|
}
|
|
1232
1005
|
const contents = (0, import_smithy_client.map)({
|
|
1233
1006
|
$metadata: deserializeMetadata(output)
|
|
@@ -1235,37 +1008,9 @@ var de_DeleteVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1235
1008
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1236
1009
|
return contents;
|
|
1237
1010
|
}, "de_DeleteVaultAccessPolicyCommand");
|
|
1238
|
-
var de_DeleteVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
-
const parsedOutput = {
|
|
1240
|
-
...output,
|
|
1241
|
-
body: await parseErrorBody(output.body, context)
|
|
1242
|
-
};
|
|
1243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
-
switch (errorCode) {
|
|
1245
|
-
case "InvalidParameterValueException":
|
|
1246
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1247
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "MissingParameterValueException":
|
|
1249
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1250
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ResourceNotFoundException":
|
|
1252
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1253
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ServiceUnavailableException":
|
|
1255
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1256
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1257
|
-
default:
|
|
1258
|
-
const parsedBody = parsedOutput.body;
|
|
1259
|
-
return throwDefaultError({
|
|
1260
|
-
output,
|
|
1261
|
-
parsedBody,
|
|
1262
|
-
errorCode
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
}, "de_DeleteVaultAccessPolicyCommandError");
|
|
1266
1011
|
var de_DeleteVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1267
1012
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1268
|
-
return
|
|
1013
|
+
return de_CommandError(output, context);
|
|
1269
1014
|
}
|
|
1270
1015
|
const contents = (0, import_smithy_client.map)({
|
|
1271
1016
|
$metadata: deserializeMetadata(output)
|
|
@@ -1273,37 +1018,9 @@ var de_DeleteVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1273
1018
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1274
1019
|
return contents;
|
|
1275
1020
|
}, "de_DeleteVaultNotificationsCommand");
|
|
1276
|
-
var de_DeleteVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1277
|
-
const parsedOutput = {
|
|
1278
|
-
...output,
|
|
1279
|
-
body: await parseErrorBody(output.body, context)
|
|
1280
|
-
};
|
|
1281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
-
switch (errorCode) {
|
|
1283
|
-
case "InvalidParameterValueException":
|
|
1284
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1285
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "MissingParameterValueException":
|
|
1287
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1288
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ResourceNotFoundException":
|
|
1290
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ServiceUnavailableException":
|
|
1293
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1294
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
}, "de_DeleteVaultNotificationsCommandError");
|
|
1304
1021
|
var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1305
1022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1307
1024
|
}
|
|
1308
1025
|
const contents = (0, import_smithy_client.map)({
|
|
1309
1026
|
$metadata: deserializeMetadata(output)
|
|
@@ -1335,37 +1052,9 @@ var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1335
1052
|
Object.assign(contents, doc);
|
|
1336
1053
|
return contents;
|
|
1337
1054
|
}, "de_DescribeJobCommand");
|
|
1338
|
-
var de_DescribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context)
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InvalidParameterValueException":
|
|
1346
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1347
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "MissingParameterValueException":
|
|
1349
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1350
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ResourceNotFoundException":
|
|
1352
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ServiceUnavailableException":
|
|
1355
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1356
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
}, "de_DescribeJobCommandError");
|
|
1366
1055
|
var de_DescribeVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1367
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
1057
|
+
return de_CommandError(output, context);
|
|
1369
1058
|
}
|
|
1370
1059
|
const contents = (0, import_smithy_client.map)({
|
|
1371
1060
|
$metadata: deserializeMetadata(output)
|
|
@@ -1382,37 +1071,9 @@ var de_DescribeVaultCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1382
1071
|
Object.assign(contents, doc);
|
|
1383
1072
|
return contents;
|
|
1384
1073
|
}, "de_DescribeVaultCommand");
|
|
1385
|
-
var de_DescribeVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1386
|
-
const parsedOutput = {
|
|
1387
|
-
...output,
|
|
1388
|
-
body: await parseErrorBody(output.body, context)
|
|
1389
|
-
};
|
|
1390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
-
switch (errorCode) {
|
|
1392
|
-
case "InvalidParameterValueException":
|
|
1393
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1394
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "MissingParameterValueException":
|
|
1396
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1397
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ResourceNotFoundException":
|
|
1399
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ServiceUnavailableException":
|
|
1402
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1403
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1404
|
-
default:
|
|
1405
|
-
const parsedBody = parsedOutput.body;
|
|
1406
|
-
return throwDefaultError({
|
|
1407
|
-
output,
|
|
1408
|
-
parsedBody,
|
|
1409
|
-
errorCode
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
}, "de_DescribeVaultCommandError");
|
|
1413
1074
|
var de_GetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1414
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1416
1077
|
}
|
|
1417
1078
|
const contents = (0, import_smithy_client.map)({
|
|
1418
1079
|
$metadata: deserializeMetadata(output)
|
|
@@ -1424,34 +1085,9 @@ var de_GetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1424
1085
|
Object.assign(contents, doc);
|
|
1425
1086
|
return contents;
|
|
1426
1087
|
}, "de_GetDataRetrievalPolicyCommand");
|
|
1427
|
-
var de_GetDataRetrievalPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
-
const parsedOutput = {
|
|
1429
|
-
...output,
|
|
1430
|
-
body: await parseErrorBody(output.body, context)
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "InvalidParameterValueException":
|
|
1435
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1436
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "MissingParameterValueException":
|
|
1438
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1439
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ServiceUnavailableException":
|
|
1441
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1442
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
}, "de_GetDataRetrievalPolicyCommandError");
|
|
1452
1088
|
var de_GetJobOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
1089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
-
return
|
|
1090
|
+
return de_CommandError(output, context);
|
|
1455
1091
|
}
|
|
1456
1092
|
const contents = (0, import_smithy_client.map)({
|
|
1457
1093
|
$metadata: deserializeMetadata(output),
|
|
@@ -1463,43 +1099,15 @@ var de_GetJobOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1463
1099
|
});
|
|
1464
1100
|
const data = output.body;
|
|
1465
1101
|
context.sdkStreamMixin(data);
|
|
1466
|
-
contents.body = data;
|
|
1467
|
-
(0, import_smithy_client.map)(contents, {
|
|
1468
|
-
status: [, output.statusCode]
|
|
1469
|
-
});
|
|
1470
|
-
return contents;
|
|
1471
|
-
}, "de_GetJobOutputCommand");
|
|
1472
|
-
var de_GetJobOutputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1473
|
-
const parsedOutput = {
|
|
1474
|
-
...output,
|
|
1475
|
-
body: await parseErrorBody(output.body, context)
|
|
1476
|
-
};
|
|
1477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
-
switch (errorCode) {
|
|
1479
|
-
case "InvalidParameterValueException":
|
|
1480
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1481
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "MissingParameterValueException":
|
|
1483
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1484
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ResourceNotFoundException":
|
|
1486
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1487
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ServiceUnavailableException":
|
|
1489
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1490
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1491
|
-
default:
|
|
1492
|
-
const parsedBody = parsedOutput.body;
|
|
1493
|
-
return throwDefaultError({
|
|
1494
|
-
output,
|
|
1495
|
-
parsedBody,
|
|
1496
|
-
errorCode
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
}, "de_GetJobOutputCommandError");
|
|
1102
|
+
contents.body = data;
|
|
1103
|
+
(0, import_smithy_client.map)(contents, {
|
|
1104
|
+
status: [, output.statusCode]
|
|
1105
|
+
});
|
|
1106
|
+
return contents;
|
|
1107
|
+
}, "de_GetJobOutputCommand");
|
|
1500
1108
|
var de_GetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1501
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
|
-
return
|
|
1110
|
+
return de_CommandError(output, context);
|
|
1503
1111
|
}
|
|
1504
1112
|
const contents = (0, import_smithy_client.map)({
|
|
1505
1113
|
$metadata: deserializeMetadata(output)
|
|
@@ -1508,37 +1116,9 @@ var de_GetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1508
1116
|
contents.policy = (0, import_smithy_client._json)(data);
|
|
1509
1117
|
return contents;
|
|
1510
1118
|
}, "de_GetVaultAccessPolicyCommand");
|
|
1511
|
-
var de_GetVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1512
|
-
const parsedOutput = {
|
|
1513
|
-
...output,
|
|
1514
|
-
body: await parseErrorBody(output.body, context)
|
|
1515
|
-
};
|
|
1516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
|
-
switch (errorCode) {
|
|
1518
|
-
case "InvalidParameterValueException":
|
|
1519
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1520
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "MissingParameterValueException":
|
|
1522
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1523
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ResourceNotFoundException":
|
|
1525
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ServiceUnavailableException":
|
|
1528
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1529
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1530
|
-
default:
|
|
1531
|
-
const parsedBody = parsedOutput.body;
|
|
1532
|
-
return throwDefaultError({
|
|
1533
|
-
output,
|
|
1534
|
-
parsedBody,
|
|
1535
|
-
errorCode
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
}, "de_GetVaultAccessPolicyCommandError");
|
|
1539
1119
|
var de_GetVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
-
return
|
|
1121
|
+
return de_CommandError(output, context);
|
|
1542
1122
|
}
|
|
1543
1123
|
const contents = (0, import_smithy_client.map)({
|
|
1544
1124
|
$metadata: deserializeMetadata(output)
|
|
@@ -1553,37 +1133,9 @@ var de_GetVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1553
1133
|
Object.assign(contents, doc);
|
|
1554
1134
|
return contents;
|
|
1555
1135
|
}, "de_GetVaultLockCommand");
|
|
1556
|
-
var de_GetVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context)
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "InvalidParameterValueException":
|
|
1564
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1565
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "MissingParameterValueException":
|
|
1567
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1568
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "ResourceNotFoundException":
|
|
1570
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1571
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ServiceUnavailableException":
|
|
1573
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1574
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
}, "de_GetVaultLockCommandError");
|
|
1584
1136
|
var de_GetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1585
1137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1586
|
-
return
|
|
1138
|
+
return de_CommandError(output, context);
|
|
1587
1139
|
}
|
|
1588
1140
|
const contents = (0, import_smithy_client.map)({
|
|
1589
1141
|
$metadata: deserializeMetadata(output)
|
|
@@ -1592,37 +1144,9 @@ var de_GetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1592
1144
|
contents.vaultNotificationConfig = (0, import_smithy_client._json)(data);
|
|
1593
1145
|
return contents;
|
|
1594
1146
|
}, "de_GetVaultNotificationsCommand");
|
|
1595
|
-
var de_GetVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1596
|
-
const parsedOutput = {
|
|
1597
|
-
...output,
|
|
1598
|
-
body: await parseErrorBody(output.body, context)
|
|
1599
|
-
};
|
|
1600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
|
-
switch (errorCode) {
|
|
1602
|
-
case "InvalidParameterValueException":
|
|
1603
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1604
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "MissingParameterValueException":
|
|
1606
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1607
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ResourceNotFoundException":
|
|
1609
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1610
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ServiceUnavailableException":
|
|
1612
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1613
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1614
|
-
default:
|
|
1615
|
-
const parsedBody = parsedOutput.body;
|
|
1616
|
-
return throwDefaultError({
|
|
1617
|
-
output,
|
|
1618
|
-
parsedBody,
|
|
1619
|
-
errorCode
|
|
1620
|
-
});
|
|
1621
|
-
}
|
|
1622
|
-
}, "de_GetVaultNotificationsCommandError");
|
|
1623
1147
|
var de_InitiateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1624
1148
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1625
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
1626
1150
|
}
|
|
1627
1151
|
const contents = (0, import_smithy_client.map)({
|
|
1628
1152
|
$metadata: deserializeMetadata(output),
|
|
@@ -1633,43 +1157,9 @@ var de_InitiateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1633
1157
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1634
1158
|
return contents;
|
|
1635
1159
|
}, "de_InitiateJobCommand");
|
|
1636
|
-
var de_InitiateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1637
|
-
const parsedOutput = {
|
|
1638
|
-
...output,
|
|
1639
|
-
body: await parseErrorBody(output.body, context)
|
|
1640
|
-
};
|
|
1641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
|
-
switch (errorCode) {
|
|
1643
|
-
case "InsufficientCapacityException":
|
|
1644
|
-
case "com.amazonaws.glacier#InsufficientCapacityException":
|
|
1645
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "InvalidParameterValueException":
|
|
1647
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1648
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "MissingParameterValueException":
|
|
1650
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1651
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "PolicyEnforcedException":
|
|
1653
|
-
case "com.amazonaws.glacier#PolicyEnforcedException":
|
|
1654
|
-
throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "ResourceNotFoundException":
|
|
1656
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1657
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "ServiceUnavailableException":
|
|
1659
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1660
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1661
|
-
default:
|
|
1662
|
-
const parsedBody = parsedOutput.body;
|
|
1663
|
-
return throwDefaultError({
|
|
1664
|
-
output,
|
|
1665
|
-
parsedBody,
|
|
1666
|
-
errorCode
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
}, "de_InitiateJobCommandError");
|
|
1670
1160
|
var de_InitiateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1671
1161
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
1162
|
+
return de_CommandError(output, context);
|
|
1673
1163
|
}
|
|
1674
1164
|
const contents = (0, import_smithy_client.map)({
|
|
1675
1165
|
$metadata: deserializeMetadata(output),
|
|
@@ -1679,37 +1169,9 @@ var de_InitiateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1679
1169
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1680
1170
|
return contents;
|
|
1681
1171
|
}, "de_InitiateMultipartUploadCommand");
|
|
1682
|
-
var de_InitiateMultipartUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
-
const parsedOutput = {
|
|
1684
|
-
...output,
|
|
1685
|
-
body: await parseErrorBody(output.body, context)
|
|
1686
|
-
};
|
|
1687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
-
switch (errorCode) {
|
|
1689
|
-
case "InvalidParameterValueException":
|
|
1690
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1691
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "MissingParameterValueException":
|
|
1693
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1694
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "ResourceNotFoundException":
|
|
1696
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1697
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ServiceUnavailableException":
|
|
1699
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1700
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1701
|
-
default:
|
|
1702
|
-
const parsedBody = parsedOutput.body;
|
|
1703
|
-
return throwDefaultError({
|
|
1704
|
-
output,
|
|
1705
|
-
parsedBody,
|
|
1706
|
-
errorCode
|
|
1707
|
-
});
|
|
1708
|
-
}
|
|
1709
|
-
}, "de_InitiateMultipartUploadCommandError");
|
|
1710
1172
|
var de_InitiateVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1711
1173
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1712
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
1713
1175
|
}
|
|
1714
1176
|
const contents = (0, import_smithy_client.map)({
|
|
1715
1177
|
$metadata: deserializeMetadata(output),
|
|
@@ -1718,37 +1180,9 @@ var de_InitiateVaultLockCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1718
1180
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1719
1181
|
return contents;
|
|
1720
1182
|
}, "de_InitiateVaultLockCommand");
|
|
1721
|
-
var de_InitiateVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context)
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "InvalidParameterValueException":
|
|
1729
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1730
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "MissingParameterValueException":
|
|
1732
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1733
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ResourceNotFoundException":
|
|
1735
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1736
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "ServiceUnavailableException":
|
|
1738
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1739
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1740
|
-
default:
|
|
1741
|
-
const parsedBody = parsedOutput.body;
|
|
1742
|
-
return throwDefaultError({
|
|
1743
|
-
output,
|
|
1744
|
-
parsedBody,
|
|
1745
|
-
errorCode
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
}, "de_InitiateVaultLockCommandError");
|
|
1749
1183
|
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1750
1184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
1752
1186
|
}
|
|
1753
1187
|
const contents = (0, import_smithy_client.map)({
|
|
1754
1188
|
$metadata: deserializeMetadata(output)
|
|
@@ -1761,37 +1195,9 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1761
1195
|
Object.assign(contents, doc);
|
|
1762
1196
|
return contents;
|
|
1763
1197
|
}, "de_ListJobsCommand");
|
|
1764
|
-
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1765
|
-
const parsedOutput = {
|
|
1766
|
-
...output,
|
|
1767
|
-
body: await parseErrorBody(output.body, context)
|
|
1768
|
-
};
|
|
1769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
-
switch (errorCode) {
|
|
1771
|
-
case "InvalidParameterValueException":
|
|
1772
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1773
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "MissingParameterValueException":
|
|
1775
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1776
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ResourceNotFoundException":
|
|
1778
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ServiceUnavailableException":
|
|
1781
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1782
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1783
|
-
default:
|
|
1784
|
-
const parsedBody = parsedOutput.body;
|
|
1785
|
-
return throwDefaultError({
|
|
1786
|
-
output,
|
|
1787
|
-
parsedBody,
|
|
1788
|
-
errorCode
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
}, "de_ListJobsCommandError");
|
|
1792
1198
|
var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1793
1199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
-
return
|
|
1200
|
+
return de_CommandError(output, context);
|
|
1795
1201
|
}
|
|
1796
1202
|
const contents = (0, import_smithy_client.map)({
|
|
1797
1203
|
$metadata: deserializeMetadata(output)
|
|
@@ -1804,37 +1210,9 @@ var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1804
1210
|
Object.assign(contents, doc);
|
|
1805
1211
|
return contents;
|
|
1806
1212
|
}, "de_ListMultipartUploadsCommand");
|
|
1807
|
-
var de_ListMultipartUploadsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1808
|
-
const parsedOutput = {
|
|
1809
|
-
...output,
|
|
1810
|
-
body: await parseErrorBody(output.body, context)
|
|
1811
|
-
};
|
|
1812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
|
-
switch (errorCode) {
|
|
1814
|
-
case "InvalidParameterValueException":
|
|
1815
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1816
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "MissingParameterValueException":
|
|
1818
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1819
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ResourceNotFoundException":
|
|
1821
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ServiceUnavailableException":
|
|
1824
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1825
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1826
|
-
default:
|
|
1827
|
-
const parsedBody = parsedOutput.body;
|
|
1828
|
-
return throwDefaultError({
|
|
1829
|
-
output,
|
|
1830
|
-
parsedBody,
|
|
1831
|
-
errorCode
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
}, "de_ListMultipartUploadsCommandError");
|
|
1835
1213
|
var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
1214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1837
|
-
return
|
|
1215
|
+
return de_CommandError(output, context);
|
|
1838
1216
|
}
|
|
1839
1217
|
const contents = (0, import_smithy_client.map)({
|
|
1840
1218
|
$metadata: deserializeMetadata(output)
|
|
@@ -1842,47 +1220,19 @@ var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1842
1220
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1843
1221
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1844
1222
|
ArchiveDescription: import_smithy_client.expectString,
|
|
1845
|
-
CreationDate: import_smithy_client.expectString,
|
|
1846
|
-
Marker: import_smithy_client.expectString,
|
|
1847
|
-
MultipartUploadId: import_smithy_client.expectString,
|
|
1848
|
-
PartSizeInBytes: import_smithy_client.expectLong,
|
|
1849
|
-
Parts: import_smithy_client._json,
|
|
1850
|
-
VaultARN: import_smithy_client.expectString
|
|
1851
|
-
});
|
|
1852
|
-
Object.assign(contents, doc);
|
|
1853
|
-
return contents;
|
|
1854
|
-
}, "de_ListPartsCommand");
|
|
1855
|
-
var de_ListPartsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1856
|
-
const parsedOutput = {
|
|
1857
|
-
...output,
|
|
1858
|
-
body: await parseErrorBody(output.body, context)
|
|
1859
|
-
};
|
|
1860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
|
-
switch (errorCode) {
|
|
1862
|
-
case "InvalidParameterValueException":
|
|
1863
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1864
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "MissingParameterValueException":
|
|
1866
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1867
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ResourceNotFoundException":
|
|
1869
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1870
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "ServiceUnavailableException":
|
|
1872
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1873
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1874
|
-
default:
|
|
1875
|
-
const parsedBody = parsedOutput.body;
|
|
1876
|
-
return throwDefaultError({
|
|
1877
|
-
output,
|
|
1878
|
-
parsedBody,
|
|
1879
|
-
errorCode
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
}, "de_ListPartsCommandError");
|
|
1223
|
+
CreationDate: import_smithy_client.expectString,
|
|
1224
|
+
Marker: import_smithy_client.expectString,
|
|
1225
|
+
MultipartUploadId: import_smithy_client.expectString,
|
|
1226
|
+
PartSizeInBytes: import_smithy_client.expectLong,
|
|
1227
|
+
Parts: import_smithy_client._json,
|
|
1228
|
+
VaultARN: import_smithy_client.expectString
|
|
1229
|
+
});
|
|
1230
|
+
Object.assign(contents, doc);
|
|
1231
|
+
return contents;
|
|
1232
|
+
}, "de_ListPartsCommand");
|
|
1883
1233
|
var de_ListProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1885
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
1886
1236
|
}
|
|
1887
1237
|
const contents = (0, import_smithy_client.map)({
|
|
1888
1238
|
$metadata: deserializeMetadata(output)
|
|
@@ -1894,34 +1244,9 @@ var de_ListProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1894
1244
|
Object.assign(contents, doc);
|
|
1895
1245
|
return contents;
|
|
1896
1246
|
}, "de_ListProvisionedCapacityCommand");
|
|
1897
|
-
var de_ListProvisionedCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1898
|
-
const parsedOutput = {
|
|
1899
|
-
...output,
|
|
1900
|
-
body: await parseErrorBody(output.body, context)
|
|
1901
|
-
};
|
|
1902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
-
switch (errorCode) {
|
|
1904
|
-
case "InvalidParameterValueException":
|
|
1905
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1906
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "MissingParameterValueException":
|
|
1908
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1909
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ServiceUnavailableException":
|
|
1911
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1912
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1913
|
-
default:
|
|
1914
|
-
const parsedBody = parsedOutput.body;
|
|
1915
|
-
return throwDefaultError({
|
|
1916
|
-
output,
|
|
1917
|
-
parsedBody,
|
|
1918
|
-
errorCode
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
}, "de_ListProvisionedCapacityCommandError");
|
|
1922
1247
|
var de_ListTagsForVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1923
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1924
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
1925
1250
|
}
|
|
1926
1251
|
const contents = (0, import_smithy_client.map)({
|
|
1927
1252
|
$metadata: deserializeMetadata(output)
|
|
@@ -1933,37 +1258,9 @@ var de_ListTagsForVaultCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1933
1258
|
Object.assign(contents, doc);
|
|
1934
1259
|
return contents;
|
|
1935
1260
|
}, "de_ListTagsForVaultCommand");
|
|
1936
|
-
var de_ListTagsForVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1937
|
-
const parsedOutput = {
|
|
1938
|
-
...output,
|
|
1939
|
-
body: await parseErrorBody(output.body, context)
|
|
1940
|
-
};
|
|
1941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
|
-
switch (errorCode) {
|
|
1943
|
-
case "InvalidParameterValueException":
|
|
1944
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1945
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "MissingParameterValueException":
|
|
1947
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1948
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ResourceNotFoundException":
|
|
1950
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1951
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "ServiceUnavailableException":
|
|
1953
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1954
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1955
|
-
default:
|
|
1956
|
-
const parsedBody = parsedOutput.body;
|
|
1957
|
-
return throwDefaultError({
|
|
1958
|
-
output,
|
|
1959
|
-
parsedBody,
|
|
1960
|
-
errorCode
|
|
1961
|
-
});
|
|
1962
|
-
}
|
|
1963
|
-
}, "de_ListTagsForVaultCommandError");
|
|
1964
1261
|
var de_ListVaultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1965
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1966
|
-
return
|
|
1263
|
+
return de_CommandError(output, context);
|
|
1967
1264
|
}
|
|
1968
1265
|
const contents = (0, import_smithy_client.map)({
|
|
1969
1266
|
$metadata: deserializeMetadata(output)
|
|
@@ -1976,37 +1273,9 @@ var de_ListVaultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1976
1273
|
Object.assign(contents, doc);
|
|
1977
1274
|
return contents;
|
|
1978
1275
|
}, "de_ListVaultsCommand");
|
|
1979
|
-
var de_ListVaultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1980
|
-
const parsedOutput = {
|
|
1981
|
-
...output,
|
|
1982
|
-
body: await parseErrorBody(output.body, context)
|
|
1983
|
-
};
|
|
1984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
-
switch (errorCode) {
|
|
1986
|
-
case "InvalidParameterValueException":
|
|
1987
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1988
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "MissingParameterValueException":
|
|
1990
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1991
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ResourceNotFoundException":
|
|
1993
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1994
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "ServiceUnavailableException":
|
|
1996
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1997
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1998
|
-
default:
|
|
1999
|
-
const parsedBody = parsedOutput.body;
|
|
2000
|
-
return throwDefaultError({
|
|
2001
|
-
output,
|
|
2002
|
-
parsedBody,
|
|
2003
|
-
errorCode
|
|
2004
|
-
});
|
|
2005
|
-
}
|
|
2006
|
-
}, "de_ListVaultsCommandError");
|
|
2007
1276
|
var de_PurchaseProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2008
1277
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2009
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
2010
1279
|
}
|
|
2011
1280
|
const contents = (0, import_smithy_client.map)({
|
|
2012
1281
|
$metadata: deserializeMetadata(output),
|
|
@@ -2015,37 +1284,9 @@ var de_PurchaseProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output
|
|
|
2015
1284
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2016
1285
|
return contents;
|
|
2017
1286
|
}, "de_PurchaseProvisionedCapacityCommand");
|
|
2018
|
-
var de_PurchaseProvisionedCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2019
|
-
const parsedOutput = {
|
|
2020
|
-
...output,
|
|
2021
|
-
body: await parseErrorBody(output.body, context)
|
|
2022
|
-
};
|
|
2023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
-
switch (errorCode) {
|
|
2025
|
-
case "InvalidParameterValueException":
|
|
2026
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2027
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "LimitExceededException":
|
|
2029
|
-
case "com.amazonaws.glacier#LimitExceededException":
|
|
2030
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "MissingParameterValueException":
|
|
2032
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2033
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ServiceUnavailableException":
|
|
2035
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2036
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
}, "de_PurchaseProvisionedCapacityCommandError");
|
|
2046
1287
|
var de_RemoveTagsFromVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2047
1288
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
1289
|
+
return de_CommandError(output, context);
|
|
2049
1290
|
}
|
|
2050
1291
|
const contents = (0, import_smithy_client.map)({
|
|
2051
1292
|
$metadata: deserializeMetadata(output)
|
|
@@ -2053,37 +1294,9 @@ var de_RemoveTagsFromVaultCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2053
1294
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2054
1295
|
return contents;
|
|
2055
1296
|
}, "de_RemoveTagsFromVaultCommand");
|
|
2056
|
-
var de_RemoveTagsFromVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2057
|
-
const parsedOutput = {
|
|
2058
|
-
...output,
|
|
2059
|
-
body: await parseErrorBody(output.body, context)
|
|
2060
|
-
};
|
|
2061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
-
switch (errorCode) {
|
|
2063
|
-
case "InvalidParameterValueException":
|
|
2064
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2065
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "MissingParameterValueException":
|
|
2067
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2068
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ResourceNotFoundException":
|
|
2070
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ServiceUnavailableException":
|
|
2073
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2074
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2075
|
-
default:
|
|
2076
|
-
const parsedBody = parsedOutput.body;
|
|
2077
|
-
return throwDefaultError({
|
|
2078
|
-
output,
|
|
2079
|
-
parsedBody,
|
|
2080
|
-
errorCode
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
}, "de_RemoveTagsFromVaultCommandError");
|
|
2084
1297
|
var de_SetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2085
1298
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2086
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
2087
1300
|
}
|
|
2088
1301
|
const contents = (0, import_smithy_client.map)({
|
|
2089
1302
|
$metadata: deserializeMetadata(output)
|
|
@@ -2091,34 +1304,9 @@ var de_SetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2091
1304
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2092
1305
|
return contents;
|
|
2093
1306
|
}, "de_SetDataRetrievalPolicyCommand");
|
|
2094
|
-
var de_SetDataRetrievalPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2095
|
-
const parsedOutput = {
|
|
2096
|
-
...output,
|
|
2097
|
-
body: await parseErrorBody(output.body, context)
|
|
2098
|
-
};
|
|
2099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
|
-
switch (errorCode) {
|
|
2101
|
-
case "InvalidParameterValueException":
|
|
2102
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2103
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "MissingParameterValueException":
|
|
2105
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2106
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ServiceUnavailableException":
|
|
2108
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2109
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2110
|
-
default:
|
|
2111
|
-
const parsedBody = parsedOutput.body;
|
|
2112
|
-
return throwDefaultError({
|
|
2113
|
-
output,
|
|
2114
|
-
parsedBody,
|
|
2115
|
-
errorCode
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
}, "de_SetDataRetrievalPolicyCommandError");
|
|
2119
1307
|
var de_SetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
1308
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2121
|
-
return
|
|
1309
|
+
return de_CommandError(output, context);
|
|
2122
1310
|
}
|
|
2123
1311
|
const contents = (0, import_smithy_client.map)({
|
|
2124
1312
|
$metadata: deserializeMetadata(output)
|
|
@@ -2126,37 +1314,9 @@ var de_SetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2126
1314
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2127
1315
|
return contents;
|
|
2128
1316
|
}, "de_SetVaultAccessPolicyCommand");
|
|
2129
|
-
var de_SetVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2130
|
-
const parsedOutput = {
|
|
2131
|
-
...output,
|
|
2132
|
-
body: await parseErrorBody(output.body, context)
|
|
2133
|
-
};
|
|
2134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
-
switch (errorCode) {
|
|
2136
|
-
case "InvalidParameterValueException":
|
|
2137
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2138
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "MissingParameterValueException":
|
|
2140
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2141
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ResourceNotFoundException":
|
|
2143
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2144
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ServiceUnavailableException":
|
|
2146
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2147
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2148
|
-
default:
|
|
2149
|
-
const parsedBody = parsedOutput.body;
|
|
2150
|
-
return throwDefaultError({
|
|
2151
|
-
output,
|
|
2152
|
-
parsedBody,
|
|
2153
|
-
errorCode
|
|
2154
|
-
});
|
|
2155
|
-
}
|
|
2156
|
-
}, "de_SetVaultAccessPolicyCommandError");
|
|
2157
1317
|
var de_SetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2158
1318
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2159
|
-
return
|
|
1319
|
+
return de_CommandError(output, context);
|
|
2160
1320
|
}
|
|
2161
1321
|
const contents = (0, import_smithy_client.map)({
|
|
2162
1322
|
$metadata: deserializeMetadata(output)
|
|
@@ -2164,37 +1324,9 @@ var de_SetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2164
1324
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2165
1325
|
return contents;
|
|
2166
1326
|
}, "de_SetVaultNotificationsCommand");
|
|
2167
|
-
var de_SetVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2168
|
-
const parsedOutput = {
|
|
2169
|
-
...output,
|
|
2170
|
-
body: await parseErrorBody(output.body, context)
|
|
2171
|
-
};
|
|
2172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
|
-
switch (errorCode) {
|
|
2174
|
-
case "InvalidParameterValueException":
|
|
2175
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2176
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "MissingParameterValueException":
|
|
2178
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2179
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ResourceNotFoundException":
|
|
2181
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2182
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ServiceUnavailableException":
|
|
2184
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2185
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2186
|
-
default:
|
|
2187
|
-
const parsedBody = parsedOutput.body;
|
|
2188
|
-
return throwDefaultError({
|
|
2189
|
-
output,
|
|
2190
|
-
parsedBody,
|
|
2191
|
-
errorCode
|
|
2192
|
-
});
|
|
2193
|
-
}
|
|
2194
|
-
}, "de_SetVaultNotificationsCommandError");
|
|
2195
1327
|
var de_UploadArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2196
1328
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2197
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
2198
1330
|
}
|
|
2199
1331
|
const contents = (0, import_smithy_client.map)({
|
|
2200
1332
|
$metadata: deserializeMetadata(output),
|
|
@@ -2205,40 +1337,9 @@ var de_UploadArchiveCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2205
1337
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2206
1338
|
return contents;
|
|
2207
1339
|
}, "de_UploadArchiveCommand");
|
|
2208
|
-
var de_UploadArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2209
|
-
const parsedOutput = {
|
|
2210
|
-
...output,
|
|
2211
|
-
body: await parseErrorBody(output.body, context)
|
|
2212
|
-
};
|
|
2213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
-
switch (errorCode) {
|
|
2215
|
-
case "InvalidParameterValueException":
|
|
2216
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2217
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "MissingParameterValueException":
|
|
2219
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2220
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "RequestTimeoutException":
|
|
2222
|
-
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2223
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "ResourceNotFoundException":
|
|
2225
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ServiceUnavailableException":
|
|
2228
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2229
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
}, "de_UploadArchiveCommandError");
|
|
2239
1340
|
var de_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2240
1341
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2241
|
-
return
|
|
1342
|
+
return de_CommandError(output, context);
|
|
2242
1343
|
}
|
|
2243
1344
|
const contents = (0, import_smithy_client.map)({
|
|
2244
1345
|
$metadata: deserializeMetadata(output),
|
|
@@ -2247,7 +1348,7 @@ var de_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2247
1348
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2248
1349
|
return contents;
|
|
2249
1350
|
}, "de_UploadMultipartPartCommand");
|
|
2250
|
-
var
|
|
1351
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2251
1352
|
const parsedOutput = {
|
|
2252
1353
|
...output,
|
|
2253
1354
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2260,15 +1361,24 @@ var de_UploadMultipartPartCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2260
1361
|
case "MissingParameterValueException":
|
|
2261
1362
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2262
1363
|
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "RequestTimeoutException":
|
|
2264
|
-
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2265
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2266
1364
|
case "ResourceNotFoundException":
|
|
2267
1365
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2268
1366
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2269
1367
|
case "ServiceUnavailableException":
|
|
2270
1368
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2271
1369
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1370
|
+
case "LimitExceededException":
|
|
1371
|
+
case "com.amazonaws.glacier#LimitExceededException":
|
|
1372
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1373
|
+
case "InsufficientCapacityException":
|
|
1374
|
+
case "com.amazonaws.glacier#InsufficientCapacityException":
|
|
1375
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1376
|
+
case "PolicyEnforcedException":
|
|
1377
|
+
case "com.amazonaws.glacier#PolicyEnforcedException":
|
|
1378
|
+
throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "RequestTimeoutException":
|
|
1380
|
+
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
1381
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2272
1382
|
default:
|
|
2273
1383
|
const parsedBody = parsedOutput.body;
|
|
2274
1384
|
return throwDefaultError({
|
|
@@ -2277,7 +1387,7 @@ var de_UploadMultipartPartCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2277
1387
|
errorCode
|
|
2278
1388
|
});
|
|
2279
1389
|
}
|
|
2280
|
-
}, "
|
|
1390
|
+
}, "de_CommandError");
|
|
2281
1391
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(GlacierServiceException);
|
|
2282
1392
|
var de_InsufficientCapacityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2283
1393
|
const contents = (0, import_smithy_client.map)({});
|