@aws-sdk/client-batch 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/BatchServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +30 -3
- package/dist-cjs/protocols/Aws_restJson1.js +210 -568
- package/dist-es/index.js +1 -0
- package/dist-es/models/BatchServiceException.js +12 -0
- package/dist-es/models/models_0.js +26 -1
- package/dist-es/protocols/Aws_restJson1.js +447 -667
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/BatchServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +16 -9
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/BatchServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -9
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateSchedulingPolicyCommand = exports.deserializeAws_restJson1UpdateJobQueueCommand = exports.deserializeAws_restJson1UpdateComputeEnvironmentCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TerminateJobCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SubmitJobCommand = exports.deserializeAws_restJson1RegisterJobDefinitionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSchedulingPoliciesCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1DescribeSchedulingPoliciesCommand = exports.deserializeAws_restJson1DescribeJobsCommand = exports.deserializeAws_restJson1DescribeJobQueuesCommand = exports.deserializeAws_restJson1DescribeJobDefinitionsCommand = exports.deserializeAws_restJson1DescribeComputeEnvironmentsCommand = exports.deserializeAws_restJson1DeregisterJobDefinitionCommand = exports.deserializeAws_restJson1DeleteSchedulingPolicyCommand = exports.deserializeAws_restJson1DeleteJobQueueCommand = exports.deserializeAws_restJson1DeleteComputeEnvironmentCommand = exports.deserializeAws_restJson1CreateSchedulingPolicyCommand = exports.deserializeAws_restJson1CreateJobQueueCommand = exports.deserializeAws_restJson1CreateComputeEnvironmentCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1UpdateSchedulingPolicyCommand = exports.serializeAws_restJson1UpdateJobQueueCommand = exports.serializeAws_restJson1UpdateComputeEnvironmentCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TerminateJobCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SubmitJobCommand = exports.serializeAws_restJson1RegisterJobDefinitionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSchedulingPoliciesCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1DescribeSchedulingPoliciesCommand = exports.serializeAws_restJson1DescribeJobsCommand = exports.serializeAws_restJson1DescribeJobQueuesCommand = exports.serializeAws_restJson1DescribeJobDefinitionsCommand = exports.serializeAws_restJson1DescribeComputeEnvironmentsCommand = exports.serializeAws_restJson1DeregisterJobDefinitionCommand = exports.serializeAws_restJson1DeleteSchedulingPolicyCommand = exports.serializeAws_restJson1DeleteJobQueueCommand = exports.serializeAws_restJson1DeleteComputeEnvironmentCommand = exports.serializeAws_restJson1CreateSchedulingPolicyCommand = exports.serializeAws_restJson1CreateJobQueueCommand = exports.serializeAws_restJson1CreateComputeEnvironmentCommand = exports.serializeAws_restJson1CancelJobCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const BatchServiceException_1 = require("../models/BatchServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -691,35 +693,19 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
691
693
|
switch (errorCode) {
|
|
692
694
|
case "ClientException":
|
|
693
695
|
case "com.amazonaws.batch#ClientException":
|
|
694
|
-
|
|
695
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
696
|
-
name: errorCode,
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
};
|
|
699
|
-
break;
|
|
696
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
700
697
|
case "ServerException":
|
|
701
698
|
case "com.amazonaws.batch#ServerException":
|
|
702
|
-
|
|
703
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
704
|
-
name: errorCode,
|
|
705
|
-
$metadata: deserializeMetadata(output),
|
|
706
|
-
};
|
|
707
|
-
break;
|
|
699
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
708
700
|
default:
|
|
709
701
|
const parsedBody = parsedOutput.body;
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
...parsedBody,
|
|
713
|
-
name: `${errorCode}`,
|
|
714
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
702
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
703
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
715
704
|
$fault: "client",
|
|
716
705
|
$metadata: deserializeMetadata(output),
|
|
717
|
-
};
|
|
706
|
+
});
|
|
707
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
718
708
|
}
|
|
719
|
-
const message = response.message || response.Message || errorCode;
|
|
720
|
-
response.message = message;
|
|
721
|
-
delete response.Message;
|
|
722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
723
709
|
};
|
|
724
710
|
const deserializeAws_restJson1CreateComputeEnvironmentCommand = async (output, context) => {
|
|
725
711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -751,35 +737,19 @@ const deserializeAws_restJson1CreateComputeEnvironmentCommandError = async (outp
|
|
|
751
737
|
switch (errorCode) {
|
|
752
738
|
case "ClientException":
|
|
753
739
|
case "com.amazonaws.batch#ClientException":
|
|
754
|
-
|
|
755
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
756
|
-
name: errorCode,
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
};
|
|
759
|
-
break;
|
|
740
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
760
741
|
case "ServerException":
|
|
761
742
|
case "com.amazonaws.batch#ServerException":
|
|
762
|
-
|
|
763
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
764
|
-
name: errorCode,
|
|
765
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
-
};
|
|
767
|
-
break;
|
|
743
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
768
744
|
default:
|
|
769
745
|
const parsedBody = parsedOutput.body;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
...parsedBody,
|
|
773
|
-
name: `${errorCode}`,
|
|
774
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
746
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
747
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
775
748
|
$fault: "client",
|
|
776
749
|
$metadata: deserializeMetadata(output),
|
|
777
|
-
};
|
|
750
|
+
});
|
|
751
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
778
752
|
}
|
|
779
|
-
const message = response.message || response.Message || errorCode;
|
|
780
|
-
response.message = message;
|
|
781
|
-
delete response.Message;
|
|
782
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
783
753
|
};
|
|
784
754
|
const deserializeAws_restJson1CreateJobQueueCommand = async (output, context) => {
|
|
785
755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -811,35 +781,19 @@ const deserializeAws_restJson1CreateJobQueueCommandError = async (output, contex
|
|
|
811
781
|
switch (errorCode) {
|
|
812
782
|
case "ClientException":
|
|
813
783
|
case "com.amazonaws.batch#ClientException":
|
|
814
|
-
|
|
815
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
816
|
-
name: errorCode,
|
|
817
|
-
$metadata: deserializeMetadata(output),
|
|
818
|
-
};
|
|
819
|
-
break;
|
|
784
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
820
785
|
case "ServerException":
|
|
821
786
|
case "com.amazonaws.batch#ServerException":
|
|
822
|
-
|
|
823
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
824
|
-
name: errorCode,
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
};
|
|
827
|
-
break;
|
|
787
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
828
788
|
default:
|
|
829
789
|
const parsedBody = parsedOutput.body;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
...parsedBody,
|
|
833
|
-
name: `${errorCode}`,
|
|
834
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
790
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
791
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
835
792
|
$fault: "client",
|
|
836
793
|
$metadata: deserializeMetadata(output),
|
|
837
|
-
};
|
|
794
|
+
});
|
|
795
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
838
796
|
}
|
|
839
|
-
const message = response.message || response.Message || errorCode;
|
|
840
|
-
response.message = message;
|
|
841
|
-
delete response.Message;
|
|
842
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
843
797
|
};
|
|
844
798
|
const deserializeAws_restJson1CreateSchedulingPolicyCommand = async (output, context) => {
|
|
845
799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -871,35 +825,19 @@ const deserializeAws_restJson1CreateSchedulingPolicyCommandError = async (output
|
|
|
871
825
|
switch (errorCode) {
|
|
872
826
|
case "ClientException":
|
|
873
827
|
case "com.amazonaws.batch#ClientException":
|
|
874
|
-
|
|
875
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
876
|
-
name: errorCode,
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
};
|
|
879
|
-
break;
|
|
828
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
880
829
|
case "ServerException":
|
|
881
830
|
case "com.amazonaws.batch#ServerException":
|
|
882
|
-
|
|
883
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
884
|
-
name: errorCode,
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
};
|
|
887
|
-
break;
|
|
831
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
888
832
|
default:
|
|
889
833
|
const parsedBody = parsedOutput.body;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
...parsedBody,
|
|
893
|
-
name: `${errorCode}`,
|
|
894
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
834
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
835
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
895
836
|
$fault: "client",
|
|
896
837
|
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
838
|
+
});
|
|
839
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
898
840
|
}
|
|
899
|
-
const message = response.message || response.Message || errorCode;
|
|
900
|
-
response.message = message;
|
|
901
|
-
delete response.Message;
|
|
902
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
903
841
|
};
|
|
904
842
|
const deserializeAws_restJson1DeleteComputeEnvironmentCommand = async (output, context) => {
|
|
905
843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -923,35 +861,19 @@ const deserializeAws_restJson1DeleteComputeEnvironmentCommandError = async (outp
|
|
|
923
861
|
switch (errorCode) {
|
|
924
862
|
case "ClientException":
|
|
925
863
|
case "com.amazonaws.batch#ClientException":
|
|
926
|
-
|
|
927
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
928
|
-
name: errorCode,
|
|
929
|
-
$metadata: deserializeMetadata(output),
|
|
930
|
-
};
|
|
931
|
-
break;
|
|
864
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
932
865
|
case "ServerException":
|
|
933
866
|
case "com.amazonaws.batch#ServerException":
|
|
934
|
-
|
|
935
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
936
|
-
name: errorCode,
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
};
|
|
939
|
-
break;
|
|
867
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
940
868
|
default:
|
|
941
869
|
const parsedBody = parsedOutput.body;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
...parsedBody,
|
|
945
|
-
name: `${errorCode}`,
|
|
946
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
870
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
947
872
|
$fault: "client",
|
|
948
873
|
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
874
|
+
});
|
|
875
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
950
876
|
}
|
|
951
|
-
const message = response.message || response.Message || errorCode;
|
|
952
|
-
response.message = message;
|
|
953
|
-
delete response.Message;
|
|
954
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
955
877
|
};
|
|
956
878
|
const deserializeAws_restJson1DeleteJobQueueCommand = async (output, context) => {
|
|
957
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -975,35 +897,19 @@ const deserializeAws_restJson1DeleteJobQueueCommandError = async (output, contex
|
|
|
975
897
|
switch (errorCode) {
|
|
976
898
|
case "ClientException":
|
|
977
899
|
case "com.amazonaws.batch#ClientException":
|
|
978
|
-
|
|
979
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
980
|
-
name: errorCode,
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
break;
|
|
900
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
984
901
|
case "ServerException":
|
|
985
902
|
case "com.amazonaws.batch#ServerException":
|
|
986
|
-
|
|
987
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
903
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
992
904
|
default:
|
|
993
905
|
const parsedBody = parsedOutput.body;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
...parsedBody,
|
|
997
|
-
name: `${errorCode}`,
|
|
998
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
906
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
907
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
999
908
|
$fault: "client",
|
|
1000
909
|
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
910
|
+
});
|
|
911
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1002
912
|
}
|
|
1003
|
-
const message = response.message || response.Message || errorCode;
|
|
1004
|
-
response.message = message;
|
|
1005
|
-
delete response.Message;
|
|
1006
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1007
913
|
};
|
|
1008
914
|
const deserializeAws_restJson1DeleteSchedulingPolicyCommand = async (output, context) => {
|
|
1009
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1027,35 +933,19 @@ const deserializeAws_restJson1DeleteSchedulingPolicyCommandError = async (output
|
|
|
1027
933
|
switch (errorCode) {
|
|
1028
934
|
case "ClientException":
|
|
1029
935
|
case "com.amazonaws.batch#ClientException":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
936
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1036
937
|
case "ServerException":
|
|
1037
938
|
case "com.amazonaws.batch#ServerException":
|
|
1038
|
-
|
|
1039
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
939
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1044
940
|
default:
|
|
1045
941
|
const parsedBody = parsedOutput.body;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
...parsedBody,
|
|
1049
|
-
name: `${errorCode}`,
|
|
1050
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
942
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
943
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1051
944
|
$fault: "client",
|
|
1052
945
|
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
946
|
+
});
|
|
947
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1054
948
|
}
|
|
1055
|
-
const message = response.message || response.Message || errorCode;
|
|
1056
|
-
response.message = message;
|
|
1057
|
-
delete response.Message;
|
|
1058
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1059
949
|
};
|
|
1060
950
|
const deserializeAws_restJson1DeregisterJobDefinitionCommand = async (output, context) => {
|
|
1061
951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1079,35 +969,19 @@ const deserializeAws_restJson1DeregisterJobDefinitionCommandError = async (outpu
|
|
|
1079
969
|
switch (errorCode) {
|
|
1080
970
|
case "ClientException":
|
|
1081
971
|
case "com.amazonaws.batch#ClientException":
|
|
1082
|
-
|
|
1083
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1084
|
-
name: errorCode,
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
};
|
|
1087
|
-
break;
|
|
972
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1088
973
|
case "ServerException":
|
|
1089
974
|
case "com.amazonaws.batch#ServerException":
|
|
1090
|
-
|
|
1091
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1092
|
-
name: errorCode,
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
};
|
|
1095
|
-
break;
|
|
975
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1096
976
|
default:
|
|
1097
977
|
const parsedBody = parsedOutput.body;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
...parsedBody,
|
|
1101
|
-
name: `${errorCode}`,
|
|
1102
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
978
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
979
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1103
980
|
$fault: "client",
|
|
1104
981
|
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
982
|
+
});
|
|
983
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1106
984
|
}
|
|
1107
|
-
const message = response.message || response.Message || errorCode;
|
|
1108
|
-
response.message = message;
|
|
1109
|
-
delete response.Message;
|
|
1110
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1111
985
|
};
|
|
1112
986
|
const deserializeAws_restJson1DescribeComputeEnvironmentsCommand = async (output, context) => {
|
|
1113
987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1139,35 +1013,19 @@ const deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = async (o
|
|
|
1139
1013
|
switch (errorCode) {
|
|
1140
1014
|
case "ClientException":
|
|
1141
1015
|
case "com.amazonaws.batch#ClientException":
|
|
1142
|
-
|
|
1143
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1144
|
-
name: errorCode,
|
|
1145
|
-
$metadata: deserializeMetadata(output),
|
|
1146
|
-
};
|
|
1147
|
-
break;
|
|
1016
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1148
1017
|
case "ServerException":
|
|
1149
1018
|
case "com.amazonaws.batch#ServerException":
|
|
1150
|
-
|
|
1151
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1152
|
-
name: errorCode,
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
1155
|
-
break;
|
|
1019
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1156
1020
|
default:
|
|
1157
1021
|
const parsedBody = parsedOutput.body;
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
...parsedBody,
|
|
1161
|
-
name: `${errorCode}`,
|
|
1162
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1022
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1023
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1163
1024
|
$fault: "client",
|
|
1164
1025
|
$metadata: deserializeMetadata(output),
|
|
1165
|
-
};
|
|
1026
|
+
});
|
|
1027
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1166
1028
|
}
|
|
1167
|
-
const message = response.message || response.Message || errorCode;
|
|
1168
|
-
response.message = message;
|
|
1169
|
-
delete response.Message;
|
|
1170
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1171
1029
|
};
|
|
1172
1030
|
const deserializeAws_restJson1DescribeJobDefinitionsCommand = async (output, context) => {
|
|
1173
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1199,35 +1057,19 @@ const deserializeAws_restJson1DescribeJobDefinitionsCommandError = async (output
|
|
|
1199
1057
|
switch (errorCode) {
|
|
1200
1058
|
case "ClientException":
|
|
1201
1059
|
case "com.amazonaws.batch#ClientException":
|
|
1202
|
-
|
|
1203
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1204
|
-
name: errorCode,
|
|
1205
|
-
$metadata: deserializeMetadata(output),
|
|
1206
|
-
};
|
|
1207
|
-
break;
|
|
1060
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1208
1061
|
case "ServerException":
|
|
1209
1062
|
case "com.amazonaws.batch#ServerException":
|
|
1210
|
-
|
|
1211
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1212
|
-
name: errorCode,
|
|
1213
|
-
$metadata: deserializeMetadata(output),
|
|
1214
|
-
};
|
|
1215
|
-
break;
|
|
1063
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1216
1064
|
default:
|
|
1217
1065
|
const parsedBody = parsedOutput.body;
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
...parsedBody,
|
|
1221
|
-
name: `${errorCode}`,
|
|
1222
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1066
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1067
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1223
1068
|
$fault: "client",
|
|
1224
1069
|
$metadata: deserializeMetadata(output),
|
|
1225
|
-
};
|
|
1070
|
+
});
|
|
1071
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1226
1072
|
}
|
|
1227
|
-
const message = response.message || response.Message || errorCode;
|
|
1228
|
-
response.message = message;
|
|
1229
|
-
delete response.Message;
|
|
1230
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1231
1073
|
};
|
|
1232
1074
|
const deserializeAws_restJson1DescribeJobQueuesCommand = async (output, context) => {
|
|
1233
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1259,35 +1101,19 @@ const deserializeAws_restJson1DescribeJobQueuesCommandError = async (output, con
|
|
|
1259
1101
|
switch (errorCode) {
|
|
1260
1102
|
case "ClientException":
|
|
1261
1103
|
case "com.amazonaws.batch#ClientException":
|
|
1262
|
-
|
|
1263
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1264
|
-
name: errorCode,
|
|
1265
|
-
$metadata: deserializeMetadata(output),
|
|
1266
|
-
};
|
|
1267
|
-
break;
|
|
1104
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1268
1105
|
case "ServerException":
|
|
1269
1106
|
case "com.amazonaws.batch#ServerException":
|
|
1270
|
-
|
|
1271
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1272
|
-
name: errorCode,
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
};
|
|
1275
|
-
break;
|
|
1107
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1276
1108
|
default:
|
|
1277
1109
|
const parsedBody = parsedOutput.body;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
...parsedBody,
|
|
1281
|
-
name: `${errorCode}`,
|
|
1282
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1110
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1283
1112
|
$fault: "client",
|
|
1284
1113
|
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1114
|
+
});
|
|
1115
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1286
1116
|
}
|
|
1287
|
-
const message = response.message || response.Message || errorCode;
|
|
1288
|
-
response.message = message;
|
|
1289
|
-
delete response.Message;
|
|
1290
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1291
1117
|
};
|
|
1292
1118
|
const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
1293
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1315,35 +1141,19 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1315
1141
|
switch (errorCode) {
|
|
1316
1142
|
case "ClientException":
|
|
1317
1143
|
case "com.amazonaws.batch#ClientException":
|
|
1318
|
-
|
|
1319
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1320
|
-
name: errorCode,
|
|
1321
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
-
};
|
|
1323
|
-
break;
|
|
1144
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1324
1145
|
case "ServerException":
|
|
1325
1146
|
case "com.amazonaws.batch#ServerException":
|
|
1326
|
-
|
|
1327
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1328
|
-
name: errorCode,
|
|
1329
|
-
$metadata: deserializeMetadata(output),
|
|
1330
|
-
};
|
|
1331
|
-
break;
|
|
1147
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1332
1148
|
default:
|
|
1333
1149
|
const parsedBody = parsedOutput.body;
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
...parsedBody,
|
|
1337
|
-
name: `${errorCode}`,
|
|
1338
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1150
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1151
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1339
1152
|
$fault: "client",
|
|
1340
1153
|
$metadata: deserializeMetadata(output),
|
|
1341
|
-
};
|
|
1154
|
+
});
|
|
1155
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1342
1156
|
}
|
|
1343
|
-
const message = response.message || response.Message || errorCode;
|
|
1344
|
-
response.message = message;
|
|
1345
|
-
delete response.Message;
|
|
1346
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1347
1157
|
};
|
|
1348
1158
|
const deserializeAws_restJson1DescribeSchedulingPoliciesCommand = async (output, context) => {
|
|
1349
1159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1371,35 +1181,19 @@ const deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = async (ou
|
|
|
1371
1181
|
switch (errorCode) {
|
|
1372
1182
|
case "ClientException":
|
|
1373
1183
|
case "com.amazonaws.batch#ClientException":
|
|
1374
|
-
|
|
1375
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1376
|
-
name: errorCode,
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
};
|
|
1379
|
-
break;
|
|
1184
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1380
1185
|
case "ServerException":
|
|
1381
1186
|
case "com.amazonaws.batch#ServerException":
|
|
1382
|
-
|
|
1383
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1384
|
-
name: errorCode,
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
};
|
|
1387
|
-
break;
|
|
1187
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1388
1188
|
default:
|
|
1389
1189
|
const parsedBody = parsedOutput.body;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
...parsedBody,
|
|
1393
|
-
name: `${errorCode}`,
|
|
1394
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1190
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1191
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1395
1192
|
$fault: "client",
|
|
1396
1193
|
$metadata: deserializeMetadata(output),
|
|
1397
|
-
};
|
|
1194
|
+
});
|
|
1195
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1398
1196
|
}
|
|
1399
|
-
const message = response.message || response.Message || errorCode;
|
|
1400
|
-
response.message = message;
|
|
1401
|
-
delete response.Message;
|
|
1402
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1403
1197
|
};
|
|
1404
1198
|
const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
|
|
1405
1199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1431,35 +1225,19 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1431
1225
|
switch (errorCode) {
|
|
1432
1226
|
case "ClientException":
|
|
1433
1227
|
case "com.amazonaws.batch#ClientException":
|
|
1434
|
-
|
|
1435
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1436
|
-
name: errorCode,
|
|
1437
|
-
$metadata: deserializeMetadata(output),
|
|
1438
|
-
};
|
|
1439
|
-
break;
|
|
1228
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1440
1229
|
case "ServerException":
|
|
1441
1230
|
case "com.amazonaws.batch#ServerException":
|
|
1442
|
-
|
|
1443
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1444
|
-
name: errorCode,
|
|
1445
|
-
$metadata: deserializeMetadata(output),
|
|
1446
|
-
};
|
|
1447
|
-
break;
|
|
1231
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1448
1232
|
default:
|
|
1449
1233
|
const parsedBody = parsedOutput.body;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
...parsedBody,
|
|
1453
|
-
name: `${errorCode}`,
|
|
1454
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1234
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1235
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1455
1236
|
$fault: "client",
|
|
1456
1237
|
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1238
|
+
});
|
|
1239
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1458
1240
|
}
|
|
1459
|
-
const message = response.message || response.Message || errorCode;
|
|
1460
|
-
response.message = message;
|
|
1461
|
-
delete response.Message;
|
|
1462
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1463
1241
|
};
|
|
1464
1242
|
const deserializeAws_restJson1ListSchedulingPoliciesCommand = async (output, context) => {
|
|
1465
1243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1491,35 +1269,19 @@ const deserializeAws_restJson1ListSchedulingPoliciesCommandError = async (output
|
|
|
1491
1269
|
switch (errorCode) {
|
|
1492
1270
|
case "ClientException":
|
|
1493
1271
|
case "com.amazonaws.batch#ClientException":
|
|
1494
|
-
|
|
1495
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1496
|
-
name: errorCode,
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
};
|
|
1499
|
-
break;
|
|
1272
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1500
1273
|
case "ServerException":
|
|
1501
1274
|
case "com.amazonaws.batch#ServerException":
|
|
1502
|
-
|
|
1503
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1504
|
-
name: errorCode,
|
|
1505
|
-
$metadata: deserializeMetadata(output),
|
|
1506
|
-
};
|
|
1507
|
-
break;
|
|
1275
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1508
1276
|
default:
|
|
1509
1277
|
const parsedBody = parsedOutput.body;
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
...parsedBody,
|
|
1513
|
-
name: `${errorCode}`,
|
|
1514
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1278
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1279
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1515
1280
|
$fault: "client",
|
|
1516
1281
|
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1282
|
+
});
|
|
1283
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1518
1284
|
}
|
|
1519
|
-
const message = response.message || response.Message || errorCode;
|
|
1520
|
-
response.message = message;
|
|
1521
|
-
delete response.Message;
|
|
1522
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1523
1285
|
};
|
|
1524
1286
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1525
1287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1547,35 +1309,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1547
1309
|
switch (errorCode) {
|
|
1548
1310
|
case "ClientException":
|
|
1549
1311
|
case "com.amazonaws.batch#ClientException":
|
|
1550
|
-
|
|
1551
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1552
|
-
name: errorCode,
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1555
|
-
break;
|
|
1312
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1556
1313
|
case "ServerException":
|
|
1557
1314
|
case "com.amazonaws.batch#ServerException":
|
|
1558
|
-
|
|
1559
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1560
|
-
name: errorCode,
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
};
|
|
1563
|
-
break;
|
|
1315
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1564
1316
|
default:
|
|
1565
1317
|
const parsedBody = parsedOutput.body;
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
...parsedBody,
|
|
1569
|
-
name: `${errorCode}`,
|
|
1570
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1318
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1571
1320
|
$fault: "client",
|
|
1572
1321
|
$metadata: deserializeMetadata(output),
|
|
1573
|
-
};
|
|
1322
|
+
});
|
|
1323
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1574
1324
|
}
|
|
1575
|
-
const message = response.message || response.Message || errorCode;
|
|
1576
|
-
response.message = message;
|
|
1577
|
-
delete response.Message;
|
|
1578
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1579
1325
|
};
|
|
1580
1326
|
const deserializeAws_restJson1RegisterJobDefinitionCommand = async (output, context) => {
|
|
1581
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1611,35 +1357,19 @@ const deserializeAws_restJson1RegisterJobDefinitionCommandError = async (output,
|
|
|
1611
1357
|
switch (errorCode) {
|
|
1612
1358
|
case "ClientException":
|
|
1613
1359
|
case "com.amazonaws.batch#ClientException":
|
|
1614
|
-
|
|
1615
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1616
|
-
name: errorCode,
|
|
1617
|
-
$metadata: deserializeMetadata(output),
|
|
1618
|
-
};
|
|
1619
|
-
break;
|
|
1360
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1620
1361
|
case "ServerException":
|
|
1621
1362
|
case "com.amazonaws.batch#ServerException":
|
|
1622
|
-
|
|
1623
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1624
|
-
name: errorCode,
|
|
1625
|
-
$metadata: deserializeMetadata(output),
|
|
1626
|
-
};
|
|
1627
|
-
break;
|
|
1363
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1628
1364
|
default:
|
|
1629
1365
|
const parsedBody = parsedOutput.body;
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
...parsedBody,
|
|
1633
|
-
name: `${errorCode}`,
|
|
1634
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1366
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1367
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1635
1368
|
$fault: "client",
|
|
1636
1369
|
$metadata: deserializeMetadata(output),
|
|
1637
|
-
};
|
|
1370
|
+
});
|
|
1371
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1638
1372
|
}
|
|
1639
|
-
const message = response.message || response.Message || errorCode;
|
|
1640
|
-
response.message = message;
|
|
1641
|
-
delete response.Message;
|
|
1642
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1643
1373
|
};
|
|
1644
1374
|
const deserializeAws_restJson1SubmitJobCommand = async (output, context) => {
|
|
1645
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1675,35 +1405,19 @@ const deserializeAws_restJson1SubmitJobCommandError = async (output, context) =>
|
|
|
1675
1405
|
switch (errorCode) {
|
|
1676
1406
|
case "ClientException":
|
|
1677
1407
|
case "com.amazonaws.batch#ClientException":
|
|
1678
|
-
|
|
1679
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1680
|
-
name: errorCode,
|
|
1681
|
-
$metadata: deserializeMetadata(output),
|
|
1682
|
-
};
|
|
1683
|
-
break;
|
|
1408
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1684
1409
|
case "ServerException":
|
|
1685
1410
|
case "com.amazonaws.batch#ServerException":
|
|
1686
|
-
|
|
1687
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1688
|
-
name: errorCode,
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
};
|
|
1691
|
-
break;
|
|
1411
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1692
1412
|
default:
|
|
1693
1413
|
const parsedBody = parsedOutput.body;
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
...parsedBody,
|
|
1697
|
-
name: `${errorCode}`,
|
|
1698
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1414
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1415
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1699
1416
|
$fault: "client",
|
|
1700
1417
|
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1418
|
+
});
|
|
1419
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1702
1420
|
}
|
|
1703
|
-
const message = response.message || response.Message || errorCode;
|
|
1704
|
-
response.message = message;
|
|
1705
|
-
delete response.Message;
|
|
1706
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1707
1421
|
};
|
|
1708
1422
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1709
1423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1727,35 +1441,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1727
1441
|
switch (errorCode) {
|
|
1728
1442
|
case "ClientException":
|
|
1729
1443
|
case "com.amazonaws.batch#ClientException":
|
|
1730
|
-
|
|
1731
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1732
|
-
name: errorCode,
|
|
1733
|
-
$metadata: deserializeMetadata(output),
|
|
1734
|
-
};
|
|
1735
|
-
break;
|
|
1444
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1736
1445
|
case "ServerException":
|
|
1737
1446
|
case "com.amazonaws.batch#ServerException":
|
|
1738
|
-
|
|
1739
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1740
|
-
name: errorCode,
|
|
1741
|
-
$metadata: deserializeMetadata(output),
|
|
1742
|
-
};
|
|
1743
|
-
break;
|
|
1447
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1744
1448
|
default:
|
|
1745
1449
|
const parsedBody = parsedOutput.body;
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
...parsedBody,
|
|
1749
|
-
name: `${errorCode}`,
|
|
1750
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1450
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1451
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1751
1452
|
$fault: "client",
|
|
1752
1453
|
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1454
|
+
});
|
|
1455
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1754
1456
|
}
|
|
1755
|
-
const message = response.message || response.Message || errorCode;
|
|
1756
|
-
response.message = message;
|
|
1757
|
-
delete response.Message;
|
|
1758
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1759
1457
|
};
|
|
1760
1458
|
const deserializeAws_restJson1TerminateJobCommand = async (output, context) => {
|
|
1761
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1779,35 +1477,19 @@ const deserializeAws_restJson1TerminateJobCommandError = async (output, context)
|
|
|
1779
1477
|
switch (errorCode) {
|
|
1780
1478
|
case "ClientException":
|
|
1781
1479
|
case "com.amazonaws.batch#ClientException":
|
|
1782
|
-
|
|
1783
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1784
|
-
name: errorCode,
|
|
1785
|
-
$metadata: deserializeMetadata(output),
|
|
1786
|
-
};
|
|
1787
|
-
break;
|
|
1480
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1788
1481
|
case "ServerException":
|
|
1789
1482
|
case "com.amazonaws.batch#ServerException":
|
|
1790
|
-
|
|
1791
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1792
|
-
name: errorCode,
|
|
1793
|
-
$metadata: deserializeMetadata(output),
|
|
1794
|
-
};
|
|
1795
|
-
break;
|
|
1483
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1796
1484
|
default:
|
|
1797
1485
|
const parsedBody = parsedOutput.body;
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
...parsedBody,
|
|
1801
|
-
name: `${errorCode}`,
|
|
1802
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1486
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1487
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1803
1488
|
$fault: "client",
|
|
1804
1489
|
$metadata: deserializeMetadata(output),
|
|
1805
|
-
};
|
|
1490
|
+
});
|
|
1491
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1806
1492
|
}
|
|
1807
|
-
const message = response.message || response.Message || errorCode;
|
|
1808
|
-
response.message = message;
|
|
1809
|
-
delete response.Message;
|
|
1810
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1811
1493
|
};
|
|
1812
1494
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1813
1495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1831,35 +1513,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1831
1513
|
switch (errorCode) {
|
|
1832
1514
|
case "ClientException":
|
|
1833
1515
|
case "com.amazonaws.batch#ClientException":
|
|
1834
|
-
|
|
1835
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1836
|
-
name: errorCode,
|
|
1837
|
-
$metadata: deserializeMetadata(output),
|
|
1838
|
-
};
|
|
1839
|
-
break;
|
|
1516
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1840
1517
|
case "ServerException":
|
|
1841
1518
|
case "com.amazonaws.batch#ServerException":
|
|
1842
|
-
|
|
1843
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1844
|
-
name: errorCode,
|
|
1845
|
-
$metadata: deserializeMetadata(output),
|
|
1846
|
-
};
|
|
1847
|
-
break;
|
|
1519
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1848
1520
|
default:
|
|
1849
1521
|
const parsedBody = parsedOutput.body;
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
...parsedBody,
|
|
1853
|
-
name: `${errorCode}`,
|
|
1854
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1522
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1523
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1855
1524
|
$fault: "client",
|
|
1856
1525
|
$metadata: deserializeMetadata(output),
|
|
1857
|
-
};
|
|
1526
|
+
});
|
|
1527
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1858
1528
|
}
|
|
1859
|
-
const message = response.message || response.Message || errorCode;
|
|
1860
|
-
response.message = message;
|
|
1861
|
-
delete response.Message;
|
|
1862
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1863
1529
|
};
|
|
1864
1530
|
const deserializeAws_restJson1UpdateComputeEnvironmentCommand = async (output, context) => {
|
|
1865
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1891,35 +1557,19 @@ const deserializeAws_restJson1UpdateComputeEnvironmentCommandError = async (outp
|
|
|
1891
1557
|
switch (errorCode) {
|
|
1892
1558
|
case "ClientException":
|
|
1893
1559
|
case "com.amazonaws.batch#ClientException":
|
|
1894
|
-
|
|
1895
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1896
|
-
name: errorCode,
|
|
1897
|
-
$metadata: deserializeMetadata(output),
|
|
1898
|
-
};
|
|
1899
|
-
break;
|
|
1560
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1900
1561
|
case "ServerException":
|
|
1901
1562
|
case "com.amazonaws.batch#ServerException":
|
|
1902
|
-
|
|
1903
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1904
|
-
name: errorCode,
|
|
1905
|
-
$metadata: deserializeMetadata(output),
|
|
1906
|
-
};
|
|
1907
|
-
break;
|
|
1563
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1908
1564
|
default:
|
|
1909
1565
|
const parsedBody = parsedOutput.body;
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
...parsedBody,
|
|
1913
|
-
name: `${errorCode}`,
|
|
1914
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1566
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1567
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1915
1568
|
$fault: "client",
|
|
1916
1569
|
$metadata: deserializeMetadata(output),
|
|
1917
|
-
};
|
|
1570
|
+
});
|
|
1571
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1918
1572
|
}
|
|
1919
|
-
const message = response.message || response.Message || errorCode;
|
|
1920
|
-
response.message = message;
|
|
1921
|
-
delete response.Message;
|
|
1922
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1923
1573
|
};
|
|
1924
1574
|
const deserializeAws_restJson1UpdateJobQueueCommand = async (output, context) => {
|
|
1925
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1951,35 +1601,19 @@ const deserializeAws_restJson1UpdateJobQueueCommandError = async (output, contex
|
|
|
1951
1601
|
switch (errorCode) {
|
|
1952
1602
|
case "ClientException":
|
|
1953
1603
|
case "com.amazonaws.batch#ClientException":
|
|
1954
|
-
|
|
1955
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1956
|
-
name: errorCode,
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
};
|
|
1959
|
-
break;
|
|
1604
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1960
1605
|
case "ServerException":
|
|
1961
1606
|
case "com.amazonaws.batch#ServerException":
|
|
1962
|
-
|
|
1963
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1607
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1968
1608
|
default:
|
|
1969
1609
|
const parsedBody = parsedOutput.body;
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
...parsedBody,
|
|
1973
|
-
name: `${errorCode}`,
|
|
1974
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1610
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1611
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1975
1612
|
$fault: "client",
|
|
1976
1613
|
$metadata: deserializeMetadata(output),
|
|
1977
|
-
};
|
|
1614
|
+
});
|
|
1615
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1978
1616
|
}
|
|
1979
|
-
const message = response.message || response.Message || errorCode;
|
|
1980
|
-
response.message = message;
|
|
1981
|
-
delete response.Message;
|
|
1982
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1983
1617
|
};
|
|
1984
1618
|
const deserializeAws_restJson1UpdateSchedulingPolicyCommand = async (output, context) => {
|
|
1985
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2003,61 +1637,43 @@ const deserializeAws_restJson1UpdateSchedulingPolicyCommandError = async (output
|
|
|
2003
1637
|
switch (errorCode) {
|
|
2004
1638
|
case "ClientException":
|
|
2005
1639
|
case "com.amazonaws.batch#ClientException":
|
|
2006
|
-
|
|
2007
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2008
|
-
name: errorCode,
|
|
2009
|
-
$metadata: deserializeMetadata(output),
|
|
2010
|
-
};
|
|
2011
|
-
break;
|
|
1640
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2012
1641
|
case "ServerException":
|
|
2013
1642
|
case "com.amazonaws.batch#ServerException":
|
|
2014
|
-
|
|
2015
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2016
|
-
name: errorCode,
|
|
2017
|
-
$metadata: deserializeMetadata(output),
|
|
2018
|
-
};
|
|
2019
|
-
break;
|
|
1643
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2020
1644
|
default:
|
|
2021
1645
|
const parsedBody = parsedOutput.body;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
...parsedBody,
|
|
2025
|
-
name: `${errorCode}`,
|
|
2026
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1646
|
+
response = new BatchServiceException_1.BatchServiceException({
|
|
1647
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2027
1648
|
$fault: "client",
|
|
2028
1649
|
$metadata: deserializeMetadata(output),
|
|
2029
|
-
};
|
|
1650
|
+
});
|
|
1651
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2030
1652
|
}
|
|
2031
|
-
const message = response.message || response.Message || errorCode;
|
|
2032
|
-
response.message = message;
|
|
2033
|
-
delete response.Message;
|
|
2034
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2035
1653
|
};
|
|
2036
1654
|
const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, context) => {
|
|
2037
|
-
const contents = {
|
|
2038
|
-
name: "ClientException",
|
|
2039
|
-
$fault: "client",
|
|
2040
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2041
|
-
message: undefined,
|
|
2042
|
-
};
|
|
1655
|
+
const contents = {};
|
|
2043
1656
|
const data = parsedOutput.body;
|
|
2044
1657
|
if (data.message !== undefined && data.message !== null) {
|
|
2045
1658
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2046
1659
|
}
|
|
2047
|
-
|
|
1660
|
+
const exception = new models_0_1.ClientException({
|
|
1661
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1662
|
+
...contents,
|
|
1663
|
+
});
|
|
1664
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2048
1665
|
};
|
|
2049
1666
|
const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, context) => {
|
|
2050
|
-
const contents = {
|
|
2051
|
-
name: "ServerException",
|
|
2052
|
-
$fault: "server",
|
|
2053
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2054
|
-
message: undefined,
|
|
2055
|
-
};
|
|
1667
|
+
const contents = {};
|
|
2056
1668
|
const data = parsedOutput.body;
|
|
2057
1669
|
if (data.message !== undefined && data.message !== null) {
|
|
2058
1670
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2059
1671
|
}
|
|
2060
|
-
|
|
1672
|
+
const exception = new models_0_1.ServerException({
|
|
1673
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1674
|
+
...contents,
|
|
1675
|
+
});
|
|
1676
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2061
1677
|
};
|
|
2062
1678
|
const serializeAws_restJson1ArrayProperties = (input, context) => {
|
|
2063
1679
|
return {
|
|
@@ -2701,7 +2317,7 @@ const deserializeAws_restJson1AttemptDetail = (output, context) => {
|
|
|
2701
2317
|
};
|
|
2702
2318
|
};
|
|
2703
2319
|
const deserializeAws_restJson1AttemptDetails = (output, context) => {
|
|
2704
|
-
|
|
2320
|
+
const retVal = (output || [])
|
|
2705
2321
|
.filter((e) => e != null)
|
|
2706
2322
|
.map((entry) => {
|
|
2707
2323
|
if (entry === null) {
|
|
@@ -2709,6 +2325,7 @@ const deserializeAws_restJson1AttemptDetails = (output, context) => {
|
|
|
2709
2325
|
}
|
|
2710
2326
|
return deserializeAws_restJson1AttemptDetail(entry, context);
|
|
2711
2327
|
});
|
|
2328
|
+
return retVal;
|
|
2712
2329
|
};
|
|
2713
2330
|
const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
|
|
2714
2331
|
return {
|
|
@@ -2730,7 +2347,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
|
|
|
2730
2347
|
};
|
|
2731
2348
|
};
|
|
2732
2349
|
const deserializeAws_restJson1ComputeEnvironmentDetailList = (output, context) => {
|
|
2733
|
-
|
|
2350
|
+
const retVal = (output || [])
|
|
2734
2351
|
.filter((e) => e != null)
|
|
2735
2352
|
.map((entry) => {
|
|
2736
2353
|
if (entry === null) {
|
|
@@ -2738,6 +2355,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetailList = (output, context) =
|
|
|
2738
2355
|
}
|
|
2739
2356
|
return deserializeAws_restJson1ComputeEnvironmentDetail(entry, context);
|
|
2740
2357
|
});
|
|
2358
|
+
return retVal;
|
|
2741
2359
|
};
|
|
2742
2360
|
const deserializeAws_restJson1ComputeEnvironmentOrder = (output, context) => {
|
|
2743
2361
|
return {
|
|
@@ -2746,7 +2364,7 @@ const deserializeAws_restJson1ComputeEnvironmentOrder = (output, context) => {
|
|
|
2746
2364
|
};
|
|
2747
2365
|
};
|
|
2748
2366
|
const deserializeAws_restJson1ComputeEnvironmentOrders = (output, context) => {
|
|
2749
|
-
|
|
2367
|
+
const retVal = (output || [])
|
|
2750
2368
|
.filter((e) => e != null)
|
|
2751
2369
|
.map((entry) => {
|
|
2752
2370
|
if (entry === null) {
|
|
@@ -2754,6 +2372,7 @@ const deserializeAws_restJson1ComputeEnvironmentOrders = (output, context) => {
|
|
|
2754
2372
|
}
|
|
2755
2373
|
return deserializeAws_restJson1ComputeEnvironmentOrder(entry, context);
|
|
2756
2374
|
});
|
|
2375
|
+
return retVal;
|
|
2757
2376
|
};
|
|
2758
2377
|
const deserializeAws_restJson1ComputeResource = (output, context) => {
|
|
2759
2378
|
return {
|
|
@@ -2904,7 +2523,7 @@ const deserializeAws_restJson1Device = (output, context) => {
|
|
|
2904
2523
|
};
|
|
2905
2524
|
};
|
|
2906
2525
|
const deserializeAws_restJson1DeviceCgroupPermissions = (output, context) => {
|
|
2907
|
-
|
|
2526
|
+
const retVal = (output || [])
|
|
2908
2527
|
.filter((e) => e != null)
|
|
2909
2528
|
.map((entry) => {
|
|
2910
2529
|
if (entry === null) {
|
|
@@ -2912,9 +2531,10 @@ const deserializeAws_restJson1DeviceCgroupPermissions = (output, context) => {
|
|
|
2912
2531
|
}
|
|
2913
2532
|
return smithy_client_1.expectString(entry);
|
|
2914
2533
|
});
|
|
2534
|
+
return retVal;
|
|
2915
2535
|
};
|
|
2916
2536
|
const deserializeAws_restJson1DevicesList = (output, context) => {
|
|
2917
|
-
|
|
2537
|
+
const retVal = (output || [])
|
|
2918
2538
|
.filter((e) => e != null)
|
|
2919
2539
|
.map((entry) => {
|
|
2920
2540
|
if (entry === null) {
|
|
@@ -2922,6 +2542,7 @@ const deserializeAws_restJson1DevicesList = (output, context) => {
|
|
|
2922
2542
|
}
|
|
2923
2543
|
return deserializeAws_restJson1Device(entry, context);
|
|
2924
2544
|
});
|
|
2545
|
+
return retVal;
|
|
2925
2546
|
};
|
|
2926
2547
|
const deserializeAws_restJson1Ec2Configuration = (output, context) => {
|
|
2927
2548
|
return {
|
|
@@ -2930,7 +2551,7 @@ const deserializeAws_restJson1Ec2Configuration = (output, context) => {
|
|
|
2930
2551
|
};
|
|
2931
2552
|
};
|
|
2932
2553
|
const deserializeAws_restJson1Ec2ConfigurationList = (output, context) => {
|
|
2933
|
-
|
|
2554
|
+
const retVal = (output || [])
|
|
2934
2555
|
.filter((e) => e != null)
|
|
2935
2556
|
.map((entry) => {
|
|
2936
2557
|
if (entry === null) {
|
|
@@ -2938,6 +2559,7 @@ const deserializeAws_restJson1Ec2ConfigurationList = (output, context) => {
|
|
|
2938
2559
|
}
|
|
2939
2560
|
return deserializeAws_restJson1Ec2Configuration(entry, context);
|
|
2940
2561
|
});
|
|
2562
|
+
return retVal;
|
|
2941
2563
|
};
|
|
2942
2564
|
const deserializeAws_restJson1EFSAuthorizationConfig = (output, context) => {
|
|
2943
2565
|
return {
|
|
@@ -2957,7 +2579,7 @@ const deserializeAws_restJson1EFSVolumeConfiguration = (output, context) => {
|
|
|
2957
2579
|
};
|
|
2958
2580
|
};
|
|
2959
2581
|
const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
2960
|
-
|
|
2582
|
+
const retVal = (output || [])
|
|
2961
2583
|
.filter((e) => e != null)
|
|
2962
2584
|
.map((entry) => {
|
|
2963
2585
|
if (entry === null) {
|
|
@@ -2965,6 +2587,7 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
|
2965
2587
|
}
|
|
2966
2588
|
return deserializeAws_restJson1KeyValuePair(entry, context);
|
|
2967
2589
|
});
|
|
2590
|
+
return retVal;
|
|
2968
2591
|
};
|
|
2969
2592
|
const deserializeAws_restJson1EvaluateOnExit = (output, context) => {
|
|
2970
2593
|
return {
|
|
@@ -2975,7 +2598,7 @@ const deserializeAws_restJson1EvaluateOnExit = (output, context) => {
|
|
|
2975
2598
|
};
|
|
2976
2599
|
};
|
|
2977
2600
|
const deserializeAws_restJson1EvaluateOnExitList = (output, context) => {
|
|
2978
|
-
|
|
2601
|
+
const retVal = (output || [])
|
|
2979
2602
|
.filter((e) => e != null)
|
|
2980
2603
|
.map((entry) => {
|
|
2981
2604
|
if (entry === null) {
|
|
@@ -2983,6 +2606,7 @@ const deserializeAws_restJson1EvaluateOnExitList = (output, context) => {
|
|
|
2983
2606
|
}
|
|
2984
2607
|
return deserializeAws_restJson1EvaluateOnExit(entry, context);
|
|
2985
2608
|
});
|
|
2609
|
+
return retVal;
|
|
2986
2610
|
};
|
|
2987
2611
|
const deserializeAws_restJson1FairsharePolicy = (output, context) => {
|
|
2988
2612
|
return {
|
|
@@ -3036,7 +2660,7 @@ const deserializeAws_restJson1JobDefinition = (output, context) => {
|
|
|
3036
2660
|
};
|
|
3037
2661
|
};
|
|
3038
2662
|
const deserializeAws_restJson1JobDefinitionList = (output, context) => {
|
|
3039
|
-
|
|
2663
|
+
const retVal = (output || [])
|
|
3040
2664
|
.filter((e) => e != null)
|
|
3041
2665
|
.map((entry) => {
|
|
3042
2666
|
if (entry === null) {
|
|
@@ -3044,6 +2668,7 @@ const deserializeAws_restJson1JobDefinitionList = (output, context) => {
|
|
|
3044
2668
|
}
|
|
3045
2669
|
return deserializeAws_restJson1JobDefinition(entry, context);
|
|
3046
2670
|
});
|
|
2671
|
+
return retVal;
|
|
3047
2672
|
};
|
|
3048
2673
|
const deserializeAws_restJson1JobDependency = (output, context) => {
|
|
3049
2674
|
return {
|
|
@@ -3052,7 +2677,7 @@ const deserializeAws_restJson1JobDependency = (output, context) => {
|
|
|
3052
2677
|
};
|
|
3053
2678
|
};
|
|
3054
2679
|
const deserializeAws_restJson1JobDependencyList = (output, context) => {
|
|
3055
|
-
|
|
2680
|
+
const retVal = (output || [])
|
|
3056
2681
|
.filter((e) => e != null)
|
|
3057
2682
|
.map((entry) => {
|
|
3058
2683
|
if (entry === null) {
|
|
@@ -3060,6 +2685,7 @@ const deserializeAws_restJson1JobDependencyList = (output, context) => {
|
|
|
3060
2685
|
}
|
|
3061
2686
|
return deserializeAws_restJson1JobDependency(entry, context);
|
|
3062
2687
|
});
|
|
2688
|
+
return retVal;
|
|
3063
2689
|
};
|
|
3064
2690
|
const deserializeAws_restJson1JobDetail = (output, context) => {
|
|
3065
2691
|
return {
|
|
@@ -3112,7 +2738,7 @@ const deserializeAws_restJson1JobDetail = (output, context) => {
|
|
|
3112
2738
|
};
|
|
3113
2739
|
};
|
|
3114
2740
|
const deserializeAws_restJson1JobDetailList = (output, context) => {
|
|
3115
|
-
|
|
2741
|
+
const retVal = (output || [])
|
|
3116
2742
|
.filter((e) => e != null)
|
|
3117
2743
|
.map((entry) => {
|
|
3118
2744
|
if (entry === null) {
|
|
@@ -3120,6 +2746,7 @@ const deserializeAws_restJson1JobDetailList = (output, context) => {
|
|
|
3120
2746
|
}
|
|
3121
2747
|
return deserializeAws_restJson1JobDetail(entry, context);
|
|
3122
2748
|
});
|
|
2749
|
+
return retVal;
|
|
3123
2750
|
};
|
|
3124
2751
|
const deserializeAws_restJson1JobQueueDetail = (output, context) => {
|
|
3125
2752
|
return {
|
|
@@ -3139,7 +2766,7 @@ const deserializeAws_restJson1JobQueueDetail = (output, context) => {
|
|
|
3139
2766
|
};
|
|
3140
2767
|
};
|
|
3141
2768
|
const deserializeAws_restJson1JobQueueDetailList = (output, context) => {
|
|
3142
|
-
|
|
2769
|
+
const retVal = (output || [])
|
|
3143
2770
|
.filter((e) => e != null)
|
|
3144
2771
|
.map((entry) => {
|
|
3145
2772
|
if (entry === null) {
|
|
@@ -3147,6 +2774,7 @@ const deserializeAws_restJson1JobQueueDetailList = (output, context) => {
|
|
|
3147
2774
|
}
|
|
3148
2775
|
return deserializeAws_restJson1JobQueueDetail(entry, context);
|
|
3149
2776
|
});
|
|
2777
|
+
return retVal;
|
|
3150
2778
|
};
|
|
3151
2779
|
const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
3152
2780
|
return {
|
|
@@ -3171,7 +2799,7 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
3171
2799
|
};
|
|
3172
2800
|
};
|
|
3173
2801
|
const deserializeAws_restJson1JobSummaryList = (output, context) => {
|
|
3174
|
-
|
|
2802
|
+
const retVal = (output || [])
|
|
3175
2803
|
.filter((e) => e != null)
|
|
3176
2804
|
.map((entry) => {
|
|
3177
2805
|
if (entry === null) {
|
|
@@ -3179,6 +2807,7 @@ const deserializeAws_restJson1JobSummaryList = (output, context) => {
|
|
|
3179
2807
|
}
|
|
3180
2808
|
return deserializeAws_restJson1JobSummary(entry, context);
|
|
3181
2809
|
});
|
|
2810
|
+
return retVal;
|
|
3182
2811
|
};
|
|
3183
2812
|
const deserializeAws_restJson1JobTimeout = (output, context) => {
|
|
3184
2813
|
return {
|
|
@@ -3242,7 +2871,7 @@ const deserializeAws_restJson1MountPoint = (output, context) => {
|
|
|
3242
2871
|
};
|
|
3243
2872
|
};
|
|
3244
2873
|
const deserializeAws_restJson1MountPoints = (output, context) => {
|
|
3245
|
-
|
|
2874
|
+
const retVal = (output || [])
|
|
3246
2875
|
.filter((e) => e != null)
|
|
3247
2876
|
.map((entry) => {
|
|
3248
2877
|
if (entry === null) {
|
|
@@ -3250,6 +2879,7 @@ const deserializeAws_restJson1MountPoints = (output, context) => {
|
|
|
3250
2879
|
}
|
|
3251
2880
|
return deserializeAws_restJson1MountPoint(entry, context);
|
|
3252
2881
|
});
|
|
2882
|
+
return retVal;
|
|
3253
2883
|
};
|
|
3254
2884
|
const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
|
|
3255
2885
|
return {
|
|
@@ -3264,7 +2894,7 @@ const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
|
3264
2894
|
};
|
|
3265
2895
|
};
|
|
3266
2896
|
const deserializeAws_restJson1NetworkInterfaceList = (output, context) => {
|
|
3267
|
-
|
|
2897
|
+
const retVal = (output || [])
|
|
3268
2898
|
.filter((e) => e != null)
|
|
3269
2899
|
.map((entry) => {
|
|
3270
2900
|
if (entry === null) {
|
|
@@ -3272,6 +2902,7 @@ const deserializeAws_restJson1NetworkInterfaceList = (output, context) => {
|
|
|
3272
2902
|
}
|
|
3273
2903
|
return deserializeAws_restJson1NetworkInterface(entry, context);
|
|
3274
2904
|
});
|
|
2905
|
+
return retVal;
|
|
3275
2906
|
};
|
|
3276
2907
|
const deserializeAws_restJson1NodeDetails = (output, context) => {
|
|
3277
2908
|
return {
|
|
@@ -3296,7 +2927,7 @@ const deserializeAws_restJson1NodePropertiesSummary = (output, context) => {
|
|
|
3296
2927
|
};
|
|
3297
2928
|
};
|
|
3298
2929
|
const deserializeAws_restJson1NodeRangeProperties = (output, context) => {
|
|
3299
|
-
|
|
2930
|
+
const retVal = (output || [])
|
|
3300
2931
|
.filter((e) => e != null)
|
|
3301
2932
|
.map((entry) => {
|
|
3302
2933
|
if (entry === null) {
|
|
@@ -3304,6 +2935,7 @@ const deserializeAws_restJson1NodeRangeProperties = (output, context) => {
|
|
|
3304
2935
|
}
|
|
3305
2936
|
return deserializeAws_restJson1NodeRangeProperty(entry, context);
|
|
3306
2937
|
});
|
|
2938
|
+
return retVal;
|
|
3307
2939
|
};
|
|
3308
2940
|
const deserializeAws_restJson1NodeRangeProperty = (output, context) => {
|
|
3309
2941
|
return {
|
|
@@ -3325,7 +2957,7 @@ const deserializeAws_restJson1ParametersMap = (output, context) => {
|
|
|
3325
2957
|
}, {});
|
|
3326
2958
|
};
|
|
3327
2959
|
const deserializeAws_restJson1PlatformCapabilityList = (output, context) => {
|
|
3328
|
-
|
|
2960
|
+
const retVal = (output || [])
|
|
3329
2961
|
.filter((e) => e != null)
|
|
3330
2962
|
.map((entry) => {
|
|
3331
2963
|
if (entry === null) {
|
|
@@ -3333,6 +2965,7 @@ const deserializeAws_restJson1PlatformCapabilityList = (output, context) => {
|
|
|
3333
2965
|
}
|
|
3334
2966
|
return smithy_client_1.expectString(entry);
|
|
3335
2967
|
});
|
|
2968
|
+
return retVal;
|
|
3336
2969
|
};
|
|
3337
2970
|
const deserializeAws_restJson1ResourceRequirement = (output, context) => {
|
|
3338
2971
|
return {
|
|
@@ -3341,7 +2974,7 @@ const deserializeAws_restJson1ResourceRequirement = (output, context) => {
|
|
|
3341
2974
|
};
|
|
3342
2975
|
};
|
|
3343
2976
|
const deserializeAws_restJson1ResourceRequirements = (output, context) => {
|
|
3344
|
-
|
|
2977
|
+
const retVal = (output || [])
|
|
3345
2978
|
.filter((e) => e != null)
|
|
3346
2979
|
.map((entry) => {
|
|
3347
2980
|
if (entry === null) {
|
|
@@ -3349,6 +2982,7 @@ const deserializeAws_restJson1ResourceRequirements = (output, context) => {
|
|
|
3349
2982
|
}
|
|
3350
2983
|
return deserializeAws_restJson1ResourceRequirement(entry, context);
|
|
3351
2984
|
});
|
|
2985
|
+
return retVal;
|
|
3352
2986
|
};
|
|
3353
2987
|
const deserializeAws_restJson1RetryStrategy = (output, context) => {
|
|
3354
2988
|
return {
|
|
@@ -3371,7 +3005,7 @@ const deserializeAws_restJson1SchedulingPolicyDetail = (output, context) => {
|
|
|
3371
3005
|
};
|
|
3372
3006
|
};
|
|
3373
3007
|
const deserializeAws_restJson1SchedulingPolicyDetailList = (output, context) => {
|
|
3374
|
-
|
|
3008
|
+
const retVal = (output || [])
|
|
3375
3009
|
.filter((e) => e != null)
|
|
3376
3010
|
.map((entry) => {
|
|
3377
3011
|
if (entry === null) {
|
|
@@ -3379,6 +3013,7 @@ const deserializeAws_restJson1SchedulingPolicyDetailList = (output, context) =>
|
|
|
3379
3013
|
}
|
|
3380
3014
|
return deserializeAws_restJson1SchedulingPolicyDetail(entry, context);
|
|
3381
3015
|
});
|
|
3016
|
+
return retVal;
|
|
3382
3017
|
};
|
|
3383
3018
|
const deserializeAws_restJson1SchedulingPolicyListingDetail = (output, context) => {
|
|
3384
3019
|
return {
|
|
@@ -3386,7 +3021,7 @@ const deserializeAws_restJson1SchedulingPolicyListingDetail = (output, context)
|
|
|
3386
3021
|
};
|
|
3387
3022
|
};
|
|
3388
3023
|
const deserializeAws_restJson1SchedulingPolicyListingDetailList = (output, context) => {
|
|
3389
|
-
|
|
3024
|
+
const retVal = (output || [])
|
|
3390
3025
|
.filter((e) => e != null)
|
|
3391
3026
|
.map((entry) => {
|
|
3392
3027
|
if (entry === null) {
|
|
@@ -3394,6 +3029,7 @@ const deserializeAws_restJson1SchedulingPolicyListingDetailList = (output, conte
|
|
|
3394
3029
|
}
|
|
3395
3030
|
return deserializeAws_restJson1SchedulingPolicyListingDetail(entry, context);
|
|
3396
3031
|
});
|
|
3032
|
+
return retVal;
|
|
3397
3033
|
};
|
|
3398
3034
|
const deserializeAws_restJson1Secret = (output, context) => {
|
|
3399
3035
|
return {
|
|
@@ -3402,7 +3038,7 @@ const deserializeAws_restJson1Secret = (output, context) => {
|
|
|
3402
3038
|
};
|
|
3403
3039
|
};
|
|
3404
3040
|
const deserializeAws_restJson1SecretList = (output, context) => {
|
|
3405
|
-
|
|
3041
|
+
const retVal = (output || [])
|
|
3406
3042
|
.filter((e) => e != null)
|
|
3407
3043
|
.map((entry) => {
|
|
3408
3044
|
if (entry === null) {
|
|
@@ -3410,6 +3046,7 @@ const deserializeAws_restJson1SecretList = (output, context) => {
|
|
|
3410
3046
|
}
|
|
3411
3047
|
return deserializeAws_restJson1Secret(entry, context);
|
|
3412
3048
|
});
|
|
3049
|
+
return retVal;
|
|
3413
3050
|
};
|
|
3414
3051
|
const deserializeAws_restJson1ShareAttributes = (output, context) => {
|
|
3415
3052
|
return {
|
|
@@ -3418,7 +3055,7 @@ const deserializeAws_restJson1ShareAttributes = (output, context) => {
|
|
|
3418
3055
|
};
|
|
3419
3056
|
};
|
|
3420
3057
|
const deserializeAws_restJson1ShareAttributesList = (output, context) => {
|
|
3421
|
-
|
|
3058
|
+
const retVal = (output || [])
|
|
3422
3059
|
.filter((e) => e != null)
|
|
3423
3060
|
.map((entry) => {
|
|
3424
3061
|
if (entry === null) {
|
|
@@ -3426,9 +3063,10 @@ const deserializeAws_restJson1ShareAttributesList = (output, context) => {
|
|
|
3426
3063
|
}
|
|
3427
3064
|
return deserializeAws_restJson1ShareAttributes(entry, context);
|
|
3428
3065
|
});
|
|
3066
|
+
return retVal;
|
|
3429
3067
|
};
|
|
3430
3068
|
const deserializeAws_restJson1StringList = (output, context) => {
|
|
3431
|
-
|
|
3069
|
+
const retVal = (output || [])
|
|
3432
3070
|
.filter((e) => e != null)
|
|
3433
3071
|
.map((entry) => {
|
|
3434
3072
|
if (entry === null) {
|
|
@@ -3436,6 +3074,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
3436
3074
|
}
|
|
3437
3075
|
return smithy_client_1.expectString(entry);
|
|
3438
3076
|
});
|
|
3077
|
+
return retVal;
|
|
3439
3078
|
};
|
|
3440
3079
|
const deserializeAws_restJson1TagrisTagsMap = (output, context) => {
|
|
3441
3080
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3469,7 +3108,7 @@ const deserializeAws_restJson1Tmpfs = (output, context) => {
|
|
|
3469
3108
|
};
|
|
3470
3109
|
};
|
|
3471
3110
|
const deserializeAws_restJson1TmpfsList = (output, context) => {
|
|
3472
|
-
|
|
3111
|
+
const retVal = (output || [])
|
|
3473
3112
|
.filter((e) => e != null)
|
|
3474
3113
|
.map((entry) => {
|
|
3475
3114
|
if (entry === null) {
|
|
@@ -3477,6 +3116,7 @@ const deserializeAws_restJson1TmpfsList = (output, context) => {
|
|
|
3477
3116
|
}
|
|
3478
3117
|
return deserializeAws_restJson1Tmpfs(entry, context);
|
|
3479
3118
|
});
|
|
3119
|
+
return retVal;
|
|
3480
3120
|
};
|
|
3481
3121
|
const deserializeAws_restJson1Ulimit = (output, context) => {
|
|
3482
3122
|
return {
|
|
@@ -3486,7 +3126,7 @@ const deserializeAws_restJson1Ulimit = (output, context) => {
|
|
|
3486
3126
|
};
|
|
3487
3127
|
};
|
|
3488
3128
|
const deserializeAws_restJson1Ulimits = (output, context) => {
|
|
3489
|
-
|
|
3129
|
+
const retVal = (output || [])
|
|
3490
3130
|
.filter((e) => e != null)
|
|
3491
3131
|
.map((entry) => {
|
|
3492
3132
|
if (entry === null) {
|
|
@@ -3494,6 +3134,7 @@ const deserializeAws_restJson1Ulimits = (output, context) => {
|
|
|
3494
3134
|
}
|
|
3495
3135
|
return deserializeAws_restJson1Ulimit(entry, context);
|
|
3496
3136
|
});
|
|
3137
|
+
return retVal;
|
|
3497
3138
|
};
|
|
3498
3139
|
const deserializeAws_restJson1Volume = (output, context) => {
|
|
3499
3140
|
return {
|
|
@@ -3507,7 +3148,7 @@ const deserializeAws_restJson1Volume = (output, context) => {
|
|
|
3507
3148
|
};
|
|
3508
3149
|
};
|
|
3509
3150
|
const deserializeAws_restJson1Volumes = (output, context) => {
|
|
3510
|
-
|
|
3151
|
+
const retVal = (output || [])
|
|
3511
3152
|
.filter((e) => e != null)
|
|
3512
3153
|
.map((entry) => {
|
|
3513
3154
|
if (entry === null) {
|
|
@@ -3515,6 +3156,7 @@ const deserializeAws_restJson1Volumes = (output, context) => {
|
|
|
3515
3156
|
}
|
|
3516
3157
|
return deserializeAws_restJson1Volume(entry, context);
|
|
3517
3158
|
});
|
|
3159
|
+
return retVal;
|
|
3518
3160
|
};
|
|
3519
3161
|
const deserializeMetadata = (output) => {
|
|
3520
3162
|
var _a;
|