@aws-sdk/client-healthlake 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +30 -357
- package/dist-es/protocols/Aws_json1_0.js +29 -356
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -410,7 +410,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
410
410
|
}, "se_UntagResourceCommand");
|
|
411
411
|
var de_CreateFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
412
412
|
if (output.statusCode >= 300) {
|
|
413
|
-
return
|
|
413
|
+
return de_CommandError(output, context);
|
|
414
414
|
}
|
|
415
415
|
const data = await parseBody(output.body, context);
|
|
416
416
|
let contents = {};
|
|
@@ -421,37 +421,9 @@ var de_CreateFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
421
421
|
};
|
|
422
422
|
return response;
|
|
423
423
|
}, "de_CreateFHIRDatastoreCommand");
|
|
424
|
-
var de_CreateFHIRDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
425
|
-
const parsedOutput = {
|
|
426
|
-
...output,
|
|
427
|
-
body: await parseErrorBody(output.body, context)
|
|
428
|
-
};
|
|
429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
430
|
-
switch (errorCode) {
|
|
431
|
-
case "AccessDeniedException":
|
|
432
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
434
|
-
case "InternalServerException":
|
|
435
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
436
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ThrottlingException":
|
|
438
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
439
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
440
|
-
case "ValidationException":
|
|
441
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
443
|
-
default:
|
|
444
|
-
const parsedBody = parsedOutput.body;
|
|
445
|
-
return throwDefaultError({
|
|
446
|
-
output,
|
|
447
|
-
parsedBody,
|
|
448
|
-
errorCode
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
}, "de_CreateFHIRDatastoreCommandError");
|
|
452
424
|
var de_DeleteFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
453
425
|
if (output.statusCode >= 300) {
|
|
454
|
-
return
|
|
426
|
+
return de_CommandError(output, context);
|
|
455
427
|
}
|
|
456
428
|
const data = await parseBody(output.body, context);
|
|
457
429
|
let contents = {};
|
|
@@ -462,43 +434,9 @@ var de_DeleteFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
462
434
|
};
|
|
463
435
|
return response;
|
|
464
436
|
}, "de_DeleteFHIRDatastoreCommand");
|
|
465
|
-
var de_DeleteFHIRDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
466
|
-
const parsedOutput = {
|
|
467
|
-
...output,
|
|
468
|
-
body: await parseErrorBody(output.body, context)
|
|
469
|
-
};
|
|
470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
|
-
switch (errorCode) {
|
|
472
|
-
case "AccessDeniedException":
|
|
473
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
474
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ConflictException":
|
|
476
|
-
case "com.amazonaws.healthlake#ConflictException":
|
|
477
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
478
|
-
case "InternalServerException":
|
|
479
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ResourceNotFoundException":
|
|
482
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ThrottlingException":
|
|
485
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
486
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ValidationException":
|
|
488
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
489
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
490
|
-
default:
|
|
491
|
-
const parsedBody = parsedOutput.body;
|
|
492
|
-
return throwDefaultError({
|
|
493
|
-
output,
|
|
494
|
-
parsedBody,
|
|
495
|
-
errorCode
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
}, "de_DeleteFHIRDatastoreCommandError");
|
|
499
437
|
var de_DescribeFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
500
438
|
if (output.statusCode >= 300) {
|
|
501
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
502
440
|
}
|
|
503
441
|
const data = await parseBody(output.body, context);
|
|
504
442
|
let contents = {};
|
|
@@ -509,37 +447,9 @@ var de_DescribeFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
509
447
|
};
|
|
510
448
|
return response;
|
|
511
449
|
}, "de_DescribeFHIRDatastoreCommand");
|
|
512
|
-
var de_DescribeFHIRDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
513
|
-
const parsedOutput = {
|
|
514
|
-
...output,
|
|
515
|
-
body: await parseErrorBody(output.body, context)
|
|
516
|
-
};
|
|
517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
|
-
switch (errorCode) {
|
|
519
|
-
case "InternalServerException":
|
|
520
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceNotFoundException":
|
|
523
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ThrottlingException":
|
|
526
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
}, "de_DescribeFHIRDatastoreCommandError");
|
|
540
450
|
var de_DescribeFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
541
451
|
if (output.statusCode >= 300) {
|
|
542
|
-
return
|
|
452
|
+
return de_CommandError(output, context);
|
|
543
453
|
}
|
|
544
454
|
const data = await parseBody(output.body, context);
|
|
545
455
|
let contents = {};
|
|
@@ -550,37 +460,9 @@ var de_DescribeFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
550
460
|
};
|
|
551
461
|
return response;
|
|
552
462
|
}, "de_DescribeFHIRExportJobCommand");
|
|
553
|
-
var de_DescribeFHIRExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
554
|
-
const parsedOutput = {
|
|
555
|
-
...output,
|
|
556
|
-
body: await parseErrorBody(output.body, context)
|
|
557
|
-
};
|
|
558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
|
-
switch (errorCode) {
|
|
560
|
-
case "InternalServerException":
|
|
561
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
562
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ResourceNotFoundException":
|
|
564
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
565
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ThrottlingException":
|
|
567
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
568
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ValidationException":
|
|
570
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
571
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
|
-
default:
|
|
573
|
-
const parsedBody = parsedOutput.body;
|
|
574
|
-
return throwDefaultError({
|
|
575
|
-
output,
|
|
576
|
-
parsedBody,
|
|
577
|
-
errorCode
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
}, "de_DescribeFHIRExportJobCommandError");
|
|
581
463
|
var de_DescribeFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
582
464
|
if (output.statusCode >= 300) {
|
|
583
|
-
return
|
|
465
|
+
return de_CommandError(output, context);
|
|
584
466
|
}
|
|
585
467
|
const data = await parseBody(output.body, context);
|
|
586
468
|
let contents = {};
|
|
@@ -591,37 +473,9 @@ var de_DescribeFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
591
473
|
};
|
|
592
474
|
return response;
|
|
593
475
|
}, "de_DescribeFHIRImportJobCommand");
|
|
594
|
-
var de_DescribeFHIRImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context)
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "InternalServerException":
|
|
602
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
604
|
-
case "ResourceNotFoundException":
|
|
605
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
606
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ThrottlingException":
|
|
608
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ValidationException":
|
|
611
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
613
|
-
default:
|
|
614
|
-
const parsedBody = parsedOutput.body;
|
|
615
|
-
return throwDefaultError({
|
|
616
|
-
output,
|
|
617
|
-
parsedBody,
|
|
618
|
-
errorCode
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
}, "de_DescribeFHIRImportJobCommandError");
|
|
622
476
|
var de_ListFHIRDatastoresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
623
477
|
if (output.statusCode >= 300) {
|
|
624
|
-
return
|
|
478
|
+
return de_CommandError(output, context);
|
|
625
479
|
}
|
|
626
480
|
const data = await parseBody(output.body, context);
|
|
627
481
|
let contents = {};
|
|
@@ -632,34 +486,9 @@ var de_ListFHIRDatastoresCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
632
486
|
};
|
|
633
487
|
return response;
|
|
634
488
|
}, "de_ListFHIRDatastoresCommand");
|
|
635
|
-
var de_ListFHIRDatastoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
636
|
-
const parsedOutput = {
|
|
637
|
-
...output,
|
|
638
|
-
body: await parseErrorBody(output.body, context)
|
|
639
|
-
};
|
|
640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
|
-
switch (errorCode) {
|
|
642
|
-
case "InternalServerException":
|
|
643
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ThrottlingException":
|
|
646
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
647
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ValidationException":
|
|
649
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
|
-
default:
|
|
652
|
-
const parsedBody = parsedOutput.body;
|
|
653
|
-
return throwDefaultError({
|
|
654
|
-
output,
|
|
655
|
-
parsedBody,
|
|
656
|
-
errorCode
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
}, "de_ListFHIRDatastoresCommandError");
|
|
660
489
|
var de_ListFHIRExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
661
490
|
if (output.statusCode >= 300) {
|
|
662
|
-
return
|
|
491
|
+
return de_CommandError(output, context);
|
|
663
492
|
}
|
|
664
493
|
const data = await parseBody(output.body, context);
|
|
665
494
|
let contents = {};
|
|
@@ -670,40 +499,9 @@ var de_ListFHIRExportJobsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
670
499
|
};
|
|
671
500
|
return response;
|
|
672
501
|
}, "de_ListFHIRExportJobsCommand");
|
|
673
|
-
var de_ListFHIRExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context)
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "AccessDeniedException":
|
|
681
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalServerException":
|
|
684
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ResourceNotFoundException":
|
|
687
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ThrottlingException":
|
|
690
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
}, "de_ListFHIRExportJobsCommandError");
|
|
704
502
|
var de_ListFHIRImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
503
|
if (output.statusCode >= 300) {
|
|
706
|
-
return
|
|
504
|
+
return de_CommandError(output, context);
|
|
707
505
|
}
|
|
708
506
|
const data = await parseBody(output.body, context);
|
|
709
507
|
let contents = {};
|
|
@@ -714,40 +512,9 @@ var de_ListFHIRImportJobsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
714
512
|
};
|
|
715
513
|
return response;
|
|
716
514
|
}, "de_ListFHIRImportJobsCommand");
|
|
717
|
-
var de_ListFHIRImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context)
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "AccessDeniedException":
|
|
725
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
726
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
727
|
-
case "InternalServerException":
|
|
728
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
729
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ResourceNotFoundException":
|
|
731
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ThrottlingException":
|
|
734
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
735
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
}, "de_ListFHIRImportJobsCommandError");
|
|
748
515
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
516
|
if (output.statusCode >= 300) {
|
|
750
|
-
return
|
|
517
|
+
return de_CommandError(output, context);
|
|
751
518
|
}
|
|
752
519
|
const data = await parseBody(output.body, context);
|
|
753
520
|
let contents = {};
|
|
@@ -758,31 +525,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
758
525
|
};
|
|
759
526
|
return response;
|
|
760
527
|
}, "de_ListTagsForResourceCommand");
|
|
761
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context)
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "ResourceNotFoundException":
|
|
769
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
770
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ValidationException":
|
|
772
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
773
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
774
|
-
default:
|
|
775
|
-
const parsedBody = parsedOutput.body;
|
|
776
|
-
return throwDefaultError({
|
|
777
|
-
output,
|
|
778
|
-
parsedBody,
|
|
779
|
-
errorCode
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
}, "de_ListTagsForResourceCommandError");
|
|
783
528
|
var de_StartFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
529
|
if (output.statusCode >= 300) {
|
|
785
|
-
return
|
|
530
|
+
return de_CommandError(output, context);
|
|
786
531
|
}
|
|
787
532
|
const data = await parseBody(output.body, context);
|
|
788
533
|
let contents = {};
|
|
@@ -793,40 +538,9 @@ var de_StartFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
793
538
|
};
|
|
794
539
|
return response;
|
|
795
540
|
}, "de_StartFHIRExportJobCommand");
|
|
796
|
-
var de_StartFHIRExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
797
|
-
const parsedOutput = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseErrorBody(output.body, context)
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "AccessDeniedException":
|
|
804
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
805
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
806
|
-
case "InternalServerException":
|
|
807
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
808
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ResourceNotFoundException":
|
|
810
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
811
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ThrottlingException":
|
|
813
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
814
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ValidationException":
|
|
816
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
return throwDefaultError({
|
|
821
|
-
output,
|
|
822
|
-
parsedBody,
|
|
823
|
-
errorCode
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
}, "de_StartFHIRExportJobCommandError");
|
|
827
541
|
var de_StartFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
542
|
if (output.statusCode >= 300) {
|
|
829
|
-
return
|
|
543
|
+
return de_CommandError(output, context);
|
|
830
544
|
}
|
|
831
545
|
const data = await parseBody(output.body, context);
|
|
832
546
|
let contents = {};
|
|
@@ -837,40 +551,9 @@ var de_StartFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
837
551
|
};
|
|
838
552
|
return response;
|
|
839
553
|
}, "de_StartFHIRImportJobCommand");
|
|
840
|
-
var de_StartFHIRImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
|
-
const parsedOutput = {
|
|
842
|
-
...output,
|
|
843
|
-
body: await parseErrorBody(output.body, context)
|
|
844
|
-
};
|
|
845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
-
switch (errorCode) {
|
|
847
|
-
case "AccessDeniedException":
|
|
848
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
849
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
850
|
-
case "InternalServerException":
|
|
851
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
852
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ResourceNotFoundException":
|
|
854
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
855
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ThrottlingException":
|
|
857
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
858
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ValidationException":
|
|
860
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
861
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
}, "de_StartFHIRImportJobCommandError");
|
|
871
554
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
555
|
if (output.statusCode >= 300) {
|
|
873
|
-
return
|
|
556
|
+
return de_CommandError(output, context);
|
|
874
557
|
}
|
|
875
558
|
const data = await parseBody(output.body, context);
|
|
876
559
|
let contents = {};
|
|
@@ -881,31 +564,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
881
564
|
};
|
|
882
565
|
return response;
|
|
883
566
|
}, "de_TagResourceCommand");
|
|
884
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context)
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "ResourceNotFoundException":
|
|
892
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ValidationException":
|
|
895
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
896
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
return throwDefaultError({
|
|
900
|
-
output,
|
|
901
|
-
parsedBody,
|
|
902
|
-
errorCode
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
}, "de_TagResourceCommandError");
|
|
906
567
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
568
|
if (output.statusCode >= 300) {
|
|
908
|
-
return
|
|
569
|
+
return de_CommandError(output, context);
|
|
909
570
|
}
|
|
910
571
|
const data = await parseBody(output.body, context);
|
|
911
572
|
let contents = {};
|
|
@@ -916,19 +577,31 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
916
577
|
};
|
|
917
578
|
return response;
|
|
918
579
|
}, "de_UntagResourceCommand");
|
|
919
|
-
var
|
|
580
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
581
|
const parsedOutput = {
|
|
921
582
|
...output,
|
|
922
583
|
body: await parseErrorBody(output.body, context)
|
|
923
584
|
};
|
|
924
585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
586
|
switch (errorCode) {
|
|
926
|
-
case "
|
|
927
|
-
case "com.amazonaws.healthlake#
|
|
928
|
-
throw await
|
|
587
|
+
case "AccessDeniedException":
|
|
588
|
+
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
589
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
590
|
+
case "InternalServerException":
|
|
591
|
+
case "com.amazonaws.healthlake#InternalServerException":
|
|
592
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
593
|
+
case "ThrottlingException":
|
|
594
|
+
case "com.amazonaws.healthlake#ThrottlingException":
|
|
595
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
929
596
|
case "ValidationException":
|
|
930
597
|
case "com.amazonaws.healthlake#ValidationException":
|
|
931
598
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
599
|
+
case "ConflictException":
|
|
600
|
+
case "com.amazonaws.healthlake#ConflictException":
|
|
601
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
602
|
+
case "ResourceNotFoundException":
|
|
603
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
932
605
|
default:
|
|
933
606
|
const parsedBody = parsedOutput.body;
|
|
934
607
|
return throwDefaultError({
|
|
@@ -937,7 +610,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
937
610
|
errorCode
|
|
938
611
|
});
|
|
939
612
|
}
|
|
940
|
-
}, "
|
|
613
|
+
}, "de_CommandError");
|
|
941
614
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
942
615
|
const body = parsedOutput.body;
|
|
943
616
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -84,7 +84,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
84
84
|
};
|
|
85
85
|
export const de_CreateFHIRDatastoreCommand = async (output, context) => {
|
|
86
86
|
if (output.statusCode >= 300) {
|
|
87
|
-
return
|
|
87
|
+
return de_CommandError(output, context);
|
|
88
88
|
}
|
|
89
89
|
const data = await parseBody(output.body, context);
|
|
90
90
|
let contents = {};
|
|
@@ -95,37 +95,9 @@ export const de_CreateFHIRDatastoreCommand = async (output, context) => {
|
|
|
95
95
|
};
|
|
96
96
|
return response;
|
|
97
97
|
};
|
|
98
|
-
const de_CreateFHIRDatastoreCommandError = async (output, context) => {
|
|
99
|
-
const parsedOutput = {
|
|
100
|
-
...output,
|
|
101
|
-
body: await parseErrorBody(output.body, context),
|
|
102
|
-
};
|
|
103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
104
|
-
switch (errorCode) {
|
|
105
|
-
case "AccessDeniedException":
|
|
106
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
108
|
-
case "InternalServerException":
|
|
109
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
111
|
-
case "ThrottlingException":
|
|
112
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
114
|
-
case "ValidationException":
|
|
115
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
117
|
-
default:
|
|
118
|
-
const parsedBody = parsedOutput.body;
|
|
119
|
-
return throwDefaultError({
|
|
120
|
-
output,
|
|
121
|
-
parsedBody,
|
|
122
|
-
errorCode,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
98
|
export const de_DeleteFHIRDatastoreCommand = async (output, context) => {
|
|
127
99
|
if (output.statusCode >= 300) {
|
|
128
|
-
return
|
|
100
|
+
return de_CommandError(output, context);
|
|
129
101
|
}
|
|
130
102
|
const data = await parseBody(output.body, context);
|
|
131
103
|
let contents = {};
|
|
@@ -136,43 +108,9 @@ export const de_DeleteFHIRDatastoreCommand = async (output, context) => {
|
|
|
136
108
|
};
|
|
137
109
|
return response;
|
|
138
110
|
};
|
|
139
|
-
const de_DeleteFHIRDatastoreCommandError = async (output, context) => {
|
|
140
|
-
const parsedOutput = {
|
|
141
|
-
...output,
|
|
142
|
-
body: await parseErrorBody(output.body, context),
|
|
143
|
-
};
|
|
144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
145
|
-
switch (errorCode) {
|
|
146
|
-
case "AccessDeniedException":
|
|
147
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
148
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
149
|
-
case "ConflictException":
|
|
150
|
-
case "com.amazonaws.healthlake#ConflictException":
|
|
151
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
152
|
-
case "InternalServerException":
|
|
153
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
155
|
-
case "ResourceNotFoundException":
|
|
156
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
158
|
-
case "ThrottlingException":
|
|
159
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
161
|
-
case "ValidationException":
|
|
162
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
164
|
-
default:
|
|
165
|
-
const parsedBody = parsedOutput.body;
|
|
166
|
-
return throwDefaultError({
|
|
167
|
-
output,
|
|
168
|
-
parsedBody,
|
|
169
|
-
errorCode,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
111
|
export const de_DescribeFHIRDatastoreCommand = async (output, context) => {
|
|
174
112
|
if (output.statusCode >= 300) {
|
|
175
|
-
return
|
|
113
|
+
return de_CommandError(output, context);
|
|
176
114
|
}
|
|
177
115
|
const data = await parseBody(output.body, context);
|
|
178
116
|
let contents = {};
|
|
@@ -183,37 +121,9 @@ export const de_DescribeFHIRDatastoreCommand = async (output, context) => {
|
|
|
183
121
|
};
|
|
184
122
|
return response;
|
|
185
123
|
};
|
|
186
|
-
const de_DescribeFHIRDatastoreCommandError = async (output, context) => {
|
|
187
|
-
const parsedOutput = {
|
|
188
|
-
...output,
|
|
189
|
-
body: await parseErrorBody(output.body, context),
|
|
190
|
-
};
|
|
191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
-
switch (errorCode) {
|
|
193
|
-
case "InternalServerException":
|
|
194
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
195
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
196
|
-
case "ResourceNotFoundException":
|
|
197
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
198
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
199
|
-
case "ThrottlingException":
|
|
200
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
201
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
202
|
-
case "ValidationException":
|
|
203
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
204
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
205
|
-
default:
|
|
206
|
-
const parsedBody = parsedOutput.body;
|
|
207
|
-
return throwDefaultError({
|
|
208
|
-
output,
|
|
209
|
-
parsedBody,
|
|
210
|
-
errorCode,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
124
|
export const de_DescribeFHIRExportJobCommand = async (output, context) => {
|
|
215
125
|
if (output.statusCode >= 300) {
|
|
216
|
-
return
|
|
126
|
+
return de_CommandError(output, context);
|
|
217
127
|
}
|
|
218
128
|
const data = await parseBody(output.body, context);
|
|
219
129
|
let contents = {};
|
|
@@ -224,37 +134,9 @@ export const de_DescribeFHIRExportJobCommand = async (output, context) => {
|
|
|
224
134
|
};
|
|
225
135
|
return response;
|
|
226
136
|
};
|
|
227
|
-
const de_DescribeFHIRExportJobCommandError = async (output, context) => {
|
|
228
|
-
const parsedOutput = {
|
|
229
|
-
...output,
|
|
230
|
-
body: await parseErrorBody(output.body, context),
|
|
231
|
-
};
|
|
232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
-
switch (errorCode) {
|
|
234
|
-
case "InternalServerException":
|
|
235
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
236
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
237
|
-
case "ResourceNotFoundException":
|
|
238
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
239
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
240
|
-
case "ThrottlingException":
|
|
241
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
242
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
243
|
-
case "ValidationException":
|
|
244
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
245
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
246
|
-
default:
|
|
247
|
-
const parsedBody = parsedOutput.body;
|
|
248
|
-
return throwDefaultError({
|
|
249
|
-
output,
|
|
250
|
-
parsedBody,
|
|
251
|
-
errorCode,
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
137
|
export const de_DescribeFHIRImportJobCommand = async (output, context) => {
|
|
256
138
|
if (output.statusCode >= 300) {
|
|
257
|
-
return
|
|
139
|
+
return de_CommandError(output, context);
|
|
258
140
|
}
|
|
259
141
|
const data = await parseBody(output.body, context);
|
|
260
142
|
let contents = {};
|
|
@@ -265,37 +147,9 @@ export const de_DescribeFHIRImportJobCommand = async (output, context) => {
|
|
|
265
147
|
};
|
|
266
148
|
return response;
|
|
267
149
|
};
|
|
268
|
-
const de_DescribeFHIRImportJobCommandError = async (output, context) => {
|
|
269
|
-
const parsedOutput = {
|
|
270
|
-
...output,
|
|
271
|
-
body: await parseErrorBody(output.body, context),
|
|
272
|
-
};
|
|
273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
274
|
-
switch (errorCode) {
|
|
275
|
-
case "InternalServerException":
|
|
276
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
277
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
278
|
-
case "ResourceNotFoundException":
|
|
279
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
280
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
281
|
-
case "ThrottlingException":
|
|
282
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
283
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
284
|
-
case "ValidationException":
|
|
285
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
286
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
287
|
-
default:
|
|
288
|
-
const parsedBody = parsedOutput.body;
|
|
289
|
-
return throwDefaultError({
|
|
290
|
-
output,
|
|
291
|
-
parsedBody,
|
|
292
|
-
errorCode,
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
150
|
export const de_ListFHIRDatastoresCommand = async (output, context) => {
|
|
297
151
|
if (output.statusCode >= 300) {
|
|
298
|
-
return
|
|
152
|
+
return de_CommandError(output, context);
|
|
299
153
|
}
|
|
300
154
|
const data = await parseBody(output.body, context);
|
|
301
155
|
let contents = {};
|
|
@@ -306,34 +160,9 @@ export const de_ListFHIRDatastoresCommand = async (output, context) => {
|
|
|
306
160
|
};
|
|
307
161
|
return response;
|
|
308
162
|
};
|
|
309
|
-
const de_ListFHIRDatastoresCommandError = async (output, context) => {
|
|
310
|
-
const parsedOutput = {
|
|
311
|
-
...output,
|
|
312
|
-
body: await parseErrorBody(output.body, context),
|
|
313
|
-
};
|
|
314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
|
-
switch (errorCode) {
|
|
316
|
-
case "InternalServerException":
|
|
317
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
318
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ThrottlingException":
|
|
320
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
321
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ValidationException":
|
|
323
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
324
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
163
|
export const de_ListFHIRExportJobsCommand = async (output, context) => {
|
|
335
164
|
if (output.statusCode >= 300) {
|
|
336
|
-
return
|
|
165
|
+
return de_CommandError(output, context);
|
|
337
166
|
}
|
|
338
167
|
const data = await parseBody(output.body, context);
|
|
339
168
|
let contents = {};
|
|
@@ -344,40 +173,9 @@ export const de_ListFHIRExportJobsCommand = async (output, context) => {
|
|
|
344
173
|
};
|
|
345
174
|
return response;
|
|
346
175
|
};
|
|
347
|
-
const de_ListFHIRExportJobsCommandError = async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context),
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "AccessDeniedException":
|
|
355
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
357
|
-
case "InternalServerException":
|
|
358
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
359
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
360
|
-
case "ResourceNotFoundException":
|
|
361
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
362
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ThrottlingException":
|
|
364
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
365
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ValidationException":
|
|
367
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
369
|
-
default:
|
|
370
|
-
const parsedBody = parsedOutput.body;
|
|
371
|
-
return throwDefaultError({
|
|
372
|
-
output,
|
|
373
|
-
parsedBody,
|
|
374
|
-
errorCode,
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
176
|
export const de_ListFHIRImportJobsCommand = async (output, context) => {
|
|
379
177
|
if (output.statusCode >= 300) {
|
|
380
|
-
return
|
|
178
|
+
return de_CommandError(output, context);
|
|
381
179
|
}
|
|
382
180
|
const data = await parseBody(output.body, context);
|
|
383
181
|
let contents = {};
|
|
@@ -388,40 +186,9 @@ export const de_ListFHIRImportJobsCommand = async (output, context) => {
|
|
|
388
186
|
};
|
|
389
187
|
return response;
|
|
390
188
|
};
|
|
391
|
-
const de_ListFHIRImportJobsCommandError = async (output, context) => {
|
|
392
|
-
const parsedOutput = {
|
|
393
|
-
...output,
|
|
394
|
-
body: await parseErrorBody(output.body, context),
|
|
395
|
-
};
|
|
396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
|
-
switch (errorCode) {
|
|
398
|
-
case "AccessDeniedException":
|
|
399
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
400
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
401
|
-
case "InternalServerException":
|
|
402
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
403
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ResourceNotFoundException":
|
|
405
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ThrottlingException":
|
|
408
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
409
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ValidationException":
|
|
411
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
412
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
|
-
default:
|
|
414
|
-
const parsedBody = parsedOutput.body;
|
|
415
|
-
return throwDefaultError({
|
|
416
|
-
output,
|
|
417
|
-
parsedBody,
|
|
418
|
-
errorCode,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
189
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
423
190
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
191
|
+
return de_CommandError(output, context);
|
|
425
192
|
}
|
|
426
193
|
const data = await parseBody(output.body, context);
|
|
427
194
|
let contents = {};
|
|
@@ -432,31 +199,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
432
199
|
};
|
|
433
200
|
return response;
|
|
434
201
|
};
|
|
435
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
436
|
-
const parsedOutput = {
|
|
437
|
-
...output,
|
|
438
|
-
body: await parseErrorBody(output.body, context),
|
|
439
|
-
};
|
|
440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
-
switch (errorCode) {
|
|
442
|
-
case "ResourceNotFoundException":
|
|
443
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ValidationException":
|
|
446
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
202
|
export const de_StartFHIRExportJobCommand = async (output, context) => {
|
|
458
203
|
if (output.statusCode >= 300) {
|
|
459
|
-
return
|
|
204
|
+
return de_CommandError(output, context);
|
|
460
205
|
}
|
|
461
206
|
const data = await parseBody(output.body, context);
|
|
462
207
|
let contents = {};
|
|
@@ -467,40 +212,9 @@ export const de_StartFHIRExportJobCommand = async (output, context) => {
|
|
|
467
212
|
};
|
|
468
213
|
return response;
|
|
469
214
|
};
|
|
470
|
-
const de_StartFHIRExportJobCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "AccessDeniedException":
|
|
478
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
480
|
-
case "InternalServerException":
|
|
481
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
482
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ResourceNotFoundException":
|
|
484
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ThrottlingException":
|
|
487
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
488
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ValidationException":
|
|
490
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
215
|
export const de_StartFHIRImportJobCommand = async (output, context) => {
|
|
502
216
|
if (output.statusCode >= 300) {
|
|
503
|
-
return
|
|
217
|
+
return de_CommandError(output, context);
|
|
504
218
|
}
|
|
505
219
|
const data = await parseBody(output.body, context);
|
|
506
220
|
let contents = {};
|
|
@@ -511,40 +225,9 @@ export const de_StartFHIRImportJobCommand = async (output, context) => {
|
|
|
511
225
|
};
|
|
512
226
|
return response;
|
|
513
227
|
};
|
|
514
|
-
const de_StartFHIRImportJobCommandError = async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context),
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "AccessDeniedException":
|
|
522
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
523
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
524
|
-
case "InternalServerException":
|
|
525
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
526
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ResourceNotFoundException":
|
|
528
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
529
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ThrottlingException":
|
|
531
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
532
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ValidationException":
|
|
534
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
535
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
536
|
-
default:
|
|
537
|
-
const parsedBody = parsedOutput.body;
|
|
538
|
-
return throwDefaultError({
|
|
539
|
-
output,
|
|
540
|
-
parsedBody,
|
|
541
|
-
errorCode,
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
228
|
export const de_TagResourceCommand = async (output, context) => {
|
|
546
229
|
if (output.statusCode >= 300) {
|
|
547
|
-
return
|
|
230
|
+
return de_CommandError(output, context);
|
|
548
231
|
}
|
|
549
232
|
const data = await parseBody(output.body, context);
|
|
550
233
|
let contents = {};
|
|
@@ -555,31 +238,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
555
238
|
};
|
|
556
239
|
return response;
|
|
557
240
|
};
|
|
558
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "ResourceNotFoundException":
|
|
566
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ValidationException":
|
|
569
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
571
|
-
default:
|
|
572
|
-
const parsedBody = parsedOutput.body;
|
|
573
|
-
return throwDefaultError({
|
|
574
|
-
output,
|
|
575
|
-
parsedBody,
|
|
576
|
-
errorCode,
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
241
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
581
242
|
if (output.statusCode >= 300) {
|
|
582
|
-
return
|
|
243
|
+
return de_CommandError(output, context);
|
|
583
244
|
}
|
|
584
245
|
const data = await parseBody(output.body, context);
|
|
585
246
|
let contents = {};
|
|
@@ -590,19 +251,31 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
590
251
|
};
|
|
591
252
|
return response;
|
|
592
253
|
};
|
|
593
|
-
const
|
|
254
|
+
const de_CommandError = async (output, context) => {
|
|
594
255
|
const parsedOutput = {
|
|
595
256
|
...output,
|
|
596
257
|
body: await parseErrorBody(output.body, context),
|
|
597
258
|
};
|
|
598
259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
260
|
switch (errorCode) {
|
|
600
|
-
case "
|
|
601
|
-
case "com.amazonaws.healthlake#
|
|
602
|
-
throw await
|
|
261
|
+
case "AccessDeniedException":
|
|
262
|
+
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
263
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
264
|
+
case "InternalServerException":
|
|
265
|
+
case "com.amazonaws.healthlake#InternalServerException":
|
|
266
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
267
|
+
case "ThrottlingException":
|
|
268
|
+
case "com.amazonaws.healthlake#ThrottlingException":
|
|
269
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
603
270
|
case "ValidationException":
|
|
604
271
|
case "com.amazonaws.healthlake#ValidationException":
|
|
605
272
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
273
|
+
case "ConflictException":
|
|
274
|
+
case "com.amazonaws.healthlake#ConflictException":
|
|
275
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
276
|
+
case "ResourceNotFoundException":
|
|
277
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
278
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
279
|
default:
|
|
607
280
|
const parsedBody = parsedOutput.body;
|
|
608
281
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-healthlake",
|
|
3
3
|
"description": "AWS SDK for JavaScript Healthlake Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-healthlake",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|