@aws-sdk/client-emr-serverless 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 +23 -370
- package/dist-es/protocols/Aws_restJson1.js +22 -369
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -595,7 +595,7 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
595
595
|
}, "se_UpdateApplicationCommand");
|
|
596
596
|
var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
597
597
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
599
599
|
}
|
|
600
600
|
const contents = (0, import_smithy_client.map)({
|
|
601
601
|
$metadata: deserializeMetadata(output)
|
|
@@ -608,34 +608,9 @@ var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
608
608
|
Object.assign(contents, doc);
|
|
609
609
|
return contents;
|
|
610
610
|
}, "de_CancelJobRunCommand");
|
|
611
|
-
var de_CancelJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
612
|
-
const parsedOutput = {
|
|
613
|
-
...output,
|
|
614
|
-
body: await parseErrorBody(output.body, context)
|
|
615
|
-
};
|
|
616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
|
-
switch (errorCode) {
|
|
618
|
-
case "InternalServerException":
|
|
619
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
620
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ResourceNotFoundException":
|
|
622
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
623
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ValidationException":
|
|
625
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
627
|
-
default:
|
|
628
|
-
const parsedBody = parsedOutput.body;
|
|
629
|
-
return throwDefaultError({
|
|
630
|
-
output,
|
|
631
|
-
parsedBody,
|
|
632
|
-
errorCode
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
}, "de_CancelJobRunCommandError");
|
|
636
611
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
637
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
638
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
639
614
|
}
|
|
640
615
|
const contents = (0, import_smithy_client.map)({
|
|
641
616
|
$metadata: deserializeMetadata(output)
|
|
@@ -649,37 +624,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
649
624
|
Object.assign(contents, doc);
|
|
650
625
|
return contents;
|
|
651
626
|
}, "de_CreateApplicationCommand");
|
|
652
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context)
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "ConflictException":
|
|
660
|
-
case "com.amazonaws.emrserverless#ConflictException":
|
|
661
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InternalServerException":
|
|
663
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ResourceNotFoundException":
|
|
666
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ValidationException":
|
|
669
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
670
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
}, "de_CreateApplicationCommandError");
|
|
680
627
|
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
683
630
|
}
|
|
684
631
|
const contents = (0, import_smithy_client.map)({
|
|
685
632
|
$metadata: deserializeMetadata(output)
|
|
@@ -687,34 +634,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
687
634
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
688
635
|
return contents;
|
|
689
636
|
}, "de_DeleteApplicationCommand");
|
|
690
|
-
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
const parsedOutput = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseErrorBody(output.body, context)
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "InternalServerException":
|
|
698
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ResourceNotFoundException":
|
|
701
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
702
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ValidationException":
|
|
704
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
705
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
706
|
-
default:
|
|
707
|
-
const parsedBody = parsedOutput.body;
|
|
708
|
-
return throwDefaultError({
|
|
709
|
-
output,
|
|
710
|
-
parsedBody,
|
|
711
|
-
errorCode
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
}, "de_DeleteApplicationCommandError");
|
|
715
637
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
718
640
|
}
|
|
719
641
|
const contents = (0, import_smithy_client.map)({
|
|
720
642
|
$metadata: deserializeMetadata(output)
|
|
@@ -726,34 +648,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
726
648
|
Object.assign(contents, doc);
|
|
727
649
|
return contents;
|
|
728
650
|
}, "de_GetApplicationCommand");
|
|
729
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
|
-
const parsedOutput = {
|
|
731
|
-
...output,
|
|
732
|
-
body: await parseErrorBody(output.body, context)
|
|
733
|
-
};
|
|
734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
-
switch (errorCode) {
|
|
736
|
-
case "InternalServerException":
|
|
737
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
738
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
739
|
-
case "ResourceNotFoundException":
|
|
740
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
742
|
-
case "ValidationException":
|
|
743
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
744
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
745
|
-
default:
|
|
746
|
-
const parsedBody = parsedOutput.body;
|
|
747
|
-
return throwDefaultError({
|
|
748
|
-
output,
|
|
749
|
-
parsedBody,
|
|
750
|
-
errorCode
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
}, "de_GetApplicationCommandError");
|
|
754
651
|
var de_GetDashboardForJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
756
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
757
654
|
}
|
|
758
655
|
const contents = (0, import_smithy_client.map)({
|
|
759
656
|
$metadata: deserializeMetadata(output)
|
|
@@ -765,34 +662,9 @@ var de_GetDashboardForJobRunCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
765
662
|
Object.assign(contents, doc);
|
|
766
663
|
return contents;
|
|
767
664
|
}, "de_GetDashboardForJobRunCommand");
|
|
768
|
-
var de_GetDashboardForJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context)
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "InternalServerException":
|
|
776
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
777
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ResourceNotFoundException":
|
|
779
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ValidationException":
|
|
782
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
783
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
|
-
default:
|
|
785
|
-
const parsedBody = parsedOutput.body;
|
|
786
|
-
return throwDefaultError({
|
|
787
|
-
output,
|
|
788
|
-
parsedBody,
|
|
789
|
-
errorCode
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
}, "de_GetDashboardForJobRunCommandError");
|
|
793
665
|
var de_GetJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
796
668
|
}
|
|
797
669
|
const contents = (0, import_smithy_client.map)({
|
|
798
670
|
$metadata: deserializeMetadata(output)
|
|
@@ -804,34 +676,9 @@ var de_GetJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
804
676
|
Object.assign(contents, doc);
|
|
805
677
|
return contents;
|
|
806
678
|
}, "de_GetJobRunCommand");
|
|
807
|
-
var de_GetJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
-
const parsedOutput = {
|
|
809
|
-
...output,
|
|
810
|
-
body: await parseErrorBody(output.body, context)
|
|
811
|
-
};
|
|
812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
-
switch (errorCode) {
|
|
814
|
-
case "InternalServerException":
|
|
815
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ResourceNotFoundException":
|
|
818
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ValidationException":
|
|
821
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
823
|
-
default:
|
|
824
|
-
const parsedBody = parsedOutput.body;
|
|
825
|
-
return throwDefaultError({
|
|
826
|
-
output,
|
|
827
|
-
parsedBody,
|
|
828
|
-
errorCode
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
}, "de_GetJobRunCommandError");
|
|
832
679
|
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
833
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
834
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
835
682
|
}
|
|
836
683
|
const contents = (0, import_smithy_client.map)({
|
|
837
684
|
$metadata: deserializeMetadata(output)
|
|
@@ -844,31 +691,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
844
691
|
Object.assign(contents, doc);
|
|
845
692
|
return contents;
|
|
846
693
|
}, "de_ListApplicationsCommand");
|
|
847
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
|
-
const parsedOutput = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseErrorBody(output.body, context)
|
|
851
|
-
};
|
|
852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
-
switch (errorCode) {
|
|
854
|
-
case "InternalServerException":
|
|
855
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ValidationException":
|
|
858
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
859
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody,
|
|
865
|
-
errorCode
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
}, "de_ListApplicationsCommandError");
|
|
869
694
|
var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
870
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
871
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
872
697
|
}
|
|
873
698
|
const contents = (0, import_smithy_client.map)({
|
|
874
699
|
$metadata: deserializeMetadata(output)
|
|
@@ -881,31 +706,9 @@ var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
881
706
|
Object.assign(contents, doc);
|
|
882
707
|
return contents;
|
|
883
708
|
}, "de_ListJobRunsCommand");
|
|
884
|
-
var de_ListJobRunsCommandError = /* @__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 "InternalServerException":
|
|
892
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ValidationException":
|
|
895
|
-
case "com.amazonaws.emrserverless#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_ListJobRunsCommandError");
|
|
906
709
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
|
-
return
|
|
711
|
+
return de_CommandError(output, context);
|
|
909
712
|
}
|
|
910
713
|
const contents = (0, import_smithy_client.map)({
|
|
911
714
|
$metadata: deserializeMetadata(output)
|
|
@@ -917,34 +720,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
917
720
|
Object.assign(contents, doc);
|
|
918
721
|
return contents;
|
|
919
722
|
}, "de_ListTagsForResourceCommand");
|
|
920
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context)
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "InternalServerException":
|
|
928
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ResourceNotFoundException":
|
|
931
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ValidationException":
|
|
934
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
935
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
}, "de_ListTagsForResourceCommandError");
|
|
945
723
|
var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return
|
|
725
|
+
return de_CommandError(output, context);
|
|
948
726
|
}
|
|
949
727
|
const contents = (0, import_smithy_client.map)({
|
|
950
728
|
$metadata: deserializeMetadata(output)
|
|
@@ -952,37 +730,9 @@ var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
952
730
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
953
731
|
return contents;
|
|
954
732
|
}, "de_StartApplicationCommand");
|
|
955
|
-
var de_StartApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context)
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "InternalServerException":
|
|
963
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ResourceNotFoundException":
|
|
966
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ServiceQuotaExceededException":
|
|
969
|
-
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
970
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ValidationException":
|
|
972
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
974
|
-
default:
|
|
975
|
-
const parsedBody = parsedOutput.body;
|
|
976
|
-
return throwDefaultError({
|
|
977
|
-
output,
|
|
978
|
-
parsedBody,
|
|
979
|
-
errorCode
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
}, "de_StartApplicationCommandError");
|
|
983
733
|
var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
984
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
-
return
|
|
735
|
+
return de_CommandError(output, context);
|
|
986
736
|
}
|
|
987
737
|
const contents = (0, import_smithy_client.map)({
|
|
988
738
|
$metadata: deserializeMetadata(output)
|
|
@@ -996,37 +746,9 @@ var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
996
746
|
Object.assign(contents, doc);
|
|
997
747
|
return contents;
|
|
998
748
|
}, "de_StartJobRunCommand");
|
|
999
|
-
var de_StartJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
|
-
const parsedOutput = {
|
|
1001
|
-
...output,
|
|
1002
|
-
body: await parseErrorBody(output.body, context)
|
|
1003
|
-
};
|
|
1004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
-
switch (errorCode) {
|
|
1006
|
-
case "ConflictException":
|
|
1007
|
-
case "com.amazonaws.emrserverless#ConflictException":
|
|
1008
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "InternalServerException":
|
|
1010
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1011
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ResourceNotFoundException":
|
|
1013
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1014
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ValidationException":
|
|
1016
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
1017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1018
|
-
default:
|
|
1019
|
-
const parsedBody = parsedOutput.body;
|
|
1020
|
-
return throwDefaultError({
|
|
1021
|
-
output,
|
|
1022
|
-
parsedBody,
|
|
1023
|
-
errorCode
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
}, "de_StartJobRunCommandError");
|
|
1027
749
|
var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1028
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
|
-
return
|
|
751
|
+
return de_CommandError(output, context);
|
|
1030
752
|
}
|
|
1031
753
|
const contents = (0, import_smithy_client.map)({
|
|
1032
754
|
$metadata: deserializeMetadata(output)
|
|
@@ -1034,34 +756,9 @@ var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1034
756
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1035
757
|
return contents;
|
|
1036
758
|
}, "de_StopApplicationCommand");
|
|
1037
|
-
var de_StopApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
const parsedOutput = {
|
|
1039
|
-
...output,
|
|
1040
|
-
body: await parseErrorBody(output.body, context)
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "InternalServerException":
|
|
1045
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1046
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ResourceNotFoundException":
|
|
1048
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1049
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ValidationException":
|
|
1051
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
1052
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1053
|
-
default:
|
|
1054
|
-
const parsedBody = parsedOutput.body;
|
|
1055
|
-
return throwDefaultError({
|
|
1056
|
-
output,
|
|
1057
|
-
parsedBody,
|
|
1058
|
-
errorCode
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
}, "de_StopApplicationCommandError");
|
|
1062
759
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1063
760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1064
|
-
return
|
|
761
|
+
return de_CommandError(output, context);
|
|
1065
762
|
}
|
|
1066
763
|
const contents = (0, import_smithy_client.map)({
|
|
1067
764
|
$metadata: deserializeMetadata(output)
|
|
@@ -1069,34 +766,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1069
766
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1070
767
|
return contents;
|
|
1071
768
|
}, "de_TagResourceCommand");
|
|
1072
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
-
const parsedOutput = {
|
|
1074
|
-
...output,
|
|
1075
|
-
body: await parseErrorBody(output.body, context)
|
|
1076
|
-
};
|
|
1077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
-
switch (errorCode) {
|
|
1079
|
-
case "InternalServerException":
|
|
1080
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1081
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ResourceNotFoundException":
|
|
1083
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1084
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ValidationException":
|
|
1086
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
1087
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody,
|
|
1093
|
-
errorCode
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
}, "de_TagResourceCommandError");
|
|
1097
769
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
771
|
+
return de_CommandError(output, context);
|
|
1100
772
|
}
|
|
1101
773
|
const contents = (0, import_smithy_client.map)({
|
|
1102
774
|
$metadata: deserializeMetadata(output)
|
|
@@ -1104,34 +776,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1104
776
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1105
777
|
return contents;
|
|
1106
778
|
}, "de_UntagResourceCommand");
|
|
1107
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1108
|
-
const parsedOutput = {
|
|
1109
|
-
...output,
|
|
1110
|
-
body: await parseErrorBody(output.body, context)
|
|
1111
|
-
};
|
|
1112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
-
switch (errorCode) {
|
|
1114
|
-
case "InternalServerException":
|
|
1115
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1116
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ResourceNotFoundException":
|
|
1118
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1119
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ValidationException":
|
|
1121
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
1122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
}, "de_UntagResourceCommandError");
|
|
1132
779
|
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1135
782
|
}
|
|
1136
783
|
const contents = (0, import_smithy_client.map)({
|
|
1137
784
|
$metadata: deserializeMetadata(output)
|
|
@@ -1143,7 +790,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1143
790
|
Object.assign(contents, doc);
|
|
1144
791
|
return contents;
|
|
1145
792
|
}, "de_UpdateApplicationCommand");
|
|
1146
|
-
var
|
|
793
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
794
|
const parsedOutput = {
|
|
1148
795
|
...output,
|
|
1149
796
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1159,6 +806,12 @@ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1159
806
|
case "ValidationException":
|
|
1160
807
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
1161
808
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
809
|
+
case "ConflictException":
|
|
810
|
+
case "com.amazonaws.emrserverless#ConflictException":
|
|
811
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
812
|
+
case "ServiceQuotaExceededException":
|
|
813
|
+
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
814
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1162
815
|
default:
|
|
1163
816
|
const parsedBody = parsedOutput.body;
|
|
1164
817
|
return throwDefaultError({
|
|
@@ -1167,7 +820,7 @@ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1167
820
|
errorCode
|
|
1168
821
|
});
|
|
1169
822
|
}
|
|
1170
|
-
}, "
|
|
823
|
+
}, "de_CommandError");
|
|
1171
824
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(EMRServerlessServiceException);
|
|
1172
825
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1173
826
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -211,7 +211,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
211
211
|
};
|
|
212
212
|
export const de_CancelJobRunCommand = async (output, context) => {
|
|
213
213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
214
|
-
return
|
|
214
|
+
return de_CommandError(output, context);
|
|
215
215
|
}
|
|
216
216
|
const contents = map({
|
|
217
217
|
$metadata: deserializeMetadata(output),
|
|
@@ -224,34 +224,9 @@ export const de_CancelJobRunCommand = async (output, context) => {
|
|
|
224
224
|
Object.assign(contents, doc);
|
|
225
225
|
return contents;
|
|
226
226
|
};
|
|
227
|
-
const de_CancelJobRunCommandError = 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.emrserverless#InternalServerException":
|
|
236
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
237
|
-
case "ResourceNotFoundException":
|
|
238
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
239
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
240
|
-
case "ValidationException":
|
|
241
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
242
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
243
|
-
default:
|
|
244
|
-
const parsedBody = parsedOutput.body;
|
|
245
|
-
return throwDefaultError({
|
|
246
|
-
output,
|
|
247
|
-
parsedBody,
|
|
248
|
-
errorCode,
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
227
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
253
228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
|
-
return
|
|
229
|
+
return de_CommandError(output, context);
|
|
255
230
|
}
|
|
256
231
|
const contents = map({
|
|
257
232
|
$metadata: deserializeMetadata(output),
|
|
@@ -265,37 +240,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
265
240
|
Object.assign(contents, doc);
|
|
266
241
|
return contents;
|
|
267
242
|
};
|
|
268
|
-
const de_CreateApplicationCommandError = 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 "ConflictException":
|
|
276
|
-
case "com.amazonaws.emrserverless#ConflictException":
|
|
277
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
278
|
-
case "InternalServerException":
|
|
279
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
280
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
281
|
-
case "ResourceNotFoundException":
|
|
282
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
284
|
-
case "ValidationException":
|
|
285
|
-
case "com.amazonaws.emrserverless#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
243
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
297
244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
298
|
-
return
|
|
245
|
+
return de_CommandError(output, context);
|
|
299
246
|
}
|
|
300
247
|
const contents = map({
|
|
301
248
|
$metadata: deserializeMetadata(output),
|
|
@@ -303,34 +250,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
303
250
|
await collectBody(output.body, context);
|
|
304
251
|
return contents;
|
|
305
252
|
};
|
|
306
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
307
|
-
const parsedOutput = {
|
|
308
|
-
...output,
|
|
309
|
-
body: await parseErrorBody(output.body, context),
|
|
310
|
-
};
|
|
311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
312
|
-
switch (errorCode) {
|
|
313
|
-
case "InternalServerException":
|
|
314
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ResourceNotFoundException":
|
|
317
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ValidationException":
|
|
320
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
253
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
332
254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return
|
|
255
|
+
return de_CommandError(output, context);
|
|
334
256
|
}
|
|
335
257
|
const contents = map({
|
|
336
258
|
$metadata: deserializeMetadata(output),
|
|
@@ -342,34 +264,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
342
264
|
Object.assign(contents, doc);
|
|
343
265
|
return contents;
|
|
344
266
|
};
|
|
345
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
346
|
-
const parsedOutput = {
|
|
347
|
-
...output,
|
|
348
|
-
body: await parseErrorBody(output.body, context),
|
|
349
|
-
};
|
|
350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
-
switch (errorCode) {
|
|
352
|
-
case "InternalServerException":
|
|
353
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
355
|
-
case "ResourceNotFoundException":
|
|
356
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ValidationException":
|
|
359
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
360
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
361
|
-
default:
|
|
362
|
-
const parsedBody = parsedOutput.body;
|
|
363
|
-
return throwDefaultError({
|
|
364
|
-
output,
|
|
365
|
-
parsedBody,
|
|
366
|
-
errorCode,
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
267
|
export const de_GetDashboardForJobRunCommand = async (output, context) => {
|
|
371
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
372
|
-
return
|
|
269
|
+
return de_CommandError(output, context);
|
|
373
270
|
}
|
|
374
271
|
const contents = map({
|
|
375
272
|
$metadata: deserializeMetadata(output),
|
|
@@ -381,34 +278,9 @@ export const de_GetDashboardForJobRunCommand = async (output, context) => {
|
|
|
381
278
|
Object.assign(contents, doc);
|
|
382
279
|
return contents;
|
|
383
280
|
};
|
|
384
|
-
const de_GetDashboardForJobRunCommandError = async (output, context) => {
|
|
385
|
-
const parsedOutput = {
|
|
386
|
-
...output,
|
|
387
|
-
body: await parseErrorBody(output.body, context),
|
|
388
|
-
};
|
|
389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
-
switch (errorCode) {
|
|
391
|
-
case "InternalServerException":
|
|
392
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
393
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ResourceNotFoundException":
|
|
395
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
396
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ValidationException":
|
|
398
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
399
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
400
|
-
default:
|
|
401
|
-
const parsedBody = parsedOutput.body;
|
|
402
|
-
return throwDefaultError({
|
|
403
|
-
output,
|
|
404
|
-
parsedBody,
|
|
405
|
-
errorCode,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
281
|
export const de_GetJobRunCommand = async (output, context) => {
|
|
410
282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
411
|
-
return
|
|
283
|
+
return de_CommandError(output, context);
|
|
412
284
|
}
|
|
413
285
|
const contents = map({
|
|
414
286
|
$metadata: deserializeMetadata(output),
|
|
@@ -420,34 +292,9 @@ export const de_GetJobRunCommand = async (output, context) => {
|
|
|
420
292
|
Object.assign(contents, doc);
|
|
421
293
|
return contents;
|
|
422
294
|
};
|
|
423
|
-
const de_GetJobRunCommandError = async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseErrorBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "InternalServerException":
|
|
431
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ResourceNotFoundException":
|
|
434
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
435
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ValidationException":
|
|
437
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
438
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
439
|
-
default:
|
|
440
|
-
const parsedBody = parsedOutput.body;
|
|
441
|
-
return throwDefaultError({
|
|
442
|
-
output,
|
|
443
|
-
parsedBody,
|
|
444
|
-
errorCode,
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
295
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
449
296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
-
return
|
|
297
|
+
return de_CommandError(output, context);
|
|
451
298
|
}
|
|
452
299
|
const contents = map({
|
|
453
300
|
$metadata: deserializeMetadata(output),
|
|
@@ -460,31 +307,9 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
460
307
|
Object.assign(contents, doc);
|
|
461
308
|
return contents;
|
|
462
309
|
};
|
|
463
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
464
|
-
const parsedOutput = {
|
|
465
|
-
...output,
|
|
466
|
-
body: await parseErrorBody(output.body, context),
|
|
467
|
-
};
|
|
468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
-
switch (errorCode) {
|
|
470
|
-
case "InternalServerException":
|
|
471
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
472
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ValidationException":
|
|
474
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
476
|
-
default:
|
|
477
|
-
const parsedBody = parsedOutput.body;
|
|
478
|
-
return throwDefaultError({
|
|
479
|
-
output,
|
|
480
|
-
parsedBody,
|
|
481
|
-
errorCode,
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
310
|
export const de_ListJobRunsCommand = async (output, context) => {
|
|
486
311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
488
313
|
}
|
|
489
314
|
const contents = map({
|
|
490
315
|
$metadata: deserializeMetadata(output),
|
|
@@ -497,31 +322,9 @@ export const de_ListJobRunsCommand = async (output, context) => {
|
|
|
497
322
|
Object.assign(contents, doc);
|
|
498
323
|
return contents;
|
|
499
324
|
};
|
|
500
|
-
const de_ListJobRunsCommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "InternalServerException":
|
|
508
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ValidationException":
|
|
511
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
512
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
325
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
523
326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
525
328
|
}
|
|
526
329
|
const contents = map({
|
|
527
330
|
$metadata: deserializeMetadata(output),
|
|
@@ -533,34 +336,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
533
336
|
Object.assign(contents, doc);
|
|
534
337
|
return contents;
|
|
535
338
|
};
|
|
536
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
537
|
-
const parsedOutput = {
|
|
538
|
-
...output,
|
|
539
|
-
body: await parseErrorBody(output.body, context),
|
|
540
|
-
};
|
|
541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
switch (errorCode) {
|
|
543
|
-
case "InternalServerException":
|
|
544
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
545
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ResourceNotFoundException":
|
|
547
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ValidationException":
|
|
550
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
|
-
default:
|
|
553
|
-
const parsedBody = parsedOutput.body;
|
|
554
|
-
return throwDefaultError({
|
|
555
|
-
output,
|
|
556
|
-
parsedBody,
|
|
557
|
-
errorCode,
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
339
|
export const de_StartApplicationCommand = async (output, context) => {
|
|
562
340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
563
|
-
return
|
|
341
|
+
return de_CommandError(output, context);
|
|
564
342
|
}
|
|
565
343
|
const contents = map({
|
|
566
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -568,37 +346,9 @@ export const de_StartApplicationCommand = async (output, context) => {
|
|
|
568
346
|
await collectBody(output.body, context);
|
|
569
347
|
return contents;
|
|
570
348
|
};
|
|
571
|
-
const de_StartApplicationCommandError = async (output, context) => {
|
|
572
|
-
const parsedOutput = {
|
|
573
|
-
...output,
|
|
574
|
-
body: await parseErrorBody(output.body, context),
|
|
575
|
-
};
|
|
576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
577
|
-
switch (errorCode) {
|
|
578
|
-
case "InternalServerException":
|
|
579
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
580
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ResourceNotFoundException":
|
|
582
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ServiceQuotaExceededException":
|
|
585
|
-
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
586
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ValidationException":
|
|
588
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
|
-
default:
|
|
591
|
-
const parsedBody = parsedOutput.body;
|
|
592
|
-
return throwDefaultError({
|
|
593
|
-
output,
|
|
594
|
-
parsedBody,
|
|
595
|
-
errorCode,
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
349
|
export const de_StartJobRunCommand = async (output, context) => {
|
|
600
350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
602
352
|
}
|
|
603
353
|
const contents = map({
|
|
604
354
|
$metadata: deserializeMetadata(output),
|
|
@@ -612,37 +362,9 @@ export const de_StartJobRunCommand = async (output, context) => {
|
|
|
612
362
|
Object.assign(contents, doc);
|
|
613
363
|
return contents;
|
|
614
364
|
};
|
|
615
|
-
const de_StartJobRunCommandError = async (output, context) => {
|
|
616
|
-
const parsedOutput = {
|
|
617
|
-
...output,
|
|
618
|
-
body: await parseErrorBody(output.body, context),
|
|
619
|
-
};
|
|
620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
-
switch (errorCode) {
|
|
622
|
-
case "ConflictException":
|
|
623
|
-
case "com.amazonaws.emrserverless#ConflictException":
|
|
624
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
625
|
-
case "InternalServerException":
|
|
626
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
627
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ResourceNotFoundException":
|
|
629
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ValidationException":
|
|
632
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
634
|
-
default:
|
|
635
|
-
const parsedBody = parsedOutput.body;
|
|
636
|
-
return throwDefaultError({
|
|
637
|
-
output,
|
|
638
|
-
parsedBody,
|
|
639
|
-
errorCode,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
365
|
export const de_StopApplicationCommand = async (output, context) => {
|
|
644
366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
|
-
return
|
|
367
|
+
return de_CommandError(output, context);
|
|
646
368
|
}
|
|
647
369
|
const contents = map({
|
|
648
370
|
$metadata: deserializeMetadata(output),
|
|
@@ -650,34 +372,9 @@ export const de_StopApplicationCommand = async (output, context) => {
|
|
|
650
372
|
await collectBody(output.body, context);
|
|
651
373
|
return contents;
|
|
652
374
|
};
|
|
653
|
-
const de_StopApplicationCommandError = async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context),
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "InternalServerException":
|
|
661
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ResourceNotFoundException":
|
|
664
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ValidationException":
|
|
667
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
669
|
-
default:
|
|
670
|
-
const parsedBody = parsedOutput.body;
|
|
671
|
-
return throwDefaultError({
|
|
672
|
-
output,
|
|
673
|
-
parsedBody,
|
|
674
|
-
errorCode,
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
375
|
export const de_TagResourceCommand = async (output, context) => {
|
|
679
376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
681
378
|
}
|
|
682
379
|
const contents = map({
|
|
683
380
|
$metadata: deserializeMetadata(output),
|
|
@@ -685,34 +382,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
685
382
|
await collectBody(output.body, context);
|
|
686
383
|
return contents;
|
|
687
384
|
};
|
|
688
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
689
|
-
const parsedOutput = {
|
|
690
|
-
...output,
|
|
691
|
-
body: await parseErrorBody(output.body, context),
|
|
692
|
-
};
|
|
693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
-
switch (errorCode) {
|
|
695
|
-
case "InternalServerException":
|
|
696
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
697
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ResourceNotFoundException":
|
|
699
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ValidationException":
|
|
702
|
-
case "com.amazonaws.emrserverless#ValidationException":
|
|
703
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
385
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
714
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return
|
|
387
|
+
return de_CommandError(output, context);
|
|
716
388
|
}
|
|
717
389
|
const contents = map({
|
|
718
390
|
$metadata: deserializeMetadata(output),
|
|
@@ -720,34 +392,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
720
392
|
await collectBody(output.body, context);
|
|
721
393
|
return contents;
|
|
722
394
|
};
|
|
723
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
724
|
-
const parsedOutput = {
|
|
725
|
-
...output,
|
|
726
|
-
body: await parseErrorBody(output.body, context),
|
|
727
|
-
};
|
|
728
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
-
switch (errorCode) {
|
|
730
|
-
case "InternalServerException":
|
|
731
|
-
case "com.amazonaws.emrserverless#InternalServerException":
|
|
732
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ResourceNotFoundException":
|
|
734
|
-
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
735
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.emrserverless#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
|
-
};
|
|
748
395
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
749
396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return
|
|
397
|
+
return de_CommandError(output, context);
|
|
751
398
|
}
|
|
752
399
|
const contents = map({
|
|
753
400
|
$metadata: deserializeMetadata(output),
|
|
@@ -759,7 +406,7 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
759
406
|
Object.assign(contents, doc);
|
|
760
407
|
return contents;
|
|
761
408
|
};
|
|
762
|
-
const
|
|
409
|
+
const de_CommandError = async (output, context) => {
|
|
763
410
|
const parsedOutput = {
|
|
764
411
|
...output,
|
|
765
412
|
body: await parseErrorBody(output.body, context),
|
|
@@ -775,6 +422,12 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
775
422
|
case "ValidationException":
|
|
776
423
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
777
424
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
425
|
+
case "ConflictException":
|
|
426
|
+
case "com.amazonaws.emrserverless#ConflictException":
|
|
427
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
428
|
+
case "ServiceQuotaExceededException":
|
|
429
|
+
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
430
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
778
431
|
default:
|
|
779
432
|
const parsedBody = parsedOutput.body;
|
|
780
433
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-emr-serverless",
|
|
3
3
|
"description": "AWS SDK for JavaScript Emr Serverless 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-emr-serverless",
|
|
@@ -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",
|