@aws-sdk/client-comprehendmedical 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ComprehendMedicalServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +116 -2
- package/dist-cjs/protocols/Aws_json1_1.js +276 -989
- package/dist-es/index.js +1 -0
- package/dist-es/models/ComprehendMedicalServiceException.js +12 -0
- package/dist-es/models/models_0.js +106 -1
- package/dist-es/protocols/Aws_json1_1.js +597 -1078
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ComprehendMedicalServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -25
- package/dist-types/ts3.4/ComprehendMedical.d.ts +135 -0
- package/dist-types/ts3.4/ComprehendMedicalClient.d.ts +99 -0
- package/dist-types/ts3.4/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeICD10CMInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribePHIDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRxNormInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeSNOMEDCTInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetectEntitiesV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetectPHICommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/InferICD10CMCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/InferRxNormCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/InferSNOMEDCTCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEntitiesDetectionV2JobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListICD10CMInferenceJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPHIDetectionJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRxNormInferenceJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSNOMEDCTInferenceJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartEntitiesDetectionV2JobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartICD10CMInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartPHIDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartRxNormInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartSNOMEDCTInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopEntitiesDetectionV2JobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopICD10CMInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopPHIDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopRxNormInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopSNOMEDCTInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/ComprehendMedicalServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1169 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -5,6 +5,8 @@ exports.deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = exports.deserial
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const ComprehendMedicalServiceException_1 = require("../models/ComprehendMedicalServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_json1_1DescribeEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
9
11
|
const headers = {
|
|
10
12
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -290,51 +292,25 @@ const deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError = async (
|
|
|
290
292
|
switch (errorCode) {
|
|
291
293
|
case "InternalServerException":
|
|
292
294
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
293
|
-
|
|
294
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
295
|
-
name: errorCode,
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
};
|
|
298
|
-
break;
|
|
295
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
299
296
|
case "InvalidRequestException":
|
|
300
297
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
301
|
-
|
|
302
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
303
|
-
name: errorCode,
|
|
304
|
-
$metadata: deserializeMetadata(output),
|
|
305
|
-
};
|
|
306
|
-
break;
|
|
298
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
307
299
|
case "ResourceNotFoundException":
|
|
308
300
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
309
|
-
|
|
310
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
311
|
-
name: errorCode,
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
};
|
|
314
|
-
break;
|
|
301
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
315
302
|
case "TooManyRequestsException":
|
|
316
303
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
317
|
-
|
|
318
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
319
|
-
name: errorCode,
|
|
320
|
-
$metadata: deserializeMetadata(output),
|
|
321
|
-
};
|
|
322
|
-
break;
|
|
304
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
323
305
|
default:
|
|
324
306
|
const parsedBody = parsedOutput.body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
...parsedBody,
|
|
328
|
-
name: `${errorCode}`,
|
|
329
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
307
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
308
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
330
309
|
$fault: "client",
|
|
331
310
|
$metadata: deserializeMetadata(output),
|
|
332
|
-
};
|
|
311
|
+
});
|
|
312
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
333
313
|
}
|
|
334
|
-
const message = response.message || response.Message || errorCode;
|
|
335
|
-
response.message = message;
|
|
336
|
-
delete response.Message;
|
|
337
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
338
314
|
};
|
|
339
315
|
const deserializeAws_json1_1DescribeICD10CMInferenceJobCommand = async (output, context) => {
|
|
340
316
|
if (output.statusCode >= 300) {
|
|
@@ -361,51 +337,25 @@ const deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError = async (out
|
|
|
361
337
|
switch (errorCode) {
|
|
362
338
|
case "InternalServerException":
|
|
363
339
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
364
|
-
|
|
365
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
366
|
-
name: errorCode,
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
};
|
|
369
|
-
break;
|
|
340
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
370
341
|
case "InvalidRequestException":
|
|
371
342
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
372
|
-
|
|
373
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
374
|
-
name: errorCode,
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
};
|
|
377
|
-
break;
|
|
343
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
378
344
|
case "ResourceNotFoundException":
|
|
379
345
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
380
|
-
|
|
381
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
382
|
-
name: errorCode,
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
};
|
|
385
|
-
break;
|
|
346
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
386
347
|
case "TooManyRequestsException":
|
|
387
348
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
388
|
-
|
|
389
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
390
|
-
name: errorCode,
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
};
|
|
393
|
-
break;
|
|
349
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
394
350
|
default:
|
|
395
351
|
const parsedBody = parsedOutput.body;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
...parsedBody,
|
|
399
|
-
name: `${errorCode}`,
|
|
400
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
352
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
353
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
401
354
|
$fault: "client",
|
|
402
355
|
$metadata: deserializeMetadata(output),
|
|
403
|
-
};
|
|
356
|
+
});
|
|
357
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
404
358
|
}
|
|
405
|
-
const message = response.message || response.Message || errorCode;
|
|
406
|
-
response.message = message;
|
|
407
|
-
delete response.Message;
|
|
408
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
409
359
|
};
|
|
410
360
|
const deserializeAws_json1_1DescribePHIDetectionJobCommand = async (output, context) => {
|
|
411
361
|
if (output.statusCode >= 300) {
|
|
@@ -432,51 +382,25 @@ const deserializeAws_json1_1DescribePHIDetectionJobCommandError = async (output,
|
|
|
432
382
|
switch (errorCode) {
|
|
433
383
|
case "InternalServerException":
|
|
434
384
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
435
|
-
|
|
436
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
437
|
-
name: errorCode,
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
};
|
|
440
|
-
break;
|
|
385
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
441
386
|
case "InvalidRequestException":
|
|
442
387
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
443
|
-
|
|
444
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
445
|
-
name: errorCode,
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
};
|
|
448
|
-
break;
|
|
388
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
449
389
|
case "ResourceNotFoundException":
|
|
450
390
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
451
|
-
|
|
452
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
453
|
-
name: errorCode,
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
456
|
-
break;
|
|
391
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
457
392
|
case "TooManyRequestsException":
|
|
458
393
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
459
|
-
|
|
460
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
461
|
-
name: errorCode,
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
464
|
-
break;
|
|
394
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
465
395
|
default:
|
|
466
396
|
const parsedBody = parsedOutput.body;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
...parsedBody,
|
|
470
|
-
name: `${errorCode}`,
|
|
471
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
397
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
398
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
472
399
|
$fault: "client",
|
|
473
400
|
$metadata: deserializeMetadata(output),
|
|
474
|
-
};
|
|
401
|
+
});
|
|
402
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
475
403
|
}
|
|
476
|
-
const message = response.message || response.Message || errorCode;
|
|
477
|
-
response.message = message;
|
|
478
|
-
delete response.Message;
|
|
479
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
480
404
|
};
|
|
481
405
|
const deserializeAws_json1_1DescribeRxNormInferenceJobCommand = async (output, context) => {
|
|
482
406
|
if (output.statusCode >= 300) {
|
|
@@ -503,51 +427,25 @@ const deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = async (outp
|
|
|
503
427
|
switch (errorCode) {
|
|
504
428
|
case "InternalServerException":
|
|
505
429
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
506
|
-
|
|
507
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
508
|
-
name: errorCode,
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
};
|
|
511
|
-
break;
|
|
430
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
512
431
|
case "InvalidRequestException":
|
|
513
432
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
514
|
-
|
|
515
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
516
|
-
name: errorCode,
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
};
|
|
519
|
-
break;
|
|
433
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
520
434
|
case "ResourceNotFoundException":
|
|
521
435
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
522
|
-
|
|
523
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
524
|
-
name: errorCode,
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
};
|
|
527
|
-
break;
|
|
436
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
528
437
|
case "TooManyRequestsException":
|
|
529
438
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
530
|
-
|
|
531
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
532
|
-
name: errorCode,
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
535
|
-
break;
|
|
439
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
536
440
|
default:
|
|
537
441
|
const parsedBody = parsedOutput.body;
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
...parsedBody,
|
|
541
|
-
name: `${errorCode}`,
|
|
542
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
442
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
443
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
543
444
|
$fault: "client",
|
|
544
445
|
$metadata: deserializeMetadata(output),
|
|
545
|
-
};
|
|
446
|
+
});
|
|
447
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
546
448
|
}
|
|
547
|
-
const message = response.message || response.Message || errorCode;
|
|
548
|
-
response.message = message;
|
|
549
|
-
delete response.Message;
|
|
550
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
551
449
|
};
|
|
552
450
|
const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
553
451
|
if (output.statusCode >= 300) {
|
|
@@ -574,51 +472,25 @@ const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = async (ou
|
|
|
574
472
|
switch (errorCode) {
|
|
575
473
|
case "InternalServerException":
|
|
576
474
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
577
|
-
|
|
578
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
579
|
-
name: errorCode,
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
};
|
|
582
|
-
break;
|
|
475
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
583
476
|
case "InvalidRequestException":
|
|
584
477
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
585
|
-
|
|
586
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
587
|
-
name: errorCode,
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
};
|
|
590
|
-
break;
|
|
478
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
591
479
|
case "ResourceNotFoundException":
|
|
592
480
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
593
|
-
|
|
594
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
595
|
-
name: errorCode,
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
};
|
|
598
|
-
break;
|
|
481
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
599
482
|
case "TooManyRequestsException":
|
|
600
483
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
601
|
-
|
|
602
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
603
|
-
name: errorCode,
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
};
|
|
606
|
-
break;
|
|
484
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
607
485
|
default:
|
|
608
486
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
...parsedBody,
|
|
612
|
-
name: `${errorCode}`,
|
|
613
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
487
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
488
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
614
489
|
$fault: "client",
|
|
615
490
|
$metadata: deserializeMetadata(output),
|
|
616
|
-
};
|
|
491
|
+
});
|
|
492
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
617
493
|
}
|
|
618
|
-
const message = response.message || response.Message || errorCode;
|
|
619
|
-
response.message = message;
|
|
620
|
-
delete response.Message;
|
|
621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
622
494
|
};
|
|
623
495
|
const deserializeAws_json1_1DetectEntitiesCommand = async (output, context) => {
|
|
624
496
|
if (output.statusCode >= 300) {
|
|
@@ -645,67 +517,31 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
645
517
|
switch (errorCode) {
|
|
646
518
|
case "InternalServerException":
|
|
647
519
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
648
|
-
|
|
649
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
650
|
-
name: errorCode,
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
653
|
-
break;
|
|
520
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
654
521
|
case "InvalidEncodingException":
|
|
655
522
|
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
656
|
-
|
|
657
|
-
...(await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)),
|
|
658
|
-
name: errorCode,
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
661
|
-
break;
|
|
523
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
662
524
|
case "InvalidRequestException":
|
|
663
525
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
664
|
-
|
|
665
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
666
|
-
name: errorCode,
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
};
|
|
669
|
-
break;
|
|
526
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
670
527
|
case "ServiceUnavailableException":
|
|
671
528
|
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
672
|
-
|
|
673
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
674
|
-
name: errorCode,
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
};
|
|
677
|
-
break;
|
|
529
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
678
530
|
case "TextSizeLimitExceededException":
|
|
679
531
|
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
680
|
-
|
|
681
|
-
...(await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
682
|
-
name: errorCode,
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
};
|
|
685
|
-
break;
|
|
532
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
686
533
|
case "TooManyRequestsException":
|
|
687
534
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
688
|
-
|
|
689
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
690
|
-
name: errorCode,
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
};
|
|
693
|
-
break;
|
|
535
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
694
536
|
default:
|
|
695
537
|
const parsedBody = parsedOutput.body;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
...parsedBody,
|
|
699
|
-
name: `${errorCode}`,
|
|
700
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
538
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
539
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
701
540
|
$fault: "client",
|
|
702
541
|
$metadata: deserializeMetadata(output),
|
|
703
|
-
};
|
|
542
|
+
});
|
|
543
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
704
544
|
}
|
|
705
|
-
const message = response.message || response.Message || errorCode;
|
|
706
|
-
response.message = message;
|
|
707
|
-
delete response.Message;
|
|
708
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
709
545
|
};
|
|
710
546
|
const deserializeAws_json1_1DetectEntitiesV2Command = async (output, context) => {
|
|
711
547
|
if (output.statusCode >= 300) {
|
|
@@ -732,67 +568,31 @@ const deserializeAws_json1_1DetectEntitiesV2CommandError = async (output, contex
|
|
|
732
568
|
switch (errorCode) {
|
|
733
569
|
case "InternalServerException":
|
|
734
570
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
735
|
-
|
|
736
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
737
|
-
name: errorCode,
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
};
|
|
740
|
-
break;
|
|
571
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
741
572
|
case "InvalidEncodingException":
|
|
742
573
|
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
743
|
-
|
|
744
|
-
...(await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)),
|
|
745
|
-
name: errorCode,
|
|
746
|
-
$metadata: deserializeMetadata(output),
|
|
747
|
-
};
|
|
748
|
-
break;
|
|
574
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
749
575
|
case "InvalidRequestException":
|
|
750
576
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
751
|
-
|
|
752
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
753
|
-
name: errorCode,
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
};
|
|
756
|
-
break;
|
|
577
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
757
578
|
case "ServiceUnavailableException":
|
|
758
579
|
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
759
|
-
|
|
760
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
761
|
-
name: errorCode,
|
|
762
|
-
$metadata: deserializeMetadata(output),
|
|
763
|
-
};
|
|
764
|
-
break;
|
|
580
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
765
581
|
case "TextSizeLimitExceededException":
|
|
766
582
|
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
767
|
-
|
|
768
|
-
...(await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
769
|
-
name: errorCode,
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
};
|
|
772
|
-
break;
|
|
583
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
773
584
|
case "TooManyRequestsException":
|
|
774
585
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
775
|
-
|
|
776
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
777
|
-
name: errorCode,
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
};
|
|
780
|
-
break;
|
|
586
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
781
587
|
default:
|
|
782
588
|
const parsedBody = parsedOutput.body;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
...parsedBody,
|
|
786
|
-
name: `${errorCode}`,
|
|
787
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
589
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
590
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
788
591
|
$fault: "client",
|
|
789
592
|
$metadata: deserializeMetadata(output),
|
|
790
|
-
};
|
|
593
|
+
});
|
|
594
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
791
595
|
}
|
|
792
|
-
const message = response.message || response.Message || errorCode;
|
|
793
|
-
response.message = message;
|
|
794
|
-
delete response.Message;
|
|
795
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
796
596
|
};
|
|
797
597
|
const deserializeAws_json1_1DetectPHICommand = async (output, context) => {
|
|
798
598
|
if (output.statusCode >= 300) {
|
|
@@ -819,67 +619,31 @@ const deserializeAws_json1_1DetectPHICommandError = async (output, context) => {
|
|
|
819
619
|
switch (errorCode) {
|
|
820
620
|
case "InternalServerException":
|
|
821
621
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
822
|
-
|
|
823
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
824
|
-
name: errorCode,
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
};
|
|
827
|
-
break;
|
|
622
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
828
623
|
case "InvalidEncodingException":
|
|
829
624
|
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
830
|
-
|
|
831
|
-
...(await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)),
|
|
832
|
-
name: errorCode,
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
};
|
|
835
|
-
break;
|
|
625
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
836
626
|
case "InvalidRequestException":
|
|
837
627
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
838
|
-
|
|
839
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
840
|
-
name: errorCode,
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
};
|
|
843
|
-
break;
|
|
628
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
844
629
|
case "ServiceUnavailableException":
|
|
845
630
|
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
846
|
-
|
|
847
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
848
|
-
name: errorCode,
|
|
849
|
-
$metadata: deserializeMetadata(output),
|
|
850
|
-
};
|
|
851
|
-
break;
|
|
631
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
852
632
|
case "TextSizeLimitExceededException":
|
|
853
633
|
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
854
|
-
|
|
855
|
-
...(await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
856
|
-
name: errorCode,
|
|
857
|
-
$metadata: deserializeMetadata(output),
|
|
858
|
-
};
|
|
859
|
-
break;
|
|
634
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
860
635
|
case "TooManyRequestsException":
|
|
861
636
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
862
|
-
|
|
863
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
864
|
-
name: errorCode,
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
};
|
|
867
|
-
break;
|
|
637
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
868
638
|
default:
|
|
869
639
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
...parsedBody,
|
|
873
|
-
name: `${errorCode}`,
|
|
874
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
640
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
641
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
875
642
|
$fault: "client",
|
|
876
643
|
$metadata: deserializeMetadata(output),
|
|
877
|
-
};
|
|
644
|
+
});
|
|
645
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
878
646
|
}
|
|
879
|
-
const message = response.message || response.Message || errorCode;
|
|
880
|
-
response.message = message;
|
|
881
|
-
delete response.Message;
|
|
882
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
883
647
|
};
|
|
884
648
|
const deserializeAws_json1_1InferICD10CMCommand = async (output, context) => {
|
|
885
649
|
if (output.statusCode >= 300) {
|
|
@@ -906,67 +670,31 @@ const deserializeAws_json1_1InferICD10CMCommandError = async (output, context) =
|
|
|
906
670
|
switch (errorCode) {
|
|
907
671
|
case "InternalServerException":
|
|
908
672
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
909
|
-
|
|
910
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
911
|
-
name: errorCode,
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
};
|
|
914
|
-
break;
|
|
673
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
915
674
|
case "InvalidEncodingException":
|
|
916
675
|
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
917
|
-
|
|
918
|
-
...(await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)),
|
|
919
|
-
name: errorCode,
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
};
|
|
922
|
-
break;
|
|
676
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
923
677
|
case "InvalidRequestException":
|
|
924
678
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
925
|
-
|
|
926
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
927
|
-
name: errorCode,
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
930
|
-
break;
|
|
679
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
931
680
|
case "ServiceUnavailableException":
|
|
932
681
|
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
933
|
-
|
|
934
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
935
|
-
name: errorCode,
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
938
|
-
break;
|
|
682
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
939
683
|
case "TextSizeLimitExceededException":
|
|
940
684
|
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
941
|
-
|
|
942
|
-
...(await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
943
|
-
name: errorCode,
|
|
944
|
-
$metadata: deserializeMetadata(output),
|
|
945
|
-
};
|
|
946
|
-
break;
|
|
685
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
947
686
|
case "TooManyRequestsException":
|
|
948
687
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
949
|
-
|
|
950
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
951
|
-
name: errorCode,
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
};
|
|
954
|
-
break;
|
|
688
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
955
689
|
default:
|
|
956
690
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
...parsedBody,
|
|
960
|
-
name: `${errorCode}`,
|
|
961
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
691
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
692
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
962
693
|
$fault: "client",
|
|
963
694
|
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
695
|
+
});
|
|
696
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
965
697
|
}
|
|
966
|
-
const message = response.message || response.Message || errorCode;
|
|
967
|
-
response.message = message;
|
|
968
|
-
delete response.Message;
|
|
969
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
970
698
|
};
|
|
971
699
|
const deserializeAws_json1_1InferRxNormCommand = async (output, context) => {
|
|
972
700
|
if (output.statusCode >= 300) {
|
|
@@ -993,67 +721,31 @@ const deserializeAws_json1_1InferRxNormCommandError = async (output, context) =>
|
|
|
993
721
|
switch (errorCode) {
|
|
994
722
|
case "InternalServerException":
|
|
995
723
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
996
|
-
|
|
997
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
998
|
-
name: errorCode,
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
};
|
|
1001
|
-
break;
|
|
724
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1002
725
|
case "InvalidEncodingException":
|
|
1003
726
|
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
1004
|
-
|
|
1005
|
-
...(await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)),
|
|
1006
|
-
name: errorCode,
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
};
|
|
1009
|
-
break;
|
|
727
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
1010
728
|
case "InvalidRequestException":
|
|
1011
729
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1012
|
-
|
|
1013
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1014
|
-
name: errorCode,
|
|
1015
|
-
$metadata: deserializeMetadata(output),
|
|
1016
|
-
};
|
|
1017
|
-
break;
|
|
730
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1018
731
|
case "ServiceUnavailableException":
|
|
1019
732
|
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
1020
|
-
|
|
1021
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1022
|
-
name: errorCode,
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
};
|
|
1025
|
-
break;
|
|
733
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1026
734
|
case "TextSizeLimitExceededException":
|
|
1027
735
|
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
1028
|
-
|
|
1029
|
-
...(await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1030
|
-
name: errorCode,
|
|
1031
|
-
$metadata: deserializeMetadata(output),
|
|
1032
|
-
};
|
|
1033
|
-
break;
|
|
736
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
1034
737
|
case "TooManyRequestsException":
|
|
1035
738
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1036
|
-
|
|
1037
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1038
|
-
name: errorCode,
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
};
|
|
1041
|
-
break;
|
|
739
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1042
740
|
default:
|
|
1043
741
|
const parsedBody = parsedOutput.body;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
...parsedBody,
|
|
1047
|
-
name: `${errorCode}`,
|
|
1048
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
742
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
743
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1049
744
|
$fault: "client",
|
|
1050
745
|
$metadata: deserializeMetadata(output),
|
|
1051
|
-
};
|
|
746
|
+
});
|
|
747
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1052
748
|
}
|
|
1053
|
-
const message = response.message || response.Message || errorCode;
|
|
1054
|
-
response.message = message;
|
|
1055
|
-
delete response.Message;
|
|
1056
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1057
749
|
};
|
|
1058
750
|
const deserializeAws_json1_1InferSNOMEDCTCommand = async (output, context) => {
|
|
1059
751
|
if (output.statusCode >= 300) {
|
|
@@ -1080,67 +772,31 @@ const deserializeAws_json1_1InferSNOMEDCTCommandError = async (output, context)
|
|
|
1080
772
|
switch (errorCode) {
|
|
1081
773
|
case "InternalServerException":
|
|
1082
774
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1083
|
-
|
|
1084
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1085
|
-
name: errorCode,
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
};
|
|
1088
|
-
break;
|
|
775
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1089
776
|
case "InvalidEncodingException":
|
|
1090
777
|
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
1091
|
-
|
|
1092
|
-
...(await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)),
|
|
1093
|
-
name: errorCode,
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1096
|
-
break;
|
|
778
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
1097
779
|
case "InvalidRequestException":
|
|
1098
780
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1099
|
-
|
|
1100
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1101
|
-
name: errorCode,
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
};
|
|
1104
|
-
break;
|
|
781
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1105
782
|
case "ServiceUnavailableException":
|
|
1106
783
|
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
1107
|
-
|
|
1108
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1109
|
-
name: errorCode,
|
|
1110
|
-
$metadata: deserializeMetadata(output),
|
|
1111
|
-
};
|
|
1112
|
-
break;
|
|
784
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1113
785
|
case "TextSizeLimitExceededException":
|
|
1114
786
|
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
1115
|
-
|
|
1116
|
-
...(await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1117
|
-
name: errorCode,
|
|
1118
|
-
$metadata: deserializeMetadata(output),
|
|
1119
|
-
};
|
|
1120
|
-
break;
|
|
787
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
1121
788
|
case "TooManyRequestsException":
|
|
1122
789
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1123
|
-
|
|
1124
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1125
|
-
name: errorCode,
|
|
1126
|
-
$metadata: deserializeMetadata(output),
|
|
1127
|
-
};
|
|
1128
|
-
break;
|
|
790
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1129
791
|
default:
|
|
1130
792
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
...parsedBody,
|
|
1134
|
-
name: `${errorCode}`,
|
|
1135
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
793
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
794
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1136
795
|
$fault: "client",
|
|
1137
796
|
$metadata: deserializeMetadata(output),
|
|
1138
|
-
};
|
|
797
|
+
});
|
|
798
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1139
799
|
}
|
|
1140
|
-
const message = response.message || response.Message || errorCode;
|
|
1141
|
-
response.message = message;
|
|
1142
|
-
delete response.Message;
|
|
1143
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1144
800
|
};
|
|
1145
801
|
const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommand = async (output, context) => {
|
|
1146
802
|
if (output.statusCode >= 300) {
|
|
@@ -1167,51 +823,25 @@ const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError = async (out
|
|
|
1167
823
|
switch (errorCode) {
|
|
1168
824
|
case "InternalServerException":
|
|
1169
825
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1170
|
-
|
|
1171
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1172
|
-
name: errorCode,
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
};
|
|
1175
|
-
break;
|
|
826
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1176
827
|
case "InvalidRequestException":
|
|
1177
828
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1178
|
-
|
|
1179
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1180
|
-
name: errorCode,
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
};
|
|
1183
|
-
break;
|
|
829
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1184
830
|
case "TooManyRequestsException":
|
|
1185
831
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1186
|
-
|
|
1187
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1188
|
-
name: errorCode,
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
1191
|
-
break;
|
|
832
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1192
833
|
case "ValidationException":
|
|
1193
834
|
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
1194
|
-
|
|
1195
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1196
|
-
name: errorCode,
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
};
|
|
1199
|
-
break;
|
|
835
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1200
836
|
default:
|
|
1201
837
|
const parsedBody = parsedOutput.body;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
...parsedBody,
|
|
1205
|
-
name: `${errorCode}`,
|
|
1206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
838
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1207
840
|
$fault: "client",
|
|
1208
841
|
$metadata: deserializeMetadata(output),
|
|
1209
|
-
};
|
|
842
|
+
});
|
|
843
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1210
844
|
}
|
|
1211
|
-
const message = response.message || response.Message || errorCode;
|
|
1212
|
-
response.message = message;
|
|
1213
|
-
delete response.Message;
|
|
1214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1215
845
|
};
|
|
1216
846
|
const deserializeAws_json1_1ListICD10CMInferenceJobsCommand = async (output, context) => {
|
|
1217
847
|
if (output.statusCode >= 300) {
|
|
@@ -1238,51 +868,25 @@ const deserializeAws_json1_1ListICD10CMInferenceJobsCommandError = async (output
|
|
|
1238
868
|
switch (errorCode) {
|
|
1239
869
|
case "InternalServerException":
|
|
1240
870
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1241
|
-
|
|
1242
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1243
|
-
name: errorCode,
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
1246
|
-
break;
|
|
871
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1247
872
|
case "InvalidRequestException":
|
|
1248
873
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1249
|
-
|
|
1250
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
874
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1255
875
|
case "TooManyRequestsException":
|
|
1256
876
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
877
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1263
878
|
case "ValidationException":
|
|
1264
879
|
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
1265
|
-
|
|
1266
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
880
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1271
881
|
default:
|
|
1272
882
|
const parsedBody = parsedOutput.body;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
...parsedBody,
|
|
1276
|
-
name: `${errorCode}`,
|
|
1277
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
883
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
884
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1278
885
|
$fault: "client",
|
|
1279
886
|
$metadata: deserializeMetadata(output),
|
|
1280
|
-
};
|
|
887
|
+
});
|
|
888
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1281
889
|
}
|
|
1282
|
-
const message = response.message || response.Message || errorCode;
|
|
1283
|
-
response.message = message;
|
|
1284
|
-
delete response.Message;
|
|
1285
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1286
890
|
};
|
|
1287
891
|
const deserializeAws_json1_1ListPHIDetectionJobsCommand = async (output, context) => {
|
|
1288
892
|
if (output.statusCode >= 300) {
|
|
@@ -1309,51 +913,25 @@ const deserializeAws_json1_1ListPHIDetectionJobsCommandError = async (output, co
|
|
|
1309
913
|
switch (errorCode) {
|
|
1310
914
|
case "InternalServerException":
|
|
1311
915
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1312
|
-
|
|
1313
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1314
|
-
name: errorCode,
|
|
1315
|
-
$metadata: deserializeMetadata(output),
|
|
1316
|
-
};
|
|
1317
|
-
break;
|
|
916
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1318
917
|
case "InvalidRequestException":
|
|
1319
918
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1320
|
-
|
|
1321
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1322
|
-
name: errorCode,
|
|
1323
|
-
$metadata: deserializeMetadata(output),
|
|
1324
|
-
};
|
|
1325
|
-
break;
|
|
919
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1326
920
|
case "TooManyRequestsException":
|
|
1327
921
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1328
|
-
|
|
1329
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1330
|
-
name: errorCode,
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
};
|
|
1333
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1334
923
|
case "ValidationException":
|
|
1335
924
|
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
1336
|
-
|
|
1337
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1338
|
-
name: errorCode,
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
};
|
|
1341
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1342
926
|
default:
|
|
1343
927
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
...parsedBody,
|
|
1347
|
-
name: `${errorCode}`,
|
|
1348
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
928
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
929
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1349
930
|
$fault: "client",
|
|
1350
931
|
$metadata: deserializeMetadata(output),
|
|
1351
|
-
};
|
|
932
|
+
});
|
|
933
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1352
934
|
}
|
|
1353
|
-
const message = response.message || response.Message || errorCode;
|
|
1354
|
-
response.message = message;
|
|
1355
|
-
delete response.Message;
|
|
1356
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1357
935
|
};
|
|
1358
936
|
const deserializeAws_json1_1ListRxNormInferenceJobsCommand = async (output, context) => {
|
|
1359
937
|
if (output.statusCode >= 300) {
|
|
@@ -1380,51 +958,25 @@ const deserializeAws_json1_1ListRxNormInferenceJobsCommandError = async (output,
|
|
|
1380
958
|
switch (errorCode) {
|
|
1381
959
|
case "InternalServerException":
|
|
1382
960
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1383
|
-
|
|
1384
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1385
|
-
name: errorCode,
|
|
1386
|
-
$metadata: deserializeMetadata(output),
|
|
1387
|
-
};
|
|
1388
|
-
break;
|
|
961
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1389
962
|
case "InvalidRequestException":
|
|
1390
963
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1391
|
-
|
|
1392
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1393
|
-
name: errorCode,
|
|
1394
|
-
$metadata: deserializeMetadata(output),
|
|
1395
|
-
};
|
|
1396
|
-
break;
|
|
964
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1397
965
|
case "TooManyRequestsException":
|
|
1398
966
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1399
|
-
|
|
1400
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1401
|
-
name: errorCode,
|
|
1402
|
-
$metadata: deserializeMetadata(output),
|
|
1403
|
-
};
|
|
1404
|
-
break;
|
|
967
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1405
968
|
case "ValidationException":
|
|
1406
969
|
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
1407
|
-
|
|
1408
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1409
|
-
name: errorCode,
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
};
|
|
1412
|
-
break;
|
|
970
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1413
971
|
default:
|
|
1414
972
|
const parsedBody = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
...parsedBody,
|
|
1418
|
-
name: `${errorCode}`,
|
|
1419
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
973
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
974
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
975
|
$fault: "client",
|
|
1421
976
|
$metadata: deserializeMetadata(output),
|
|
1422
|
-
};
|
|
977
|
+
});
|
|
978
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1423
979
|
}
|
|
1424
|
-
const message = response.message || response.Message || errorCode;
|
|
1425
|
-
response.message = message;
|
|
1426
|
-
delete response.Message;
|
|
1427
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1428
980
|
};
|
|
1429
981
|
const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = async (output, context) => {
|
|
1430
982
|
if (output.statusCode >= 300) {
|
|
@@ -1451,51 +1003,25 @@ const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = async (outpu
|
|
|
1451
1003
|
switch (errorCode) {
|
|
1452
1004
|
case "InternalServerException":
|
|
1453
1005
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1454
|
-
|
|
1455
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1456
|
-
name: errorCode,
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
};
|
|
1459
|
-
break;
|
|
1006
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1460
1007
|
case "InvalidRequestException":
|
|
1461
1008
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1462
|
-
|
|
1463
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1464
|
-
name: errorCode,
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
};
|
|
1467
|
-
break;
|
|
1009
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1468
1010
|
case "TooManyRequestsException":
|
|
1469
1011
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1470
|
-
|
|
1471
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1472
|
-
name: errorCode,
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
};
|
|
1475
|
-
break;
|
|
1012
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1476
1013
|
case "ValidationException":
|
|
1477
1014
|
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
1015
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1484
1016
|
default:
|
|
1485
1017
|
const parsedBody = parsedOutput.body;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
...parsedBody,
|
|
1489
|
-
name: `${errorCode}`,
|
|
1490
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1018
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1019
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1491
1020
|
$fault: "client",
|
|
1492
1021
|
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1022
|
+
});
|
|
1023
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1494
1024
|
}
|
|
1495
|
-
const message = response.message || response.Message || errorCode;
|
|
1496
|
-
response.message = message;
|
|
1497
|
-
delete response.Message;
|
|
1498
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1499
1025
|
};
|
|
1500
1026
|
const deserializeAws_json1_1StartEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
1501
1027
|
if (output.statusCode >= 300) {
|
|
@@ -1522,51 +1048,25 @@ const deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = async (out
|
|
|
1522
1048
|
switch (errorCode) {
|
|
1523
1049
|
case "InternalServerException":
|
|
1524
1050
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1525
|
-
|
|
1526
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1527
|
-
name: errorCode,
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
};
|
|
1530
|
-
break;
|
|
1051
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1531
1052
|
case "InvalidRequestException":
|
|
1532
1053
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1533
|
-
|
|
1534
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1535
|
-
name: errorCode,
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
};
|
|
1538
|
-
break;
|
|
1054
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1539
1055
|
case "ResourceNotFoundException":
|
|
1540
1056
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1541
|
-
|
|
1542
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1543
|
-
name: errorCode,
|
|
1544
|
-
$metadata: deserializeMetadata(output),
|
|
1545
|
-
};
|
|
1546
|
-
break;
|
|
1057
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1547
1058
|
case "TooManyRequestsException":
|
|
1548
1059
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1549
|
-
|
|
1550
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1551
|
-
name: errorCode,
|
|
1552
|
-
$metadata: deserializeMetadata(output),
|
|
1553
|
-
};
|
|
1554
|
-
break;
|
|
1060
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1555
1061
|
default:
|
|
1556
1062
|
const parsedBody = parsedOutput.body;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
...parsedBody,
|
|
1560
|
-
name: `${errorCode}`,
|
|
1561
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1063
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1562
1065
|
$fault: "client",
|
|
1563
1066
|
$metadata: deserializeMetadata(output),
|
|
1564
|
-
};
|
|
1067
|
+
});
|
|
1068
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1565
1069
|
}
|
|
1566
|
-
const message = response.message || response.Message || errorCode;
|
|
1567
|
-
response.message = message;
|
|
1568
|
-
delete response.Message;
|
|
1569
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1570
1070
|
};
|
|
1571
1071
|
const deserializeAws_json1_1StartICD10CMInferenceJobCommand = async (output, context) => {
|
|
1572
1072
|
if (output.statusCode >= 300) {
|
|
@@ -1593,51 +1093,25 @@ const deserializeAws_json1_1StartICD10CMInferenceJobCommandError = async (output
|
|
|
1593
1093
|
switch (errorCode) {
|
|
1594
1094
|
case "InternalServerException":
|
|
1595
1095
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1596
|
-
|
|
1597
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1598
|
-
name: errorCode,
|
|
1599
|
-
$metadata: deserializeMetadata(output),
|
|
1600
|
-
};
|
|
1601
|
-
break;
|
|
1096
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1602
1097
|
case "InvalidRequestException":
|
|
1603
1098
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1604
|
-
|
|
1605
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1606
|
-
name: errorCode,
|
|
1607
|
-
$metadata: deserializeMetadata(output),
|
|
1608
|
-
};
|
|
1609
|
-
break;
|
|
1099
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1610
1100
|
case "ResourceNotFoundException":
|
|
1611
1101
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1612
|
-
|
|
1613
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1614
|
-
name: errorCode,
|
|
1615
|
-
$metadata: deserializeMetadata(output),
|
|
1616
|
-
};
|
|
1617
|
-
break;
|
|
1102
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1618
1103
|
case "TooManyRequestsException":
|
|
1619
1104
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1620
|
-
|
|
1621
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1622
|
-
name: errorCode,
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
};
|
|
1625
|
-
break;
|
|
1105
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1626
1106
|
default:
|
|
1627
1107
|
const parsedBody = parsedOutput.body;
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
...parsedBody,
|
|
1631
|
-
name: `${errorCode}`,
|
|
1632
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1108
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1109
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1633
1110
|
$fault: "client",
|
|
1634
1111
|
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1112
|
+
});
|
|
1113
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1636
1114
|
}
|
|
1637
|
-
const message = response.message || response.Message || errorCode;
|
|
1638
|
-
response.message = message;
|
|
1639
|
-
delete response.Message;
|
|
1640
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1641
1115
|
};
|
|
1642
1116
|
const deserializeAws_json1_1StartPHIDetectionJobCommand = async (output, context) => {
|
|
1643
1117
|
if (output.statusCode >= 300) {
|
|
@@ -1664,51 +1138,25 @@ const deserializeAws_json1_1StartPHIDetectionJobCommandError = async (output, co
|
|
|
1664
1138
|
switch (errorCode) {
|
|
1665
1139
|
case "InternalServerException":
|
|
1666
1140
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1667
|
-
|
|
1668
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1669
|
-
name: errorCode,
|
|
1670
|
-
$metadata: deserializeMetadata(output),
|
|
1671
|
-
};
|
|
1672
|
-
break;
|
|
1141
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1673
1142
|
case "InvalidRequestException":
|
|
1674
1143
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1675
|
-
|
|
1676
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1677
|
-
name: errorCode,
|
|
1678
|
-
$metadata: deserializeMetadata(output),
|
|
1679
|
-
};
|
|
1680
|
-
break;
|
|
1144
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1681
1145
|
case "ResourceNotFoundException":
|
|
1682
1146
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1683
|
-
|
|
1684
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1685
|
-
name: errorCode,
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
};
|
|
1688
|
-
break;
|
|
1147
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1689
1148
|
case "TooManyRequestsException":
|
|
1690
1149
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1691
|
-
|
|
1692
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1693
|
-
name: errorCode,
|
|
1694
|
-
$metadata: deserializeMetadata(output),
|
|
1695
|
-
};
|
|
1696
|
-
break;
|
|
1150
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1697
1151
|
default:
|
|
1698
1152
|
const parsedBody = parsedOutput.body;
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
...parsedBody,
|
|
1702
|
-
name: `${errorCode}`,
|
|
1703
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1153
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1154
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1704
1155
|
$fault: "client",
|
|
1705
1156
|
$metadata: deserializeMetadata(output),
|
|
1706
|
-
};
|
|
1157
|
+
});
|
|
1158
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1707
1159
|
}
|
|
1708
|
-
const message = response.message || response.Message || errorCode;
|
|
1709
|
-
response.message = message;
|
|
1710
|
-
delete response.Message;
|
|
1711
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1712
1160
|
};
|
|
1713
1161
|
const deserializeAws_json1_1StartRxNormInferenceJobCommand = async (output, context) => {
|
|
1714
1162
|
if (output.statusCode >= 300) {
|
|
@@ -1735,51 +1183,25 @@ const deserializeAws_json1_1StartRxNormInferenceJobCommandError = async (output,
|
|
|
1735
1183
|
switch (errorCode) {
|
|
1736
1184
|
case "InternalServerException":
|
|
1737
1185
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1738
|
-
|
|
1739
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1740
|
-
name: errorCode,
|
|
1741
|
-
$metadata: deserializeMetadata(output),
|
|
1742
|
-
};
|
|
1743
|
-
break;
|
|
1186
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1744
1187
|
case "InvalidRequestException":
|
|
1745
1188
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1746
|
-
|
|
1747
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1748
|
-
name: errorCode,
|
|
1749
|
-
$metadata: deserializeMetadata(output),
|
|
1750
|
-
};
|
|
1751
|
-
break;
|
|
1189
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1752
1190
|
case "ResourceNotFoundException":
|
|
1753
1191
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1754
|
-
|
|
1755
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1756
|
-
name: errorCode,
|
|
1757
|
-
$metadata: deserializeMetadata(output),
|
|
1758
|
-
};
|
|
1759
|
-
break;
|
|
1192
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1760
1193
|
case "TooManyRequestsException":
|
|
1761
1194
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1762
|
-
|
|
1763
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1764
|
-
name: errorCode,
|
|
1765
|
-
$metadata: deserializeMetadata(output),
|
|
1766
|
-
};
|
|
1767
|
-
break;
|
|
1195
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1768
1196
|
default:
|
|
1769
1197
|
const parsedBody = parsedOutput.body;
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
...parsedBody,
|
|
1773
|
-
name: `${errorCode}`,
|
|
1774
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1198
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1199
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1775
1200
|
$fault: "client",
|
|
1776
1201
|
$metadata: deserializeMetadata(output),
|
|
1777
|
-
};
|
|
1202
|
+
});
|
|
1203
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1778
1204
|
}
|
|
1779
|
-
const message = response.message || response.Message || errorCode;
|
|
1780
|
-
response.message = message;
|
|
1781
|
-
delete response.Message;
|
|
1782
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1783
1205
|
};
|
|
1784
1206
|
const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
1785
1207
|
if (output.statusCode >= 300) {
|
|
@@ -1806,51 +1228,25 @@ const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = async (outpu
|
|
|
1806
1228
|
switch (errorCode) {
|
|
1807
1229
|
case "InternalServerException":
|
|
1808
1230
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1809
|
-
|
|
1810
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1811
|
-
name: errorCode,
|
|
1812
|
-
$metadata: deserializeMetadata(output),
|
|
1813
|
-
};
|
|
1814
|
-
break;
|
|
1231
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1815
1232
|
case "InvalidRequestException":
|
|
1816
1233
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1817
|
-
|
|
1818
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1819
|
-
name: errorCode,
|
|
1820
|
-
$metadata: deserializeMetadata(output),
|
|
1821
|
-
};
|
|
1822
|
-
break;
|
|
1234
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1823
1235
|
case "ResourceNotFoundException":
|
|
1824
1236
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1825
|
-
|
|
1826
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1827
|
-
name: errorCode,
|
|
1828
|
-
$metadata: deserializeMetadata(output),
|
|
1829
|
-
};
|
|
1830
|
-
break;
|
|
1237
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1831
1238
|
case "TooManyRequestsException":
|
|
1832
1239
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1833
|
-
|
|
1834
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1835
|
-
name: errorCode,
|
|
1836
|
-
$metadata: deserializeMetadata(output),
|
|
1837
|
-
};
|
|
1838
|
-
break;
|
|
1240
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1839
1241
|
default:
|
|
1840
1242
|
const parsedBody = parsedOutput.body;
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
...parsedBody,
|
|
1844
|
-
name: `${errorCode}`,
|
|
1845
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1243
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1244
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1846
1245
|
$fault: "client",
|
|
1847
1246
|
$metadata: deserializeMetadata(output),
|
|
1848
|
-
};
|
|
1247
|
+
});
|
|
1248
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1849
1249
|
}
|
|
1850
|
-
const message = response.message || response.Message || errorCode;
|
|
1851
|
-
response.message = message;
|
|
1852
|
-
delete response.Message;
|
|
1853
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1854
1250
|
};
|
|
1855
1251
|
const deserializeAws_json1_1StopEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
1856
1252
|
if (output.statusCode >= 300) {
|
|
@@ -1877,43 +1273,22 @@ const deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = async (outp
|
|
|
1877
1273
|
switch (errorCode) {
|
|
1878
1274
|
case "InternalServerException":
|
|
1879
1275
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1880
|
-
|
|
1881
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1882
|
-
name: errorCode,
|
|
1883
|
-
$metadata: deserializeMetadata(output),
|
|
1884
|
-
};
|
|
1885
|
-
break;
|
|
1276
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1886
1277
|
case "InvalidRequestException":
|
|
1887
1278
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1888
|
-
|
|
1889
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1890
|
-
name: errorCode,
|
|
1891
|
-
$metadata: deserializeMetadata(output),
|
|
1892
|
-
};
|
|
1893
|
-
break;
|
|
1279
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1894
1280
|
case "ResourceNotFoundException":
|
|
1895
1281
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1896
|
-
|
|
1897
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1898
|
-
name: errorCode,
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
};
|
|
1901
|
-
break;
|
|
1282
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1902
1283
|
default:
|
|
1903
1284
|
const parsedBody = parsedOutput.body;
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
...parsedBody,
|
|
1907
|
-
name: `${errorCode}`,
|
|
1908
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1285
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1286
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1909
1287
|
$fault: "client",
|
|
1910
1288
|
$metadata: deserializeMetadata(output),
|
|
1911
|
-
};
|
|
1289
|
+
});
|
|
1290
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1912
1291
|
}
|
|
1913
|
-
const message = response.message || response.Message || errorCode;
|
|
1914
|
-
response.message = message;
|
|
1915
|
-
delete response.Message;
|
|
1916
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1917
1292
|
};
|
|
1918
1293
|
const deserializeAws_json1_1StopICD10CMInferenceJobCommand = async (output, context) => {
|
|
1919
1294
|
if (output.statusCode >= 300) {
|
|
@@ -1940,43 +1315,22 @@ const deserializeAws_json1_1StopICD10CMInferenceJobCommandError = async (output,
|
|
|
1940
1315
|
switch (errorCode) {
|
|
1941
1316
|
case "InternalServerException":
|
|
1942
1317
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1943
|
-
|
|
1944
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1945
|
-
name: errorCode,
|
|
1946
|
-
$metadata: deserializeMetadata(output),
|
|
1947
|
-
};
|
|
1948
|
-
break;
|
|
1318
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1949
1319
|
case "InvalidRequestException":
|
|
1950
1320
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1951
|
-
|
|
1952
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1953
|
-
name: errorCode,
|
|
1954
|
-
$metadata: deserializeMetadata(output),
|
|
1955
|
-
};
|
|
1956
|
-
break;
|
|
1321
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1957
1322
|
case "ResourceNotFoundException":
|
|
1958
1323
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1959
|
-
|
|
1960
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1961
|
-
name: errorCode,
|
|
1962
|
-
$metadata: deserializeMetadata(output),
|
|
1963
|
-
};
|
|
1964
|
-
break;
|
|
1324
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1965
1325
|
default:
|
|
1966
1326
|
const parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
...parsedBody,
|
|
1970
|
-
name: `${errorCode}`,
|
|
1971
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1327
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1328
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1972
1329
|
$fault: "client",
|
|
1973
1330
|
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1331
|
+
});
|
|
1332
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1975
1333
|
}
|
|
1976
|
-
const message = response.message || response.Message || errorCode;
|
|
1977
|
-
response.message = message;
|
|
1978
|
-
delete response.Message;
|
|
1979
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1980
1334
|
};
|
|
1981
1335
|
const deserializeAws_json1_1StopPHIDetectionJobCommand = async (output, context) => {
|
|
1982
1336
|
if (output.statusCode >= 300) {
|
|
@@ -2003,43 +1357,22 @@ const deserializeAws_json1_1StopPHIDetectionJobCommandError = async (output, con
|
|
|
2003
1357
|
switch (errorCode) {
|
|
2004
1358
|
case "InternalServerException":
|
|
2005
1359
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
2006
|
-
|
|
2007
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2008
|
-
name: errorCode,
|
|
2009
|
-
$metadata: deserializeMetadata(output),
|
|
2010
|
-
};
|
|
2011
|
-
break;
|
|
1360
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2012
1361
|
case "InvalidRequestException":
|
|
2013
1362
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
2014
|
-
|
|
2015
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2016
|
-
name: errorCode,
|
|
2017
|
-
$metadata: deserializeMetadata(output),
|
|
2018
|
-
};
|
|
2019
|
-
break;
|
|
1363
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2020
1364
|
case "ResourceNotFoundException":
|
|
2021
1365
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
2022
|
-
|
|
2023
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2024
|
-
name: errorCode,
|
|
2025
|
-
$metadata: deserializeMetadata(output),
|
|
2026
|
-
};
|
|
2027
|
-
break;
|
|
1366
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2028
1367
|
default:
|
|
2029
1368
|
const parsedBody = parsedOutput.body;
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
...parsedBody,
|
|
2033
|
-
name: `${errorCode}`,
|
|
2034
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1369
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1370
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2035
1371
|
$fault: "client",
|
|
2036
1372
|
$metadata: deserializeMetadata(output),
|
|
2037
|
-
};
|
|
1373
|
+
});
|
|
1374
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2038
1375
|
}
|
|
2039
|
-
const message = response.message || response.Message || errorCode;
|
|
2040
|
-
response.message = message;
|
|
2041
|
-
delete response.Message;
|
|
2042
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2043
1376
|
};
|
|
2044
1377
|
const deserializeAws_json1_1StopRxNormInferenceJobCommand = async (output, context) => {
|
|
2045
1378
|
if (output.statusCode >= 300) {
|
|
@@ -2066,43 +1399,22 @@ const deserializeAws_json1_1StopRxNormInferenceJobCommandError = async (output,
|
|
|
2066
1399
|
switch (errorCode) {
|
|
2067
1400
|
case "InternalServerException":
|
|
2068
1401
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
2069
|
-
|
|
2070
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2071
|
-
name: errorCode,
|
|
2072
|
-
$metadata: deserializeMetadata(output),
|
|
2073
|
-
};
|
|
2074
|
-
break;
|
|
1402
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2075
1403
|
case "InvalidRequestException":
|
|
2076
1404
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
2077
|
-
|
|
2078
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2079
|
-
name: errorCode,
|
|
2080
|
-
$metadata: deserializeMetadata(output),
|
|
2081
|
-
};
|
|
2082
|
-
break;
|
|
1405
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2083
1406
|
case "ResourceNotFoundException":
|
|
2084
1407
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
2085
|
-
|
|
2086
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2087
|
-
name: errorCode,
|
|
2088
|
-
$metadata: deserializeMetadata(output),
|
|
2089
|
-
};
|
|
2090
|
-
break;
|
|
1408
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2091
1409
|
default:
|
|
2092
1410
|
const parsedBody = parsedOutput.body;
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
...parsedBody,
|
|
2096
|
-
name: `${errorCode}`,
|
|
2097
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1411
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1412
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2098
1413
|
$fault: "client",
|
|
2099
1414
|
$metadata: deserializeMetadata(output),
|
|
2100
|
-
};
|
|
1415
|
+
});
|
|
1416
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2101
1417
|
}
|
|
2102
|
-
const message = response.message || response.Message || errorCode;
|
|
2103
|
-
response.message = message;
|
|
2104
|
-
delete response.Message;
|
|
2105
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2106
1418
|
};
|
|
2107
1419
|
const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
2108
1420
|
if (output.statusCode >= 300) {
|
|
@@ -2129,139 +1441,97 @@ const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = async (output
|
|
|
2129
1441
|
switch (errorCode) {
|
|
2130
1442
|
case "InternalServerException":
|
|
2131
1443
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
2132
|
-
|
|
2133
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2134
|
-
name: errorCode,
|
|
2135
|
-
$metadata: deserializeMetadata(output),
|
|
2136
|
-
};
|
|
2137
|
-
break;
|
|
1444
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2138
1445
|
case "InvalidRequestException":
|
|
2139
1446
|
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
2140
|
-
|
|
2141
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2142
|
-
name: errorCode,
|
|
2143
|
-
$metadata: deserializeMetadata(output),
|
|
2144
|
-
};
|
|
2145
|
-
break;
|
|
1447
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2146
1448
|
case "ResourceNotFoundException":
|
|
2147
1449
|
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
2148
|
-
|
|
2149
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2150
|
-
name: errorCode,
|
|
2151
|
-
$metadata: deserializeMetadata(output),
|
|
2152
|
-
};
|
|
2153
|
-
break;
|
|
1450
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2154
1451
|
case "TooManyRequestsException":
|
|
2155
1452
|
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
2156
|
-
|
|
2157
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2158
|
-
name: errorCode,
|
|
2159
|
-
$metadata: deserializeMetadata(output),
|
|
2160
|
-
};
|
|
2161
|
-
break;
|
|
1453
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2162
1454
|
default:
|
|
2163
1455
|
const parsedBody = parsedOutput.body;
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
...parsedBody,
|
|
2167
|
-
name: `${errorCode}`,
|
|
2168
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1456
|
+
response = new ComprehendMedicalServiceException_1.ComprehendMedicalServiceException({
|
|
1457
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2169
1458
|
$fault: "client",
|
|
2170
1459
|
$metadata: deserializeMetadata(output),
|
|
2171
|
-
};
|
|
1460
|
+
});
|
|
1461
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2172
1462
|
}
|
|
2173
|
-
const message = response.message || response.Message || errorCode;
|
|
2174
|
-
response.message = message;
|
|
2175
|
-
delete response.Message;
|
|
2176
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2177
1463
|
};
|
|
2178
1464
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2179
1465
|
const body = parsedOutput.body;
|
|
2180
1466
|
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2181
|
-
const
|
|
2182
|
-
name: "InternalServerException",
|
|
2183
|
-
$fault: "server",
|
|
1467
|
+
const exception = new models_0_1.InternalServerException({
|
|
2184
1468
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2185
1469
|
...deserialized,
|
|
2186
|
-
};
|
|
2187
|
-
return
|
|
1470
|
+
});
|
|
1471
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2188
1472
|
};
|
|
2189
1473
|
const deserializeAws_json1_1InvalidEncodingExceptionResponse = async (parsedOutput, context) => {
|
|
2190
1474
|
const body = parsedOutput.body;
|
|
2191
1475
|
const deserialized = deserializeAws_json1_1InvalidEncodingException(body, context);
|
|
2192
|
-
const
|
|
2193
|
-
name: "InvalidEncodingException",
|
|
2194
|
-
$fault: "client",
|
|
1476
|
+
const exception = new models_0_1.InvalidEncodingException({
|
|
2195
1477
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2196
1478
|
...deserialized,
|
|
2197
|
-
};
|
|
2198
|
-
return
|
|
1479
|
+
});
|
|
1480
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2199
1481
|
};
|
|
2200
1482
|
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2201
1483
|
const body = parsedOutput.body;
|
|
2202
1484
|
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
2203
|
-
const
|
|
2204
|
-
name: "InvalidRequestException",
|
|
2205
|
-
$fault: "client",
|
|
1485
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
2206
1486
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2207
1487
|
...deserialized,
|
|
2208
|
-
};
|
|
2209
|
-
return
|
|
1488
|
+
});
|
|
1489
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2210
1490
|
};
|
|
2211
1491
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2212
1492
|
const body = parsedOutput.body;
|
|
2213
1493
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2214
|
-
const
|
|
2215
|
-
name: "ResourceNotFoundException",
|
|
2216
|
-
$fault: "client",
|
|
1494
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2217
1495
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2218
1496
|
...deserialized,
|
|
2219
|
-
};
|
|
2220
|
-
return
|
|
1497
|
+
});
|
|
1498
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2221
1499
|
};
|
|
2222
1500
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2223
1501
|
const body = parsedOutput.body;
|
|
2224
1502
|
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
2225
|
-
const
|
|
2226
|
-
name: "ServiceUnavailableException",
|
|
2227
|
-
$fault: "server",
|
|
1503
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
2228
1504
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2229
1505
|
...deserialized,
|
|
2230
|
-
};
|
|
2231
|
-
return
|
|
1506
|
+
});
|
|
1507
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2232
1508
|
};
|
|
2233
1509
|
const deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2234
1510
|
const body = parsedOutput.body;
|
|
2235
1511
|
const deserialized = deserializeAws_json1_1TextSizeLimitExceededException(body, context);
|
|
2236
|
-
const
|
|
2237
|
-
name: "TextSizeLimitExceededException",
|
|
2238
|
-
$fault: "client",
|
|
1512
|
+
const exception = new models_0_1.TextSizeLimitExceededException({
|
|
2239
1513
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2240
1514
|
...deserialized,
|
|
2241
|
-
};
|
|
2242
|
-
return
|
|
1515
|
+
});
|
|
1516
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2243
1517
|
};
|
|
2244
1518
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
2245
1519
|
const body = parsedOutput.body;
|
|
2246
1520
|
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
2247
|
-
const
|
|
2248
|
-
name: "TooManyRequestsException",
|
|
2249
|
-
$fault: "client",
|
|
1521
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
2250
1522
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2251
1523
|
...deserialized,
|
|
2252
|
-
};
|
|
2253
|
-
return
|
|
1524
|
+
});
|
|
1525
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2254
1526
|
};
|
|
2255
1527
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2256
1528
|
const body = parsedOutput.body;
|
|
2257
1529
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
2258
|
-
const
|
|
2259
|
-
name: "ValidationException",
|
|
2260
|
-
$fault: "client",
|
|
1530
|
+
const exception = new models_0_1.ValidationException({
|
|
2261
1531
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2262
1532
|
...deserialized,
|
|
2263
|
-
};
|
|
2264
|
-
return
|
|
1533
|
+
});
|
|
1534
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2265
1535
|
};
|
|
2266
1536
|
const serializeAws_json1_1ComprehendMedicalAsyncJobFilter = (input, context) => {
|
|
2267
1537
|
return {
|
|
@@ -2517,7 +1787,7 @@ const deserializeAws_json1_1Attribute = (output, context) => {
|
|
|
2517
1787
|
};
|
|
2518
1788
|
};
|
|
2519
1789
|
const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
2520
|
-
|
|
1790
|
+
const retVal = (output || [])
|
|
2521
1791
|
.filter((e) => e != null)
|
|
2522
1792
|
.map((entry) => {
|
|
2523
1793
|
if (entry === null) {
|
|
@@ -2525,6 +1795,7 @@ const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
|
2525
1795
|
}
|
|
2526
1796
|
return deserializeAws_json1_1Attribute(entry, context);
|
|
2527
1797
|
});
|
|
1798
|
+
return retVal;
|
|
2528
1799
|
};
|
|
2529
1800
|
const deserializeAws_json1_1Characters = (output, context) => {
|
|
2530
1801
|
return {
|
|
@@ -2560,7 +1831,7 @@ const deserializeAws_json1_1ComprehendMedicalAsyncJobProperties = (output, conte
|
|
|
2560
1831
|
};
|
|
2561
1832
|
};
|
|
2562
1833
|
const deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList = (output, context) => {
|
|
2563
|
-
|
|
1834
|
+
const retVal = (output || [])
|
|
2564
1835
|
.filter((e) => e != null)
|
|
2565
1836
|
.map((entry) => {
|
|
2566
1837
|
if (entry === null) {
|
|
@@ -2568,6 +1839,7 @@ const deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList = (output, c
|
|
|
2568
1839
|
}
|
|
2569
1840
|
return deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(entry, context);
|
|
2570
1841
|
});
|
|
1842
|
+
return retVal;
|
|
2571
1843
|
};
|
|
2572
1844
|
const deserializeAws_json1_1DescribeEntitiesDetectionV2JobResponse = (output, context) => {
|
|
2573
1845
|
return {
|
|
@@ -2655,7 +1927,7 @@ const deserializeAws_json1_1Entity = (output, context) => {
|
|
|
2655
1927
|
};
|
|
2656
1928
|
};
|
|
2657
1929
|
const deserializeAws_json1_1EntityList = (output, context) => {
|
|
2658
|
-
|
|
1930
|
+
const retVal = (output || [])
|
|
2659
1931
|
.filter((e) => e != null)
|
|
2660
1932
|
.map((entry) => {
|
|
2661
1933
|
if (entry === null) {
|
|
@@ -2663,6 +1935,7 @@ const deserializeAws_json1_1EntityList = (output, context) => {
|
|
|
2663
1935
|
}
|
|
2664
1936
|
return deserializeAws_json1_1Entity(entry, context);
|
|
2665
1937
|
});
|
|
1938
|
+
return retVal;
|
|
2666
1939
|
};
|
|
2667
1940
|
const deserializeAws_json1_1ICD10CMAttribute = (output, context) => {
|
|
2668
1941
|
return {
|
|
@@ -2681,7 +1954,7 @@ const deserializeAws_json1_1ICD10CMAttribute = (output, context) => {
|
|
|
2681
1954
|
};
|
|
2682
1955
|
};
|
|
2683
1956
|
const deserializeAws_json1_1ICD10CMAttributeList = (output, context) => {
|
|
2684
|
-
|
|
1957
|
+
const retVal = (output || [])
|
|
2685
1958
|
.filter((e) => e != null)
|
|
2686
1959
|
.map((entry) => {
|
|
2687
1960
|
if (entry === null) {
|
|
@@ -2689,6 +1962,7 @@ const deserializeAws_json1_1ICD10CMAttributeList = (output, context) => {
|
|
|
2689
1962
|
}
|
|
2690
1963
|
return deserializeAws_json1_1ICD10CMAttribute(entry, context);
|
|
2691
1964
|
});
|
|
1965
|
+
return retVal;
|
|
2692
1966
|
};
|
|
2693
1967
|
const deserializeAws_json1_1ICD10CMConcept = (output, context) => {
|
|
2694
1968
|
return {
|
|
@@ -2698,7 +1972,7 @@ const deserializeAws_json1_1ICD10CMConcept = (output, context) => {
|
|
|
2698
1972
|
};
|
|
2699
1973
|
};
|
|
2700
1974
|
const deserializeAws_json1_1ICD10CMConceptList = (output, context) => {
|
|
2701
|
-
|
|
1975
|
+
const retVal = (output || [])
|
|
2702
1976
|
.filter((e) => e != null)
|
|
2703
1977
|
.map((entry) => {
|
|
2704
1978
|
if (entry === null) {
|
|
@@ -2706,6 +1980,7 @@ const deserializeAws_json1_1ICD10CMConceptList = (output, context) => {
|
|
|
2706
1980
|
}
|
|
2707
1981
|
return deserializeAws_json1_1ICD10CMConcept(entry, context);
|
|
2708
1982
|
});
|
|
1983
|
+
return retVal;
|
|
2709
1984
|
};
|
|
2710
1985
|
const deserializeAws_json1_1ICD10CMEntity = (output, context) => {
|
|
2711
1986
|
return {
|
|
@@ -2728,7 +2003,7 @@ const deserializeAws_json1_1ICD10CMEntity = (output, context) => {
|
|
|
2728
2003
|
};
|
|
2729
2004
|
};
|
|
2730
2005
|
const deserializeAws_json1_1ICD10CMEntityList = (output, context) => {
|
|
2731
|
-
|
|
2006
|
+
const retVal = (output || [])
|
|
2732
2007
|
.filter((e) => e != null)
|
|
2733
2008
|
.map((entry) => {
|
|
2734
2009
|
if (entry === null) {
|
|
@@ -2736,6 +2011,7 @@ const deserializeAws_json1_1ICD10CMEntityList = (output, context) => {
|
|
|
2736
2011
|
}
|
|
2737
2012
|
return deserializeAws_json1_1ICD10CMEntity(entry, context);
|
|
2738
2013
|
});
|
|
2014
|
+
return retVal;
|
|
2739
2015
|
};
|
|
2740
2016
|
const deserializeAws_json1_1ICD10CMTrait = (output, context) => {
|
|
2741
2017
|
return {
|
|
@@ -2744,7 +2020,7 @@ const deserializeAws_json1_1ICD10CMTrait = (output, context) => {
|
|
|
2744
2020
|
};
|
|
2745
2021
|
};
|
|
2746
2022
|
const deserializeAws_json1_1ICD10CMTraitList = (output, context) => {
|
|
2747
|
-
|
|
2023
|
+
const retVal = (output || [])
|
|
2748
2024
|
.filter((e) => e != null)
|
|
2749
2025
|
.map((entry) => {
|
|
2750
2026
|
if (entry === null) {
|
|
@@ -2752,6 +2028,7 @@ const deserializeAws_json1_1ICD10CMTraitList = (output, context) => {
|
|
|
2752
2028
|
}
|
|
2753
2029
|
return deserializeAws_json1_1ICD10CMTrait(entry, context);
|
|
2754
2030
|
});
|
|
2031
|
+
return retVal;
|
|
2755
2032
|
};
|
|
2756
2033
|
const deserializeAws_json1_1InferICD10CMResponse = (output, context) => {
|
|
2757
2034
|
return {
|
|
@@ -2878,7 +2155,7 @@ const deserializeAws_json1_1RxNormAttribute = (output, context) => {
|
|
|
2878
2155
|
};
|
|
2879
2156
|
};
|
|
2880
2157
|
const deserializeAws_json1_1RxNormAttributeList = (output, context) => {
|
|
2881
|
-
|
|
2158
|
+
const retVal = (output || [])
|
|
2882
2159
|
.filter((e) => e != null)
|
|
2883
2160
|
.map((entry) => {
|
|
2884
2161
|
if (entry === null) {
|
|
@@ -2886,6 +2163,7 @@ const deserializeAws_json1_1RxNormAttributeList = (output, context) => {
|
|
|
2886
2163
|
}
|
|
2887
2164
|
return deserializeAws_json1_1RxNormAttribute(entry, context);
|
|
2888
2165
|
});
|
|
2166
|
+
return retVal;
|
|
2889
2167
|
};
|
|
2890
2168
|
const deserializeAws_json1_1RxNormConcept = (output, context) => {
|
|
2891
2169
|
return {
|
|
@@ -2895,7 +2173,7 @@ const deserializeAws_json1_1RxNormConcept = (output, context) => {
|
|
|
2895
2173
|
};
|
|
2896
2174
|
};
|
|
2897
2175
|
const deserializeAws_json1_1RxNormConceptList = (output, context) => {
|
|
2898
|
-
|
|
2176
|
+
const retVal = (output || [])
|
|
2899
2177
|
.filter((e) => e != null)
|
|
2900
2178
|
.map((entry) => {
|
|
2901
2179
|
if (entry === null) {
|
|
@@ -2903,6 +2181,7 @@ const deserializeAws_json1_1RxNormConceptList = (output, context) => {
|
|
|
2903
2181
|
}
|
|
2904
2182
|
return deserializeAws_json1_1RxNormConcept(entry, context);
|
|
2905
2183
|
});
|
|
2184
|
+
return retVal;
|
|
2906
2185
|
};
|
|
2907
2186
|
const deserializeAws_json1_1RxNormEntity = (output, context) => {
|
|
2908
2187
|
return {
|
|
@@ -2925,7 +2204,7 @@ const deserializeAws_json1_1RxNormEntity = (output, context) => {
|
|
|
2925
2204
|
};
|
|
2926
2205
|
};
|
|
2927
2206
|
const deserializeAws_json1_1RxNormEntityList = (output, context) => {
|
|
2928
|
-
|
|
2207
|
+
const retVal = (output || [])
|
|
2929
2208
|
.filter((e) => e != null)
|
|
2930
2209
|
.map((entry) => {
|
|
2931
2210
|
if (entry === null) {
|
|
@@ -2933,6 +2212,7 @@ const deserializeAws_json1_1RxNormEntityList = (output, context) => {
|
|
|
2933
2212
|
}
|
|
2934
2213
|
return deserializeAws_json1_1RxNormEntity(entry, context);
|
|
2935
2214
|
});
|
|
2215
|
+
return retVal;
|
|
2936
2216
|
};
|
|
2937
2217
|
const deserializeAws_json1_1RxNormTrait = (output, context) => {
|
|
2938
2218
|
return {
|
|
@@ -2941,7 +2221,7 @@ const deserializeAws_json1_1RxNormTrait = (output, context) => {
|
|
|
2941
2221
|
};
|
|
2942
2222
|
};
|
|
2943
2223
|
const deserializeAws_json1_1RxNormTraitList = (output, context) => {
|
|
2944
|
-
|
|
2224
|
+
const retVal = (output || [])
|
|
2945
2225
|
.filter((e) => e != null)
|
|
2946
2226
|
.map((entry) => {
|
|
2947
2227
|
if (entry === null) {
|
|
@@ -2949,6 +2229,7 @@ const deserializeAws_json1_1RxNormTraitList = (output, context) => {
|
|
|
2949
2229
|
}
|
|
2950
2230
|
return deserializeAws_json1_1RxNormTrait(entry, context);
|
|
2951
2231
|
});
|
|
2232
|
+
return retVal;
|
|
2952
2233
|
};
|
|
2953
2234
|
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
2954
2235
|
return {
|
|
@@ -2975,7 +2256,7 @@ const deserializeAws_json1_1SNOMEDCTAttribute = (output, context) => {
|
|
|
2975
2256
|
};
|
|
2976
2257
|
};
|
|
2977
2258
|
const deserializeAws_json1_1SNOMEDCTAttributeList = (output, context) => {
|
|
2978
|
-
|
|
2259
|
+
const retVal = (output || [])
|
|
2979
2260
|
.filter((e) => e != null)
|
|
2980
2261
|
.map((entry) => {
|
|
2981
2262
|
if (entry === null) {
|
|
@@ -2983,6 +2264,7 @@ const deserializeAws_json1_1SNOMEDCTAttributeList = (output, context) => {
|
|
|
2983
2264
|
}
|
|
2984
2265
|
return deserializeAws_json1_1SNOMEDCTAttribute(entry, context);
|
|
2985
2266
|
});
|
|
2267
|
+
return retVal;
|
|
2986
2268
|
};
|
|
2987
2269
|
const deserializeAws_json1_1SNOMEDCTConcept = (output, context) => {
|
|
2988
2270
|
return {
|
|
@@ -2992,7 +2274,7 @@ const deserializeAws_json1_1SNOMEDCTConcept = (output, context) => {
|
|
|
2992
2274
|
};
|
|
2993
2275
|
};
|
|
2994
2276
|
const deserializeAws_json1_1SNOMEDCTConceptList = (output, context) => {
|
|
2995
|
-
|
|
2277
|
+
const retVal = (output || [])
|
|
2996
2278
|
.filter((e) => e != null)
|
|
2997
2279
|
.map((entry) => {
|
|
2998
2280
|
if (entry === null) {
|
|
@@ -3000,6 +2282,7 @@ const deserializeAws_json1_1SNOMEDCTConceptList = (output, context) => {
|
|
|
3000
2282
|
}
|
|
3001
2283
|
return deserializeAws_json1_1SNOMEDCTConcept(entry, context);
|
|
3002
2284
|
});
|
|
2285
|
+
return retVal;
|
|
3003
2286
|
};
|
|
3004
2287
|
const deserializeAws_json1_1SNOMEDCTDetails = (output, context) => {
|
|
3005
2288
|
return {
|
|
@@ -3029,7 +2312,7 @@ const deserializeAws_json1_1SNOMEDCTEntity = (output, context) => {
|
|
|
3029
2312
|
};
|
|
3030
2313
|
};
|
|
3031
2314
|
const deserializeAws_json1_1SNOMEDCTEntityList = (output, context) => {
|
|
3032
|
-
|
|
2315
|
+
const retVal = (output || [])
|
|
3033
2316
|
.filter((e) => e != null)
|
|
3034
2317
|
.map((entry) => {
|
|
3035
2318
|
if (entry === null) {
|
|
@@ -3037,6 +2320,7 @@ const deserializeAws_json1_1SNOMEDCTEntityList = (output, context) => {
|
|
|
3037
2320
|
}
|
|
3038
2321
|
return deserializeAws_json1_1SNOMEDCTEntity(entry, context);
|
|
3039
2322
|
});
|
|
2323
|
+
return retVal;
|
|
3040
2324
|
};
|
|
3041
2325
|
const deserializeAws_json1_1SNOMEDCTTrait = (output, context) => {
|
|
3042
2326
|
return {
|
|
@@ -3045,7 +2329,7 @@ const deserializeAws_json1_1SNOMEDCTTrait = (output, context) => {
|
|
|
3045
2329
|
};
|
|
3046
2330
|
};
|
|
3047
2331
|
const deserializeAws_json1_1SNOMEDCTTraitList = (output, context) => {
|
|
3048
|
-
|
|
2332
|
+
const retVal = (output || [])
|
|
3049
2333
|
.filter((e) => e != null)
|
|
3050
2334
|
.map((entry) => {
|
|
3051
2335
|
if (entry === null) {
|
|
@@ -3053,6 +2337,7 @@ const deserializeAws_json1_1SNOMEDCTTraitList = (output, context) => {
|
|
|
3053
2337
|
}
|
|
3054
2338
|
return deserializeAws_json1_1SNOMEDCTTrait(entry, context);
|
|
3055
2339
|
});
|
|
2340
|
+
return retVal;
|
|
3056
2341
|
};
|
|
3057
2342
|
const deserializeAws_json1_1StartEntitiesDetectionV2JobResponse = (output, context) => {
|
|
3058
2343
|
return {
|
|
@@ -3121,7 +2406,7 @@ const deserializeAws_json1_1Trait = (output, context) => {
|
|
|
3121
2406
|
};
|
|
3122
2407
|
};
|
|
3123
2408
|
const deserializeAws_json1_1TraitList = (output, context) => {
|
|
3124
|
-
|
|
2409
|
+
const retVal = (output || [])
|
|
3125
2410
|
.filter((e) => e != null)
|
|
3126
2411
|
.map((entry) => {
|
|
3127
2412
|
if (entry === null) {
|
|
@@ -3129,6 +2414,7 @@ const deserializeAws_json1_1TraitList = (output, context) => {
|
|
|
3129
2414
|
}
|
|
3130
2415
|
return deserializeAws_json1_1Trait(entry, context);
|
|
3131
2416
|
});
|
|
2417
|
+
return retVal;
|
|
3132
2418
|
};
|
|
3133
2419
|
const deserializeAws_json1_1UnmappedAttribute = (output, context) => {
|
|
3134
2420
|
return {
|
|
@@ -3139,7 +2425,7 @@ const deserializeAws_json1_1UnmappedAttribute = (output, context) => {
|
|
|
3139
2425
|
};
|
|
3140
2426
|
};
|
|
3141
2427
|
const deserializeAws_json1_1UnmappedAttributeList = (output, context) => {
|
|
3142
|
-
|
|
2428
|
+
const retVal = (output || [])
|
|
3143
2429
|
.filter((e) => e != null)
|
|
3144
2430
|
.map((entry) => {
|
|
3145
2431
|
if (entry === null) {
|
|
@@ -3147,6 +2433,7 @@ const deserializeAws_json1_1UnmappedAttributeList = (output, context) => {
|
|
|
3147
2433
|
}
|
|
3148
2434
|
return deserializeAws_json1_1UnmappedAttribute(entry, context);
|
|
3149
2435
|
});
|
|
2436
|
+
return retVal;
|
|
3150
2437
|
};
|
|
3151
2438
|
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
3152
2439
|
return {
|