@aws-sdk/client-emr-containers 3.504.0 → 3.509.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 +28 -479
- package/dist-es/protocols/Aws_restJson1.js +27 -478
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -727,7 +727,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
727
727
|
}, "se_UntagResourceCommand");
|
|
728
728
|
var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
729
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
730
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
731
731
|
}
|
|
732
732
|
const contents = (0, import_smithy_client.map)({
|
|
733
733
|
$metadata: deserializeMetadata(output)
|
|
@@ -740,31 +740,9 @@ var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
740
740
|
Object.assign(contents, doc);
|
|
741
741
|
return contents;
|
|
742
742
|
}, "de_CancelJobRunCommand");
|
|
743
|
-
var de_CancelJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
744
|
-
const parsedOutput = {
|
|
745
|
-
...output,
|
|
746
|
-
body: await parseErrorBody(output.body, context)
|
|
747
|
-
};
|
|
748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
-
switch (errorCode) {
|
|
750
|
-
case "InternalServerException":
|
|
751
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
752
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ValidationException":
|
|
754
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
755
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
756
|
-
default:
|
|
757
|
-
const parsedBody = parsedOutput.body;
|
|
758
|
-
return throwDefaultError({
|
|
759
|
-
output,
|
|
760
|
-
parsedBody,
|
|
761
|
-
errorCode
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
}, "de_CancelJobRunCommandError");
|
|
765
743
|
var de_CreateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
766
744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
768
746
|
}
|
|
769
747
|
const contents = (0, import_smithy_client.map)({
|
|
770
748
|
$metadata: deserializeMetadata(output)
|
|
@@ -779,34 +757,9 @@ var de_CreateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
779
757
|
Object.assign(contents, doc);
|
|
780
758
|
return contents;
|
|
781
759
|
}, "de_CreateJobTemplateCommand");
|
|
782
|
-
var de_CreateJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context)
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "InternalServerException":
|
|
790
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
791
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ResourceNotFoundException":
|
|
793
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
794
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
}, "de_CreateJobTemplateCommandError");
|
|
807
760
|
var de_CreateManagedEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
810
763
|
}
|
|
811
764
|
const contents = (0, import_smithy_client.map)({
|
|
812
765
|
$metadata: deserializeMetadata(output)
|
|
@@ -821,34 +774,9 @@ var de_CreateManagedEndpointCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
821
774
|
Object.assign(contents, doc);
|
|
822
775
|
return contents;
|
|
823
776
|
}, "de_CreateManagedEndpointCommand");
|
|
824
|
-
var de_CreateManagedEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context)
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "InternalServerException":
|
|
832
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ResourceNotFoundException":
|
|
835
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ValidationException":
|
|
838
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
839
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
}, "de_CreateManagedEndpointCommandError");
|
|
849
777
|
var de_CreateVirtualClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
|
-
return
|
|
779
|
+
return de_CommandError(output, context);
|
|
852
780
|
}
|
|
853
781
|
const contents = (0, import_smithy_client.map)({
|
|
854
782
|
$metadata: deserializeMetadata(output)
|
|
@@ -862,34 +790,9 @@ var de_CreateVirtualClusterCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
862
790
|
Object.assign(contents, doc);
|
|
863
791
|
return contents;
|
|
864
792
|
}, "de_CreateVirtualClusterCommand");
|
|
865
|
-
var de_CreateVirtualClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
|
-
const parsedOutput = {
|
|
867
|
-
...output,
|
|
868
|
-
body: await parseErrorBody(output.body, context)
|
|
869
|
-
};
|
|
870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
-
switch (errorCode) {
|
|
872
|
-
case "InternalServerException":
|
|
873
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ResourceNotFoundException":
|
|
876
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
877
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ValidationException":
|
|
879
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}, "de_CreateVirtualClusterCommandError");
|
|
890
793
|
var de_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
893
796
|
}
|
|
894
797
|
const contents = (0, import_smithy_client.map)({
|
|
895
798
|
$metadata: deserializeMetadata(output)
|
|
@@ -901,31 +804,9 @@ var de_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
901
804
|
Object.assign(contents, doc);
|
|
902
805
|
return contents;
|
|
903
806
|
}, "de_DeleteJobTemplateCommand");
|
|
904
|
-
var de_DeleteJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context)
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "InternalServerException":
|
|
912
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
913
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ValidationException":
|
|
915
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
916
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
|
-
default:
|
|
918
|
-
const parsedBody = parsedOutput.body;
|
|
919
|
-
return throwDefaultError({
|
|
920
|
-
output,
|
|
921
|
-
parsedBody,
|
|
922
|
-
errorCode
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
}, "de_DeleteJobTemplateCommandError");
|
|
926
807
|
var de_DeleteManagedEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
-
return
|
|
809
|
+
return de_CommandError(output, context);
|
|
929
810
|
}
|
|
930
811
|
const contents = (0, import_smithy_client.map)({
|
|
931
812
|
$metadata: deserializeMetadata(output)
|
|
@@ -938,31 +819,9 @@ var de_DeleteManagedEndpointCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
938
819
|
Object.assign(contents, doc);
|
|
939
820
|
return contents;
|
|
940
821
|
}, "de_DeleteManagedEndpointCommand");
|
|
941
|
-
var de_DeleteManagedEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context)
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "InternalServerException":
|
|
949
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
950
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ValidationException":
|
|
952
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
953
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
954
|
-
default:
|
|
955
|
-
const parsedBody = parsedOutput.body;
|
|
956
|
-
return throwDefaultError({
|
|
957
|
-
output,
|
|
958
|
-
parsedBody,
|
|
959
|
-
errorCode
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
}, "de_DeleteManagedEndpointCommandError");
|
|
963
822
|
var de_DeleteVirtualClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
964
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
966
825
|
}
|
|
967
826
|
const contents = (0, import_smithy_client.map)({
|
|
968
827
|
$metadata: deserializeMetadata(output)
|
|
@@ -974,31 +833,9 @@ var de_DeleteVirtualClusterCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
974
833
|
Object.assign(contents, doc);
|
|
975
834
|
return contents;
|
|
976
835
|
}, "de_DeleteVirtualClusterCommand");
|
|
977
|
-
var de_DeleteVirtualClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
|
-
const parsedOutput = {
|
|
979
|
-
...output,
|
|
980
|
-
body: await parseErrorBody(output.body, context)
|
|
981
|
-
};
|
|
982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
-
switch (errorCode) {
|
|
984
|
-
case "InternalServerException":
|
|
985
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ValidationException":
|
|
988
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
}, "de_DeleteVirtualClusterCommandError");
|
|
999
836
|
var de_DescribeJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
1002
839
|
}
|
|
1003
840
|
const contents = (0, import_smithy_client.map)({
|
|
1004
841
|
$metadata: deserializeMetadata(output)
|
|
@@ -1010,34 +847,9 @@ var de_DescribeJobRunCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1010
847
|
Object.assign(contents, doc);
|
|
1011
848
|
return contents;
|
|
1012
849
|
}, "de_DescribeJobRunCommand");
|
|
1013
|
-
var de_DescribeJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context)
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "InternalServerException":
|
|
1021
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1022
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ResourceNotFoundException":
|
|
1024
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1025
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ValidationException":
|
|
1027
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody,
|
|
1034
|
-
errorCode
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
}, "de_DescribeJobRunCommandError");
|
|
1038
850
|
var de_DescribeJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
1041
853
|
}
|
|
1042
854
|
const contents = (0, import_smithy_client.map)({
|
|
1043
855
|
$metadata: deserializeMetadata(output)
|
|
@@ -1049,34 +861,9 @@ var de_DescribeJobTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1049
861
|
Object.assign(contents, doc);
|
|
1050
862
|
return contents;
|
|
1051
863
|
}, "de_DescribeJobTemplateCommand");
|
|
1052
|
-
var de_DescribeJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context)
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "InternalServerException":
|
|
1060
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1061
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ResourceNotFoundException":
|
|
1063
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1064
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ValidationException":
|
|
1066
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1067
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1068
|
-
default:
|
|
1069
|
-
const parsedBody = parsedOutput.body;
|
|
1070
|
-
return throwDefaultError({
|
|
1071
|
-
output,
|
|
1072
|
-
parsedBody,
|
|
1073
|
-
errorCode
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
}, "de_DescribeJobTemplateCommandError");
|
|
1077
864
|
var de_DescribeManagedEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1080
867
|
}
|
|
1081
868
|
const contents = (0, import_smithy_client.map)({
|
|
1082
869
|
$metadata: deserializeMetadata(output)
|
|
@@ -1088,34 +875,9 @@ var de_DescribeManagedEndpointCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1088
875
|
Object.assign(contents, doc);
|
|
1089
876
|
return contents;
|
|
1090
877
|
}, "de_DescribeManagedEndpointCommand");
|
|
1091
|
-
var de_DescribeManagedEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1092
|
-
const parsedOutput = {
|
|
1093
|
-
...output,
|
|
1094
|
-
body: await parseErrorBody(output.body, context)
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "InternalServerException":
|
|
1099
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1100
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ResourceNotFoundException":
|
|
1102
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1103
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
}, "de_DescribeManagedEndpointCommandError");
|
|
1116
878
|
var de_DescribeVirtualClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1119
881
|
}
|
|
1120
882
|
const contents = (0, import_smithy_client.map)({
|
|
1121
883
|
$metadata: deserializeMetadata(output)
|
|
@@ -1127,34 +889,9 @@ var de_DescribeVirtualClusterCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1127
889
|
Object.assign(contents, doc);
|
|
1128
890
|
return contents;
|
|
1129
891
|
}, "de_DescribeVirtualClusterCommand");
|
|
1130
|
-
var de_DescribeVirtualClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1131
|
-
const parsedOutput = {
|
|
1132
|
-
...output,
|
|
1133
|
-
body: await parseErrorBody(output.body, context)
|
|
1134
|
-
};
|
|
1135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
|
-
switch (errorCode) {
|
|
1137
|
-
case "InternalServerException":
|
|
1138
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1139
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ResourceNotFoundException":
|
|
1141
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1142
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "ValidationException":
|
|
1144
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1145
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1146
|
-
default:
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
}, "de_DescribeVirtualClusterCommandError");
|
|
1155
892
|
var de_GetManagedEndpointSessionCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
1158
895
|
}
|
|
1159
896
|
const contents = (0, import_smithy_client.map)({
|
|
1160
897
|
$metadata: deserializeMetadata(output)
|
|
@@ -1168,37 +905,9 @@ var de_GetManagedEndpointSessionCredentialsCommand = /* @__PURE__ */ __name(asyn
|
|
|
1168
905
|
Object.assign(contents, doc);
|
|
1169
906
|
return contents;
|
|
1170
907
|
}, "de_GetManagedEndpointSessionCredentialsCommand");
|
|
1171
|
-
var de_GetManagedEndpointSessionCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1172
|
-
const parsedOutput = {
|
|
1173
|
-
...output,
|
|
1174
|
-
body: await parseErrorBody(output.body, context)
|
|
1175
|
-
};
|
|
1176
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
-
switch (errorCode) {
|
|
1178
|
-
case "InternalServerException":
|
|
1179
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "RequestThrottledException":
|
|
1182
|
-
case "com.amazonaws.emrcontainers#RequestThrottledException":
|
|
1183
|
-
throw await de_RequestThrottledExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ResourceNotFoundException":
|
|
1185
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1186
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ValidationException":
|
|
1188
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1189
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1190
|
-
default:
|
|
1191
|
-
const parsedBody = parsedOutput.body;
|
|
1192
|
-
return throwDefaultError({
|
|
1193
|
-
output,
|
|
1194
|
-
parsedBody,
|
|
1195
|
-
errorCode
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
}, "de_GetManagedEndpointSessionCredentialsCommandError");
|
|
1199
908
|
var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1200
909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1201
|
-
return
|
|
910
|
+
return de_CommandError(output, context);
|
|
1202
911
|
}
|
|
1203
912
|
const contents = (0, import_smithy_client.map)({
|
|
1204
913
|
$metadata: deserializeMetadata(output)
|
|
@@ -1211,31 +920,9 @@ var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1211
920
|
Object.assign(contents, doc);
|
|
1212
921
|
return contents;
|
|
1213
922
|
}, "de_ListJobRunsCommand");
|
|
1214
|
-
var de_ListJobRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1215
|
-
const parsedOutput = {
|
|
1216
|
-
...output,
|
|
1217
|
-
body: await parseErrorBody(output.body, context)
|
|
1218
|
-
};
|
|
1219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
-
switch (errorCode) {
|
|
1221
|
-
case "InternalServerException":
|
|
1222
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1223
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ValidationException":
|
|
1225
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1226
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
}, "de_ListJobRunsCommandError");
|
|
1236
923
|
var de_ListJobTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1237
924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1239
926
|
}
|
|
1240
927
|
const contents = (0, import_smithy_client.map)({
|
|
1241
928
|
$metadata: deserializeMetadata(output)
|
|
@@ -1248,31 +935,9 @@ var de_ListJobTemplatesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1248
935
|
Object.assign(contents, doc);
|
|
1249
936
|
return contents;
|
|
1250
937
|
}, "de_ListJobTemplatesCommand");
|
|
1251
|
-
var de_ListJobTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
|
-
const parsedOutput = {
|
|
1253
|
-
...output,
|
|
1254
|
-
body: await parseErrorBody(output.body, context)
|
|
1255
|
-
};
|
|
1256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
-
switch (errorCode) {
|
|
1258
|
-
case "InternalServerException":
|
|
1259
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ValidationException":
|
|
1262
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1263
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1264
|
-
default:
|
|
1265
|
-
const parsedBody = parsedOutput.body;
|
|
1266
|
-
return throwDefaultError({
|
|
1267
|
-
output,
|
|
1268
|
-
parsedBody,
|
|
1269
|
-
errorCode
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
}, "de_ListJobTemplatesCommandError");
|
|
1273
938
|
var de_ListManagedEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1274
939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1275
|
-
return
|
|
940
|
+
return de_CommandError(output, context);
|
|
1276
941
|
}
|
|
1277
942
|
const contents = (0, import_smithy_client.map)({
|
|
1278
943
|
$metadata: deserializeMetadata(output)
|
|
@@ -1285,31 +950,9 @@ var de_ListManagedEndpointsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1285
950
|
Object.assign(contents, doc);
|
|
1286
951
|
return contents;
|
|
1287
952
|
}, "de_ListManagedEndpointsCommand");
|
|
1288
|
-
var de_ListManagedEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
|
-
const parsedOutput = {
|
|
1290
|
-
...output,
|
|
1291
|
-
body: await parseErrorBody(output.body, context)
|
|
1292
|
-
};
|
|
1293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
-
switch (errorCode) {
|
|
1295
|
-
case "InternalServerException":
|
|
1296
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1297
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ValidationException":
|
|
1299
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1301
|
-
default:
|
|
1302
|
-
const parsedBody = parsedOutput.body;
|
|
1303
|
-
return throwDefaultError({
|
|
1304
|
-
output,
|
|
1305
|
-
parsedBody,
|
|
1306
|
-
errorCode
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
}, "de_ListManagedEndpointsCommandError");
|
|
1310
953
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1311
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1312
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1313
956
|
}
|
|
1314
957
|
const contents = (0, import_smithy_client.map)({
|
|
1315
958
|
$metadata: deserializeMetadata(output)
|
|
@@ -1321,34 +964,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1321
964
|
Object.assign(contents, doc);
|
|
1322
965
|
return contents;
|
|
1323
966
|
}, "de_ListTagsForResourceCommand");
|
|
1324
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
|
-
const parsedOutput = {
|
|
1326
|
-
...output,
|
|
1327
|
-
body: await parseErrorBody(output.body, context)
|
|
1328
|
-
};
|
|
1329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
|
-
switch (errorCode) {
|
|
1331
|
-
case "InternalServerException":
|
|
1332
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1333
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ResourceNotFoundException":
|
|
1335
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1336
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ValidationException":
|
|
1338
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1349
967
|
var de_ListVirtualClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
-
return
|
|
969
|
+
return de_CommandError(output, context);
|
|
1352
970
|
}
|
|
1353
971
|
const contents = (0, import_smithy_client.map)({
|
|
1354
972
|
$metadata: deserializeMetadata(output)
|
|
@@ -1361,31 +979,9 @@ var de_ListVirtualClustersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1361
979
|
Object.assign(contents, doc);
|
|
1362
980
|
return contents;
|
|
1363
981
|
}, "de_ListVirtualClustersCommand");
|
|
1364
|
-
var de_ListVirtualClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context)
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "InternalServerException":
|
|
1372
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1373
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ValidationException":
|
|
1375
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1377
|
-
default:
|
|
1378
|
-
const parsedBody = parsedOutput.body;
|
|
1379
|
-
return throwDefaultError({
|
|
1380
|
-
output,
|
|
1381
|
-
parsedBody,
|
|
1382
|
-
errorCode
|
|
1383
|
-
});
|
|
1384
|
-
}
|
|
1385
|
-
}, "de_ListVirtualClustersCommandError");
|
|
1386
982
|
var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
984
|
+
return de_CommandError(output, context);
|
|
1389
985
|
}
|
|
1390
986
|
const contents = (0, import_smithy_client.map)({
|
|
1391
987
|
$metadata: deserializeMetadata(output)
|
|
@@ -1400,34 +996,9 @@ var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1400
996
|
Object.assign(contents, doc);
|
|
1401
997
|
return contents;
|
|
1402
998
|
}, "de_StartJobRunCommand");
|
|
1403
|
-
var de_StartJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context)
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "InternalServerException":
|
|
1411
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1412
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ResourceNotFoundException":
|
|
1414
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1415
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ValidationException":
|
|
1417
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1418
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody,
|
|
1424
|
-
errorCode
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
}, "de_StartJobRunCommandError");
|
|
1428
999
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
1000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
1431
1002
|
}
|
|
1432
1003
|
const contents = (0, import_smithy_client.map)({
|
|
1433
1004
|
$metadata: deserializeMetadata(output)
|
|
@@ -1435,34 +1006,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1435
1006
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1436
1007
|
return contents;
|
|
1437
1008
|
}, "de_TagResourceCommand");
|
|
1438
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1439
|
-
const parsedOutput = {
|
|
1440
|
-
...output,
|
|
1441
|
-
body: await parseErrorBody(output.body, context)
|
|
1442
|
-
};
|
|
1443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
|
-
switch (errorCode) {
|
|
1445
|
-
case "InternalServerException":
|
|
1446
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1447
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "ResourceNotFoundException":
|
|
1449
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1450
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "ValidationException":
|
|
1452
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1453
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1454
|
-
default:
|
|
1455
|
-
const parsedBody = parsedOutput.body;
|
|
1456
|
-
return throwDefaultError({
|
|
1457
|
-
output,
|
|
1458
|
-
parsedBody,
|
|
1459
|
-
errorCode
|
|
1460
|
-
});
|
|
1461
|
-
}
|
|
1462
|
-
}, "de_TagResourceCommandError");
|
|
1463
1009
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1464
1010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1465
|
-
return
|
|
1011
|
+
return de_CommandError(output, context);
|
|
1466
1012
|
}
|
|
1467
1013
|
const contents = (0, import_smithy_client.map)({
|
|
1468
1014
|
$metadata: deserializeMetadata(output)
|
|
@@ -1470,7 +1016,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1470
1016
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1471
1017
|
return contents;
|
|
1472
1018
|
}, "de_UntagResourceCommand");
|
|
1473
|
-
var
|
|
1019
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1474
1020
|
const parsedOutput = {
|
|
1475
1021
|
...output,
|
|
1476
1022
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1480,12 +1026,15 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1480
1026
|
case "InternalServerException":
|
|
1481
1027
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1482
1028
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ResourceNotFoundException":
|
|
1484
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1486
1029
|
case "ValidationException":
|
|
1487
1030
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1488
1031
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1032
|
+
case "ResourceNotFoundException":
|
|
1033
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1034
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1035
|
+
case "RequestThrottledException":
|
|
1036
|
+
case "com.amazonaws.emrcontainers#RequestThrottledException":
|
|
1037
|
+
throw await de_RequestThrottledExceptionRes(parsedOutput, context);
|
|
1489
1038
|
default:
|
|
1490
1039
|
const parsedBody = parsedOutput.body;
|
|
1491
1040
|
return throwDefaultError({
|
|
@@ -1494,7 +1043,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1494
1043
|
errorCode
|
|
1495
1044
|
});
|
|
1496
1045
|
}
|
|
1497
|
-
}, "
|
|
1046
|
+
}, "de_CommandError");
|
|
1498
1047
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(EMRContainersServiceException);
|
|
1499
1048
|
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1500
1049
|
const contents = (0, import_smithy_client.map)({});
|