@aws-sdk/client-amplify 3.504.0 → 3.509.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 +53 -1100
- package/dist-es/protocols/Aws_restJson1.js +66 -1113
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1037,7 +1037,7 @@ var se_UpdateWebhookCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1037
1037
|
}, "se_UpdateWebhookCommand");
|
|
1038
1038
|
var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
1039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
1040
|
+
return de_CommandError(output, context);
|
|
1041
1041
|
}
|
|
1042
1042
|
const contents = (0, import_smithy_client.map)({
|
|
1043
1043
|
$metadata: deserializeMetadata(output)
|
|
@@ -1049,40 +1049,9 @@ var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1049
1049
|
Object.assign(contents, doc);
|
|
1050
1050
|
return contents;
|
|
1051
1051
|
}, "de_CreateAppCommand");
|
|
1052
|
-
var de_CreateAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context)
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "BadRequestException":
|
|
1060
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1061
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "DependentServiceFailureException":
|
|
1063
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1064
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "InternalFailureException":
|
|
1066
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1067
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "LimitExceededException":
|
|
1069
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1070
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "UnauthorizedException":
|
|
1072
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1073
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1074
|
-
default:
|
|
1075
|
-
const parsedBody = parsedOutput.body;
|
|
1076
|
-
return throwDefaultError({
|
|
1077
|
-
output,
|
|
1078
|
-
parsedBody,
|
|
1079
|
-
errorCode
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
}, "de_CreateAppCommandError");
|
|
1083
1052
|
var de_CreateBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1084
1053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
1054
|
+
return de_CommandError(output, context);
|
|
1086
1055
|
}
|
|
1087
1056
|
const contents = (0, import_smithy_client.map)({
|
|
1088
1057
|
$metadata: deserializeMetadata(output)
|
|
@@ -1094,40 +1063,9 @@ var de_CreateBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1094
1063
|
Object.assign(contents, doc);
|
|
1095
1064
|
return contents;
|
|
1096
1065
|
}, "de_CreateBackendEnvironmentCommand");
|
|
1097
|
-
var de_CreateBackendEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
|
-
const parsedOutput = {
|
|
1099
|
-
...output,
|
|
1100
|
-
body: await parseErrorBody(output.body, context)
|
|
1101
|
-
};
|
|
1102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
|
-
switch (errorCode) {
|
|
1104
|
-
case "BadRequestException":
|
|
1105
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1106
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "InternalFailureException":
|
|
1108
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1109
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "LimitExceededException":
|
|
1111
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1112
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "NotFoundException":
|
|
1114
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1115
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "UnauthorizedException":
|
|
1117
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1118
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1119
|
-
default:
|
|
1120
|
-
const parsedBody = parsedOutput.body;
|
|
1121
|
-
return throwDefaultError({
|
|
1122
|
-
output,
|
|
1123
|
-
parsedBody,
|
|
1124
|
-
errorCode
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
}, "de_CreateBackendEnvironmentCommandError");
|
|
1128
1066
|
var de_CreateBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1129
1067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
1131
1069
|
}
|
|
1132
1070
|
const contents = (0, import_smithy_client.map)({
|
|
1133
1071
|
$metadata: deserializeMetadata(output)
|
|
@@ -1139,43 +1077,9 @@ var de_CreateBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1139
1077
|
Object.assign(contents, doc);
|
|
1140
1078
|
return contents;
|
|
1141
1079
|
}, "de_CreateBranchCommand");
|
|
1142
|
-
var de_CreateBranchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context)
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "BadRequestException":
|
|
1150
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1151
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "DependentServiceFailureException":
|
|
1153
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1154
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "InternalFailureException":
|
|
1156
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1157
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "LimitExceededException":
|
|
1159
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1160
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "NotFoundException":
|
|
1162
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1163
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "UnauthorizedException":
|
|
1165
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1166
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1167
|
-
default:
|
|
1168
|
-
const parsedBody = parsedOutput.body;
|
|
1169
|
-
return throwDefaultError({
|
|
1170
|
-
output,
|
|
1171
|
-
parsedBody,
|
|
1172
|
-
errorCode
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
}, "de_CreateBranchCommandError");
|
|
1176
1080
|
var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1177
1081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
-
return
|
|
1082
|
+
return de_CommandError(output, context);
|
|
1179
1083
|
}
|
|
1180
1084
|
const contents = (0, import_smithy_client.map)({
|
|
1181
1085
|
$metadata: deserializeMetadata(output)
|
|
@@ -1189,37 +1093,9 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1189
1093
|
Object.assign(contents, doc);
|
|
1190
1094
|
return contents;
|
|
1191
1095
|
}, "de_CreateDeploymentCommand");
|
|
1192
|
-
var de_CreateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
|
-
const parsedOutput = {
|
|
1194
|
-
...output,
|
|
1195
|
-
body: await parseErrorBody(output.body, context)
|
|
1196
|
-
};
|
|
1197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
-
switch (errorCode) {
|
|
1199
|
-
case "BadRequestException":
|
|
1200
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1201
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "InternalFailureException":
|
|
1203
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1204
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "LimitExceededException":
|
|
1206
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1207
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "UnauthorizedException":
|
|
1209
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1210
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1211
|
-
default:
|
|
1212
|
-
const parsedBody = parsedOutput.body;
|
|
1213
|
-
return throwDefaultError({
|
|
1214
|
-
output,
|
|
1215
|
-
parsedBody,
|
|
1216
|
-
errorCode
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
}, "de_CreateDeploymentCommandError");
|
|
1220
1096
|
var de_CreateDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
1097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1223
1099
|
}
|
|
1224
1100
|
const contents = (0, import_smithy_client.map)({
|
|
1225
1101
|
$metadata: deserializeMetadata(output)
|
|
@@ -1231,43 +1107,9 @@ var de_CreateDomainAssociationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1231
1107
|
Object.assign(contents, doc);
|
|
1232
1108
|
return contents;
|
|
1233
1109
|
}, "de_CreateDomainAssociationCommand");
|
|
1234
|
-
var de_CreateDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1235
|
-
const parsedOutput = {
|
|
1236
|
-
...output,
|
|
1237
|
-
body: await parseErrorBody(output.body, context)
|
|
1238
|
-
};
|
|
1239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
-
switch (errorCode) {
|
|
1241
|
-
case "BadRequestException":
|
|
1242
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1243
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "DependentServiceFailureException":
|
|
1245
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1246
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "InternalFailureException":
|
|
1248
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1249
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "LimitExceededException":
|
|
1251
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1252
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "NotFoundException":
|
|
1254
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1255
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "UnauthorizedException":
|
|
1257
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1258
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}, "de_CreateDomainAssociationCommandError");
|
|
1268
1110
|
var de_CreateWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
1111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1270
|
-
return
|
|
1112
|
+
return de_CommandError(output, context);
|
|
1271
1113
|
}
|
|
1272
1114
|
const contents = (0, import_smithy_client.map)({
|
|
1273
1115
|
$metadata: deserializeMetadata(output)
|
|
@@ -1279,43 +1121,9 @@ var de_CreateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1279
1121
|
Object.assign(contents, doc);
|
|
1280
1122
|
return contents;
|
|
1281
1123
|
}, "de_CreateWebhookCommand");
|
|
1282
|
-
var de_CreateWebhookCommandError = /* @__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 "BadRequestException":
|
|
1290
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1291
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "DependentServiceFailureException":
|
|
1293
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1294
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InternalFailureException":
|
|
1296
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1297
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "LimitExceededException":
|
|
1299
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1300
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "NotFoundException":
|
|
1302
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1303
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "UnauthorizedException":
|
|
1305
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1306
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1307
|
-
default:
|
|
1308
|
-
const parsedBody = parsedOutput.body;
|
|
1309
|
-
return throwDefaultError({
|
|
1310
|
-
output,
|
|
1311
|
-
parsedBody,
|
|
1312
|
-
errorCode
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
}, "de_CreateWebhookCommandError");
|
|
1316
1124
|
var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1317
1125
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1318
|
-
return
|
|
1126
|
+
return de_CommandError(output, context);
|
|
1319
1127
|
}
|
|
1320
1128
|
const contents = (0, import_smithy_client.map)({
|
|
1321
1129
|
$metadata: deserializeMetadata(output)
|
|
@@ -1327,40 +1135,9 @@ var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1327
1135
|
Object.assign(contents, doc);
|
|
1328
1136
|
return contents;
|
|
1329
1137
|
}, "de_DeleteAppCommand");
|
|
1330
|
-
var de_DeleteAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1331
|
-
const parsedOutput = {
|
|
1332
|
-
...output,
|
|
1333
|
-
body: await parseErrorBody(output.body, context)
|
|
1334
|
-
};
|
|
1335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
|
-
switch (errorCode) {
|
|
1337
|
-
case "BadRequestException":
|
|
1338
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1339
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "DependentServiceFailureException":
|
|
1341
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1342
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "InternalFailureException":
|
|
1344
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1345
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "NotFoundException":
|
|
1347
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1348
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "UnauthorizedException":
|
|
1350
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1351
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
}, "de_DeleteAppCommandError");
|
|
1361
1138
|
var de_DeleteBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
|
-
return
|
|
1140
|
+
return de_CommandError(output, context);
|
|
1364
1141
|
}
|
|
1365
1142
|
const contents = (0, import_smithy_client.map)({
|
|
1366
1143
|
$metadata: deserializeMetadata(output)
|
|
@@ -1372,40 +1149,9 @@ var de_DeleteBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1372
1149
|
Object.assign(contents, doc);
|
|
1373
1150
|
return contents;
|
|
1374
1151
|
}, "de_DeleteBackendEnvironmentCommand");
|
|
1375
|
-
var de_DeleteBackendEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
|
-
const parsedOutput = {
|
|
1377
|
-
...output,
|
|
1378
|
-
body: await parseErrorBody(output.body, context)
|
|
1379
|
-
};
|
|
1380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
-
switch (errorCode) {
|
|
1382
|
-
case "BadRequestException":
|
|
1383
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1384
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "DependentServiceFailureException":
|
|
1386
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1387
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "InternalFailureException":
|
|
1389
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1390
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "NotFoundException":
|
|
1392
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1393
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "UnauthorizedException":
|
|
1395
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1396
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1397
|
-
default:
|
|
1398
|
-
const parsedBody = parsedOutput.body;
|
|
1399
|
-
return throwDefaultError({
|
|
1400
|
-
output,
|
|
1401
|
-
parsedBody,
|
|
1402
|
-
errorCode
|
|
1403
|
-
});
|
|
1404
|
-
}
|
|
1405
|
-
}, "de_DeleteBackendEnvironmentCommandError");
|
|
1406
1152
|
var de_DeleteBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1407
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return
|
|
1154
|
+
return de_CommandError(output, context);
|
|
1409
1155
|
}
|
|
1410
1156
|
const contents = (0, import_smithy_client.map)({
|
|
1411
1157
|
$metadata: deserializeMetadata(output)
|
|
@@ -1417,40 +1163,9 @@ var de_DeleteBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1417
1163
|
Object.assign(contents, doc);
|
|
1418
1164
|
return contents;
|
|
1419
1165
|
}, "de_DeleteBranchCommand");
|
|
1420
|
-
var de_DeleteBranchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context)
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "BadRequestException":
|
|
1428
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1429
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "DependentServiceFailureException":
|
|
1431
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1432
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "InternalFailureException":
|
|
1434
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1435
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "NotFoundException":
|
|
1437
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1438
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "UnauthorizedException":
|
|
1440
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1441
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
return throwDefaultError({
|
|
1445
|
-
output,
|
|
1446
|
-
parsedBody,
|
|
1447
|
-
errorCode
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
}, "de_DeleteBranchCommandError");
|
|
1451
1166
|
var de_DeleteDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1452
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1453
|
-
return
|
|
1168
|
+
return de_CommandError(output, context);
|
|
1454
1169
|
}
|
|
1455
1170
|
const contents = (0, import_smithy_client.map)({
|
|
1456
1171
|
$metadata: deserializeMetadata(output)
|
|
@@ -1462,40 +1177,9 @@ var de_DeleteDomainAssociationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1462
1177
|
Object.assign(contents, doc);
|
|
1463
1178
|
return contents;
|
|
1464
1179
|
}, "de_DeleteDomainAssociationCommand");
|
|
1465
|
-
var de_DeleteDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
|
-
const parsedOutput = {
|
|
1467
|
-
...output,
|
|
1468
|
-
body: await parseErrorBody(output.body, context)
|
|
1469
|
-
};
|
|
1470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
-
switch (errorCode) {
|
|
1472
|
-
case "BadRequestException":
|
|
1473
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1474
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "DependentServiceFailureException":
|
|
1476
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1477
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "InternalFailureException":
|
|
1479
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1480
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "NotFoundException":
|
|
1482
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1483
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "UnauthorizedException":
|
|
1485
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1486
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
}, "de_DeleteDomainAssociationCommandError");
|
|
1496
1180
|
var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1497
1181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return
|
|
1182
|
+
return de_CommandError(output, context);
|
|
1499
1183
|
}
|
|
1500
1184
|
const contents = (0, import_smithy_client.map)({
|
|
1501
1185
|
$metadata: deserializeMetadata(output)
|
|
@@ -1507,40 +1191,9 @@ var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1507
1191
|
Object.assign(contents, doc);
|
|
1508
1192
|
return contents;
|
|
1509
1193
|
}, "de_DeleteJobCommand");
|
|
1510
|
-
var de_DeleteJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1511
|
-
const parsedOutput = {
|
|
1512
|
-
...output,
|
|
1513
|
-
body: await parseErrorBody(output.body, context)
|
|
1514
|
-
};
|
|
1515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
switch (errorCode) {
|
|
1517
|
-
case "BadRequestException":
|
|
1518
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1519
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "InternalFailureException":
|
|
1521
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1522
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "LimitExceededException":
|
|
1524
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1525
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "NotFoundException":
|
|
1527
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1528
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "UnauthorizedException":
|
|
1530
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1531
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1532
|
-
default:
|
|
1533
|
-
const parsedBody = parsedOutput.body;
|
|
1534
|
-
return throwDefaultError({
|
|
1535
|
-
output,
|
|
1536
|
-
parsedBody,
|
|
1537
|
-
errorCode
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
}, "de_DeleteJobCommandError");
|
|
1541
1194
|
var de_DeleteWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1542
1195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
|
-
return
|
|
1196
|
+
return de_CommandError(output, context);
|
|
1544
1197
|
}
|
|
1545
1198
|
const contents = (0, import_smithy_client.map)({
|
|
1546
1199
|
$metadata: deserializeMetadata(output)
|
|
@@ -1552,40 +1205,9 @@ var de_DeleteWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1552
1205
|
Object.assign(contents, doc);
|
|
1553
1206
|
return contents;
|
|
1554
1207
|
}, "de_DeleteWebhookCommand");
|
|
1555
|
-
var de_DeleteWebhookCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
|
-
const parsedOutput = {
|
|
1557
|
-
...output,
|
|
1558
|
-
body: await parseErrorBody(output.body, context)
|
|
1559
|
-
};
|
|
1560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
-
switch (errorCode) {
|
|
1562
|
-
case "BadRequestException":
|
|
1563
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1564
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "InternalFailureException":
|
|
1566
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1567
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "LimitExceededException":
|
|
1569
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1570
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "NotFoundException":
|
|
1572
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1573
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "UnauthorizedException":
|
|
1575
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1576
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1577
|
-
default:
|
|
1578
|
-
const parsedBody = parsedOutput.body;
|
|
1579
|
-
return throwDefaultError({
|
|
1580
|
-
output,
|
|
1581
|
-
parsedBody,
|
|
1582
|
-
errorCode
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
}, "de_DeleteWebhookCommandError");
|
|
1586
1208
|
var de_GenerateAccessLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1587
1209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
|
-
return
|
|
1210
|
+
return de_CommandError(output, context);
|
|
1589
1211
|
}
|
|
1590
1212
|
const contents = (0, import_smithy_client.map)({
|
|
1591
1213
|
$metadata: deserializeMetadata(output)
|
|
@@ -1597,37 +1219,9 @@ var de_GenerateAccessLogsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1597
1219
|
Object.assign(contents, doc);
|
|
1598
1220
|
return contents;
|
|
1599
1221
|
}, "de_GenerateAccessLogsCommand");
|
|
1600
|
-
var de_GenerateAccessLogsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1601
|
-
const parsedOutput = {
|
|
1602
|
-
...output,
|
|
1603
|
-
body: await parseErrorBody(output.body, context)
|
|
1604
|
-
};
|
|
1605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
|
-
switch (errorCode) {
|
|
1607
|
-
case "BadRequestException":
|
|
1608
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1609
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "InternalFailureException":
|
|
1611
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1612
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "NotFoundException":
|
|
1614
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1615
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "UnauthorizedException":
|
|
1617
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1618
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1619
|
-
default:
|
|
1620
|
-
const parsedBody = parsedOutput.body;
|
|
1621
|
-
return throwDefaultError({
|
|
1622
|
-
output,
|
|
1623
|
-
parsedBody,
|
|
1624
|
-
errorCode
|
|
1625
|
-
});
|
|
1626
|
-
}
|
|
1627
|
-
}, "de_GenerateAccessLogsCommandError");
|
|
1628
1222
|
var de_GetAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1629
1223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
-
return
|
|
1224
|
+
return de_CommandError(output, context);
|
|
1631
1225
|
}
|
|
1632
1226
|
const contents = (0, import_smithy_client.map)({
|
|
1633
1227
|
$metadata: deserializeMetadata(output)
|
|
@@ -1639,37 +1233,9 @@ var de_GetAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1639
1233
|
Object.assign(contents, doc);
|
|
1640
1234
|
return contents;
|
|
1641
1235
|
}, "de_GetAppCommand");
|
|
1642
|
-
var de_GetAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1643
|
-
const parsedOutput = {
|
|
1644
|
-
...output,
|
|
1645
|
-
body: await parseErrorBody(output.body, context)
|
|
1646
|
-
};
|
|
1647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
|
-
switch (errorCode) {
|
|
1649
|
-
case "BadRequestException":
|
|
1650
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1651
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "InternalFailureException":
|
|
1653
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1654
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "NotFoundException":
|
|
1656
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1657
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "UnauthorizedException":
|
|
1659
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1660
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1661
|
-
default:
|
|
1662
|
-
const parsedBody = parsedOutput.body;
|
|
1663
|
-
return throwDefaultError({
|
|
1664
|
-
output,
|
|
1665
|
-
parsedBody,
|
|
1666
|
-
errorCode
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
}, "de_GetAppCommandError");
|
|
1670
1236
|
var de_GetArtifactUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1671
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
1238
|
+
return de_CommandError(output, context);
|
|
1673
1239
|
}
|
|
1674
1240
|
const contents = (0, import_smithy_client.map)({
|
|
1675
1241
|
$metadata: deserializeMetadata(output)
|
|
@@ -1682,40 +1248,9 @@ var de_GetArtifactUrlCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1682
1248
|
Object.assign(contents, doc);
|
|
1683
1249
|
return contents;
|
|
1684
1250
|
}, "de_GetArtifactUrlCommand");
|
|
1685
|
-
var de_GetArtifactUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1686
|
-
const parsedOutput = {
|
|
1687
|
-
...output,
|
|
1688
|
-
body: await parseErrorBody(output.body, context)
|
|
1689
|
-
};
|
|
1690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
|
-
switch (errorCode) {
|
|
1692
|
-
case "BadRequestException":
|
|
1693
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1694
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "InternalFailureException":
|
|
1696
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1697
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "LimitExceededException":
|
|
1699
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1700
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "NotFoundException":
|
|
1702
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1703
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "UnauthorizedException":
|
|
1705
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1706
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1707
|
-
default:
|
|
1708
|
-
const parsedBody = parsedOutput.body;
|
|
1709
|
-
return throwDefaultError({
|
|
1710
|
-
output,
|
|
1711
|
-
parsedBody,
|
|
1712
|
-
errorCode
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
}, "de_GetArtifactUrlCommandError");
|
|
1716
1251
|
var de_GetBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1717
1252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
|
-
return
|
|
1253
|
+
return de_CommandError(output, context);
|
|
1719
1254
|
}
|
|
1720
1255
|
const contents = (0, import_smithy_client.map)({
|
|
1721
1256
|
$metadata: deserializeMetadata(output)
|
|
@@ -1727,37 +1262,9 @@ var de_GetBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1727
1262
|
Object.assign(contents, doc);
|
|
1728
1263
|
return contents;
|
|
1729
1264
|
}, "de_GetBackendEnvironmentCommand");
|
|
1730
|
-
var de_GetBackendEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1731
|
-
const parsedOutput = {
|
|
1732
|
-
...output,
|
|
1733
|
-
body: await parseErrorBody(output.body, context)
|
|
1734
|
-
};
|
|
1735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
-
switch (errorCode) {
|
|
1737
|
-
case "BadRequestException":
|
|
1738
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1739
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1740
|
-
case "InternalFailureException":
|
|
1741
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1742
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "NotFoundException":
|
|
1744
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1745
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "UnauthorizedException":
|
|
1747
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1748
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1749
|
-
default:
|
|
1750
|
-
const parsedBody = parsedOutput.body;
|
|
1751
|
-
return throwDefaultError({
|
|
1752
|
-
output,
|
|
1753
|
-
parsedBody,
|
|
1754
|
-
errorCode
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
}, "de_GetBackendEnvironmentCommandError");
|
|
1758
1265
|
var de_GetBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1759
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1760
|
-
return
|
|
1267
|
+
return de_CommandError(output, context);
|
|
1761
1268
|
}
|
|
1762
1269
|
const contents = (0, import_smithy_client.map)({
|
|
1763
1270
|
$metadata: deserializeMetadata(output)
|
|
@@ -1765,41 +1272,13 @@ var de_GetBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1765
1272
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1766
1273
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1767
1274
|
branch: (_) => de_Branch(_, context)
|
|
1768
|
-
});
|
|
1769
|
-
Object.assign(contents, doc);
|
|
1770
|
-
return contents;
|
|
1771
|
-
}, "de_GetBranchCommand");
|
|
1772
|
-
var de_GetBranchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1773
|
-
const parsedOutput = {
|
|
1774
|
-
...output,
|
|
1775
|
-
body: await parseErrorBody(output.body, context)
|
|
1776
|
-
};
|
|
1777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
-
switch (errorCode) {
|
|
1779
|
-
case "BadRequestException":
|
|
1780
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1781
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "InternalFailureException":
|
|
1783
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1784
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "NotFoundException":
|
|
1786
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1787
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "UnauthorizedException":
|
|
1789
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1790
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1791
|
-
default:
|
|
1792
|
-
const parsedBody = parsedOutput.body;
|
|
1793
|
-
return throwDefaultError({
|
|
1794
|
-
output,
|
|
1795
|
-
parsedBody,
|
|
1796
|
-
errorCode
|
|
1797
|
-
});
|
|
1798
|
-
}
|
|
1799
|
-
}, "de_GetBranchCommandError");
|
|
1275
|
+
});
|
|
1276
|
+
Object.assign(contents, doc);
|
|
1277
|
+
return contents;
|
|
1278
|
+
}, "de_GetBranchCommand");
|
|
1800
1279
|
var de_GetDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1801
1280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1802
|
-
return
|
|
1281
|
+
return de_CommandError(output, context);
|
|
1803
1282
|
}
|
|
1804
1283
|
const contents = (0, import_smithy_client.map)({
|
|
1805
1284
|
$metadata: deserializeMetadata(output)
|
|
@@ -1811,37 +1290,9 @@ var de_GetDomainAssociationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1811
1290
|
Object.assign(contents, doc);
|
|
1812
1291
|
return contents;
|
|
1813
1292
|
}, "de_GetDomainAssociationCommand");
|
|
1814
|
-
var de_GetDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1815
|
-
const parsedOutput = {
|
|
1816
|
-
...output,
|
|
1817
|
-
body: await parseErrorBody(output.body, context)
|
|
1818
|
-
};
|
|
1819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
-
switch (errorCode) {
|
|
1821
|
-
case "BadRequestException":
|
|
1822
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1823
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "InternalFailureException":
|
|
1825
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1826
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "NotFoundException":
|
|
1828
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1829
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "UnauthorizedException":
|
|
1831
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1832
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1833
|
-
default:
|
|
1834
|
-
const parsedBody = parsedOutput.body;
|
|
1835
|
-
return throwDefaultError({
|
|
1836
|
-
output,
|
|
1837
|
-
parsedBody,
|
|
1838
|
-
errorCode
|
|
1839
|
-
});
|
|
1840
|
-
}
|
|
1841
|
-
}, "de_GetDomainAssociationCommandError");
|
|
1842
1293
|
var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1843
1294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1844
|
-
return
|
|
1295
|
+
return de_CommandError(output, context);
|
|
1845
1296
|
}
|
|
1846
1297
|
const contents = (0, import_smithy_client.map)({
|
|
1847
1298
|
$metadata: deserializeMetadata(output)
|
|
@@ -1853,40 +1304,9 @@ var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1853
1304
|
Object.assign(contents, doc);
|
|
1854
1305
|
return contents;
|
|
1855
1306
|
}, "de_GetJobCommand");
|
|
1856
|
-
var de_GetJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1857
|
-
const parsedOutput = {
|
|
1858
|
-
...output,
|
|
1859
|
-
body: await parseErrorBody(output.body, context)
|
|
1860
|
-
};
|
|
1861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
|
-
switch (errorCode) {
|
|
1863
|
-
case "BadRequestException":
|
|
1864
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1865
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "InternalFailureException":
|
|
1867
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1868
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "LimitExceededException":
|
|
1870
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1871
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "NotFoundException":
|
|
1873
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1874
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "UnauthorizedException":
|
|
1876
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1877
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
}, "de_GetJobCommandError");
|
|
1887
1307
|
var de_GetWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
1308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1309
|
+
return de_CommandError(output, context);
|
|
1890
1310
|
}
|
|
1891
1311
|
const contents = (0, import_smithy_client.map)({
|
|
1892
1312
|
$metadata: deserializeMetadata(output)
|
|
@@ -1898,40 +1318,9 @@ var de_GetWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1898
1318
|
Object.assign(contents, doc);
|
|
1899
1319
|
return contents;
|
|
1900
1320
|
}, "de_GetWebhookCommand");
|
|
1901
|
-
var de_GetWebhookCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1902
|
-
const parsedOutput = {
|
|
1903
|
-
...output,
|
|
1904
|
-
body: await parseErrorBody(output.body, context)
|
|
1905
|
-
};
|
|
1906
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1907
|
-
switch (errorCode) {
|
|
1908
|
-
case "BadRequestException":
|
|
1909
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1910
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "InternalFailureException":
|
|
1912
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1913
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "LimitExceededException":
|
|
1915
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1916
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "NotFoundException":
|
|
1918
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1919
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "UnauthorizedException":
|
|
1921
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1922
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1923
|
-
default:
|
|
1924
|
-
const parsedBody = parsedOutput.body;
|
|
1925
|
-
return throwDefaultError({
|
|
1926
|
-
output,
|
|
1927
|
-
parsedBody,
|
|
1928
|
-
errorCode
|
|
1929
|
-
});
|
|
1930
|
-
}
|
|
1931
|
-
}, "de_GetWebhookCommandError");
|
|
1932
1321
|
var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1933
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1934
|
-
return
|
|
1323
|
+
return de_CommandError(output, context);
|
|
1935
1324
|
}
|
|
1936
1325
|
const contents = (0, import_smithy_client.map)({
|
|
1937
1326
|
$metadata: deserializeMetadata(output)
|
|
@@ -1944,34 +1333,9 @@ var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1944
1333
|
Object.assign(contents, doc);
|
|
1945
1334
|
return contents;
|
|
1946
1335
|
}, "de_ListAppsCommand");
|
|
1947
|
-
var de_ListAppsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1948
|
-
const parsedOutput = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseErrorBody(output.body, context)
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
-
switch (errorCode) {
|
|
1954
|
-
case "BadRequestException":
|
|
1955
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1956
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "InternalFailureException":
|
|
1958
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1959
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "UnauthorizedException":
|
|
1961
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1962
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1963
|
-
default:
|
|
1964
|
-
const parsedBody = parsedOutput.body;
|
|
1965
|
-
return throwDefaultError({
|
|
1966
|
-
output,
|
|
1967
|
-
parsedBody,
|
|
1968
|
-
errorCode
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
}, "de_ListAppsCommandError");
|
|
1972
1336
|
var de_ListArtifactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1973
1337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
-
return
|
|
1338
|
+
return de_CommandError(output, context);
|
|
1975
1339
|
}
|
|
1976
1340
|
const contents = (0, import_smithy_client.map)({
|
|
1977
1341
|
$metadata: deserializeMetadata(output)
|
|
@@ -1984,37 +1348,9 @@ var de_ListArtifactsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1984
1348
|
Object.assign(contents, doc);
|
|
1985
1349
|
return contents;
|
|
1986
1350
|
}, "de_ListArtifactsCommand");
|
|
1987
|
-
var de_ListArtifactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1988
|
-
const parsedOutput = {
|
|
1989
|
-
...output,
|
|
1990
|
-
body: await parseErrorBody(output.body, context)
|
|
1991
|
-
};
|
|
1992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
-
switch (errorCode) {
|
|
1994
|
-
case "BadRequestException":
|
|
1995
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1996
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "InternalFailureException":
|
|
1998
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1999
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "LimitExceededException":
|
|
2001
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
2002
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "UnauthorizedException":
|
|
2004
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2005
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2006
|
-
default:
|
|
2007
|
-
const parsedBody = parsedOutput.body;
|
|
2008
|
-
return throwDefaultError({
|
|
2009
|
-
output,
|
|
2010
|
-
parsedBody,
|
|
2011
|
-
errorCode
|
|
2012
|
-
});
|
|
2013
|
-
}
|
|
2014
|
-
}, "de_ListArtifactsCommandError");
|
|
2015
1351
|
var de_ListBackendEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2016
1352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
1353
|
+
return de_CommandError(output, context);
|
|
2018
1354
|
}
|
|
2019
1355
|
const contents = (0, import_smithy_client.map)({
|
|
2020
1356
|
$metadata: deserializeMetadata(output)
|
|
@@ -2027,34 +1363,9 @@ var de_ListBackendEnvironmentsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2027
1363
|
Object.assign(contents, doc);
|
|
2028
1364
|
return contents;
|
|
2029
1365
|
}, "de_ListBackendEnvironmentsCommand");
|
|
2030
|
-
var de_ListBackendEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
|
-
const parsedOutput = {
|
|
2032
|
-
...output,
|
|
2033
|
-
body: await parseErrorBody(output.body, context)
|
|
2034
|
-
};
|
|
2035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "BadRequestException":
|
|
2038
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2039
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "InternalFailureException":
|
|
2041
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2042
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "UnauthorizedException":
|
|
2044
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2045
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2046
|
-
default:
|
|
2047
|
-
const parsedBody = parsedOutput.body;
|
|
2048
|
-
return throwDefaultError({
|
|
2049
|
-
output,
|
|
2050
|
-
parsedBody,
|
|
2051
|
-
errorCode
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
}, "de_ListBackendEnvironmentsCommandError");
|
|
2055
1366
|
var de_ListBranchesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2056
1367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2057
|
-
return
|
|
1368
|
+
return de_CommandError(output, context);
|
|
2058
1369
|
}
|
|
2059
1370
|
const contents = (0, import_smithy_client.map)({
|
|
2060
1371
|
$metadata: deserializeMetadata(output)
|
|
@@ -2067,34 +1378,9 @@ var de_ListBranchesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2067
1378
|
Object.assign(contents, doc);
|
|
2068
1379
|
return contents;
|
|
2069
1380
|
}, "de_ListBranchesCommand");
|
|
2070
|
-
var de_ListBranchesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context)
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "BadRequestException":
|
|
2078
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2079
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InternalFailureException":
|
|
2081
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2082
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "UnauthorizedException":
|
|
2084
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2085
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2086
|
-
default:
|
|
2087
|
-
const parsedBody = parsedOutput.body;
|
|
2088
|
-
return throwDefaultError({
|
|
2089
|
-
output,
|
|
2090
|
-
parsedBody,
|
|
2091
|
-
errorCode
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
-
}, "de_ListBranchesCommandError");
|
|
2095
1381
|
var de_ListDomainAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2096
1382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2097
|
-
return
|
|
1383
|
+
return de_CommandError(output, context);
|
|
2098
1384
|
}
|
|
2099
1385
|
const contents = (0, import_smithy_client.map)({
|
|
2100
1386
|
$metadata: deserializeMetadata(output)
|
|
@@ -2107,34 +1393,9 @@ var de_ListDomainAssociationsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2107
1393
|
Object.assign(contents, doc);
|
|
2108
1394
|
return contents;
|
|
2109
1395
|
}, "de_ListDomainAssociationsCommand");
|
|
2110
|
-
var de_ListDomainAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2111
|
-
const parsedOutput = {
|
|
2112
|
-
...output,
|
|
2113
|
-
body: await parseErrorBody(output.body, context)
|
|
2114
|
-
};
|
|
2115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
-
switch (errorCode) {
|
|
2117
|
-
case "BadRequestException":
|
|
2118
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2119
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "InternalFailureException":
|
|
2121
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2122
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "UnauthorizedException":
|
|
2124
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2125
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2126
|
-
default:
|
|
2127
|
-
const parsedBody = parsedOutput.body;
|
|
2128
|
-
return throwDefaultError({
|
|
2129
|
-
output,
|
|
2130
|
-
parsedBody,
|
|
2131
|
-
errorCode
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
}, "de_ListDomainAssociationsCommandError");
|
|
2135
1396
|
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2136
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
|
-
return
|
|
1398
|
+
return de_CommandError(output, context);
|
|
2138
1399
|
}
|
|
2139
1400
|
const contents = (0, import_smithy_client.map)({
|
|
2140
1401
|
$metadata: deserializeMetadata(output)
|
|
@@ -2147,37 +1408,9 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2147
1408
|
Object.assign(contents, doc);
|
|
2148
1409
|
return contents;
|
|
2149
1410
|
}, "de_ListJobsCommand");
|
|
2150
|
-
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2151
|
-
const parsedOutput = {
|
|
2152
|
-
...output,
|
|
2153
|
-
body: await parseErrorBody(output.body, context)
|
|
2154
|
-
};
|
|
2155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
|
-
switch (errorCode) {
|
|
2157
|
-
case "BadRequestException":
|
|
2158
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2159
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "InternalFailureException":
|
|
2161
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2162
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "LimitExceededException":
|
|
2164
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
2165
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "UnauthorizedException":
|
|
2167
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2168
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2169
|
-
default:
|
|
2170
|
-
const parsedBody = parsedOutput.body;
|
|
2171
|
-
return throwDefaultError({
|
|
2172
|
-
output,
|
|
2173
|
-
parsedBody,
|
|
2174
|
-
errorCode
|
|
2175
|
-
});
|
|
2176
|
-
}
|
|
2177
|
-
}, "de_ListJobsCommandError");
|
|
2178
1411
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2179
1412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2180
|
-
return
|
|
1413
|
+
return de_CommandError(output, context);
|
|
2181
1414
|
}
|
|
2182
1415
|
const contents = (0, import_smithy_client.map)({
|
|
2183
1416
|
$metadata: deserializeMetadata(output)
|
|
@@ -2188,35 +1421,10 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2188
1421
|
});
|
|
2189
1422
|
Object.assign(contents, doc);
|
|
2190
1423
|
return contents;
|
|
2191
|
-
}, "de_ListTagsForResourceCommand");
|
|
2192
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2193
|
-
const parsedOutput = {
|
|
2194
|
-
...output,
|
|
2195
|
-
body: await parseErrorBody(output.body, context)
|
|
2196
|
-
};
|
|
2197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
-
switch (errorCode) {
|
|
2199
|
-
case "BadRequestException":
|
|
2200
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2201
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "InternalFailureException":
|
|
2203
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2204
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ResourceNotFoundException":
|
|
2206
|
-
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2208
|
-
default:
|
|
2209
|
-
const parsedBody = parsedOutput.body;
|
|
2210
|
-
return throwDefaultError({
|
|
2211
|
-
output,
|
|
2212
|
-
parsedBody,
|
|
2213
|
-
errorCode
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
2216
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1424
|
+
}, "de_ListTagsForResourceCommand");
|
|
2217
1425
|
var de_ListWebhooksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
1426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
-
return
|
|
1427
|
+
return de_CommandError(output, context);
|
|
2220
1428
|
}
|
|
2221
1429
|
const contents = (0, import_smithy_client.map)({
|
|
2222
1430
|
$metadata: deserializeMetadata(output)
|
|
@@ -2229,37 +1437,9 @@ var de_ListWebhooksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2229
1437
|
Object.assign(contents, doc);
|
|
2230
1438
|
return contents;
|
|
2231
1439
|
}, "de_ListWebhooksCommand");
|
|
2232
|
-
var de_ListWebhooksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2233
|
-
const parsedOutput = {
|
|
2234
|
-
...output,
|
|
2235
|
-
body: await parseErrorBody(output.body, context)
|
|
2236
|
-
};
|
|
2237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
|
-
switch (errorCode) {
|
|
2239
|
-
case "BadRequestException":
|
|
2240
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2241
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "InternalFailureException":
|
|
2243
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2244
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "LimitExceededException":
|
|
2246
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
2247
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "UnauthorizedException":
|
|
2249
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2250
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
}, "de_ListWebhooksCommandError");
|
|
2260
1440
|
var de_StartDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
1441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2262
|
-
return
|
|
1442
|
+
return de_CommandError(output, context);
|
|
2263
1443
|
}
|
|
2264
1444
|
const contents = (0, import_smithy_client.map)({
|
|
2265
1445
|
$metadata: deserializeMetadata(output)
|
|
@@ -2271,40 +1451,9 @@ var de_StartDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2271
1451
|
Object.assign(contents, doc);
|
|
2272
1452
|
return contents;
|
|
2273
1453
|
}, "de_StartDeploymentCommand");
|
|
2274
|
-
var de_StartDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2275
|
-
const parsedOutput = {
|
|
2276
|
-
...output,
|
|
2277
|
-
body: await parseErrorBody(output.body, context)
|
|
2278
|
-
};
|
|
2279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
-
switch (errorCode) {
|
|
2281
|
-
case "BadRequestException":
|
|
2282
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2283
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "InternalFailureException":
|
|
2285
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2286
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "LimitExceededException":
|
|
2288
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
2289
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "NotFoundException":
|
|
2291
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2292
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "UnauthorizedException":
|
|
2294
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2295
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2296
|
-
default:
|
|
2297
|
-
const parsedBody = parsedOutput.body;
|
|
2298
|
-
return throwDefaultError({
|
|
2299
|
-
output,
|
|
2300
|
-
parsedBody,
|
|
2301
|
-
errorCode
|
|
2302
|
-
});
|
|
2303
|
-
}
|
|
2304
|
-
}, "de_StartDeploymentCommandError");
|
|
2305
1454
|
var de_StartJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2306
1455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2307
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
2308
1457
|
}
|
|
2309
1458
|
const contents = (0, import_smithy_client.map)({
|
|
2310
1459
|
$metadata: deserializeMetadata(output)
|
|
@@ -2316,40 +1465,9 @@ var de_StartJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2316
1465
|
Object.assign(contents, doc);
|
|
2317
1466
|
return contents;
|
|
2318
1467
|
}, "de_StartJobCommand");
|
|
2319
|
-
var de_StartJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context)
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "BadRequestException":
|
|
2327
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2328
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "InternalFailureException":
|
|
2330
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2331
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "LimitExceededException":
|
|
2333
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
2334
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "NotFoundException":
|
|
2336
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2337
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "UnauthorizedException":
|
|
2339
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2340
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2341
|
-
default:
|
|
2342
|
-
const parsedBody = parsedOutput.body;
|
|
2343
|
-
return throwDefaultError({
|
|
2344
|
-
output,
|
|
2345
|
-
parsedBody,
|
|
2346
|
-
errorCode
|
|
2347
|
-
});
|
|
2348
|
-
}
|
|
2349
|
-
}, "de_StartJobCommandError");
|
|
2350
1468
|
var de_StopJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2351
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2352
|
-
return
|
|
1470
|
+
return de_CommandError(output, context);
|
|
2353
1471
|
}
|
|
2354
1472
|
const contents = (0, import_smithy_client.map)({
|
|
2355
1473
|
$metadata: deserializeMetadata(output)
|
|
@@ -2361,40 +1479,9 @@ var de_StopJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2361
1479
|
Object.assign(contents, doc);
|
|
2362
1480
|
return contents;
|
|
2363
1481
|
}, "de_StopJobCommand");
|
|
2364
|
-
var de_StopJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2365
|
-
const parsedOutput = {
|
|
2366
|
-
...output,
|
|
2367
|
-
body: await parseErrorBody(output.body, context)
|
|
2368
|
-
};
|
|
2369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
-
switch (errorCode) {
|
|
2371
|
-
case "BadRequestException":
|
|
2372
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2373
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "InternalFailureException":
|
|
2375
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2376
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "LimitExceededException":
|
|
2378
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
2379
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2380
|
-
case "NotFoundException":
|
|
2381
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2382
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "UnauthorizedException":
|
|
2384
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2385
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2386
|
-
default:
|
|
2387
|
-
const parsedBody = parsedOutput.body;
|
|
2388
|
-
return throwDefaultError({
|
|
2389
|
-
output,
|
|
2390
|
-
parsedBody,
|
|
2391
|
-
errorCode
|
|
2392
|
-
});
|
|
2393
|
-
}
|
|
2394
|
-
}, "de_StopJobCommandError");
|
|
2395
1482
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2396
1483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2397
|
-
return
|
|
1484
|
+
return de_CommandError(output, context);
|
|
2398
1485
|
}
|
|
2399
1486
|
const contents = (0, import_smithy_client.map)({
|
|
2400
1487
|
$metadata: deserializeMetadata(output)
|
|
@@ -2402,34 +1489,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2402
1489
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2403
1490
|
return contents;
|
|
2404
1491
|
}, "de_TagResourceCommand");
|
|
2405
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2406
|
-
const parsedOutput = {
|
|
2407
|
-
...output,
|
|
2408
|
-
body: await parseErrorBody(output.body, context)
|
|
2409
|
-
};
|
|
2410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
|
-
switch (errorCode) {
|
|
2412
|
-
case "BadRequestException":
|
|
2413
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2414
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "InternalFailureException":
|
|
2416
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2417
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "ResourceNotFoundException":
|
|
2419
|
-
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2420
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2421
|
-
default:
|
|
2422
|
-
const parsedBody = parsedOutput.body;
|
|
2423
|
-
return throwDefaultError({
|
|
2424
|
-
output,
|
|
2425
|
-
parsedBody,
|
|
2426
|
-
errorCode
|
|
2427
|
-
});
|
|
2428
|
-
}
|
|
2429
|
-
}, "de_TagResourceCommandError");
|
|
2430
1492
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2431
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2432
|
-
return
|
|
1494
|
+
return de_CommandError(output, context);
|
|
2433
1495
|
}
|
|
2434
1496
|
const contents = (0, import_smithy_client.map)({
|
|
2435
1497
|
$metadata: deserializeMetadata(output)
|
|
@@ -2437,34 +1499,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2437
1499
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2438
1500
|
return contents;
|
|
2439
1501
|
}, "de_UntagResourceCommand");
|
|
2440
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2441
|
-
const parsedOutput = {
|
|
2442
|
-
...output,
|
|
2443
|
-
body: await parseErrorBody(output.body, context)
|
|
2444
|
-
};
|
|
2445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
|
-
switch (errorCode) {
|
|
2447
|
-
case "BadRequestException":
|
|
2448
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2449
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "InternalFailureException":
|
|
2451
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2452
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ResourceNotFoundException":
|
|
2454
|
-
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2456
|
-
default:
|
|
2457
|
-
const parsedBody = parsedOutput.body;
|
|
2458
|
-
return throwDefaultError({
|
|
2459
|
-
output,
|
|
2460
|
-
parsedBody,
|
|
2461
|
-
errorCode
|
|
2462
|
-
});
|
|
2463
|
-
}
|
|
2464
|
-
}, "de_UntagResourceCommandError");
|
|
2465
1502
|
var de_UpdateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2466
1503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2467
|
-
return
|
|
1504
|
+
return de_CommandError(output, context);
|
|
2468
1505
|
}
|
|
2469
1506
|
const contents = (0, import_smithy_client.map)({
|
|
2470
1507
|
$metadata: deserializeMetadata(output)
|
|
@@ -2476,37 +1513,9 @@ var de_UpdateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2476
1513
|
Object.assign(contents, doc);
|
|
2477
1514
|
return contents;
|
|
2478
1515
|
}, "de_UpdateAppCommand");
|
|
2479
|
-
var de_UpdateAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2480
|
-
const parsedOutput = {
|
|
2481
|
-
...output,
|
|
2482
|
-
body: await parseErrorBody(output.body, context)
|
|
2483
|
-
};
|
|
2484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
|
-
switch (errorCode) {
|
|
2486
|
-
case "BadRequestException":
|
|
2487
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2488
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "InternalFailureException":
|
|
2490
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2491
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "NotFoundException":
|
|
2493
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2494
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "UnauthorizedException":
|
|
2496
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2497
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
}, "de_UpdateAppCommandError");
|
|
2507
1516
|
var de_UpdateBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2508
1517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
1518
|
+
return de_CommandError(output, context);
|
|
2510
1519
|
}
|
|
2511
1520
|
const contents = (0, import_smithy_client.map)({
|
|
2512
1521
|
$metadata: deserializeMetadata(output)
|
|
@@ -2518,40 +1527,9 @@ var de_UpdateBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2518
1527
|
Object.assign(contents, doc);
|
|
2519
1528
|
return contents;
|
|
2520
1529
|
}, "de_UpdateBranchCommand");
|
|
2521
|
-
var de_UpdateBranchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2522
|
-
const parsedOutput = {
|
|
2523
|
-
...output,
|
|
2524
|
-
body: await parseErrorBody(output.body, context)
|
|
2525
|
-
};
|
|
2526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2527
|
-
switch (errorCode) {
|
|
2528
|
-
case "BadRequestException":
|
|
2529
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2530
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "DependentServiceFailureException":
|
|
2532
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2533
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "InternalFailureException":
|
|
2535
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2536
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "NotFoundException":
|
|
2538
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2539
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "UnauthorizedException":
|
|
2541
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2542
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2543
|
-
default:
|
|
2544
|
-
const parsedBody = parsedOutput.body;
|
|
2545
|
-
return throwDefaultError({
|
|
2546
|
-
output,
|
|
2547
|
-
parsedBody,
|
|
2548
|
-
errorCode
|
|
2549
|
-
});
|
|
2550
|
-
}
|
|
2551
|
-
}, "de_UpdateBranchCommandError");
|
|
2552
1530
|
var de_UpdateDomainAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2553
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2554
|
-
return
|
|
1532
|
+
return de_CommandError(output, context);
|
|
2555
1533
|
}
|
|
2556
1534
|
const contents = (0, import_smithy_client.map)({
|
|
2557
1535
|
$metadata: deserializeMetadata(output)
|
|
@@ -2563,40 +1541,9 @@ var de_UpdateDomainAssociationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2563
1541
|
Object.assign(contents, doc);
|
|
2564
1542
|
return contents;
|
|
2565
1543
|
}, "de_UpdateDomainAssociationCommand");
|
|
2566
|
-
var de_UpdateDomainAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2567
|
-
const parsedOutput = {
|
|
2568
|
-
...output,
|
|
2569
|
-
body: await parseErrorBody(output.body, context)
|
|
2570
|
-
};
|
|
2571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
|
-
switch (errorCode) {
|
|
2573
|
-
case "BadRequestException":
|
|
2574
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2575
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "DependentServiceFailureException":
|
|
2577
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2578
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "InternalFailureException":
|
|
2580
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2581
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "NotFoundException":
|
|
2583
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2584
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "UnauthorizedException":
|
|
2586
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2587
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2588
|
-
default:
|
|
2589
|
-
const parsedBody = parsedOutput.body;
|
|
2590
|
-
return throwDefaultError({
|
|
2591
|
-
output,
|
|
2592
|
-
parsedBody,
|
|
2593
|
-
errorCode
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
}, "de_UpdateDomainAssociationCommandError");
|
|
2597
1544
|
var de_UpdateWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2598
1545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2599
|
-
return
|
|
1546
|
+
return de_CommandError(output, context);
|
|
2600
1547
|
}
|
|
2601
1548
|
const contents = (0, import_smithy_client.map)({
|
|
2602
1549
|
$metadata: deserializeMetadata(output)
|
|
@@ -2608,7 +1555,7 @@ var de_UpdateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2608
1555
|
Object.assign(contents, doc);
|
|
2609
1556
|
return contents;
|
|
2610
1557
|
}, "de_UpdateWebhookCommand");
|
|
2611
|
-
var
|
|
1558
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2612
1559
|
const parsedOutput = {
|
|
2613
1560
|
...output,
|
|
2614
1561
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2624,12 +1571,18 @@ var de_UpdateWebhookCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2624
1571
|
case "InternalFailureException":
|
|
2625
1572
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2626
1573
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "
|
|
2628
|
-
case "com.amazonaws.amplify#
|
|
2629
|
-
throw await
|
|
1574
|
+
case "LimitExceededException":
|
|
1575
|
+
case "com.amazonaws.amplify#LimitExceededException":
|
|
1576
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2630
1577
|
case "UnauthorizedException":
|
|
2631
1578
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2632
1579
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1580
|
+
case "NotFoundException":
|
|
1581
|
+
case "com.amazonaws.amplify#NotFoundException":
|
|
1582
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1583
|
+
case "ResourceNotFoundException":
|
|
1584
|
+
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
1585
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2633
1586
|
default:
|
|
2634
1587
|
const parsedBody = parsedOutput.body;
|
|
2635
1588
|
return throwDefaultError({
|
|
@@ -2638,7 +1591,7 @@ var de_UpdateWebhookCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2638
1591
|
errorCode
|
|
2639
1592
|
});
|
|
2640
1593
|
}
|
|
2641
|
-
}, "
|
|
1594
|
+
}, "de_CommandError");
|
|
2642
1595
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AmplifyServiceException);
|
|
2643
1596
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2644
1597
|
const contents = (0, import_smithy_client.map)({});
|