@aws-sdk/client-comprehendmedical 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +2 -2
- package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeSNOMEDCTInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/DetectEntitiesCommand.js +2 -2
- package/dist-cjs/commands/DetectEntitiesV2Command.js +2 -2
- package/dist-cjs/commands/DetectPHICommand.js +2 -2
- package/dist-cjs/commands/InferICD10CMCommand.js +2 -2
- package/dist-cjs/commands/InferRxNormCommand.js +2 -2
- package/dist-cjs/commands/InferSNOMEDCTCommand.js +2 -2
- package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +2 -2
- package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +2 -2
- package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +2 -2
- package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +2 -2
- package/dist-cjs/commands/ListSNOMEDCTInferenceJobsCommand.js +2 -2
- package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +2 -2
- package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/StartPHIDetectionJobCommand.js +2 -2
- package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/StartSNOMEDCTInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +2 -2
- package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/StopPHIDetectionJobCommand.js +2 -2
- package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +2 -2
- package/dist-cjs/commands/StopSNOMEDCTInferenceJobCommand.js +2 -2
- package/dist-cjs/models/models_0.js +299 -447
- package/dist-cjs/protocols/Aws_json1_1.js +130 -208
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +3 -3
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +3 -3
- package/dist-es/commands/DescribePHIDetectionJobCommand.js +3 -3
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +3 -3
- package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +3 -3
- package/dist-es/commands/DetectEntitiesCommand.js +3 -3
- package/dist-es/commands/DetectEntitiesV2Command.js +3 -3
- package/dist-es/commands/DetectPHICommand.js +3 -3
- package/dist-es/commands/InferICD10CMCommand.js +3 -3
- package/dist-es/commands/InferRxNormCommand.js +3 -3
- package/dist-es/commands/InferSNOMEDCTCommand.js +3 -3
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +3 -3
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +3 -3
- package/dist-es/commands/ListPHIDetectionJobsCommand.js +3 -3
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js +3 -3
- package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +3 -3
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +3 -3
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js +3 -3
- package/dist-es/commands/StartPHIDetectionJobCommand.js +3 -3
- package/dist-es/commands/StartRxNormInferenceJobCommand.js +3 -3
- package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +3 -3
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +3 -3
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js +3 -3
- package/dist-es/commands/StopPHIDetectionJobCommand.js +3 -3
- package/dist-es/commands/StopRxNormInferenceJobCommand.js +3 -3
- package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +3 -3
- package/dist-es/models/models_0.js +74 -296
- package/dist-es/protocols/Aws_json1_1.js +209 -209
- package/dist-types/models/models_0.d.ts +296 -444
- package/dist-types/ts3.4/models/models_0.d.ts +148 -296
- package/package.json +6 -6
|
@@ -286,7 +286,6 @@ const deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError = async (
|
|
|
286
286
|
...output,
|
|
287
287
|
body: await parseBody(output.body, context),
|
|
288
288
|
};
|
|
289
|
-
let response;
|
|
290
289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
290
|
switch (errorCode) {
|
|
292
291
|
case "InternalServerException":
|
|
@@ -303,14 +302,12 @@ const deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError = async (
|
|
|
303
302
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
304
303
|
default:
|
|
305
304
|
const parsedBody = parsedOutput.body;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
$metadata,
|
|
305
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
306
|
+
output,
|
|
307
|
+
parsedBody,
|
|
308
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
309
|
+
errorCode,
|
|
312
310
|
});
|
|
313
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
314
311
|
}
|
|
315
312
|
};
|
|
316
313
|
const deserializeAws_json1_1DescribeICD10CMInferenceJobCommand = async (output, context) => {
|
|
@@ -332,7 +329,6 @@ const deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError = async (out
|
|
|
332
329
|
...output,
|
|
333
330
|
body: await parseBody(output.body, context),
|
|
334
331
|
};
|
|
335
|
-
let response;
|
|
336
332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
333
|
switch (errorCode) {
|
|
338
334
|
case "InternalServerException":
|
|
@@ -349,14 +345,12 @@ const deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError = async (out
|
|
|
349
345
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
350
346
|
default:
|
|
351
347
|
const parsedBody = parsedOutput.body;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
$metadata,
|
|
348
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
349
|
+
output,
|
|
350
|
+
parsedBody,
|
|
351
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
352
|
+
errorCode,
|
|
358
353
|
});
|
|
359
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
360
354
|
}
|
|
361
355
|
};
|
|
362
356
|
const deserializeAws_json1_1DescribePHIDetectionJobCommand = async (output, context) => {
|
|
@@ -378,7 +372,6 @@ const deserializeAws_json1_1DescribePHIDetectionJobCommandError = async (output,
|
|
|
378
372
|
...output,
|
|
379
373
|
body: await parseBody(output.body, context),
|
|
380
374
|
};
|
|
381
|
-
let response;
|
|
382
375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
376
|
switch (errorCode) {
|
|
384
377
|
case "InternalServerException":
|
|
@@ -395,14 +388,12 @@ const deserializeAws_json1_1DescribePHIDetectionJobCommandError = async (output,
|
|
|
395
388
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
396
389
|
default:
|
|
397
390
|
const parsedBody = parsedOutput.body;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
$metadata,
|
|
391
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
392
|
+
output,
|
|
393
|
+
parsedBody,
|
|
394
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
395
|
+
errorCode,
|
|
404
396
|
});
|
|
405
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
406
397
|
}
|
|
407
398
|
};
|
|
408
399
|
const deserializeAws_json1_1DescribeRxNormInferenceJobCommand = async (output, context) => {
|
|
@@ -424,7 +415,6 @@ const deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = async (outp
|
|
|
424
415
|
...output,
|
|
425
416
|
body: await parseBody(output.body, context),
|
|
426
417
|
};
|
|
427
|
-
let response;
|
|
428
418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
419
|
switch (errorCode) {
|
|
430
420
|
case "InternalServerException":
|
|
@@ -441,14 +431,12 @@ const deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = async (outp
|
|
|
441
431
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
442
432
|
default:
|
|
443
433
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
$metadata,
|
|
434
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
435
|
+
output,
|
|
436
|
+
parsedBody,
|
|
437
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
438
|
+
errorCode,
|
|
450
439
|
});
|
|
451
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
452
440
|
}
|
|
453
441
|
};
|
|
454
442
|
const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
@@ -470,7 +458,6 @@ const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = async (ou
|
|
|
470
458
|
...output,
|
|
471
459
|
body: await parseBody(output.body, context),
|
|
472
460
|
};
|
|
473
|
-
let response;
|
|
474
461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
462
|
switch (errorCode) {
|
|
476
463
|
case "InternalServerException":
|
|
@@ -487,14 +474,12 @@ const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = async (ou
|
|
|
487
474
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
488
475
|
default:
|
|
489
476
|
const parsedBody = parsedOutput.body;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
$metadata,
|
|
477
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
478
|
+
output,
|
|
479
|
+
parsedBody,
|
|
480
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
481
|
+
errorCode,
|
|
496
482
|
});
|
|
497
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
498
483
|
}
|
|
499
484
|
};
|
|
500
485
|
const deserializeAws_json1_1DetectEntitiesCommand = async (output, context) => {
|
|
@@ -516,7 +501,6 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
516
501
|
...output,
|
|
517
502
|
body: await parseBody(output.body, context),
|
|
518
503
|
};
|
|
519
|
-
let response;
|
|
520
504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
505
|
switch (errorCode) {
|
|
522
506
|
case "InternalServerException":
|
|
@@ -539,14 +523,12 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
539
523
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
540
524
|
default:
|
|
541
525
|
const parsedBody = parsedOutput.body;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
$metadata,
|
|
526
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
527
|
+
output,
|
|
528
|
+
parsedBody,
|
|
529
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
530
|
+
errorCode,
|
|
548
531
|
});
|
|
549
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
550
532
|
}
|
|
551
533
|
};
|
|
552
534
|
const deserializeAws_json1_1DetectEntitiesV2Command = async (output, context) => {
|
|
@@ -568,7 +550,6 @@ const deserializeAws_json1_1DetectEntitiesV2CommandError = async (output, contex
|
|
|
568
550
|
...output,
|
|
569
551
|
body: await parseBody(output.body, context),
|
|
570
552
|
};
|
|
571
|
-
let response;
|
|
572
553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
554
|
switch (errorCode) {
|
|
574
555
|
case "InternalServerException":
|
|
@@ -591,14 +572,12 @@ const deserializeAws_json1_1DetectEntitiesV2CommandError = async (output, contex
|
|
|
591
572
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
592
573
|
default:
|
|
593
574
|
const parsedBody = parsedOutput.body;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
$metadata,
|
|
575
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
576
|
+
output,
|
|
577
|
+
parsedBody,
|
|
578
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
579
|
+
errorCode,
|
|
600
580
|
});
|
|
601
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
602
581
|
}
|
|
603
582
|
};
|
|
604
583
|
const deserializeAws_json1_1DetectPHICommand = async (output, context) => {
|
|
@@ -620,7 +599,6 @@ const deserializeAws_json1_1DetectPHICommandError = async (output, context) => {
|
|
|
620
599
|
...output,
|
|
621
600
|
body: await parseBody(output.body, context),
|
|
622
601
|
};
|
|
623
|
-
let response;
|
|
624
602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
603
|
switch (errorCode) {
|
|
626
604
|
case "InternalServerException":
|
|
@@ -643,14 +621,12 @@ const deserializeAws_json1_1DetectPHICommandError = async (output, context) => {
|
|
|
643
621
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
644
622
|
default:
|
|
645
623
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
$metadata,
|
|
624
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
625
|
+
output,
|
|
626
|
+
parsedBody,
|
|
627
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
628
|
+
errorCode,
|
|
652
629
|
});
|
|
653
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
654
630
|
}
|
|
655
631
|
};
|
|
656
632
|
const deserializeAws_json1_1InferICD10CMCommand = async (output, context) => {
|
|
@@ -672,7 +648,6 @@ const deserializeAws_json1_1InferICD10CMCommandError = async (output, context) =
|
|
|
672
648
|
...output,
|
|
673
649
|
body: await parseBody(output.body, context),
|
|
674
650
|
};
|
|
675
|
-
let response;
|
|
676
651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
652
|
switch (errorCode) {
|
|
678
653
|
case "InternalServerException":
|
|
@@ -695,14 +670,12 @@ const deserializeAws_json1_1InferICD10CMCommandError = async (output, context) =
|
|
|
695
670
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
696
671
|
default:
|
|
697
672
|
const parsedBody = parsedOutput.body;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
$metadata,
|
|
673
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
674
|
+
output,
|
|
675
|
+
parsedBody,
|
|
676
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
677
|
+
errorCode,
|
|
704
678
|
});
|
|
705
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
706
679
|
}
|
|
707
680
|
};
|
|
708
681
|
const deserializeAws_json1_1InferRxNormCommand = async (output, context) => {
|
|
@@ -724,7 +697,6 @@ const deserializeAws_json1_1InferRxNormCommandError = async (output, context) =>
|
|
|
724
697
|
...output,
|
|
725
698
|
body: await parseBody(output.body, context),
|
|
726
699
|
};
|
|
727
|
-
let response;
|
|
728
700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
701
|
switch (errorCode) {
|
|
730
702
|
case "InternalServerException":
|
|
@@ -747,14 +719,12 @@ const deserializeAws_json1_1InferRxNormCommandError = async (output, context) =>
|
|
|
747
719
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
748
720
|
default:
|
|
749
721
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
$metadata,
|
|
722
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
723
|
+
output,
|
|
724
|
+
parsedBody,
|
|
725
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
726
|
+
errorCode,
|
|
756
727
|
});
|
|
757
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
758
728
|
}
|
|
759
729
|
};
|
|
760
730
|
const deserializeAws_json1_1InferSNOMEDCTCommand = async (output, context) => {
|
|
@@ -776,7 +746,6 @@ const deserializeAws_json1_1InferSNOMEDCTCommandError = async (output, context)
|
|
|
776
746
|
...output,
|
|
777
747
|
body: await parseBody(output.body, context),
|
|
778
748
|
};
|
|
779
|
-
let response;
|
|
780
749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
750
|
switch (errorCode) {
|
|
782
751
|
case "InternalServerException":
|
|
@@ -799,14 +768,12 @@ const deserializeAws_json1_1InferSNOMEDCTCommandError = async (output, context)
|
|
|
799
768
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
800
769
|
default:
|
|
801
770
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
$metadata,
|
|
771
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
772
|
+
output,
|
|
773
|
+
parsedBody,
|
|
774
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
775
|
+
errorCode,
|
|
808
776
|
});
|
|
809
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
810
777
|
}
|
|
811
778
|
};
|
|
812
779
|
const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommand = async (output, context) => {
|
|
@@ -828,7 +795,6 @@ const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError = async (out
|
|
|
828
795
|
...output,
|
|
829
796
|
body: await parseBody(output.body, context),
|
|
830
797
|
};
|
|
831
|
-
let response;
|
|
832
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
799
|
switch (errorCode) {
|
|
834
800
|
case "InternalServerException":
|
|
@@ -845,14 +811,12 @@ const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError = async (out
|
|
|
845
811
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
846
812
|
default:
|
|
847
813
|
const parsedBody = parsedOutput.body;
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
$metadata,
|
|
814
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
818
|
+
errorCode,
|
|
854
819
|
});
|
|
855
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
856
820
|
}
|
|
857
821
|
};
|
|
858
822
|
const deserializeAws_json1_1ListICD10CMInferenceJobsCommand = async (output, context) => {
|
|
@@ -874,7 +838,6 @@ const deserializeAws_json1_1ListICD10CMInferenceJobsCommandError = async (output
|
|
|
874
838
|
...output,
|
|
875
839
|
body: await parseBody(output.body, context),
|
|
876
840
|
};
|
|
877
|
-
let response;
|
|
878
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
842
|
switch (errorCode) {
|
|
880
843
|
case "InternalServerException":
|
|
@@ -891,14 +854,12 @@ const deserializeAws_json1_1ListICD10CMInferenceJobsCommandError = async (output
|
|
|
891
854
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
892
855
|
default:
|
|
893
856
|
const parsedBody = parsedOutput.body;
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
$metadata,
|
|
857
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
858
|
+
output,
|
|
859
|
+
parsedBody,
|
|
860
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
861
|
+
errorCode,
|
|
900
862
|
});
|
|
901
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
902
863
|
}
|
|
903
864
|
};
|
|
904
865
|
const deserializeAws_json1_1ListPHIDetectionJobsCommand = async (output, context) => {
|
|
@@ -920,7 +881,6 @@ const deserializeAws_json1_1ListPHIDetectionJobsCommandError = async (output, co
|
|
|
920
881
|
...output,
|
|
921
882
|
body: await parseBody(output.body, context),
|
|
922
883
|
};
|
|
923
|
-
let response;
|
|
924
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
885
|
switch (errorCode) {
|
|
926
886
|
case "InternalServerException":
|
|
@@ -937,14 +897,12 @@ const deserializeAws_json1_1ListPHIDetectionJobsCommandError = async (output, co
|
|
|
937
897
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
938
898
|
default:
|
|
939
899
|
const parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
$metadata,
|
|
900
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
901
|
+
output,
|
|
902
|
+
parsedBody,
|
|
903
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
904
|
+
errorCode,
|
|
946
905
|
});
|
|
947
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
948
906
|
}
|
|
949
907
|
};
|
|
950
908
|
const deserializeAws_json1_1ListRxNormInferenceJobsCommand = async (output, context) => {
|
|
@@ -966,7 +924,6 @@ const deserializeAws_json1_1ListRxNormInferenceJobsCommandError = async (output,
|
|
|
966
924
|
...output,
|
|
967
925
|
body: await parseBody(output.body, context),
|
|
968
926
|
};
|
|
969
|
-
let response;
|
|
970
927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
928
|
switch (errorCode) {
|
|
972
929
|
case "InternalServerException":
|
|
@@ -983,14 +940,12 @@ const deserializeAws_json1_1ListRxNormInferenceJobsCommandError = async (output,
|
|
|
983
940
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
984
941
|
default:
|
|
985
942
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
$metadata,
|
|
943
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
944
|
+
output,
|
|
945
|
+
parsedBody,
|
|
946
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
947
|
+
errorCode,
|
|
992
948
|
});
|
|
993
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
994
949
|
}
|
|
995
950
|
};
|
|
996
951
|
const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = async (output, context) => {
|
|
@@ -1012,7 +967,6 @@ const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = async (outpu
|
|
|
1012
967
|
...output,
|
|
1013
968
|
body: await parseBody(output.body, context),
|
|
1014
969
|
};
|
|
1015
|
-
let response;
|
|
1016
970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1017
971
|
switch (errorCode) {
|
|
1018
972
|
case "InternalServerException":
|
|
@@ -1029,14 +983,12 @@ const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = async (outpu
|
|
|
1029
983
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1030
984
|
default:
|
|
1031
985
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
$metadata,
|
|
986
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
987
|
+
output,
|
|
988
|
+
parsedBody,
|
|
989
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
990
|
+
errorCode,
|
|
1038
991
|
});
|
|
1039
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1040
992
|
}
|
|
1041
993
|
};
|
|
1042
994
|
const deserializeAws_json1_1StartEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
@@ -1058,7 +1010,6 @@ const deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = async (out
|
|
|
1058
1010
|
...output,
|
|
1059
1011
|
body: await parseBody(output.body, context),
|
|
1060
1012
|
};
|
|
1061
|
-
let response;
|
|
1062
1013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1014
|
switch (errorCode) {
|
|
1064
1015
|
case "InternalServerException":
|
|
@@ -1075,14 +1026,12 @@ const deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = async (out
|
|
|
1075
1026
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1076
1027
|
default:
|
|
1077
1028
|
const parsedBody = parsedOutput.body;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
$metadata,
|
|
1029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1030
|
+
output,
|
|
1031
|
+
parsedBody,
|
|
1032
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1033
|
+
errorCode,
|
|
1084
1034
|
});
|
|
1085
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1086
1035
|
}
|
|
1087
1036
|
};
|
|
1088
1037
|
const deserializeAws_json1_1StartICD10CMInferenceJobCommand = async (output, context) => {
|
|
@@ -1104,7 +1053,6 @@ const deserializeAws_json1_1StartICD10CMInferenceJobCommandError = async (output
|
|
|
1104
1053
|
...output,
|
|
1105
1054
|
body: await parseBody(output.body, context),
|
|
1106
1055
|
};
|
|
1107
|
-
let response;
|
|
1108
1056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
1057
|
switch (errorCode) {
|
|
1110
1058
|
case "InternalServerException":
|
|
@@ -1121,14 +1069,12 @@ const deserializeAws_json1_1StartICD10CMInferenceJobCommandError = async (output
|
|
|
1121
1069
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1122
1070
|
default:
|
|
1123
1071
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
$metadata,
|
|
1072
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1073
|
+
output,
|
|
1074
|
+
parsedBody,
|
|
1075
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1076
|
+
errorCode,
|
|
1130
1077
|
});
|
|
1131
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1132
1078
|
}
|
|
1133
1079
|
};
|
|
1134
1080
|
const deserializeAws_json1_1StartPHIDetectionJobCommand = async (output, context) => {
|
|
@@ -1150,7 +1096,6 @@ const deserializeAws_json1_1StartPHIDetectionJobCommandError = async (output, co
|
|
|
1150
1096
|
...output,
|
|
1151
1097
|
body: await parseBody(output.body, context),
|
|
1152
1098
|
};
|
|
1153
|
-
let response;
|
|
1154
1099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
1100
|
switch (errorCode) {
|
|
1156
1101
|
case "InternalServerException":
|
|
@@ -1167,14 +1112,12 @@ const deserializeAws_json1_1StartPHIDetectionJobCommandError = async (output, co
|
|
|
1167
1112
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1168
1113
|
default:
|
|
1169
1114
|
const parsedBody = parsedOutput.body;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
$metadata,
|
|
1115
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1116
|
+
output,
|
|
1117
|
+
parsedBody,
|
|
1118
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1119
|
+
errorCode,
|
|
1176
1120
|
});
|
|
1177
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1178
1121
|
}
|
|
1179
1122
|
};
|
|
1180
1123
|
const deserializeAws_json1_1StartRxNormInferenceJobCommand = async (output, context) => {
|
|
@@ -1196,7 +1139,6 @@ const deserializeAws_json1_1StartRxNormInferenceJobCommandError = async (output,
|
|
|
1196
1139
|
...output,
|
|
1197
1140
|
body: await parseBody(output.body, context),
|
|
1198
1141
|
};
|
|
1199
|
-
let response;
|
|
1200
1142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1143
|
switch (errorCode) {
|
|
1202
1144
|
case "InternalServerException":
|
|
@@ -1213,14 +1155,12 @@ const deserializeAws_json1_1StartRxNormInferenceJobCommandError = async (output,
|
|
|
1213
1155
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1214
1156
|
default:
|
|
1215
1157
|
const parsedBody = parsedOutput.body;
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
$metadata,
|
|
1158
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1162
|
+
errorCode,
|
|
1222
1163
|
});
|
|
1223
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1224
1164
|
}
|
|
1225
1165
|
};
|
|
1226
1166
|
const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
@@ -1242,7 +1182,6 @@ const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = async (outpu
|
|
|
1242
1182
|
...output,
|
|
1243
1183
|
body: await parseBody(output.body, context),
|
|
1244
1184
|
};
|
|
1245
|
-
let response;
|
|
1246
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
1186
|
switch (errorCode) {
|
|
1248
1187
|
case "InternalServerException":
|
|
@@ -1259,14 +1198,12 @@ const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = async (outpu
|
|
|
1259
1198
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1260
1199
|
default:
|
|
1261
1200
|
const parsedBody = parsedOutput.body;
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
$metadata,
|
|
1201
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1202
|
+
output,
|
|
1203
|
+
parsedBody,
|
|
1204
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1205
|
+
errorCode,
|
|
1268
1206
|
});
|
|
1269
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1270
1207
|
}
|
|
1271
1208
|
};
|
|
1272
1209
|
const deserializeAws_json1_1StopEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
@@ -1288,7 +1225,6 @@ const deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = async (outp
|
|
|
1288
1225
|
...output,
|
|
1289
1226
|
body: await parseBody(output.body, context),
|
|
1290
1227
|
};
|
|
1291
|
-
let response;
|
|
1292
1228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1229
|
switch (errorCode) {
|
|
1294
1230
|
case "InternalServerException":
|
|
@@ -1302,14 +1238,12 @@ const deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = async (outp
|
|
|
1302
1238
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1303
1239
|
default:
|
|
1304
1240
|
const parsedBody = parsedOutput.body;
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
$metadata,
|
|
1241
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1242
|
+
output,
|
|
1243
|
+
parsedBody,
|
|
1244
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1245
|
+
errorCode,
|
|
1311
1246
|
});
|
|
1312
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1313
1247
|
}
|
|
1314
1248
|
};
|
|
1315
1249
|
const deserializeAws_json1_1StopICD10CMInferenceJobCommand = async (output, context) => {
|
|
@@ -1331,7 +1265,6 @@ const deserializeAws_json1_1StopICD10CMInferenceJobCommandError = async (output,
|
|
|
1331
1265
|
...output,
|
|
1332
1266
|
body: await parseBody(output.body, context),
|
|
1333
1267
|
};
|
|
1334
|
-
let response;
|
|
1335
1268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1269
|
switch (errorCode) {
|
|
1337
1270
|
case "InternalServerException":
|
|
@@ -1345,14 +1278,12 @@ const deserializeAws_json1_1StopICD10CMInferenceJobCommandError = async (output,
|
|
|
1345
1278
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1346
1279
|
default:
|
|
1347
1280
|
const parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
$metadata,
|
|
1281
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1282
|
+
output,
|
|
1283
|
+
parsedBody,
|
|
1284
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1285
|
+
errorCode,
|
|
1354
1286
|
});
|
|
1355
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1287
|
}
|
|
1357
1288
|
};
|
|
1358
1289
|
const deserializeAws_json1_1StopPHIDetectionJobCommand = async (output, context) => {
|
|
@@ -1374,7 +1305,6 @@ const deserializeAws_json1_1StopPHIDetectionJobCommandError = async (output, con
|
|
|
1374
1305
|
...output,
|
|
1375
1306
|
body: await parseBody(output.body, context),
|
|
1376
1307
|
};
|
|
1377
|
-
let response;
|
|
1378
1308
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1309
|
switch (errorCode) {
|
|
1380
1310
|
case "InternalServerException":
|
|
@@ -1388,14 +1318,12 @@ const deserializeAws_json1_1StopPHIDetectionJobCommandError = async (output, con
|
|
|
1388
1318
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1389
1319
|
default:
|
|
1390
1320
|
const parsedBody = parsedOutput.body;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
$metadata,
|
|
1321
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1322
|
+
output,
|
|
1323
|
+
parsedBody,
|
|
1324
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1325
|
+
errorCode,
|
|
1397
1326
|
});
|
|
1398
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1399
1327
|
}
|
|
1400
1328
|
};
|
|
1401
1329
|
const deserializeAws_json1_1StopRxNormInferenceJobCommand = async (output, context) => {
|
|
@@ -1417,7 +1345,6 @@ const deserializeAws_json1_1StopRxNormInferenceJobCommandError = async (output,
|
|
|
1417
1345
|
...output,
|
|
1418
1346
|
body: await parseBody(output.body, context),
|
|
1419
1347
|
};
|
|
1420
|
-
let response;
|
|
1421
1348
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
1349
|
switch (errorCode) {
|
|
1423
1350
|
case "InternalServerException":
|
|
@@ -1431,14 +1358,12 @@ const deserializeAws_json1_1StopRxNormInferenceJobCommandError = async (output,
|
|
|
1431
1358
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1432
1359
|
default:
|
|
1433
1360
|
const parsedBody = parsedOutput.body;
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
$metadata,
|
|
1361
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1362
|
+
output,
|
|
1363
|
+
parsedBody,
|
|
1364
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1365
|
+
errorCode,
|
|
1440
1366
|
});
|
|
1441
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1442
1367
|
}
|
|
1443
1368
|
};
|
|
1444
1369
|
const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
@@ -1460,7 +1385,6 @@ const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = async (output
|
|
|
1460
1385
|
...output,
|
|
1461
1386
|
body: await parseBody(output.body, context),
|
|
1462
1387
|
};
|
|
1463
|
-
let response;
|
|
1464
1388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1389
|
switch (errorCode) {
|
|
1466
1390
|
case "InternalServerException":
|
|
@@ -1477,14 +1401,12 @@ const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = async (output
|
|
|
1477
1401
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1478
1402
|
default:
|
|
1479
1403
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
$metadata,
|
|
1404
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1405
|
+
output,
|
|
1406
|
+
parsedBody,
|
|
1407
|
+
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1408
|
+
errorCode,
|
|
1486
1409
|
});
|
|
1487
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1488
1410
|
}
|
|
1489
1411
|
};
|
|
1490
1412
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|