@aws-sdk/client-chime-sdk-identity 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 +72 -1133
- package/dist-es/protocols/Aws_restJson1.js +125 -1186
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1074,7 +1074,7 @@ var se_UpdateAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (inpu
|
|
|
1074
1074
|
}, "se_UpdateAppInstanceUserEndpointCommand");
|
|
1075
1075
|
var de_CreateAppInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
1076
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
1077
|
+
return de_CommandError(output, context);
|
|
1078
1078
|
}
|
|
1079
1079
|
const contents = (0, import_smithy_client.map)({
|
|
1080
1080
|
$metadata: deserializeMetadata(output)
|
|
@@ -1086,49 +1086,9 @@ var de_CreateAppInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1086
1086
|
Object.assign(contents, doc);
|
|
1087
1087
|
return contents;
|
|
1088
1088
|
}, "de_CreateAppInstanceCommand");
|
|
1089
|
-
var de_CreateAppInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context)
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "BadRequestException":
|
|
1097
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1098
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "ConflictException":
|
|
1100
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1101
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ForbiddenException":
|
|
1103
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1104
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ResourceLimitExceededException":
|
|
1106
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1107
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ServiceFailureException":
|
|
1109
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1110
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ServiceUnavailableException":
|
|
1112
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1113
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ThrottledClientException":
|
|
1115
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1116
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "UnauthorizedClientException":
|
|
1118
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1119
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1120
|
-
default:
|
|
1121
|
-
const parsedBody = parsedOutput.body;
|
|
1122
|
-
return throwDefaultError({
|
|
1123
|
-
output,
|
|
1124
|
-
parsedBody,
|
|
1125
|
-
errorCode
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
}, "de_CreateAppInstanceCommandError");
|
|
1129
1089
|
var de_CreateAppInstanceAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
1090
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1132
1092
|
}
|
|
1133
1093
|
const contents = (0, import_smithy_client.map)({
|
|
1134
1094
|
$metadata: deserializeMetadata(output)
|
|
@@ -1141,49 +1101,9 @@ var de_CreateAppInstanceAdminCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1141
1101
|
Object.assign(contents, doc);
|
|
1142
1102
|
return contents;
|
|
1143
1103
|
}, "de_CreateAppInstanceAdminCommand");
|
|
1144
|
-
var de_CreateAppInstanceAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
|
-
const parsedOutput = {
|
|
1146
|
-
...output,
|
|
1147
|
-
body: await parseErrorBody(output.body, context)
|
|
1148
|
-
};
|
|
1149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
-
switch (errorCode) {
|
|
1151
|
-
case "BadRequestException":
|
|
1152
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1153
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ConflictException":
|
|
1155
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1156
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ForbiddenException":
|
|
1158
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1159
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ResourceLimitExceededException":
|
|
1161
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1162
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ServiceFailureException":
|
|
1164
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1165
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ServiceUnavailableException":
|
|
1167
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1168
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ThrottledClientException":
|
|
1170
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1171
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "UnauthorizedClientException":
|
|
1173
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1174
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
}, "de_CreateAppInstanceAdminCommandError");
|
|
1184
1104
|
var de_CreateAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1185
1105
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1187
1107
|
}
|
|
1188
1108
|
const contents = (0, import_smithy_client.map)({
|
|
1189
1109
|
$metadata: deserializeMetadata(output)
|
|
@@ -1195,49 +1115,9 @@ var de_CreateAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1195
1115
|
Object.assign(contents, doc);
|
|
1196
1116
|
return contents;
|
|
1197
1117
|
}, "de_CreateAppInstanceBotCommand");
|
|
1198
|
-
var de_CreateAppInstanceBotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context)
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "BadRequestException":
|
|
1206
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1207
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ConflictException":
|
|
1209
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1210
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ForbiddenException":
|
|
1212
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1213
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ResourceLimitExceededException":
|
|
1215
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1216
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ServiceFailureException":
|
|
1218
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1219
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ServiceUnavailableException":
|
|
1221
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1222
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ThrottledClientException":
|
|
1224
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1225
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "UnauthorizedClientException":
|
|
1227
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1228
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1229
|
-
default:
|
|
1230
|
-
const parsedBody = parsedOutput.body;
|
|
1231
|
-
return throwDefaultError({
|
|
1232
|
-
output,
|
|
1233
|
-
parsedBody,
|
|
1234
|
-
errorCode
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
}, "de_CreateAppInstanceBotCommandError");
|
|
1238
1118
|
var de_CreateAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
1119
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1240
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
1241
1121
|
}
|
|
1242
1122
|
const contents = (0, import_smithy_client.map)({
|
|
1243
1123
|
$metadata: deserializeMetadata(output)
|
|
@@ -1249,49 +1129,9 @@ var de_CreateAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1249
1129
|
Object.assign(contents, doc);
|
|
1250
1130
|
return contents;
|
|
1251
1131
|
}, "de_CreateAppInstanceUserCommand");
|
|
1252
|
-
var de_CreateAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
|
-
const parsedOutput = {
|
|
1254
|
-
...output,
|
|
1255
|
-
body: await parseErrorBody(output.body, context)
|
|
1256
|
-
};
|
|
1257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
-
switch (errorCode) {
|
|
1259
|
-
case "BadRequestException":
|
|
1260
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1261
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ConflictException":
|
|
1263
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1264
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ForbiddenException":
|
|
1266
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1267
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ResourceLimitExceededException":
|
|
1269
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1270
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ServiceFailureException":
|
|
1272
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1273
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ServiceUnavailableException":
|
|
1275
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1276
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ThrottledClientException":
|
|
1278
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1279
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "UnauthorizedClientException":
|
|
1281
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1282
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
}, "de_CreateAppInstanceUserCommandError");
|
|
1292
1132
|
var de_DeleteAppInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
1133
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
1134
|
+
return de_CommandError(output, context);
|
|
1295
1135
|
}
|
|
1296
1136
|
const contents = (0, import_smithy_client.map)({
|
|
1297
1137
|
$metadata: deserializeMetadata(output)
|
|
@@ -1299,46 +1139,9 @@ var de_DeleteAppInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1299
1139
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1300
1140
|
return contents;
|
|
1301
1141
|
}, "de_DeleteAppInstanceCommand");
|
|
1302
|
-
var de_DeleteAppInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
|
-
const parsedOutput = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseErrorBody(output.body, context)
|
|
1306
|
-
};
|
|
1307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "BadRequestException":
|
|
1310
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1311
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ForbiddenException":
|
|
1313
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1314
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ResourceLimitExceededException":
|
|
1316
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1317
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ServiceFailureException":
|
|
1319
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1320
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ServiceUnavailableException":
|
|
1322
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1323
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ThrottledClientException":
|
|
1325
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1326
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "UnauthorizedClientException":
|
|
1328
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1329
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1330
|
-
default:
|
|
1331
|
-
const parsedBody = parsedOutput.body;
|
|
1332
|
-
return throwDefaultError({
|
|
1333
|
-
output,
|
|
1334
|
-
parsedBody,
|
|
1335
|
-
errorCode
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
}, "de_DeleteAppInstanceCommandError");
|
|
1339
1142
|
var de_DeleteAppInstanceAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1340
1143
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1144
|
+
return de_CommandError(output, context);
|
|
1342
1145
|
}
|
|
1343
1146
|
const contents = (0, import_smithy_client.map)({
|
|
1344
1147
|
$metadata: deserializeMetadata(output)
|
|
@@ -1346,49 +1149,9 @@ var de_DeleteAppInstanceAdminCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1346
1149
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1347
1150
|
return contents;
|
|
1348
1151
|
}, "de_DeleteAppInstanceAdminCommand");
|
|
1349
|
-
var de_DeleteAppInstanceAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context)
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "BadRequestException":
|
|
1357
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1358
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ConflictException":
|
|
1360
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1361
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ForbiddenException":
|
|
1363
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1364
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ResourceLimitExceededException":
|
|
1366
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1367
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ServiceFailureException":
|
|
1369
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1370
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ServiceUnavailableException":
|
|
1372
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1373
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ThrottledClientException":
|
|
1375
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1376
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "UnauthorizedClientException":
|
|
1378
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1379
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
}, "de_DeleteAppInstanceAdminCommandError");
|
|
1389
1152
|
var de_DeleteAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
1153
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
1154
|
+
return de_CommandError(output, context);
|
|
1392
1155
|
}
|
|
1393
1156
|
const contents = (0, import_smithy_client.map)({
|
|
1394
1157
|
$metadata: deserializeMetadata(output)
|
|
@@ -1396,49 +1159,9 @@ var de_DeleteAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1396
1159
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1397
1160
|
return contents;
|
|
1398
1161
|
}, "de_DeleteAppInstanceBotCommand");
|
|
1399
|
-
var de_DeleteAppInstanceBotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
|
-
const parsedOutput = {
|
|
1401
|
-
...output,
|
|
1402
|
-
body: await parseErrorBody(output.body, context)
|
|
1403
|
-
};
|
|
1404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
-
switch (errorCode) {
|
|
1406
|
-
case "BadRequestException":
|
|
1407
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1408
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ConflictException":
|
|
1410
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1411
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ForbiddenException":
|
|
1413
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1414
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ResourceLimitExceededException":
|
|
1416
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1417
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "ServiceFailureException":
|
|
1419
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1420
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ServiceUnavailableException":
|
|
1422
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1423
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ThrottledClientException":
|
|
1425
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1426
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "UnauthorizedClientException":
|
|
1428
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1429
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
}, "de_DeleteAppInstanceBotCommandError");
|
|
1439
1162
|
var de_DeleteAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
1163
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
1164
|
+
return de_CommandError(output, context);
|
|
1442
1165
|
}
|
|
1443
1166
|
const contents = (0, import_smithy_client.map)({
|
|
1444
1167
|
$metadata: deserializeMetadata(output)
|
|
@@ -1446,49 +1169,9 @@ var de_DeleteAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1446
1169
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1447
1170
|
return contents;
|
|
1448
1171
|
}, "de_DeleteAppInstanceUserCommand");
|
|
1449
|
-
var de_DeleteAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context)
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "BadRequestException":
|
|
1457
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1458
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ConflictException":
|
|
1460
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1461
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ForbiddenException":
|
|
1463
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1464
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ResourceLimitExceededException":
|
|
1466
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1467
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ServiceFailureException":
|
|
1469
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1470
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ServiceUnavailableException":
|
|
1472
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1473
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ThrottledClientException":
|
|
1475
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1476
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "UnauthorizedClientException":
|
|
1478
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1479
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1480
|
-
default:
|
|
1481
|
-
const parsedBody = parsedOutput.body;
|
|
1482
|
-
return throwDefaultError({
|
|
1483
|
-
output,
|
|
1484
|
-
parsedBody,
|
|
1485
|
-
errorCode
|
|
1486
|
-
});
|
|
1487
|
-
}
|
|
1488
|
-
}, "de_DeleteAppInstanceUserCommandError");
|
|
1489
1172
|
var de_DeregisterAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1490
1173
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1491
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
1492
1175
|
}
|
|
1493
1176
|
const contents = (0, import_smithy_client.map)({
|
|
1494
1177
|
$metadata: deserializeMetadata(output)
|
|
@@ -1496,43 +1179,9 @@ var de_DeregisterAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (
|
|
|
1496
1179
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1497
1180
|
return contents;
|
|
1498
1181
|
}, "de_DeregisterAppInstanceUserEndpointCommand");
|
|
1499
|
-
var de_DeregisterAppInstanceUserEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context)
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "BadRequestException":
|
|
1507
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1508
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ForbiddenException":
|
|
1510
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1511
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ServiceFailureException":
|
|
1513
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1514
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ServiceUnavailableException":
|
|
1516
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1517
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ThrottledClientException":
|
|
1519
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1520
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "UnauthorizedClientException":
|
|
1522
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1523
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1524
|
-
default:
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
return throwDefaultError({
|
|
1527
|
-
output,
|
|
1528
|
-
parsedBody,
|
|
1529
|
-
errorCode
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
}, "de_DeregisterAppInstanceUserEndpointCommandError");
|
|
1533
1182
|
var de_DescribeAppInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
1183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1535
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
1536
1185
|
}
|
|
1537
1186
|
const contents = (0, import_smithy_client.map)({
|
|
1538
1187
|
$metadata: deserializeMetadata(output)
|
|
@@ -1544,43 +1193,9 @@ var de_DescribeAppInstanceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1544
1193
|
Object.assign(contents, doc);
|
|
1545
1194
|
return contents;
|
|
1546
1195
|
}, "de_DescribeAppInstanceCommand");
|
|
1547
|
-
var de_DescribeAppInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context)
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "BadRequestException":
|
|
1555
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1556
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ForbiddenException":
|
|
1558
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1559
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ServiceFailureException":
|
|
1561
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1562
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ServiceUnavailableException":
|
|
1564
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ThrottledClientException":
|
|
1567
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1568
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "UnauthorizedClientException":
|
|
1570
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1571
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1572
|
-
default:
|
|
1573
|
-
const parsedBody = parsedOutput.body;
|
|
1574
|
-
return throwDefaultError({
|
|
1575
|
-
output,
|
|
1576
|
-
parsedBody,
|
|
1577
|
-
errorCode
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
}, "de_DescribeAppInstanceCommandError");
|
|
1581
1196
|
var de_DescribeAppInstanceAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1582
1197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1583
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
1584
1199
|
}
|
|
1585
1200
|
const contents = (0, import_smithy_client.map)({
|
|
1586
1201
|
$metadata: deserializeMetadata(output)
|
|
@@ -1592,43 +1207,9 @@ var de_DescribeAppInstanceAdminCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1592
1207
|
Object.assign(contents, doc);
|
|
1593
1208
|
return contents;
|
|
1594
1209
|
}, "de_DescribeAppInstanceAdminCommand");
|
|
1595
|
-
var de_DescribeAppInstanceAdminCommandError = /* @__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 "BadRequestException":
|
|
1603
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1604
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ForbiddenException":
|
|
1606
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1607
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ServiceFailureException":
|
|
1609
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1610
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ServiceUnavailableException":
|
|
1612
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1613
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ThrottledClientException":
|
|
1615
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1616
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "UnauthorizedClientException":
|
|
1618
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1619
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
}, "de_DescribeAppInstanceAdminCommandError");
|
|
1629
1210
|
var de_DescribeAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1630
1211
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
1212
|
+
return de_CommandError(output, context);
|
|
1632
1213
|
}
|
|
1633
1214
|
const contents = (0, import_smithy_client.map)({
|
|
1634
1215
|
$metadata: deserializeMetadata(output)
|
|
@@ -1640,46 +1221,9 @@ var de_DescribeAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1640
1221
|
Object.assign(contents, doc);
|
|
1641
1222
|
return contents;
|
|
1642
1223
|
}, "de_DescribeAppInstanceBotCommand");
|
|
1643
|
-
var de_DescribeAppInstanceBotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1644
|
-
const parsedOutput = {
|
|
1645
|
-
...output,
|
|
1646
|
-
body: await parseErrorBody(output.body, context)
|
|
1647
|
-
};
|
|
1648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
|
-
switch (errorCode) {
|
|
1650
|
-
case "BadRequestException":
|
|
1651
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1652
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ForbiddenException":
|
|
1654
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1655
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "NotFoundException":
|
|
1657
|
-
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
1658
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ServiceFailureException":
|
|
1660
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1661
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ServiceUnavailableException":
|
|
1663
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1664
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "ThrottledClientException":
|
|
1666
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1667
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "UnauthorizedClientException":
|
|
1669
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1670
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1671
|
-
default:
|
|
1672
|
-
const parsedBody = parsedOutput.body;
|
|
1673
|
-
return throwDefaultError({
|
|
1674
|
-
output,
|
|
1675
|
-
parsedBody,
|
|
1676
|
-
errorCode
|
|
1677
|
-
});
|
|
1678
|
-
}
|
|
1679
|
-
}, "de_DescribeAppInstanceBotCommandError");
|
|
1680
1224
|
var de_DescribeAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1681
1225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1682
|
-
return
|
|
1226
|
+
return de_CommandError(output, context);
|
|
1683
1227
|
}
|
|
1684
1228
|
const contents = (0, import_smithy_client.map)({
|
|
1685
1229
|
$metadata: deserializeMetadata(output)
|
|
@@ -1691,43 +1235,9 @@ var de_DescribeAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1691
1235
|
Object.assign(contents, doc);
|
|
1692
1236
|
return contents;
|
|
1693
1237
|
}, "de_DescribeAppInstanceUserCommand");
|
|
1694
|
-
var de_DescribeAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1695
|
-
const parsedOutput = {
|
|
1696
|
-
...output,
|
|
1697
|
-
body: await parseErrorBody(output.body, context)
|
|
1698
|
-
};
|
|
1699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
-
switch (errorCode) {
|
|
1701
|
-
case "BadRequestException":
|
|
1702
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1703
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ForbiddenException":
|
|
1705
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1706
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ServiceFailureException":
|
|
1708
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1709
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ServiceUnavailableException":
|
|
1711
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1712
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ThrottledClientException":
|
|
1714
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1715
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "UnauthorizedClientException":
|
|
1717
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1718
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
}, "de_DescribeAppInstanceUserCommandError");
|
|
1728
1238
|
var de_DescribeAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1729
1239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1730
|
-
return
|
|
1240
|
+
return de_CommandError(output, context);
|
|
1731
1241
|
}
|
|
1732
1242
|
const contents = (0, import_smithy_client.map)({
|
|
1733
1243
|
$metadata: deserializeMetadata(output)
|
|
@@ -1739,43 +1249,9 @@ var de_DescribeAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1739
1249
|
Object.assign(contents, doc);
|
|
1740
1250
|
return contents;
|
|
1741
1251
|
}, "de_DescribeAppInstanceUserEndpointCommand");
|
|
1742
|
-
var de_DescribeAppInstanceUserEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1743
|
-
const parsedOutput = {
|
|
1744
|
-
...output,
|
|
1745
|
-
body: await parseErrorBody(output.body, context)
|
|
1746
|
-
};
|
|
1747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
-
switch (errorCode) {
|
|
1749
|
-
case "BadRequestException":
|
|
1750
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1751
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "ForbiddenException":
|
|
1753
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1754
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ServiceFailureException":
|
|
1756
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1757
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "ServiceUnavailableException":
|
|
1759
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1760
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "ThrottledClientException":
|
|
1762
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1763
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "UnauthorizedClientException":
|
|
1765
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1766
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1767
|
-
default:
|
|
1768
|
-
const parsedBody = parsedOutput.body;
|
|
1769
|
-
return throwDefaultError({
|
|
1770
|
-
output,
|
|
1771
|
-
parsedBody,
|
|
1772
|
-
errorCode
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
}, "de_DescribeAppInstanceUserEndpointCommandError");
|
|
1776
1252
|
var de_GetAppInstanceRetentionSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1777
1253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
1254
|
+
return de_CommandError(output, context);
|
|
1779
1255
|
}
|
|
1780
1256
|
const contents = (0, import_smithy_client.map)({
|
|
1781
1257
|
$metadata: deserializeMetadata(output)
|
|
@@ -1788,43 +1264,9 @@ var de_GetAppInstanceRetentionSettingsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1788
1264
|
Object.assign(contents, doc);
|
|
1789
1265
|
return contents;
|
|
1790
1266
|
}, "de_GetAppInstanceRetentionSettingsCommand");
|
|
1791
|
-
var de_GetAppInstanceRetentionSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1792
|
-
const parsedOutput = {
|
|
1793
|
-
...output,
|
|
1794
|
-
body: await parseErrorBody(output.body, context)
|
|
1795
|
-
};
|
|
1796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
|
-
switch (errorCode) {
|
|
1798
|
-
case "BadRequestException":
|
|
1799
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1800
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ForbiddenException":
|
|
1802
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1803
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ServiceFailureException":
|
|
1805
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1806
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ServiceUnavailableException":
|
|
1808
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1809
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ThrottledClientException":
|
|
1811
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1812
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "UnauthorizedClientException":
|
|
1814
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1815
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1816
|
-
default:
|
|
1817
|
-
const parsedBody = parsedOutput.body;
|
|
1818
|
-
return throwDefaultError({
|
|
1819
|
-
output,
|
|
1820
|
-
parsedBody,
|
|
1821
|
-
errorCode
|
|
1822
|
-
});
|
|
1823
|
-
}
|
|
1824
|
-
}, "de_GetAppInstanceRetentionSettingsCommandError");
|
|
1825
1267
|
var de_ListAppInstanceAdminsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1826
1268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1827
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
1828
1270
|
}
|
|
1829
1271
|
const contents = (0, import_smithy_client.map)({
|
|
1830
1272
|
$metadata: deserializeMetadata(output)
|
|
@@ -1838,46 +1280,9 @@ var de_ListAppInstanceAdminsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1838
1280
|
Object.assign(contents, doc);
|
|
1839
1281
|
return contents;
|
|
1840
1282
|
}, "de_ListAppInstanceAdminsCommand");
|
|
1841
|
-
var de_ListAppInstanceAdminsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1842
|
-
const parsedOutput = {
|
|
1843
|
-
...output,
|
|
1844
|
-
body: await parseErrorBody(output.body, context)
|
|
1845
|
-
};
|
|
1846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
|
-
switch (errorCode) {
|
|
1848
|
-
case "BadRequestException":
|
|
1849
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1850
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "ForbiddenException":
|
|
1852
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1853
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ResourceLimitExceededException":
|
|
1855
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1856
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ServiceFailureException":
|
|
1858
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1859
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ServiceUnavailableException":
|
|
1861
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1862
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ThrottledClientException":
|
|
1864
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1865
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "UnauthorizedClientException":
|
|
1867
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1868
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1869
|
-
default:
|
|
1870
|
-
const parsedBody = parsedOutput.body;
|
|
1871
|
-
return throwDefaultError({
|
|
1872
|
-
output,
|
|
1873
|
-
parsedBody,
|
|
1874
|
-
errorCode
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
}, "de_ListAppInstanceAdminsCommandError");
|
|
1878
1283
|
var de_ListAppInstanceBotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1879
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
|
-
return
|
|
1285
|
+
return de_CommandError(output, context);
|
|
1881
1286
|
}
|
|
1882
1287
|
const contents = (0, import_smithy_client.map)({
|
|
1883
1288
|
$metadata: deserializeMetadata(output)
|
|
@@ -1891,46 +1296,9 @@ var de_ListAppInstanceBotsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1891
1296
|
Object.assign(contents, doc);
|
|
1892
1297
|
return contents;
|
|
1893
1298
|
}, "de_ListAppInstanceBotsCommand");
|
|
1894
|
-
var de_ListAppInstanceBotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1895
|
-
const parsedOutput = {
|
|
1896
|
-
...output,
|
|
1897
|
-
body: await parseErrorBody(output.body, context)
|
|
1898
|
-
};
|
|
1899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
|
-
switch (errorCode) {
|
|
1901
|
-
case "BadRequestException":
|
|
1902
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1903
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "ForbiddenException":
|
|
1905
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1906
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ResourceLimitExceededException":
|
|
1908
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1909
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ServiceFailureException":
|
|
1911
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1912
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "ServiceUnavailableException":
|
|
1914
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1915
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "ThrottledClientException":
|
|
1917
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1918
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "UnauthorizedClientException":
|
|
1920
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1921
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1922
|
-
default:
|
|
1923
|
-
const parsedBody = parsedOutput.body;
|
|
1924
|
-
return throwDefaultError({
|
|
1925
|
-
output,
|
|
1926
|
-
parsedBody,
|
|
1927
|
-
errorCode
|
|
1928
|
-
});
|
|
1929
|
-
}
|
|
1930
|
-
}, "de_ListAppInstanceBotsCommandError");
|
|
1931
1299
|
var de_ListAppInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1932
1300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1933
|
-
return
|
|
1301
|
+
return de_CommandError(output, context);
|
|
1934
1302
|
}
|
|
1935
1303
|
const contents = (0, import_smithy_client.map)({
|
|
1936
1304
|
$metadata: deserializeMetadata(output)
|
|
@@ -1943,43 +1311,9 @@ var de_ListAppInstancesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1943
1311
|
Object.assign(contents, doc);
|
|
1944
1312
|
return contents;
|
|
1945
1313
|
}, "de_ListAppInstancesCommand");
|
|
1946
|
-
var de_ListAppInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1947
|
-
const parsedOutput = {
|
|
1948
|
-
...output,
|
|
1949
|
-
body: await parseErrorBody(output.body, context)
|
|
1950
|
-
};
|
|
1951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
|
-
switch (errorCode) {
|
|
1953
|
-
case "BadRequestException":
|
|
1954
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1955
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "ForbiddenException":
|
|
1957
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1958
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "ServiceFailureException":
|
|
1960
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1961
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "ServiceUnavailableException":
|
|
1963
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1964
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ThrottledClientException":
|
|
1966
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1967
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "UnauthorizedClientException":
|
|
1969
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1970
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1971
|
-
default:
|
|
1972
|
-
const parsedBody = parsedOutput.body;
|
|
1973
|
-
return throwDefaultError({
|
|
1974
|
-
output,
|
|
1975
|
-
parsedBody,
|
|
1976
|
-
errorCode
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
}, "de_ListAppInstancesCommandError");
|
|
1980
1314
|
var de_ListAppInstanceUserEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1981
1315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1982
|
-
return
|
|
1316
|
+
return de_CommandError(output, context);
|
|
1983
1317
|
}
|
|
1984
1318
|
const contents = (0, import_smithy_client.map)({
|
|
1985
1319
|
$metadata: deserializeMetadata(output)
|
|
@@ -1992,43 +1326,9 @@ var de_ListAppInstanceUserEndpointsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1992
1326
|
Object.assign(contents, doc);
|
|
1993
1327
|
return contents;
|
|
1994
1328
|
}, "de_ListAppInstanceUserEndpointsCommand");
|
|
1995
|
-
var de_ListAppInstanceUserEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context)
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "BadRequestException":
|
|
2003
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2004
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ForbiddenException":
|
|
2006
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2007
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ServiceFailureException":
|
|
2009
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2010
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "ServiceUnavailableException":
|
|
2012
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2013
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ThrottledClientException":
|
|
2015
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2016
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "UnauthorizedClientException":
|
|
2018
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2019
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2020
|
-
default:
|
|
2021
|
-
const parsedBody = parsedOutput.body;
|
|
2022
|
-
return throwDefaultError({
|
|
2023
|
-
output,
|
|
2024
|
-
parsedBody,
|
|
2025
|
-
errorCode
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
}, "de_ListAppInstanceUserEndpointsCommandError");
|
|
2029
1329
|
var de_ListAppInstanceUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2030
1330
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
|
-
return
|
|
1331
|
+
return de_CommandError(output, context);
|
|
2032
1332
|
}
|
|
2033
1333
|
const contents = (0, import_smithy_client.map)({
|
|
2034
1334
|
$metadata: deserializeMetadata(output)
|
|
@@ -2042,192 +1342,53 @@ var de_ListAppInstanceUsersCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2042
1342
|
Object.assign(contents, doc);
|
|
2043
1343
|
return contents;
|
|
2044
1344
|
}, "de_ListAppInstanceUsersCommand");
|
|
2045
|
-
var de_ListAppInstanceUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
|
-
const parsedOutput = {
|
|
2047
|
-
...output,
|
|
2048
|
-
body: await parseErrorBody(output.body, context)
|
|
2049
|
-
};
|
|
2050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2051
|
-
switch (errorCode) {
|
|
2052
|
-
case "BadRequestException":
|
|
2053
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2054
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ForbiddenException":
|
|
2056
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2057
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ServiceFailureException":
|
|
2059
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2060
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ServiceUnavailableException":
|
|
2062
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2063
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "ThrottledClientException":
|
|
2065
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2066
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "UnauthorizedClientException":
|
|
2068
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2069
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2070
|
-
default:
|
|
2071
|
-
const parsedBody = parsedOutput.body;
|
|
2072
|
-
return throwDefaultError({
|
|
2073
|
-
output,
|
|
2074
|
-
parsedBody,
|
|
2075
|
-
errorCode
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
}, "de_ListAppInstanceUsersCommandError");
|
|
2079
1345
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2080
1346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2081
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
2082
1348
|
}
|
|
2083
1349
|
const contents = (0, import_smithy_client.map)({
|
|
2084
1350
|
$metadata: deserializeMetadata(output)
|
|
2085
1351
|
});
|
|
2086
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2087
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2088
|
-
Tags: import_smithy_client._json
|
|
2089
|
-
});
|
|
2090
|
-
Object.assign(contents, doc);
|
|
2091
|
-
return contents;
|
|
2092
|
-
}, "de_ListTagsForResourceCommand");
|
|
2093
|
-
var
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ThrottledClientException":
|
|
2113
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2114
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "UnauthorizedClientException":
|
|
2116
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2117
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2118
|
-
default:
|
|
2119
|
-
const parsedBody = parsedOutput.body;
|
|
2120
|
-
return throwDefaultError({
|
|
2121
|
-
output,
|
|
2122
|
-
parsedBody,
|
|
2123
|
-
errorCode
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2127
|
-
var de_PutAppInstanceRetentionSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2128
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2129
|
-
return de_PutAppInstanceRetentionSettingsCommandError(output, context);
|
|
2130
|
-
}
|
|
2131
|
-
const contents = (0, import_smithy_client.map)({
|
|
2132
|
-
$metadata: deserializeMetadata(output)
|
|
2133
|
-
});
|
|
2134
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2135
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2136
|
-
AppInstanceRetentionSettings: import_smithy_client._json,
|
|
2137
|
-
InitiateDeletionTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
2138
|
-
});
|
|
2139
|
-
Object.assign(contents, doc);
|
|
2140
|
-
return contents;
|
|
2141
|
-
}, "de_PutAppInstanceRetentionSettingsCommand");
|
|
2142
|
-
var de_PutAppInstanceRetentionSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2143
|
-
const parsedOutput = {
|
|
2144
|
-
...output,
|
|
2145
|
-
body: await parseErrorBody(output.body, context)
|
|
2146
|
-
};
|
|
2147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
-
switch (errorCode) {
|
|
2149
|
-
case "BadRequestException":
|
|
2150
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2151
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "ForbiddenException":
|
|
2153
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2154
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ServiceFailureException":
|
|
2156
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2157
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ServiceUnavailableException":
|
|
2159
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2160
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ThrottledClientException":
|
|
2162
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2163
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "UnauthorizedClientException":
|
|
2165
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2166
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2167
|
-
default:
|
|
2168
|
-
const parsedBody = parsedOutput.body;
|
|
2169
|
-
return throwDefaultError({
|
|
2170
|
-
output,
|
|
2171
|
-
parsedBody,
|
|
2172
|
-
errorCode
|
|
2173
|
-
});
|
|
2174
|
-
}
|
|
2175
|
-
}, "de_PutAppInstanceRetentionSettingsCommandError");
|
|
2176
|
-
var de_PutAppInstanceUserExpirationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2177
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2178
|
-
return de_PutAppInstanceUserExpirationSettingsCommandError(output, context);
|
|
2179
|
-
}
|
|
2180
|
-
const contents = (0, import_smithy_client.map)({
|
|
2181
|
-
$metadata: deserializeMetadata(output)
|
|
2182
|
-
});
|
|
2183
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2184
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2185
|
-
AppInstanceUserArn: import_smithy_client.expectString,
|
|
2186
|
-
ExpirationSettings: import_smithy_client._json
|
|
2187
|
-
});
|
|
2188
|
-
Object.assign(contents, doc);
|
|
2189
|
-
return contents;
|
|
2190
|
-
}, "de_PutAppInstanceUserExpirationSettingsCommand");
|
|
2191
|
-
var de_PutAppInstanceUserExpirationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2192
|
-
const parsedOutput = {
|
|
2193
|
-
...output,
|
|
2194
|
-
body: await parseErrorBody(output.body, context)
|
|
2195
|
-
};
|
|
2196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
|
-
switch (errorCode) {
|
|
2198
|
-
case "BadRequestException":
|
|
2199
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2200
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "ConflictException":
|
|
2202
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2203
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ForbiddenException":
|
|
2205
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2206
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ServiceFailureException":
|
|
2208
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2209
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ServiceUnavailableException":
|
|
2211
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2212
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ThrottledClientException":
|
|
2214
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2215
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "UnauthorizedClientException":
|
|
2217
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2218
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
1352
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1353
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1354
|
+
Tags: import_smithy_client._json
|
|
1355
|
+
});
|
|
1356
|
+
Object.assign(contents, doc);
|
|
1357
|
+
return contents;
|
|
1358
|
+
}, "de_ListTagsForResourceCommand");
|
|
1359
|
+
var de_PutAppInstanceRetentionSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1361
|
+
return de_CommandError(output, context);
|
|
1362
|
+
}
|
|
1363
|
+
const contents = (0, import_smithy_client.map)({
|
|
1364
|
+
$metadata: deserializeMetadata(output)
|
|
1365
|
+
});
|
|
1366
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1367
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1368
|
+
AppInstanceRetentionSettings: import_smithy_client._json,
|
|
1369
|
+
InitiateDeletionTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1370
|
+
});
|
|
1371
|
+
Object.assign(contents, doc);
|
|
1372
|
+
return contents;
|
|
1373
|
+
}, "de_PutAppInstanceRetentionSettingsCommand");
|
|
1374
|
+
var de_PutAppInstanceUserExpirationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1376
|
+
return de_CommandError(output, context);
|
|
2226
1377
|
}
|
|
2227
|
-
|
|
1378
|
+
const contents = (0, import_smithy_client.map)({
|
|
1379
|
+
$metadata: deserializeMetadata(output)
|
|
1380
|
+
});
|
|
1381
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1382
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1383
|
+
AppInstanceUserArn: import_smithy_client.expectString,
|
|
1384
|
+
ExpirationSettings: import_smithy_client._json
|
|
1385
|
+
});
|
|
1386
|
+
Object.assign(contents, doc);
|
|
1387
|
+
return contents;
|
|
1388
|
+
}, "de_PutAppInstanceUserExpirationSettingsCommand");
|
|
2228
1389
|
var de_RegisterAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
1390
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
1391
|
+
return de_CommandError(output, context);
|
|
2231
1392
|
}
|
|
2232
1393
|
const contents = (0, import_smithy_client.map)({
|
|
2233
1394
|
$metadata: deserializeMetadata(output)
|
|
@@ -2240,49 +1401,9 @@ var de_RegisterAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2240
1401
|
Object.assign(contents, doc);
|
|
2241
1402
|
return contents;
|
|
2242
1403
|
}, "de_RegisterAppInstanceUserEndpointCommand");
|
|
2243
|
-
var de_RegisterAppInstanceUserEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2244
|
-
const parsedOutput = {
|
|
2245
|
-
...output,
|
|
2246
|
-
body: await parseErrorBody(output.body, context)
|
|
2247
|
-
};
|
|
2248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
|
-
switch (errorCode) {
|
|
2250
|
-
case "BadRequestException":
|
|
2251
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2252
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "ConflictException":
|
|
2254
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2255
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "ForbiddenException":
|
|
2257
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2258
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2259
|
-
case "ResourceLimitExceededException":
|
|
2260
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2261
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2262
|
-
case "ServiceFailureException":
|
|
2263
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2264
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2265
|
-
case "ServiceUnavailableException":
|
|
2266
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2267
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "ThrottledClientException":
|
|
2269
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2270
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "UnauthorizedClientException":
|
|
2272
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2273
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2274
|
-
default:
|
|
2275
|
-
const parsedBody = parsedOutput.body;
|
|
2276
|
-
return throwDefaultError({
|
|
2277
|
-
output,
|
|
2278
|
-
parsedBody,
|
|
2279
|
-
errorCode
|
|
2280
|
-
});
|
|
2281
|
-
}
|
|
2282
|
-
}, "de_RegisterAppInstanceUserEndpointCommandError");
|
|
2283
1404
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2284
1405
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2285
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
2286
1407
|
}
|
|
2287
1408
|
const contents = (0, import_smithy_client.map)({
|
|
2288
1409
|
$metadata: deserializeMetadata(output)
|
|
@@ -2290,46 +1411,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2290
1411
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2291
1412
|
return contents;
|
|
2292
1413
|
}, "de_TagResourceCommand");
|
|
2293
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2294
|
-
const parsedOutput = {
|
|
2295
|
-
...output,
|
|
2296
|
-
body: await parseErrorBody(output.body, context)
|
|
2297
|
-
};
|
|
2298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
-
switch (errorCode) {
|
|
2300
|
-
case "BadRequestException":
|
|
2301
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2302
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ForbiddenException":
|
|
2304
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2305
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ResourceLimitExceededException":
|
|
2307
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2308
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ServiceFailureException":
|
|
2310
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2311
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "ServiceUnavailableException":
|
|
2313
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2314
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ThrottledClientException":
|
|
2316
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2317
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "UnauthorizedClientException":
|
|
2319
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2320
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2321
|
-
default:
|
|
2322
|
-
const parsedBody = parsedOutput.body;
|
|
2323
|
-
return throwDefaultError({
|
|
2324
|
-
output,
|
|
2325
|
-
parsedBody,
|
|
2326
|
-
errorCode
|
|
2327
|
-
});
|
|
2328
|
-
}
|
|
2329
|
-
}, "de_TagResourceCommandError");
|
|
2330
1414
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2331
1415
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2332
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
2333
1417
|
}
|
|
2334
1418
|
const contents = (0, import_smithy_client.map)({
|
|
2335
1419
|
$metadata: deserializeMetadata(output)
|
|
@@ -2337,43 +1421,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2337
1421
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2338
1422
|
return contents;
|
|
2339
1423
|
}, "de_UntagResourceCommand");
|
|
2340
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2341
|
-
const parsedOutput = {
|
|
2342
|
-
...output,
|
|
2343
|
-
body: await parseErrorBody(output.body, context)
|
|
2344
|
-
};
|
|
2345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
|
-
switch (errorCode) {
|
|
2347
|
-
case "BadRequestException":
|
|
2348
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2349
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "ForbiddenException":
|
|
2351
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2352
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "ServiceFailureException":
|
|
2354
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2355
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ServiceUnavailableException":
|
|
2357
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2358
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ThrottledClientException":
|
|
2360
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2361
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "UnauthorizedClientException":
|
|
2363
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2364
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2365
|
-
default:
|
|
2366
|
-
const parsedBody = parsedOutput.body;
|
|
2367
|
-
return throwDefaultError({
|
|
2368
|
-
output,
|
|
2369
|
-
parsedBody,
|
|
2370
|
-
errorCode
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
}, "de_UntagResourceCommandError");
|
|
2374
1424
|
var de_UpdateAppInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2375
1425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
|
-
return
|
|
1426
|
+
return de_CommandError(output, context);
|
|
2377
1427
|
}
|
|
2378
1428
|
const contents = (0, import_smithy_client.map)({
|
|
2379
1429
|
$metadata: deserializeMetadata(output)
|
|
@@ -2385,46 +1435,9 @@ var de_UpdateAppInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2385
1435
|
Object.assign(contents, doc);
|
|
2386
1436
|
return contents;
|
|
2387
1437
|
}, "de_UpdateAppInstanceCommand");
|
|
2388
|
-
var de_UpdateAppInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2389
|
-
const parsedOutput = {
|
|
2390
|
-
...output,
|
|
2391
|
-
body: await parseErrorBody(output.body, context)
|
|
2392
|
-
};
|
|
2393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2394
|
-
switch (errorCode) {
|
|
2395
|
-
case "BadRequestException":
|
|
2396
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2397
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "ConflictException":
|
|
2399
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2400
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "ForbiddenException":
|
|
2402
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2403
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2404
|
-
case "ServiceFailureException":
|
|
2405
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2406
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2407
|
-
case "ServiceUnavailableException":
|
|
2408
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2409
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2410
|
-
case "ThrottledClientException":
|
|
2411
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2412
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "UnauthorizedClientException":
|
|
2414
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2415
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2416
|
-
default:
|
|
2417
|
-
const parsedBody = parsedOutput.body;
|
|
2418
|
-
return throwDefaultError({
|
|
2419
|
-
output,
|
|
2420
|
-
parsedBody,
|
|
2421
|
-
errorCode
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
}, "de_UpdateAppInstanceCommandError");
|
|
2425
1438
|
var de_UpdateAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2426
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2427
|
-
return
|
|
1440
|
+
return de_CommandError(output, context);
|
|
2428
1441
|
}
|
|
2429
1442
|
const contents = (0, import_smithy_client.map)({
|
|
2430
1443
|
$metadata: deserializeMetadata(output)
|
|
@@ -2436,49 +1449,9 @@ var de_UpdateAppInstanceBotCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2436
1449
|
Object.assign(contents, doc);
|
|
2437
1450
|
return contents;
|
|
2438
1451
|
}, "de_UpdateAppInstanceBotCommand");
|
|
2439
|
-
var de_UpdateAppInstanceBotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2440
|
-
const parsedOutput = {
|
|
2441
|
-
...output,
|
|
2442
|
-
body: await parseErrorBody(output.body, context)
|
|
2443
|
-
};
|
|
2444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
|
-
switch (errorCode) {
|
|
2446
|
-
case "BadRequestException":
|
|
2447
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2448
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2449
|
-
case "ConflictException":
|
|
2450
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2451
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "ForbiddenException":
|
|
2453
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2454
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "ResourceLimitExceededException":
|
|
2456
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2457
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "ServiceFailureException":
|
|
2459
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2460
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ServiceUnavailableException":
|
|
2462
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2463
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ThrottledClientException":
|
|
2465
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2466
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "UnauthorizedClientException":
|
|
2468
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2469
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2470
|
-
default:
|
|
2471
|
-
const parsedBody = parsedOutput.body;
|
|
2472
|
-
return throwDefaultError({
|
|
2473
|
-
output,
|
|
2474
|
-
parsedBody,
|
|
2475
|
-
errorCode
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
}, "de_UpdateAppInstanceBotCommandError");
|
|
2479
1452
|
var de_UpdateAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2480
1453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2481
|
-
return
|
|
1454
|
+
return de_CommandError(output, context);
|
|
2482
1455
|
}
|
|
2483
1456
|
const contents = (0, import_smithy_client.map)({
|
|
2484
1457
|
$metadata: deserializeMetadata(output)
|
|
@@ -2490,49 +1463,9 @@ var de_UpdateAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2490
1463
|
Object.assign(contents, doc);
|
|
2491
1464
|
return contents;
|
|
2492
1465
|
}, "de_UpdateAppInstanceUserCommand");
|
|
2493
|
-
var de_UpdateAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2494
|
-
const parsedOutput = {
|
|
2495
|
-
...output,
|
|
2496
|
-
body: await parseErrorBody(output.body, context)
|
|
2497
|
-
};
|
|
2498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2499
|
-
switch (errorCode) {
|
|
2500
|
-
case "BadRequestException":
|
|
2501
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2502
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "ConflictException":
|
|
2504
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2505
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "ForbiddenException":
|
|
2507
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2508
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "ResourceLimitExceededException":
|
|
2510
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2511
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "ServiceFailureException":
|
|
2513
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2514
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "ServiceUnavailableException":
|
|
2516
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2517
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "ThrottledClientException":
|
|
2519
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2520
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "UnauthorizedClientException":
|
|
2522
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2523
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2524
|
-
default:
|
|
2525
|
-
const parsedBody = parsedOutput.body;
|
|
2526
|
-
return throwDefaultError({
|
|
2527
|
-
output,
|
|
2528
|
-
parsedBody,
|
|
2529
|
-
errorCode
|
|
2530
|
-
});
|
|
2531
|
-
}
|
|
2532
|
-
}, "de_UpdateAppInstanceUserCommandError");
|
|
2533
1466
|
var de_UpdateAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2534
1467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2535
|
-
return
|
|
1468
|
+
return de_CommandError(output, context);
|
|
2536
1469
|
}
|
|
2537
1470
|
const contents = (0, import_smithy_client.map)({
|
|
2538
1471
|
$metadata: deserializeMetadata(output)
|
|
@@ -2545,7 +1478,7 @@ var de_UpdateAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2545
1478
|
Object.assign(contents, doc);
|
|
2546
1479
|
return contents;
|
|
2547
1480
|
}, "de_UpdateAppInstanceUserEndpointCommand");
|
|
2548
|
-
var
|
|
1481
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2549
1482
|
const parsedOutput = {
|
|
2550
1483
|
...output,
|
|
2551
1484
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2561,6 +1494,9 @@ var de_UpdateAppInstanceUserEndpointCommandError = /* @__PURE__ */ __name(async
|
|
|
2561
1494
|
case "ForbiddenException":
|
|
2562
1495
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2563
1496
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1497
|
+
case "ResourceLimitExceededException":
|
|
1498
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1499
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2564
1500
|
case "ServiceFailureException":
|
|
2565
1501
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2566
1502
|
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
@@ -2573,6 +1509,9 @@ var de_UpdateAppInstanceUserEndpointCommandError = /* @__PURE__ */ __name(async
|
|
|
2573
1509
|
case "UnauthorizedClientException":
|
|
2574
1510
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2575
1511
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1512
|
+
case "NotFoundException":
|
|
1513
|
+
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
1514
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2576
1515
|
default:
|
|
2577
1516
|
const parsedBody = parsedOutput.body;
|
|
2578
1517
|
return throwDefaultError({
|
|
@@ -2581,7 +1520,7 @@ var de_UpdateAppInstanceUserEndpointCommandError = /* @__PURE__ */ __name(async
|
|
|
2581
1520
|
errorCode
|
|
2582
1521
|
});
|
|
2583
1522
|
}
|
|
2584
|
-
}, "
|
|
1523
|
+
}, "de_CommandError");
|
|
2585
1524
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ChimeSDKIdentityServiceException);
|
|
2586
1525
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2587
1526
|
const contents = (0, import_smithy_client.map)({});
|