@aws-sdk/client-voice-id 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +66 -991
- package/dist-es/protocols/Aws_json1_0.js +88 -1013
- package/package.json +3 -3
|
@@ -179,7 +179,7 @@ export const se_UpdateWatchlistCommand = async (input, context) => {
|
|
|
179
179
|
};
|
|
180
180
|
export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
181
181
|
if (output.statusCode >= 300) {
|
|
182
|
-
return
|
|
182
|
+
return de_CommandError(output, context);
|
|
183
183
|
}
|
|
184
184
|
const data = await parseBody(output.body, context);
|
|
185
185
|
let contents = {};
|
|
@@ -190,46 +190,9 @@ export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
|
190
190
|
};
|
|
191
191
|
return response;
|
|
192
192
|
};
|
|
193
|
-
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
194
|
-
const parsedOutput = {
|
|
195
|
-
...output,
|
|
196
|
-
body: await parseErrorBody(output.body, context),
|
|
197
|
-
};
|
|
198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
199
|
-
switch (errorCode) {
|
|
200
|
-
case "AccessDeniedException":
|
|
201
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
203
|
-
case "ConflictException":
|
|
204
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
205
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
206
|
-
case "InternalServerException":
|
|
207
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
208
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
209
|
-
case "ResourceNotFoundException":
|
|
210
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
211
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
212
|
-
case "ServiceQuotaExceededException":
|
|
213
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
214
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
215
|
-
case "ThrottlingException":
|
|
216
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
217
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
218
|
-
case "ValidationException":
|
|
219
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
220
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
221
|
-
default:
|
|
222
|
-
const parsedBody = parsedOutput.body;
|
|
223
|
-
return throwDefaultError({
|
|
224
|
-
output,
|
|
225
|
-
parsedBody,
|
|
226
|
-
errorCode,
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
193
|
export const de_CreateDomainCommand = async (output, context) => {
|
|
231
194
|
if (output.statusCode >= 300) {
|
|
232
|
-
return
|
|
195
|
+
return de_CommandError(output, context);
|
|
233
196
|
}
|
|
234
197
|
const data = await parseBody(output.body, context);
|
|
235
198
|
let contents = {};
|
|
@@ -240,46 +203,9 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
240
203
|
};
|
|
241
204
|
return response;
|
|
242
205
|
};
|
|
243
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
244
|
-
const parsedOutput = {
|
|
245
|
-
...output,
|
|
246
|
-
body: await parseErrorBody(output.body, context),
|
|
247
|
-
};
|
|
248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
249
|
-
switch (errorCode) {
|
|
250
|
-
case "AccessDeniedException":
|
|
251
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
252
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
253
|
-
case "ConflictException":
|
|
254
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
255
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
256
|
-
case "InternalServerException":
|
|
257
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
258
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
259
|
-
case "ResourceNotFoundException":
|
|
260
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
262
|
-
case "ServiceQuotaExceededException":
|
|
263
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
264
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
265
|
-
case "ThrottlingException":
|
|
266
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
267
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
268
|
-
case "ValidationException":
|
|
269
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
270
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
271
|
-
default:
|
|
272
|
-
const parsedBody = parsedOutput.body;
|
|
273
|
-
return throwDefaultError({
|
|
274
|
-
output,
|
|
275
|
-
parsedBody,
|
|
276
|
-
errorCode,
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
206
|
export const de_CreateWatchlistCommand = async (output, context) => {
|
|
281
207
|
if (output.statusCode >= 300) {
|
|
282
|
-
return
|
|
208
|
+
return de_CommandError(output, context);
|
|
283
209
|
}
|
|
284
210
|
const data = await parseBody(output.body, context);
|
|
285
211
|
let contents = {};
|
|
@@ -290,46 +216,9 @@ export const de_CreateWatchlistCommand = async (output, context) => {
|
|
|
290
216
|
};
|
|
291
217
|
return response;
|
|
292
218
|
};
|
|
293
|
-
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
294
|
-
const parsedOutput = {
|
|
295
|
-
...output,
|
|
296
|
-
body: await parseErrorBody(output.body, context),
|
|
297
|
-
};
|
|
298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
299
|
-
switch (errorCode) {
|
|
300
|
-
case "AccessDeniedException":
|
|
301
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ConflictException":
|
|
304
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
305
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
306
|
-
case "InternalServerException":
|
|
307
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
308
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
309
|
-
case "ResourceNotFoundException":
|
|
310
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
312
|
-
case "ServiceQuotaExceededException":
|
|
313
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
314
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
315
|
-
case "ThrottlingException":
|
|
316
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
317
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
318
|
-
case "ValidationException":
|
|
319
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
321
|
-
default:
|
|
322
|
-
const parsedBody = parsedOutput.body;
|
|
323
|
-
return throwDefaultError({
|
|
324
|
-
output,
|
|
325
|
-
parsedBody,
|
|
326
|
-
errorCode,
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
219
|
export const de_DeleteDomainCommand = async (output, context) => {
|
|
331
220
|
if (output.statusCode >= 300) {
|
|
332
|
-
return
|
|
221
|
+
return de_CommandError(output, context);
|
|
333
222
|
}
|
|
334
223
|
await collectBody(output.body, context);
|
|
335
224
|
const response = {
|
|
@@ -337,43 +226,9 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
337
226
|
};
|
|
338
227
|
return response;
|
|
339
228
|
};
|
|
340
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
341
|
-
const parsedOutput = {
|
|
342
|
-
...output,
|
|
343
|
-
body: await parseErrorBody(output.body, context),
|
|
344
|
-
};
|
|
345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
346
|
-
switch (errorCode) {
|
|
347
|
-
case "AccessDeniedException":
|
|
348
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
349
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ConflictException":
|
|
351
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
352
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
353
|
-
case "InternalServerException":
|
|
354
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ResourceNotFoundException":
|
|
357
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
359
|
-
case "ThrottlingException":
|
|
360
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
361
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
362
|
-
case "ValidationException":
|
|
363
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
364
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
365
|
-
default:
|
|
366
|
-
const parsedBody = parsedOutput.body;
|
|
367
|
-
return throwDefaultError({
|
|
368
|
-
output,
|
|
369
|
-
parsedBody,
|
|
370
|
-
errorCode,
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
229
|
export const de_DeleteFraudsterCommand = async (output, context) => {
|
|
375
230
|
if (output.statusCode >= 300) {
|
|
376
|
-
return
|
|
231
|
+
return de_CommandError(output, context);
|
|
377
232
|
}
|
|
378
233
|
await collectBody(output.body, context);
|
|
379
234
|
const response = {
|
|
@@ -381,43 +236,9 @@ export const de_DeleteFraudsterCommand = async (output, context) => {
|
|
|
381
236
|
};
|
|
382
237
|
return response;
|
|
383
238
|
};
|
|
384
|
-
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
385
|
-
const parsedOutput = {
|
|
386
|
-
...output,
|
|
387
|
-
body: await parseErrorBody(output.body, context),
|
|
388
|
-
};
|
|
389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
-
switch (errorCode) {
|
|
391
|
-
case "AccessDeniedException":
|
|
392
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ConflictException":
|
|
395
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
396
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
397
|
-
case "InternalServerException":
|
|
398
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceNotFoundException":
|
|
401
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ThrottlingException":
|
|
404
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
406
|
-
case "ValidationException":
|
|
407
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
409
|
-
default:
|
|
410
|
-
const parsedBody = parsedOutput.body;
|
|
411
|
-
return throwDefaultError({
|
|
412
|
-
output,
|
|
413
|
-
parsedBody,
|
|
414
|
-
errorCode,
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
239
|
export const de_DeleteSpeakerCommand = async (output, context) => {
|
|
419
240
|
if (output.statusCode >= 300) {
|
|
420
|
-
return
|
|
241
|
+
return de_CommandError(output, context);
|
|
421
242
|
}
|
|
422
243
|
await collectBody(output.body, context);
|
|
423
244
|
const response = {
|
|
@@ -425,43 +246,9 @@ export const de_DeleteSpeakerCommand = async (output, context) => {
|
|
|
425
246
|
};
|
|
426
247
|
return response;
|
|
427
248
|
};
|
|
428
|
-
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
429
|
-
const parsedOutput = {
|
|
430
|
-
...output,
|
|
431
|
-
body: await parseErrorBody(output.body, context),
|
|
432
|
-
};
|
|
433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
|
-
switch (errorCode) {
|
|
435
|
-
case "AccessDeniedException":
|
|
436
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
437
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ConflictException":
|
|
439
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
440
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
441
|
-
case "InternalServerException":
|
|
442
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
443
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
444
|
-
case "ResourceNotFoundException":
|
|
445
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
446
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
447
|
-
case "ThrottlingException":
|
|
448
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
450
|
-
case "ValidationException":
|
|
451
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
452
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
453
|
-
default:
|
|
454
|
-
const parsedBody = parsedOutput.body;
|
|
455
|
-
return throwDefaultError({
|
|
456
|
-
output,
|
|
457
|
-
parsedBody,
|
|
458
|
-
errorCode,
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
249
|
export const de_DeleteWatchlistCommand = async (output, context) => {
|
|
463
250
|
if (output.statusCode >= 300) {
|
|
464
|
-
return
|
|
251
|
+
return de_CommandError(output, context);
|
|
465
252
|
}
|
|
466
253
|
await collectBody(output.body, context);
|
|
467
254
|
const response = {
|
|
@@ -469,43 +256,9 @@ export const de_DeleteWatchlistCommand = async (output, context) => {
|
|
|
469
256
|
};
|
|
470
257
|
return response;
|
|
471
258
|
};
|
|
472
|
-
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
473
|
-
const parsedOutput = {
|
|
474
|
-
...output,
|
|
475
|
-
body: await parseErrorBody(output.body, context),
|
|
476
|
-
};
|
|
477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
478
|
-
switch (errorCode) {
|
|
479
|
-
case "AccessDeniedException":
|
|
480
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
481
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
482
|
-
case "ConflictException":
|
|
483
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
484
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
485
|
-
case "InternalServerException":
|
|
486
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
487
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
488
|
-
case "ResourceNotFoundException":
|
|
489
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
490
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
491
|
-
case "ThrottlingException":
|
|
492
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
493
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
494
|
-
case "ValidationException":
|
|
495
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
496
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
497
|
-
default:
|
|
498
|
-
const parsedBody = parsedOutput.body;
|
|
499
|
-
return throwDefaultError({
|
|
500
|
-
output,
|
|
501
|
-
parsedBody,
|
|
502
|
-
errorCode,
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
259
|
export const de_DescribeDomainCommand = async (output, context) => {
|
|
507
260
|
if (output.statusCode >= 300) {
|
|
508
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
509
262
|
}
|
|
510
263
|
const data = await parseBody(output.body, context);
|
|
511
264
|
let contents = {};
|
|
@@ -516,40 +269,9 @@ export const de_DescribeDomainCommand = async (output, context) => {
|
|
|
516
269
|
};
|
|
517
270
|
return response;
|
|
518
271
|
};
|
|
519
|
-
const de_DescribeDomainCommandError = async (output, context) => {
|
|
520
|
-
const parsedOutput = {
|
|
521
|
-
...output,
|
|
522
|
-
body: await parseErrorBody(output.body, context),
|
|
523
|
-
};
|
|
524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
-
switch (errorCode) {
|
|
526
|
-
case "AccessDeniedException":
|
|
527
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
529
|
-
case "InternalServerException":
|
|
530
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
531
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
532
|
-
case "ResourceNotFoundException":
|
|
533
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
534
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
535
|
-
case "ThrottlingException":
|
|
536
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
537
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ValidationException":
|
|
539
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
540
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
541
|
-
default:
|
|
542
|
-
const parsedBody = parsedOutput.body;
|
|
543
|
-
return throwDefaultError({
|
|
544
|
-
output,
|
|
545
|
-
parsedBody,
|
|
546
|
-
errorCode,
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
272
|
export const de_DescribeFraudsterCommand = async (output, context) => {
|
|
551
273
|
if (output.statusCode >= 300) {
|
|
552
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
553
275
|
}
|
|
554
276
|
const data = await parseBody(output.body, context);
|
|
555
277
|
let contents = {};
|
|
@@ -560,40 +282,9 @@ export const de_DescribeFraudsterCommand = async (output, context) => {
|
|
|
560
282
|
};
|
|
561
283
|
return response;
|
|
562
284
|
};
|
|
563
|
-
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
564
|
-
const parsedOutput = {
|
|
565
|
-
...output,
|
|
566
|
-
body: await parseErrorBody(output.body, context),
|
|
567
|
-
};
|
|
568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
|
-
switch (errorCode) {
|
|
570
|
-
case "AccessDeniedException":
|
|
571
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
572
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
573
|
-
case "InternalServerException":
|
|
574
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
575
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ResourceNotFoundException":
|
|
577
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
578
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ThrottlingException":
|
|
580
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
581
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
582
|
-
case "ValidationException":
|
|
583
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
584
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
|
-
default:
|
|
586
|
-
const parsedBody = parsedOutput.body;
|
|
587
|
-
return throwDefaultError({
|
|
588
|
-
output,
|
|
589
|
-
parsedBody,
|
|
590
|
-
errorCode,
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
285
|
export const de_DescribeFraudsterRegistrationJobCommand = async (output, context) => {
|
|
595
286
|
if (output.statusCode >= 300) {
|
|
596
|
-
return
|
|
287
|
+
return de_CommandError(output, context);
|
|
597
288
|
}
|
|
598
289
|
const data = await parseBody(output.body, context);
|
|
599
290
|
let contents = {};
|
|
@@ -604,527 +295,152 @@ export const de_DescribeFraudsterRegistrationJobCommand = async (output, context
|
|
|
604
295
|
};
|
|
605
296
|
return response;
|
|
606
297
|
};
|
|
607
|
-
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
608
|
-
const parsedOutput = {
|
|
609
|
-
...output,
|
|
610
|
-
body: await parseErrorBody(output.body, context),
|
|
611
|
-
};
|
|
612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
-
switch (errorCode) {
|
|
614
|
-
case "AccessDeniedException":
|
|
615
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
616
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
617
|
-
case "InternalServerException":
|
|
618
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
619
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ResourceNotFoundException":
|
|
621
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ThrottlingException":
|
|
624
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
625
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ValidationException":
|
|
627
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
628
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
629
|
-
default:
|
|
630
|
-
const parsedBody = parsedOutput.body;
|
|
631
|
-
return throwDefaultError({
|
|
632
|
-
output,
|
|
633
|
-
parsedBody,
|
|
634
|
-
errorCode,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
298
|
export const de_DescribeSpeakerCommand = async (output, context) => {
|
|
639
299
|
if (output.statusCode >= 300) {
|
|
640
|
-
return
|
|
641
|
-
}
|
|
642
|
-
const data = await parseBody(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = de_DescribeSpeakerResponse(data, context);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents,
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
};
|
|
651
|
-
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
652
|
-
const parsedOutput = {
|
|
653
|
-
...output,
|
|
654
|
-
body: await parseErrorBody(output.body, context),
|
|
655
|
-
};
|
|
656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
-
switch (errorCode) {
|
|
658
|
-
case "AccessDeniedException":
|
|
659
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
660
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
661
|
-
case "InternalServerException":
|
|
662
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ResourceNotFoundException":
|
|
665
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
667
|
-
case "ThrottlingException":
|
|
668
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
670
|
-
case "ValidationException":
|
|
671
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
673
|
-
default:
|
|
674
|
-
const parsedBody = parsedOutput.body;
|
|
675
|
-
return throwDefaultError({
|
|
676
|
-
output,
|
|
677
|
-
parsedBody,
|
|
678
|
-
errorCode,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
|
-
export const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
683
|
-
if (output.statusCode >= 300) {
|
|
684
|
-
return de_DescribeSpeakerEnrollmentJobCommandError(output, context);
|
|
685
|
-
}
|
|
686
|
-
const data = await parseBody(output.body, context);
|
|
687
|
-
let contents = {};
|
|
688
|
-
contents = de_DescribeSpeakerEnrollmentJobResponse(data, context);
|
|
689
|
-
const response = {
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
...contents,
|
|
692
|
-
};
|
|
693
|
-
return response;
|
|
694
|
-
};
|
|
695
|
-
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "AccessDeniedException":
|
|
703
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
704
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
705
|
-
case "InternalServerException":
|
|
706
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
707
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
708
|
-
case "ResourceNotFoundException":
|
|
709
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ThrottlingException":
|
|
712
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
713
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ValidationException":
|
|
715
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
716
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
export const de_DescribeWatchlistCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_DescribeWatchlistCommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = de_DescribeWatchlistResponse(data, context);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context),
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "AccessDeniedException":
|
|
747
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
749
|
-
case "InternalServerException":
|
|
750
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
751
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ResourceNotFoundException":
|
|
753
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
754
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
755
|
-
case "ThrottlingException":
|
|
756
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
757
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ValidationException":
|
|
759
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
760
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
761
|
-
default:
|
|
762
|
-
const parsedBody = parsedOutput.body;
|
|
763
|
-
return throwDefaultError({
|
|
764
|
-
output,
|
|
765
|
-
parsedBody,
|
|
766
|
-
errorCode,
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
};
|
|
770
|
-
export const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
771
|
-
if (output.statusCode >= 300) {
|
|
772
|
-
return de_DisassociateFraudsterCommandError(output, context);
|
|
773
|
-
}
|
|
774
|
-
const data = await parseBody(output.body, context);
|
|
775
|
-
let contents = {};
|
|
776
|
-
contents = de_DisassociateFraudsterResponse(data, context);
|
|
777
|
-
const response = {
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
...contents,
|
|
780
|
-
};
|
|
781
|
-
return response;
|
|
782
|
-
};
|
|
783
|
-
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context),
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "AccessDeniedException":
|
|
791
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
792
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ConflictException":
|
|
794
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
795
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InternalServerException":
|
|
797
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
798
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ResourceNotFoundException":
|
|
800
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
801
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ThrottlingException":
|
|
803
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
804
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ValidationException":
|
|
806
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
807
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode,
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
|
-
export const de_EvaluateSessionCommand = async (output, context) => {
|
|
818
|
-
if (output.statusCode >= 300) {
|
|
819
|
-
return de_EvaluateSessionCommandError(output, context);
|
|
300
|
+
return de_CommandError(output, context);
|
|
820
301
|
}
|
|
821
302
|
const data = await parseBody(output.body, context);
|
|
822
303
|
let contents = {};
|
|
823
|
-
contents =
|
|
304
|
+
contents = de_DescribeSpeakerResponse(data, context);
|
|
824
305
|
const response = {
|
|
825
306
|
$metadata: deserializeMetadata(output),
|
|
826
307
|
...contents,
|
|
827
308
|
};
|
|
828
309
|
return response;
|
|
829
310
|
};
|
|
830
|
-
const
|
|
831
|
-
const parsedOutput = {
|
|
832
|
-
...output,
|
|
833
|
-
body: await parseErrorBody(output.body, context),
|
|
834
|
-
};
|
|
835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
-
switch (errorCode) {
|
|
837
|
-
case "AccessDeniedException":
|
|
838
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
839
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ConflictException":
|
|
841
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
842
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InternalServerException":
|
|
844
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
845
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ResourceNotFoundException":
|
|
847
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ThrottlingException":
|
|
850
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
851
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ValidationException":
|
|
853
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
|
-
default:
|
|
856
|
-
const parsedBody = parsedOutput.body;
|
|
857
|
-
return throwDefaultError({
|
|
858
|
-
output,
|
|
859
|
-
parsedBody,
|
|
860
|
-
errorCode,
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
export const de_ListDomainsCommand = async (output, context) => {
|
|
311
|
+
export const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
865
312
|
if (output.statusCode >= 300) {
|
|
866
|
-
return
|
|
313
|
+
return de_CommandError(output, context);
|
|
867
314
|
}
|
|
868
315
|
const data = await parseBody(output.body, context);
|
|
869
316
|
let contents = {};
|
|
870
|
-
contents =
|
|
317
|
+
contents = de_DescribeSpeakerEnrollmentJobResponse(data, context);
|
|
871
318
|
const response = {
|
|
872
319
|
$metadata: deserializeMetadata(output),
|
|
873
320
|
...contents,
|
|
874
321
|
};
|
|
875
322
|
return response;
|
|
876
323
|
};
|
|
877
|
-
const
|
|
878
|
-
const parsedOutput = {
|
|
879
|
-
...output,
|
|
880
|
-
body: await parseErrorBody(output.body, context),
|
|
881
|
-
};
|
|
882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
-
switch (errorCode) {
|
|
884
|
-
case "AccessDeniedException":
|
|
885
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
887
|
-
case "InternalServerException":
|
|
888
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ThrottlingException":
|
|
891
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
892
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ValidationException":
|
|
894
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
895
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
896
|
-
default:
|
|
897
|
-
const parsedBody = parsedOutput.body;
|
|
898
|
-
return throwDefaultError({
|
|
899
|
-
output,
|
|
900
|
-
parsedBody,
|
|
901
|
-
errorCode,
|
|
902
|
-
});
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
|
-
export const de_ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
324
|
+
export const de_DescribeWatchlistCommand = async (output, context) => {
|
|
906
325
|
if (output.statusCode >= 300) {
|
|
907
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
908
327
|
}
|
|
909
328
|
const data = await parseBody(output.body, context);
|
|
910
329
|
let contents = {};
|
|
911
|
-
contents =
|
|
330
|
+
contents = de_DescribeWatchlistResponse(data, context);
|
|
912
331
|
const response = {
|
|
913
332
|
$metadata: deserializeMetadata(output),
|
|
914
333
|
...contents,
|
|
915
334
|
};
|
|
916
335
|
return response;
|
|
917
336
|
};
|
|
918
|
-
const
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context),
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "AccessDeniedException":
|
|
926
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ValidationException":
|
|
938
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode,
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
|
-
export const de_ListFraudstersCommand = async (output, context) => {
|
|
337
|
+
export const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
950
338
|
if (output.statusCode >= 300) {
|
|
951
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
952
340
|
}
|
|
953
341
|
const data = await parseBody(output.body, context);
|
|
954
342
|
let contents = {};
|
|
955
|
-
contents =
|
|
343
|
+
contents = de_DisassociateFraudsterResponse(data, context);
|
|
956
344
|
const response = {
|
|
957
345
|
$metadata: deserializeMetadata(output),
|
|
958
346
|
...contents,
|
|
959
347
|
};
|
|
960
348
|
return response;
|
|
961
349
|
};
|
|
962
|
-
const
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "AccessDeniedException":
|
|
970
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
971
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerException":
|
|
973
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
974
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottlingException":
|
|
979
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
980
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ValidationException":
|
|
982
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
983
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
export const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
350
|
+
export const de_EvaluateSessionCommand = async (output, context) => {
|
|
994
351
|
if (output.statusCode >= 300) {
|
|
995
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
996
353
|
}
|
|
997
354
|
const data = await parseBody(output.body, context);
|
|
998
355
|
let contents = {};
|
|
999
|
-
contents =
|
|
356
|
+
contents = de_EvaluateSessionResponse(data, context);
|
|
1000
357
|
const response = {
|
|
1001
358
|
$metadata: deserializeMetadata(output),
|
|
1002
359
|
...contents,
|
|
1003
360
|
};
|
|
1004
361
|
return response;
|
|
1005
362
|
};
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
body: await parseErrorBody(output.body, context),
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottlingException":
|
|
1023
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1024
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ValidationException":
|
|
1026
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1027
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
363
|
+
export const de_ListDomainsCommand = async (output, context) => {
|
|
364
|
+
if (output.statusCode >= 300) {
|
|
365
|
+
return de_CommandError(output, context);
|
|
1035
366
|
}
|
|
367
|
+
const data = await parseBody(output.body, context);
|
|
368
|
+
let contents = {};
|
|
369
|
+
contents = de_ListDomainsResponse(data, context);
|
|
370
|
+
const response = {
|
|
371
|
+
$metadata: deserializeMetadata(output),
|
|
372
|
+
...contents,
|
|
373
|
+
};
|
|
374
|
+
return response;
|
|
1036
375
|
};
|
|
1037
|
-
export const
|
|
376
|
+
export const de_ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
1038
377
|
if (output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
1040
379
|
}
|
|
1041
380
|
const data = await parseBody(output.body, context);
|
|
1042
381
|
let contents = {};
|
|
1043
|
-
contents =
|
|
382
|
+
contents = de_ListFraudsterRegistrationJobsResponse(data, context);
|
|
1044
383
|
const response = {
|
|
1045
384
|
$metadata: deserializeMetadata(output),
|
|
1046
385
|
...contents,
|
|
1047
386
|
};
|
|
1048
387
|
return response;
|
|
1049
388
|
};
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
body: await parseErrorBody(output.body, context),
|
|
1054
|
-
};
|
|
1055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
|
-
switch (errorCode) {
|
|
1057
|
-
case "AccessDeniedException":
|
|
1058
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1059
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InternalServerException":
|
|
1061
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ResourceNotFoundException":
|
|
1064
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ThrottlingException":
|
|
1067
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ValidationException":
|
|
1070
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1071
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode,
|
|
1078
|
-
});
|
|
389
|
+
export const de_ListFraudstersCommand = async (output, context) => {
|
|
390
|
+
if (output.statusCode >= 300) {
|
|
391
|
+
return de_CommandError(output, context);
|
|
1079
392
|
}
|
|
393
|
+
const data = await parseBody(output.body, context);
|
|
394
|
+
let contents = {};
|
|
395
|
+
contents = de_ListFraudstersResponse(data, context);
|
|
396
|
+
const response = {
|
|
397
|
+
$metadata: deserializeMetadata(output),
|
|
398
|
+
...contents,
|
|
399
|
+
};
|
|
400
|
+
return response;
|
|
1080
401
|
};
|
|
1081
|
-
export const
|
|
402
|
+
export const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
1082
403
|
if (output.statusCode >= 300) {
|
|
1083
|
-
return
|
|
404
|
+
return de_CommandError(output, context);
|
|
1084
405
|
}
|
|
1085
406
|
const data = await parseBody(output.body, context);
|
|
1086
407
|
let contents = {};
|
|
1087
|
-
contents =
|
|
408
|
+
contents = de_ListSpeakerEnrollmentJobsResponse(data, context);
|
|
1088
409
|
const response = {
|
|
1089
410
|
$metadata: deserializeMetadata(output),
|
|
1090
411
|
...contents,
|
|
1091
412
|
};
|
|
1092
413
|
return response;
|
|
1093
414
|
};
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
case "ThrottlingException":
|
|
1111
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ValidationException":
|
|
1114
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
415
|
+
export const de_ListSpeakersCommand = async (output, context) => {
|
|
416
|
+
if (output.statusCode >= 300) {
|
|
417
|
+
return de_CommandError(output, context);
|
|
418
|
+
}
|
|
419
|
+
const data = await parseBody(output.body, context);
|
|
420
|
+
let contents = {};
|
|
421
|
+
contents = de_ListSpeakersResponse(data, context);
|
|
422
|
+
const response = {
|
|
423
|
+
$metadata: deserializeMetadata(output),
|
|
424
|
+
...contents,
|
|
425
|
+
};
|
|
426
|
+
return response;
|
|
427
|
+
};
|
|
428
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
429
|
+
if (output.statusCode >= 300) {
|
|
430
|
+
return de_CommandError(output, context);
|
|
1123
431
|
}
|
|
432
|
+
const data = await parseBody(output.body, context);
|
|
433
|
+
let contents = {};
|
|
434
|
+
contents = _json(data);
|
|
435
|
+
const response = {
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
...contents,
|
|
438
|
+
};
|
|
439
|
+
return response;
|
|
1124
440
|
};
|
|
1125
441
|
export const de_ListWatchlistsCommand = async (output, context) => {
|
|
1126
442
|
if (output.statusCode >= 300) {
|
|
1127
|
-
return
|
|
443
|
+
return de_CommandError(output, context);
|
|
1128
444
|
}
|
|
1129
445
|
const data = await parseBody(output.body, context);
|
|
1130
446
|
let contents = {};
|
|
@@ -1135,40 +451,9 @@ export const de_ListWatchlistsCommand = async (output, context) => {
|
|
|
1135
451
|
};
|
|
1136
452
|
return response;
|
|
1137
453
|
};
|
|
1138
|
-
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "AccessDeniedException":
|
|
1146
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "InternalServerException":
|
|
1149
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1150
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ResourceNotFoundException":
|
|
1152
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1153
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ThrottlingException":
|
|
1155
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1156
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ValidationException":
|
|
1158
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1159
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
454
|
export const de_OptOutSpeakerCommand = async (output, context) => {
|
|
1170
455
|
if (output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
1172
457
|
}
|
|
1173
458
|
const data = await parseBody(output.body, context);
|
|
1174
459
|
let contents = {};
|
|
@@ -1179,46 +464,9 @@ export const de_OptOutSpeakerCommand = async (output, context) => {
|
|
|
1179
464
|
};
|
|
1180
465
|
return response;
|
|
1181
466
|
};
|
|
1182
|
-
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
1183
|
-
const parsedOutput = {
|
|
1184
|
-
...output,
|
|
1185
|
-
body: await parseErrorBody(output.body, context),
|
|
1186
|
-
};
|
|
1187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
-
switch (errorCode) {
|
|
1189
|
-
case "AccessDeniedException":
|
|
1190
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "ConflictException":
|
|
1193
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1194
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InternalServerException":
|
|
1196
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ResourceNotFoundException":
|
|
1199
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ServiceQuotaExceededException":
|
|
1202
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1203
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ThrottlingException":
|
|
1205
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1206
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
467
|
export const de_StartFraudsterRegistrationJobCommand = async (output, context) => {
|
|
1220
468
|
if (output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
1222
470
|
}
|
|
1223
471
|
const data = await parseBody(output.body, context);
|
|
1224
472
|
let contents = {};
|
|
@@ -1229,46 +477,9 @@ export const de_StartFraudsterRegistrationJobCommand = async (output, context) =
|
|
|
1229
477
|
};
|
|
1230
478
|
return response;
|
|
1231
479
|
};
|
|
1232
|
-
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "AccessDeniedException":
|
|
1240
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ConflictException":
|
|
1243
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1244
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "InternalServerException":
|
|
1246
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ResourceNotFoundException":
|
|
1249
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ServiceQuotaExceededException":
|
|
1252
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1253
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ThrottlingException":
|
|
1255
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1256
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ValidationException":
|
|
1258
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1260
|
-
default:
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
return throwDefaultError({
|
|
1263
|
-
output,
|
|
1264
|
-
parsedBody,
|
|
1265
|
-
errorCode,
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
};
|
|
1269
480
|
export const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
1270
481
|
if (output.statusCode >= 300) {
|
|
1271
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
1272
483
|
}
|
|
1273
484
|
const data = await parseBody(output.body, context);
|
|
1274
485
|
let contents = {};
|
|
@@ -1279,46 +490,9 @@ export const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
1279
490
|
};
|
|
1280
491
|
return response;
|
|
1281
492
|
};
|
|
1282
|
-
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
1283
|
-
const parsedOutput = {
|
|
1284
|
-
...output,
|
|
1285
|
-
body: await parseErrorBody(output.body, context),
|
|
1286
|
-
};
|
|
1287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
-
switch (errorCode) {
|
|
1289
|
-
case "AccessDeniedException":
|
|
1290
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ConflictException":
|
|
1293
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1294
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InternalServerException":
|
|
1296
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1297
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ResourceNotFoundException":
|
|
1299
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ServiceQuotaExceededException":
|
|
1302
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1303
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "ThrottlingException":
|
|
1305
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1306
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ValidationException":
|
|
1308
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1310
|
-
default:
|
|
1311
|
-
const parsedBody = parsedOutput.body;
|
|
1312
|
-
return throwDefaultError({
|
|
1313
|
-
output,
|
|
1314
|
-
parsedBody,
|
|
1315
|
-
errorCode,
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
};
|
|
1319
493
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1320
494
|
if (output.statusCode >= 300) {
|
|
1321
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
1322
496
|
}
|
|
1323
497
|
const data = await parseBody(output.body, context);
|
|
1324
498
|
let contents = {};
|
|
@@ -1329,43 +503,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1329
503
|
};
|
|
1330
504
|
return response;
|
|
1331
505
|
};
|
|
1332
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1333
|
-
const parsedOutput = {
|
|
1334
|
-
...output,
|
|
1335
|
-
body: await parseErrorBody(output.body, context),
|
|
1336
|
-
};
|
|
1337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
-
switch (errorCode) {
|
|
1339
|
-
case "AccessDeniedException":
|
|
1340
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1341
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ConflictException":
|
|
1343
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1344
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "InternalServerException":
|
|
1346
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1347
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ResourceNotFoundException":
|
|
1349
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1350
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ThrottlingException":
|
|
1352
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1353
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ValidationException":
|
|
1355
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1356
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode,
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
};
|
|
1366
506
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1367
507
|
if (output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
1369
509
|
}
|
|
1370
510
|
const data = await parseBody(output.body, context);
|
|
1371
511
|
let contents = {};
|
|
@@ -1376,43 +516,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1376
516
|
};
|
|
1377
517
|
return response;
|
|
1378
518
|
};
|
|
1379
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1380
|
-
const parsedOutput = {
|
|
1381
|
-
...output,
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "AccessDeniedException":
|
|
1387
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1388
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ConflictException":
|
|
1390
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1391
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "InternalServerException":
|
|
1393
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1394
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ResourceNotFoundException":
|
|
1396
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ThrottlingException":
|
|
1399
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ValidationException":
|
|
1402
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1404
|
-
default:
|
|
1405
|
-
const parsedBody = parsedOutput.body;
|
|
1406
|
-
return throwDefaultError({
|
|
1407
|
-
output,
|
|
1408
|
-
parsedBody,
|
|
1409
|
-
errorCode,
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
};
|
|
1413
519
|
export const de_UpdateDomainCommand = async (output, context) => {
|
|
1414
520
|
if (output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
1416
522
|
}
|
|
1417
523
|
const data = await parseBody(output.body, context);
|
|
1418
524
|
let contents = {};
|
|
@@ -1423,43 +529,9 @@ export const de_UpdateDomainCommand = async (output, context) => {
|
|
|
1423
529
|
};
|
|
1424
530
|
return response;
|
|
1425
531
|
};
|
|
1426
|
-
const de_UpdateDomainCommandError = async (output, context) => {
|
|
1427
|
-
const parsedOutput = {
|
|
1428
|
-
...output,
|
|
1429
|
-
body: await parseErrorBody(output.body, context),
|
|
1430
|
-
};
|
|
1431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
-
switch (errorCode) {
|
|
1433
|
-
case "AccessDeniedException":
|
|
1434
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1435
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ConflictException":
|
|
1437
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1438
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "InternalServerException":
|
|
1440
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "ResourceNotFoundException":
|
|
1443
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ThrottlingException":
|
|
1446
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1447
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "ValidationException":
|
|
1449
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1450
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1451
|
-
default:
|
|
1452
|
-
const parsedBody = parsedOutput.body;
|
|
1453
|
-
return throwDefaultError({
|
|
1454
|
-
output,
|
|
1455
|
-
parsedBody,
|
|
1456
|
-
errorCode,
|
|
1457
|
-
});
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
532
|
export const de_UpdateWatchlistCommand = async (output, context) => {
|
|
1461
533
|
if (output.statusCode >= 300) {
|
|
1462
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
1463
535
|
}
|
|
1464
536
|
const data = await parseBody(output.body, context);
|
|
1465
537
|
let contents = {};
|
|
@@ -1470,7 +542,7 @@ export const de_UpdateWatchlistCommand = async (output, context) => {
|
|
|
1470
542
|
};
|
|
1471
543
|
return response;
|
|
1472
544
|
};
|
|
1473
|
-
const
|
|
545
|
+
const de_CommandError = async (output, context) => {
|
|
1474
546
|
const parsedOutput = {
|
|
1475
547
|
...output,
|
|
1476
548
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1489,6 +561,9 @@ const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
|
1489
561
|
case "ResourceNotFoundException":
|
|
1490
562
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1491
563
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
564
|
+
case "ServiceQuotaExceededException":
|
|
565
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
566
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1492
567
|
case "ThrottlingException":
|
|
1493
568
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1494
569
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|