@aws-sdk/client-ecs 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +939 -1307
- package/dist-es/protocols/Aws_json1_1.js +656 -1024
- package/package.json +27 -27
|
@@ -547,8 +547,7 @@ const deserializeAws_json1_1CreateCapacityProviderCommandError = async (output,
|
|
|
547
547
|
body: await parseBody(output.body, context),
|
|
548
548
|
};
|
|
549
549
|
let response;
|
|
550
|
-
|
|
551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
551
|
switch (errorCode) {
|
|
553
552
|
case "ClientException":
|
|
554
553
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -567,10 +566,12 @@ const deserializeAws_json1_1CreateCapacityProviderCommandError = async (output,
|
|
|
567
566
|
throw await deserializeAws_json1_1UpdateInProgressExceptionResponse(parsedOutput, context);
|
|
568
567
|
default:
|
|
569
568
|
const parsedBody = parsedOutput.body;
|
|
569
|
+
const $metadata = deserializeMetadata(output);
|
|
570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
570
571
|
response = new ECSServiceException_1.ECSServiceException({
|
|
571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
572
573
|
$fault: "client",
|
|
573
|
-
$metadata
|
|
574
|
+
$metadata,
|
|
574
575
|
});
|
|
575
576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
576
577
|
}
|
|
@@ -595,8 +596,7 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
595
596
|
body: await parseBody(output.body, context),
|
|
596
597
|
};
|
|
597
598
|
let response;
|
|
598
|
-
|
|
599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
600
|
switch (errorCode) {
|
|
601
601
|
case "ClientException":
|
|
602
602
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -609,10 +609,12 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
609
609
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
610
610
|
default:
|
|
611
611
|
const parsedBody = parsedOutput.body;
|
|
612
|
+
const $metadata = deserializeMetadata(output);
|
|
613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
612
614
|
response = new ECSServiceException_1.ECSServiceException({
|
|
613
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
614
616
|
$fault: "client",
|
|
615
|
-
$metadata
|
|
617
|
+
$metadata,
|
|
616
618
|
});
|
|
617
619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
618
620
|
}
|
|
@@ -637,8 +639,7 @@ const deserializeAws_json1_1CreateServiceCommandError = async (output, context)
|
|
|
637
639
|
body: await parseBody(output.body, context),
|
|
638
640
|
};
|
|
639
641
|
let response;
|
|
640
|
-
|
|
641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
643
|
switch (errorCode) {
|
|
643
644
|
case "AccessDeniedException":
|
|
644
645
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -666,10 +667,12 @@ const deserializeAws_json1_1CreateServiceCommandError = async (output, context)
|
|
|
666
667
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
667
668
|
default:
|
|
668
669
|
const parsedBody = parsedOutput.body;
|
|
670
|
+
const $metadata = deserializeMetadata(output);
|
|
671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
669
672
|
response = new ECSServiceException_1.ECSServiceException({
|
|
670
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
671
674
|
$fault: "client",
|
|
672
|
-
$metadata
|
|
675
|
+
$metadata,
|
|
673
676
|
});
|
|
674
677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
675
678
|
}
|
|
@@ -694,8 +697,7 @@ const deserializeAws_json1_1CreateTaskSetCommandError = async (output, context)
|
|
|
694
697
|
body: await parseBody(output.body, context),
|
|
695
698
|
};
|
|
696
699
|
let response;
|
|
697
|
-
|
|
698
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
701
|
switch (errorCode) {
|
|
700
702
|
case "AccessDeniedException":
|
|
701
703
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -729,10 +731,12 @@ const deserializeAws_json1_1CreateTaskSetCommandError = async (output, context)
|
|
|
729
731
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
730
732
|
default:
|
|
731
733
|
const parsedBody = parsedOutput.body;
|
|
734
|
+
const $metadata = deserializeMetadata(output);
|
|
735
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
732
736
|
response = new ECSServiceException_1.ECSServiceException({
|
|
733
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
734
738
|
$fault: "client",
|
|
735
|
-
$metadata
|
|
739
|
+
$metadata,
|
|
736
740
|
});
|
|
737
741
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
738
742
|
}
|
|
@@ -757,8 +761,7 @@ const deserializeAws_json1_1DeleteAccountSettingCommandError = async (output, co
|
|
|
757
761
|
body: await parseBody(output.body, context),
|
|
758
762
|
};
|
|
759
763
|
let response;
|
|
760
|
-
|
|
761
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
765
|
switch (errorCode) {
|
|
763
766
|
case "ClientException":
|
|
764
767
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -771,10 +774,12 @@ const deserializeAws_json1_1DeleteAccountSettingCommandError = async (output, co
|
|
|
771
774
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
772
775
|
default:
|
|
773
776
|
const parsedBody = parsedOutput.body;
|
|
777
|
+
const $metadata = deserializeMetadata(output);
|
|
778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
774
779
|
response = new ECSServiceException_1.ECSServiceException({
|
|
775
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
776
781
|
$fault: "client",
|
|
777
|
-
$metadata
|
|
782
|
+
$metadata,
|
|
778
783
|
});
|
|
779
784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
780
785
|
}
|
|
@@ -799,8 +804,7 @@ const deserializeAws_json1_1DeleteAttributesCommandError = async (output, contex
|
|
|
799
804
|
body: await parseBody(output.body, context),
|
|
800
805
|
};
|
|
801
806
|
let response;
|
|
802
|
-
|
|
803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
808
|
switch (errorCode) {
|
|
805
809
|
case "ClusterNotFoundException":
|
|
806
810
|
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
@@ -813,10 +817,12 @@ const deserializeAws_json1_1DeleteAttributesCommandError = async (output, contex
|
|
|
813
817
|
throw await deserializeAws_json1_1TargetNotFoundExceptionResponse(parsedOutput, context);
|
|
814
818
|
default:
|
|
815
819
|
const parsedBody = parsedOutput.body;
|
|
820
|
+
const $metadata = deserializeMetadata(output);
|
|
821
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
816
822
|
response = new ECSServiceException_1.ECSServiceException({
|
|
817
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
823
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
818
824
|
$fault: "client",
|
|
819
|
-
$metadata
|
|
825
|
+
$metadata,
|
|
820
826
|
});
|
|
821
827
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
822
828
|
}
|
|
@@ -841,8 +847,7 @@ const deserializeAws_json1_1DeleteCapacityProviderCommandError = async (output,
|
|
|
841
847
|
body: await parseBody(output.body, context),
|
|
842
848
|
};
|
|
843
849
|
let response;
|
|
844
|
-
|
|
845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
851
|
switch (errorCode) {
|
|
847
852
|
case "ClientException":
|
|
848
853
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -855,10 +860,12 @@ const deserializeAws_json1_1DeleteCapacityProviderCommandError = async (output,
|
|
|
855
860
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
856
861
|
default:
|
|
857
862
|
const parsedBody = parsedOutput.body;
|
|
863
|
+
const $metadata = deserializeMetadata(output);
|
|
864
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
858
865
|
response = new ECSServiceException_1.ECSServiceException({
|
|
859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
860
867
|
$fault: "client",
|
|
861
|
-
$metadata
|
|
868
|
+
$metadata,
|
|
862
869
|
});
|
|
863
870
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
864
871
|
}
|
|
@@ -883,8 +890,7 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
883
890
|
body: await parseBody(output.body, context),
|
|
884
891
|
};
|
|
885
892
|
let response;
|
|
886
|
-
|
|
887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
894
|
switch (errorCode) {
|
|
889
895
|
case "ClientException":
|
|
890
896
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -912,10 +918,12 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
912
918
|
throw await deserializeAws_json1_1UpdateInProgressExceptionResponse(parsedOutput, context);
|
|
913
919
|
default:
|
|
914
920
|
const parsedBody = parsedOutput.body;
|
|
921
|
+
const $metadata = deserializeMetadata(output);
|
|
922
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
915
923
|
response = new ECSServiceException_1.ECSServiceException({
|
|
916
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
924
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
917
925
|
$fault: "client",
|
|
918
|
-
$metadata
|
|
926
|
+
$metadata,
|
|
919
927
|
});
|
|
920
928
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
921
929
|
}
|
|
@@ -940,8 +948,7 @@ const deserializeAws_json1_1DeleteServiceCommandError = async (output, context)
|
|
|
940
948
|
body: await parseBody(output.body, context),
|
|
941
949
|
};
|
|
942
950
|
let response;
|
|
943
|
-
|
|
944
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
952
|
switch (errorCode) {
|
|
946
953
|
case "ClientException":
|
|
947
954
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -960,10 +967,12 @@ const deserializeAws_json1_1DeleteServiceCommandError = async (output, context)
|
|
|
960
967
|
throw await deserializeAws_json1_1ServiceNotFoundExceptionResponse(parsedOutput, context);
|
|
961
968
|
default:
|
|
962
969
|
const parsedBody = parsedOutput.body;
|
|
970
|
+
const $metadata = deserializeMetadata(output);
|
|
971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
963
972
|
response = new ECSServiceException_1.ECSServiceException({
|
|
964
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
965
974
|
$fault: "client",
|
|
966
|
-
$metadata
|
|
975
|
+
$metadata,
|
|
967
976
|
});
|
|
968
977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
969
978
|
}
|
|
@@ -988,8 +997,7 @@ const deserializeAws_json1_1DeleteTaskSetCommandError = async (output, context)
|
|
|
988
997
|
body: await parseBody(output.body, context),
|
|
989
998
|
};
|
|
990
999
|
let response;
|
|
991
|
-
|
|
992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
1001
|
switch (errorCode) {
|
|
994
1002
|
case "AccessDeniedException":
|
|
995
1003
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -1020,10 +1028,12 @@ const deserializeAws_json1_1DeleteTaskSetCommandError = async (output, context)
|
|
|
1020
1028
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
1021
1029
|
default:
|
|
1022
1030
|
const parsedBody = parsedOutput.body;
|
|
1031
|
+
const $metadata = deserializeMetadata(output);
|
|
1032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1023
1033
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1024
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1025
1035
|
$fault: "client",
|
|
1026
|
-
$metadata
|
|
1036
|
+
$metadata,
|
|
1027
1037
|
});
|
|
1028
1038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1029
1039
|
}
|
|
@@ -1048,8 +1058,7 @@ const deserializeAws_json1_1DeregisterContainerInstanceCommandError = async (out
|
|
|
1048
1058
|
body: await parseBody(output.body, context),
|
|
1049
1059
|
};
|
|
1050
1060
|
let response;
|
|
1051
|
-
|
|
1052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1062
|
switch (errorCode) {
|
|
1054
1063
|
case "ClientException":
|
|
1055
1064
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1065,10 +1074,12 @@ const deserializeAws_json1_1DeregisterContainerInstanceCommandError = async (out
|
|
|
1065
1074
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1066
1075
|
default:
|
|
1067
1076
|
const parsedBody = parsedOutput.body;
|
|
1077
|
+
const $metadata = deserializeMetadata(output);
|
|
1078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1068
1079
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1070
1081
|
$fault: "client",
|
|
1071
|
-
$metadata
|
|
1082
|
+
$metadata,
|
|
1072
1083
|
});
|
|
1073
1084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1074
1085
|
}
|
|
@@ -1093,8 +1104,7 @@ const deserializeAws_json1_1DeregisterTaskDefinitionCommandError = async (output
|
|
|
1093
1104
|
body: await parseBody(output.body, context),
|
|
1094
1105
|
};
|
|
1095
1106
|
let response;
|
|
1096
|
-
|
|
1097
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1108
|
switch (errorCode) {
|
|
1099
1109
|
case "ClientException":
|
|
1100
1110
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1107,10 +1117,12 @@ const deserializeAws_json1_1DeregisterTaskDefinitionCommandError = async (output
|
|
|
1107
1117
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1108
1118
|
default:
|
|
1109
1119
|
const parsedBody = parsedOutput.body;
|
|
1120
|
+
const $metadata = deserializeMetadata(output);
|
|
1121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1110
1122
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1112
1124
|
$fault: "client",
|
|
1113
|
-
$metadata
|
|
1125
|
+
$metadata,
|
|
1114
1126
|
});
|
|
1115
1127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1128
|
}
|
|
@@ -1135,8 +1147,7 @@ const deserializeAws_json1_1DescribeCapacityProvidersCommandError = async (outpu
|
|
|
1135
1147
|
body: await parseBody(output.body, context),
|
|
1136
1148
|
};
|
|
1137
1149
|
let response;
|
|
1138
|
-
|
|
1139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1151
|
switch (errorCode) {
|
|
1141
1152
|
case "ClientException":
|
|
1142
1153
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1149,10 +1160,12 @@ const deserializeAws_json1_1DescribeCapacityProvidersCommandError = async (outpu
|
|
|
1149
1160
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1150
1161
|
default:
|
|
1151
1162
|
const parsedBody = parsedOutput.body;
|
|
1163
|
+
const $metadata = deserializeMetadata(output);
|
|
1164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1152
1165
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1154
1167
|
$fault: "client",
|
|
1155
|
-
$metadata
|
|
1168
|
+
$metadata,
|
|
1156
1169
|
});
|
|
1157
1170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1158
1171
|
}
|
|
@@ -1177,8 +1190,7 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
1177
1190
|
body: await parseBody(output.body, context),
|
|
1178
1191
|
};
|
|
1179
1192
|
let response;
|
|
1180
|
-
|
|
1181
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1182
1194
|
switch (errorCode) {
|
|
1183
1195
|
case "ClientException":
|
|
1184
1196
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1191,10 +1203,12 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
1191
1203
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1192
1204
|
default:
|
|
1193
1205
|
const parsedBody = parsedOutput.body;
|
|
1206
|
+
const $metadata = deserializeMetadata(output);
|
|
1207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1194
1208
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1195
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1196
1210
|
$fault: "client",
|
|
1197
|
-
$metadata
|
|
1211
|
+
$metadata,
|
|
1198
1212
|
});
|
|
1199
1213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1200
1214
|
}
|
|
@@ -1219,8 +1233,7 @@ const deserializeAws_json1_1DescribeContainerInstancesCommandError = async (outp
|
|
|
1219
1233
|
body: await parseBody(output.body, context),
|
|
1220
1234
|
};
|
|
1221
1235
|
let response;
|
|
1222
|
-
|
|
1223
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1237
|
switch (errorCode) {
|
|
1225
1238
|
case "ClientException":
|
|
1226
1239
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1236,10 +1249,12 @@ const deserializeAws_json1_1DescribeContainerInstancesCommandError = async (outp
|
|
|
1236
1249
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1237
1250
|
default:
|
|
1238
1251
|
const parsedBody = parsedOutput.body;
|
|
1252
|
+
const $metadata = deserializeMetadata(output);
|
|
1253
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1239
1254
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1255
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1241
1256
|
$fault: "client",
|
|
1242
|
-
$metadata
|
|
1257
|
+
$metadata,
|
|
1243
1258
|
});
|
|
1244
1259
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1245
1260
|
}
|
|
@@ -1264,8 +1279,7 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
1264
1279
|
body: await parseBody(output.body, context),
|
|
1265
1280
|
};
|
|
1266
1281
|
let response;
|
|
1267
|
-
|
|
1268
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1283
|
switch (errorCode) {
|
|
1270
1284
|
case "ClientException":
|
|
1271
1285
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1281,10 +1295,12 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
1281
1295
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1282
1296
|
default:
|
|
1283
1297
|
const parsedBody = parsedOutput.body;
|
|
1298
|
+
const $metadata = deserializeMetadata(output);
|
|
1299
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1284
1300
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1285
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1286
1302
|
$fault: "client",
|
|
1287
|
-
$metadata
|
|
1303
|
+
$metadata,
|
|
1288
1304
|
});
|
|
1289
1305
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1290
1306
|
}
|
|
@@ -1309,8 +1325,7 @@ const deserializeAws_json1_1DescribeTaskDefinitionCommandError = async (output,
|
|
|
1309
1325
|
body: await parseBody(output.body, context),
|
|
1310
1326
|
};
|
|
1311
1327
|
let response;
|
|
1312
|
-
|
|
1313
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
1329
|
switch (errorCode) {
|
|
1315
1330
|
case "ClientException":
|
|
1316
1331
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1323,10 +1338,12 @@ const deserializeAws_json1_1DescribeTaskDefinitionCommandError = async (output,
|
|
|
1323
1338
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1324
1339
|
default:
|
|
1325
1340
|
const parsedBody = parsedOutput.body;
|
|
1341
|
+
const $metadata = deserializeMetadata(output);
|
|
1342
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1326
1343
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1327
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1344
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1328
1345
|
$fault: "client",
|
|
1329
|
-
$metadata
|
|
1346
|
+
$metadata,
|
|
1330
1347
|
});
|
|
1331
1348
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1332
1349
|
}
|
|
@@ -1351,8 +1368,7 @@ const deserializeAws_json1_1DescribeTasksCommandError = async (output, context)
|
|
|
1351
1368
|
body: await parseBody(output.body, context),
|
|
1352
1369
|
};
|
|
1353
1370
|
let response;
|
|
1354
|
-
|
|
1355
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1372
|
switch (errorCode) {
|
|
1357
1373
|
case "ClientException":
|
|
1358
1374
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1368,10 +1384,12 @@ const deserializeAws_json1_1DescribeTasksCommandError = async (output, context)
|
|
|
1368
1384
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1369
1385
|
default:
|
|
1370
1386
|
const parsedBody = parsedOutput.body;
|
|
1387
|
+
const $metadata = deserializeMetadata(output);
|
|
1388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1371
1389
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1373
1391
|
$fault: "client",
|
|
1374
|
-
$metadata
|
|
1392
|
+
$metadata,
|
|
1375
1393
|
});
|
|
1376
1394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1377
1395
|
}
|
|
@@ -1396,8 +1414,7 @@ const deserializeAws_json1_1DescribeTaskSetsCommandError = async (output, contex
|
|
|
1396
1414
|
body: await parseBody(output.body, context),
|
|
1397
1415
|
};
|
|
1398
1416
|
let response;
|
|
1399
|
-
|
|
1400
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
1418
|
switch (errorCode) {
|
|
1402
1419
|
case "AccessDeniedException":
|
|
1403
1420
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -1425,10 +1442,12 @@ const deserializeAws_json1_1DescribeTaskSetsCommandError = async (output, contex
|
|
|
1425
1442
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
1426
1443
|
default:
|
|
1427
1444
|
const parsedBody = parsedOutput.body;
|
|
1445
|
+
const $metadata = deserializeMetadata(output);
|
|
1446
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1428
1447
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1429
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1430
1449
|
$fault: "client",
|
|
1431
|
-
$metadata
|
|
1450
|
+
$metadata,
|
|
1432
1451
|
});
|
|
1433
1452
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1434
1453
|
}
|
|
@@ -1453,8 +1472,7 @@ const deserializeAws_json1_1DiscoverPollEndpointCommandError = async (output, co
|
|
|
1453
1472
|
body: await parseBody(output.body, context),
|
|
1454
1473
|
};
|
|
1455
1474
|
let response;
|
|
1456
|
-
|
|
1457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1476
|
switch (errorCode) {
|
|
1459
1477
|
case "ClientException":
|
|
1460
1478
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1464,10 +1482,12 @@ const deserializeAws_json1_1DiscoverPollEndpointCommandError = async (output, co
|
|
|
1464
1482
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1465
1483
|
default:
|
|
1466
1484
|
const parsedBody = parsedOutput.body;
|
|
1485
|
+
const $metadata = deserializeMetadata(output);
|
|
1486
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1467
1487
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1468
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1469
1489
|
$fault: "client",
|
|
1470
|
-
$metadata
|
|
1490
|
+
$metadata,
|
|
1471
1491
|
});
|
|
1472
1492
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1473
1493
|
}
|
|
@@ -1492,8 +1512,7 @@ const deserializeAws_json1_1ExecuteCommandCommandError = async (output, context)
|
|
|
1492
1512
|
body: await parseBody(output.body, context),
|
|
1493
1513
|
};
|
|
1494
1514
|
let response;
|
|
1495
|
-
|
|
1496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
1516
|
switch (errorCode) {
|
|
1498
1517
|
case "AccessDeniedException":
|
|
1499
1518
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -1515,10 +1534,12 @@ const deserializeAws_json1_1ExecuteCommandCommandError = async (output, context)
|
|
|
1515
1534
|
throw await deserializeAws_json1_1TargetNotConnectedExceptionResponse(parsedOutput, context);
|
|
1516
1535
|
default:
|
|
1517
1536
|
const parsedBody = parsedOutput.body;
|
|
1537
|
+
const $metadata = deserializeMetadata(output);
|
|
1538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1518
1539
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1520
1541
|
$fault: "client",
|
|
1521
|
-
$metadata
|
|
1542
|
+
$metadata,
|
|
1522
1543
|
});
|
|
1523
1544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1524
1545
|
}
|
|
@@ -1543,8 +1564,7 @@ const deserializeAws_json1_1ListAccountSettingsCommandError = async (output, con
|
|
|
1543
1564
|
body: await parseBody(output.body, context),
|
|
1544
1565
|
};
|
|
1545
1566
|
let response;
|
|
1546
|
-
|
|
1547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
1568
|
switch (errorCode) {
|
|
1549
1569
|
case "ClientException":
|
|
1550
1570
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1557,10 +1577,12 @@ const deserializeAws_json1_1ListAccountSettingsCommandError = async (output, con
|
|
|
1557
1577
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1558
1578
|
default:
|
|
1559
1579
|
const parsedBody = parsedOutput.body;
|
|
1580
|
+
const $metadata = deserializeMetadata(output);
|
|
1581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1560
1582
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1562
1584
|
$fault: "client",
|
|
1563
|
-
$metadata
|
|
1585
|
+
$metadata,
|
|
1564
1586
|
});
|
|
1565
1587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1566
1588
|
}
|
|
@@ -1585,8 +1607,7 @@ const deserializeAws_json1_1ListAttributesCommandError = async (output, context)
|
|
|
1585
1607
|
body: await parseBody(output.body, context),
|
|
1586
1608
|
};
|
|
1587
1609
|
let response;
|
|
1588
|
-
|
|
1589
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1611
|
switch (errorCode) {
|
|
1591
1612
|
case "ClusterNotFoundException":
|
|
1592
1613
|
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
@@ -1596,10 +1617,12 @@ const deserializeAws_json1_1ListAttributesCommandError = async (output, context)
|
|
|
1596
1617
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1597
1618
|
default:
|
|
1598
1619
|
const parsedBody = parsedOutput.body;
|
|
1620
|
+
const $metadata = deserializeMetadata(output);
|
|
1621
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1599
1622
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1623
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1601
1624
|
$fault: "client",
|
|
1602
|
-
$metadata
|
|
1625
|
+
$metadata,
|
|
1603
1626
|
});
|
|
1604
1627
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1605
1628
|
}
|
|
@@ -1624,8 +1647,7 @@ const deserializeAws_json1_1ListClustersCommandError = async (output, context) =
|
|
|
1624
1647
|
body: await parseBody(output.body, context),
|
|
1625
1648
|
};
|
|
1626
1649
|
let response;
|
|
1627
|
-
|
|
1628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
1651
|
switch (errorCode) {
|
|
1630
1652
|
case "ClientException":
|
|
1631
1653
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1638,10 +1660,12 @@ const deserializeAws_json1_1ListClustersCommandError = async (output, context) =
|
|
|
1638
1660
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1639
1661
|
default:
|
|
1640
1662
|
const parsedBody = parsedOutput.body;
|
|
1663
|
+
const $metadata = deserializeMetadata(output);
|
|
1664
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1641
1665
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1642
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1666
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1643
1667
|
$fault: "client",
|
|
1644
|
-
$metadata
|
|
1668
|
+
$metadata,
|
|
1645
1669
|
});
|
|
1646
1670
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1647
1671
|
}
|
|
@@ -1666,8 +1690,7 @@ const deserializeAws_json1_1ListContainerInstancesCommandError = async (output,
|
|
|
1666
1690
|
body: await parseBody(output.body, context),
|
|
1667
1691
|
};
|
|
1668
1692
|
let response;
|
|
1669
|
-
|
|
1670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
1694
|
switch (errorCode) {
|
|
1672
1695
|
case "ClientException":
|
|
1673
1696
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1683,10 +1706,12 @@ const deserializeAws_json1_1ListContainerInstancesCommandError = async (output,
|
|
|
1683
1706
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1684
1707
|
default:
|
|
1685
1708
|
const parsedBody = parsedOutput.body;
|
|
1709
|
+
const $metadata = deserializeMetadata(output);
|
|
1710
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1686
1711
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1688
1713
|
$fault: "client",
|
|
1689
|
-
$metadata
|
|
1714
|
+
$metadata,
|
|
1690
1715
|
});
|
|
1691
1716
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1692
1717
|
}
|
|
@@ -1711,8 +1736,7 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
|
|
|
1711
1736
|
body: await parseBody(output.body, context),
|
|
1712
1737
|
};
|
|
1713
1738
|
let response;
|
|
1714
|
-
|
|
1715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
1740
|
switch (errorCode) {
|
|
1717
1741
|
case "ClientException":
|
|
1718
1742
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1728,10 +1752,12 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
|
|
|
1728
1752
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1729
1753
|
default:
|
|
1730
1754
|
const parsedBody = parsedOutput.body;
|
|
1755
|
+
const $metadata = deserializeMetadata(output);
|
|
1756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1731
1757
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1732
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1733
1759
|
$fault: "client",
|
|
1734
|
-
$metadata
|
|
1760
|
+
$metadata,
|
|
1735
1761
|
});
|
|
1736
1762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1737
1763
|
}
|
|
@@ -1756,8 +1782,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1756
1782
|
body: await parseBody(output.body, context),
|
|
1757
1783
|
};
|
|
1758
1784
|
let response;
|
|
1759
|
-
|
|
1760
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
1786
|
switch (errorCode) {
|
|
1762
1787
|
case "ClientException":
|
|
1763
1788
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1773,10 +1798,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1773
1798
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1774
1799
|
default:
|
|
1775
1800
|
const parsedBody = parsedOutput.body;
|
|
1801
|
+
const $metadata = deserializeMetadata(output);
|
|
1802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1776
1803
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1778
1805
|
$fault: "client",
|
|
1779
|
-
$metadata
|
|
1806
|
+
$metadata,
|
|
1780
1807
|
});
|
|
1781
1808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1782
1809
|
}
|
|
@@ -1801,8 +1828,7 @@ const deserializeAws_json1_1ListTaskDefinitionFamiliesCommandError = async (outp
|
|
|
1801
1828
|
body: await parseBody(output.body, context),
|
|
1802
1829
|
};
|
|
1803
1830
|
let response;
|
|
1804
|
-
|
|
1805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1832
|
switch (errorCode) {
|
|
1807
1833
|
case "ClientException":
|
|
1808
1834
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1815,10 +1841,12 @@ const deserializeAws_json1_1ListTaskDefinitionFamiliesCommandError = async (outp
|
|
|
1815
1841
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1816
1842
|
default:
|
|
1817
1843
|
const parsedBody = parsedOutput.body;
|
|
1844
|
+
const $metadata = deserializeMetadata(output);
|
|
1845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1818
1846
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1819
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1820
1848
|
$fault: "client",
|
|
1821
|
-
$metadata
|
|
1849
|
+
$metadata,
|
|
1822
1850
|
});
|
|
1823
1851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1824
1852
|
}
|
|
@@ -1843,8 +1871,7 @@ const deserializeAws_json1_1ListTaskDefinitionsCommandError = async (output, con
|
|
|
1843
1871
|
body: await parseBody(output.body, context),
|
|
1844
1872
|
};
|
|
1845
1873
|
let response;
|
|
1846
|
-
|
|
1847
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
1875
|
switch (errorCode) {
|
|
1849
1876
|
case "ClientException":
|
|
1850
1877
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1857,10 +1884,12 @@ const deserializeAws_json1_1ListTaskDefinitionsCommandError = async (output, con
|
|
|
1857
1884
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1858
1885
|
default:
|
|
1859
1886
|
const parsedBody = parsedOutput.body;
|
|
1887
|
+
const $metadata = deserializeMetadata(output);
|
|
1888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1860
1889
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1861
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1862
1891
|
$fault: "client",
|
|
1863
|
-
$metadata
|
|
1892
|
+
$metadata,
|
|
1864
1893
|
});
|
|
1865
1894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1895
|
}
|
|
@@ -1885,8 +1914,7 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
1885
1914
|
body: await parseBody(output.body, context),
|
|
1886
1915
|
};
|
|
1887
1916
|
let response;
|
|
1888
|
-
|
|
1889
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
1918
|
switch (errorCode) {
|
|
1891
1919
|
case "ClientException":
|
|
1892
1920
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1905,10 +1933,12 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
1905
1933
|
throw await deserializeAws_json1_1ServiceNotFoundExceptionResponse(parsedOutput, context);
|
|
1906
1934
|
default:
|
|
1907
1935
|
const parsedBody = parsedOutput.body;
|
|
1936
|
+
const $metadata = deserializeMetadata(output);
|
|
1937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1908
1938
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1909
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1910
1940
|
$fault: "client",
|
|
1911
|
-
$metadata
|
|
1941
|
+
$metadata,
|
|
1912
1942
|
});
|
|
1913
1943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1914
1944
|
}
|
|
@@ -1933,8 +1963,7 @@ const deserializeAws_json1_1PutAccountSettingCommandError = async (output, conte
|
|
|
1933
1963
|
body: await parseBody(output.body, context),
|
|
1934
1964
|
};
|
|
1935
1965
|
let response;
|
|
1936
|
-
|
|
1937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
1967
|
switch (errorCode) {
|
|
1939
1968
|
case "ClientException":
|
|
1940
1969
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1947,10 +1976,12 @@ const deserializeAws_json1_1PutAccountSettingCommandError = async (output, conte
|
|
|
1947
1976
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1948
1977
|
default:
|
|
1949
1978
|
const parsedBody = parsedOutput.body;
|
|
1979
|
+
const $metadata = deserializeMetadata(output);
|
|
1980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1950
1981
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1951
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1952
1983
|
$fault: "client",
|
|
1953
|
-
$metadata
|
|
1984
|
+
$metadata,
|
|
1954
1985
|
});
|
|
1955
1986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1956
1987
|
}
|
|
@@ -1975,8 +2006,7 @@ const deserializeAws_json1_1PutAccountSettingDefaultCommandError = async (output
|
|
|
1975
2006
|
body: await parseBody(output.body, context),
|
|
1976
2007
|
};
|
|
1977
2008
|
let response;
|
|
1978
|
-
|
|
1979
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
2010
|
switch (errorCode) {
|
|
1981
2011
|
case "ClientException":
|
|
1982
2012
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -1989,10 +2019,12 @@ const deserializeAws_json1_1PutAccountSettingDefaultCommandError = async (output
|
|
|
1989
2019
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1990
2020
|
default:
|
|
1991
2021
|
const parsedBody = parsedOutput.body;
|
|
2022
|
+
const $metadata = deserializeMetadata(output);
|
|
2023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1992
2024
|
response = new ECSServiceException_1.ECSServiceException({
|
|
1993
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1994
2026
|
$fault: "client",
|
|
1995
|
-
$metadata
|
|
2027
|
+
$metadata,
|
|
1996
2028
|
});
|
|
1997
2029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1998
2030
|
}
|
|
@@ -2017,8 +2049,7 @@ const deserializeAws_json1_1PutAttributesCommandError = async (output, context)
|
|
|
2017
2049
|
body: await parseBody(output.body, context),
|
|
2018
2050
|
};
|
|
2019
2051
|
let response;
|
|
2020
|
-
|
|
2021
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
2053
|
switch (errorCode) {
|
|
2023
2054
|
case "AttributeLimitExceededException":
|
|
2024
2055
|
case "com.amazonaws.ecs#AttributeLimitExceededException":
|
|
@@ -2034,10 +2065,12 @@ const deserializeAws_json1_1PutAttributesCommandError = async (output, context)
|
|
|
2034
2065
|
throw await deserializeAws_json1_1TargetNotFoundExceptionResponse(parsedOutput, context);
|
|
2035
2066
|
default:
|
|
2036
2067
|
const parsedBody = parsedOutput.body;
|
|
2068
|
+
const $metadata = deserializeMetadata(output);
|
|
2069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2037
2070
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2038
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2039
2072
|
$fault: "client",
|
|
2040
|
-
$metadata
|
|
2073
|
+
$metadata,
|
|
2041
2074
|
});
|
|
2042
2075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2043
2076
|
}
|
|
@@ -2062,8 +2095,7 @@ const deserializeAws_json1_1PutClusterCapacityProvidersCommandError = async (out
|
|
|
2062
2095
|
body: await parseBody(output.body, context),
|
|
2063
2096
|
};
|
|
2064
2097
|
let response;
|
|
2065
|
-
|
|
2066
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
2099
|
switch (errorCode) {
|
|
2068
2100
|
case "ClientException":
|
|
2069
2101
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2085,10 +2117,12 @@ const deserializeAws_json1_1PutClusterCapacityProvidersCommandError = async (out
|
|
|
2085
2117
|
throw await deserializeAws_json1_1UpdateInProgressExceptionResponse(parsedOutput, context);
|
|
2086
2118
|
default:
|
|
2087
2119
|
const parsedBody = parsedOutput.body;
|
|
2120
|
+
const $metadata = deserializeMetadata(output);
|
|
2121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2088
2122
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2090
2124
|
$fault: "client",
|
|
2091
|
-
$metadata
|
|
2125
|
+
$metadata,
|
|
2092
2126
|
});
|
|
2093
2127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2094
2128
|
}
|
|
@@ -2113,8 +2147,7 @@ const deserializeAws_json1_1RegisterContainerInstanceCommandError = async (outpu
|
|
|
2113
2147
|
body: await parseBody(output.body, context),
|
|
2114
2148
|
};
|
|
2115
2149
|
let response;
|
|
2116
|
-
|
|
2117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
2151
|
switch (errorCode) {
|
|
2119
2152
|
case "ClientException":
|
|
2120
2153
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2127,10 +2160,12 @@ const deserializeAws_json1_1RegisterContainerInstanceCommandError = async (outpu
|
|
|
2127
2160
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2128
2161
|
default:
|
|
2129
2162
|
const parsedBody = parsedOutput.body;
|
|
2163
|
+
const $metadata = deserializeMetadata(output);
|
|
2164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2130
2165
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2132
2167
|
$fault: "client",
|
|
2133
|
-
$metadata
|
|
2168
|
+
$metadata,
|
|
2134
2169
|
});
|
|
2135
2170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2136
2171
|
}
|
|
@@ -2155,8 +2190,7 @@ const deserializeAws_json1_1RegisterTaskDefinitionCommandError = async (output,
|
|
|
2155
2190
|
body: await parseBody(output.body, context),
|
|
2156
2191
|
};
|
|
2157
2192
|
let response;
|
|
2158
|
-
|
|
2159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2194
|
switch (errorCode) {
|
|
2161
2195
|
case "ClientException":
|
|
2162
2196
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2169,10 +2203,12 @@ const deserializeAws_json1_1RegisterTaskDefinitionCommandError = async (output,
|
|
|
2169
2203
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2170
2204
|
default:
|
|
2171
2205
|
const parsedBody = parsedOutput.body;
|
|
2206
|
+
const $metadata = deserializeMetadata(output);
|
|
2207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2172
2208
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2173
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2174
2210
|
$fault: "client",
|
|
2175
|
-
$metadata
|
|
2211
|
+
$metadata,
|
|
2176
2212
|
});
|
|
2177
2213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2178
2214
|
}
|
|
@@ -2197,8 +2233,7 @@ const deserializeAws_json1_1RunTaskCommandError = async (output, context) => {
|
|
|
2197
2233
|
body: await parseBody(output.body, context),
|
|
2198
2234
|
};
|
|
2199
2235
|
let response;
|
|
2200
|
-
|
|
2201
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2202
2237
|
switch (errorCode) {
|
|
2203
2238
|
case "AccessDeniedException":
|
|
2204
2239
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2229,10 +2264,12 @@ const deserializeAws_json1_1RunTaskCommandError = async (output, context) => {
|
|
|
2229
2264
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
2230
2265
|
default:
|
|
2231
2266
|
const parsedBody = parsedOutput.body;
|
|
2267
|
+
const $metadata = deserializeMetadata(output);
|
|
2268
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2232
2269
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2233
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2234
2271
|
$fault: "client",
|
|
2235
|
-
$metadata
|
|
2272
|
+
$metadata,
|
|
2236
2273
|
});
|
|
2237
2274
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2238
2275
|
}
|
|
@@ -2257,8 +2294,7 @@ const deserializeAws_json1_1StartTaskCommandError = async (output, context) => {
|
|
|
2257
2294
|
body: await parseBody(output.body, context),
|
|
2258
2295
|
};
|
|
2259
2296
|
let response;
|
|
2260
|
-
|
|
2261
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
2298
|
switch (errorCode) {
|
|
2263
2299
|
case "ClientException":
|
|
2264
2300
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2274,10 +2310,12 @@ const deserializeAws_json1_1StartTaskCommandError = async (output, context) => {
|
|
|
2274
2310
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2275
2311
|
default:
|
|
2276
2312
|
const parsedBody = parsedOutput.body;
|
|
2313
|
+
const $metadata = deserializeMetadata(output);
|
|
2314
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2277
2315
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2279
2317
|
$fault: "client",
|
|
2280
|
-
$metadata
|
|
2318
|
+
$metadata,
|
|
2281
2319
|
});
|
|
2282
2320
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
2321
|
}
|
|
@@ -2302,8 +2340,7 @@ const deserializeAws_json1_1StopTaskCommandError = async (output, context) => {
|
|
|
2302
2340
|
body: await parseBody(output.body, context),
|
|
2303
2341
|
};
|
|
2304
2342
|
let response;
|
|
2305
|
-
|
|
2306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
2344
|
switch (errorCode) {
|
|
2308
2345
|
case "ClientException":
|
|
2309
2346
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2319,10 +2356,12 @@ const deserializeAws_json1_1StopTaskCommandError = async (output, context) => {
|
|
|
2319
2356
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2320
2357
|
default:
|
|
2321
2358
|
const parsedBody = parsedOutput.body;
|
|
2359
|
+
const $metadata = deserializeMetadata(output);
|
|
2360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2322
2361
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2324
2363
|
$fault: "client",
|
|
2325
|
-
$metadata
|
|
2364
|
+
$metadata,
|
|
2326
2365
|
});
|
|
2327
2366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2328
2367
|
}
|
|
@@ -2347,8 +2386,7 @@ const deserializeAws_json1_1SubmitAttachmentStateChangesCommandError = async (ou
|
|
|
2347
2386
|
body: await parseBody(output.body, context),
|
|
2348
2387
|
};
|
|
2349
2388
|
let response;
|
|
2350
|
-
|
|
2351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
2390
|
switch (errorCode) {
|
|
2353
2391
|
case "AccessDeniedException":
|
|
2354
2392
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2364,10 +2402,12 @@ const deserializeAws_json1_1SubmitAttachmentStateChangesCommandError = async (ou
|
|
|
2364
2402
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2365
2403
|
default:
|
|
2366
2404
|
const parsedBody = parsedOutput.body;
|
|
2405
|
+
const $metadata = deserializeMetadata(output);
|
|
2406
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2367
2407
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2408
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2369
2409
|
$fault: "client",
|
|
2370
|
-
$metadata
|
|
2410
|
+
$metadata,
|
|
2371
2411
|
});
|
|
2372
2412
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2373
2413
|
}
|
|
@@ -2392,8 +2432,7 @@ const deserializeAws_json1_1SubmitContainerStateChangeCommandError = async (outp
|
|
|
2392
2432
|
body: await parseBody(output.body, context),
|
|
2393
2433
|
};
|
|
2394
2434
|
let response;
|
|
2395
|
-
|
|
2396
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2397
2436
|
switch (errorCode) {
|
|
2398
2437
|
case "AccessDeniedException":
|
|
2399
2438
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2406,10 +2445,12 @@ const deserializeAws_json1_1SubmitContainerStateChangeCommandError = async (outp
|
|
|
2406
2445
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2407
2446
|
default:
|
|
2408
2447
|
const parsedBody = parsedOutput.body;
|
|
2448
|
+
const $metadata = deserializeMetadata(output);
|
|
2449
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2409
2450
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2410
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2451
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2411
2452
|
$fault: "client",
|
|
2412
|
-
$metadata
|
|
2453
|
+
$metadata,
|
|
2413
2454
|
});
|
|
2414
2455
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2415
2456
|
}
|
|
@@ -2434,8 +2475,7 @@ const deserializeAws_json1_1SubmitTaskStateChangeCommandError = async (output, c
|
|
|
2434
2475
|
body: await parseBody(output.body, context),
|
|
2435
2476
|
};
|
|
2436
2477
|
let response;
|
|
2437
|
-
|
|
2438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2439
2479
|
switch (errorCode) {
|
|
2440
2480
|
case "AccessDeniedException":
|
|
2441
2481
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2451,10 +2491,12 @@ const deserializeAws_json1_1SubmitTaskStateChangeCommandError = async (output, c
|
|
|
2451
2491
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2452
2492
|
default:
|
|
2453
2493
|
const parsedBody = parsedOutput.body;
|
|
2494
|
+
const $metadata = deserializeMetadata(output);
|
|
2495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2454
2496
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2456
2498
|
$fault: "client",
|
|
2457
|
-
$metadata
|
|
2499
|
+
$metadata,
|
|
2458
2500
|
});
|
|
2459
2501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2460
2502
|
}
|
|
@@ -2479,8 +2521,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2479
2521
|
body: await parseBody(output.body, context),
|
|
2480
2522
|
};
|
|
2481
2523
|
let response;
|
|
2482
|
-
|
|
2483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
2525
|
switch (errorCode) {
|
|
2485
2526
|
case "ClientException":
|
|
2486
2527
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2499,10 +2540,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2499
2540
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2500
2541
|
default:
|
|
2501
2542
|
const parsedBody = parsedOutput.body;
|
|
2543
|
+
const $metadata = deserializeMetadata(output);
|
|
2544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2502
2545
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2503
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2504
2547
|
$fault: "client",
|
|
2505
|
-
$metadata
|
|
2548
|
+
$metadata,
|
|
2506
2549
|
});
|
|
2507
2550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2508
2551
|
}
|
|
@@ -2527,8 +2570,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2527
2570
|
body: await parseBody(output.body, context),
|
|
2528
2571
|
};
|
|
2529
2572
|
let response;
|
|
2530
|
-
|
|
2531
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
2574
|
switch (errorCode) {
|
|
2533
2575
|
case "ClientException":
|
|
2534
2576
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2547,10 +2589,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2547
2589
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2548
2590
|
default:
|
|
2549
2591
|
const parsedBody = parsedOutput.body;
|
|
2592
|
+
const $metadata = deserializeMetadata(output);
|
|
2593
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2550
2594
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2551
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2595
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2552
2596
|
$fault: "client",
|
|
2553
|
-
$metadata
|
|
2597
|
+
$metadata,
|
|
2554
2598
|
});
|
|
2555
2599
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2556
2600
|
}
|
|
@@ -2575,8 +2619,7 @@ const deserializeAws_json1_1UpdateCapacityProviderCommandError = async (output,
|
|
|
2575
2619
|
body: await parseBody(output.body, context),
|
|
2576
2620
|
};
|
|
2577
2621
|
let response;
|
|
2578
|
-
|
|
2579
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2622
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
2623
|
switch (errorCode) {
|
|
2581
2624
|
case "ClientException":
|
|
2582
2625
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2589,10 +2632,12 @@ const deserializeAws_json1_1UpdateCapacityProviderCommandError = async (output,
|
|
|
2589
2632
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2590
2633
|
default:
|
|
2591
2634
|
const parsedBody = parsedOutput.body;
|
|
2635
|
+
const $metadata = deserializeMetadata(output);
|
|
2636
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2592
2637
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2594
2639
|
$fault: "client",
|
|
2595
|
-
$metadata
|
|
2640
|
+
$metadata,
|
|
2596
2641
|
});
|
|
2597
2642
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2598
2643
|
}
|
|
@@ -2617,8 +2662,7 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
2617
2662
|
body: await parseBody(output.body, context),
|
|
2618
2663
|
};
|
|
2619
2664
|
let response;
|
|
2620
|
-
|
|
2621
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2622
2666
|
switch (errorCode) {
|
|
2623
2667
|
case "ClientException":
|
|
2624
2668
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2634,10 +2678,12 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
2634
2678
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2635
2679
|
default:
|
|
2636
2680
|
const parsedBody = parsedOutput.body;
|
|
2681
|
+
const $metadata = deserializeMetadata(output);
|
|
2682
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2637
2683
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2638
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2684
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2639
2685
|
$fault: "client",
|
|
2640
|
-
$metadata
|
|
2686
|
+
$metadata,
|
|
2641
2687
|
});
|
|
2642
2688
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2643
2689
|
}
|
|
@@ -2662,8 +2708,7 @@ const deserializeAws_json1_1UpdateClusterSettingsCommandError = async (output, c
|
|
|
2662
2708
|
body: await parseBody(output.body, context),
|
|
2663
2709
|
};
|
|
2664
2710
|
let response;
|
|
2665
|
-
|
|
2666
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
2712
|
switch (errorCode) {
|
|
2668
2713
|
case "ClientException":
|
|
2669
2714
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2679,10 +2724,12 @@ const deserializeAws_json1_1UpdateClusterSettingsCommandError = async (output, c
|
|
|
2679
2724
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2680
2725
|
default:
|
|
2681
2726
|
const parsedBody = parsedOutput.body;
|
|
2727
|
+
const $metadata = deserializeMetadata(output);
|
|
2728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2682
2729
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2684
2731
|
$fault: "client",
|
|
2685
|
-
$metadata
|
|
2732
|
+
$metadata,
|
|
2686
2733
|
});
|
|
2687
2734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2688
2735
|
}
|
|
@@ -2707,8 +2754,7 @@ const deserializeAws_json1_1UpdateContainerAgentCommandError = async (output, co
|
|
|
2707
2754
|
body: await parseBody(output.body, context),
|
|
2708
2755
|
};
|
|
2709
2756
|
let response;
|
|
2710
|
-
|
|
2711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2712
2758
|
switch (errorCode) {
|
|
2713
2759
|
case "ClientException":
|
|
2714
2760
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2733,10 +2779,12 @@ const deserializeAws_json1_1UpdateContainerAgentCommandError = async (output, co
|
|
|
2733
2779
|
throw await deserializeAws_json1_1UpdateInProgressExceptionResponse(parsedOutput, context);
|
|
2734
2780
|
default:
|
|
2735
2781
|
const parsedBody = parsedOutput.body;
|
|
2782
|
+
const $metadata = deserializeMetadata(output);
|
|
2783
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2736
2784
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2737
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2785
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2738
2786
|
$fault: "client",
|
|
2739
|
-
$metadata
|
|
2787
|
+
$metadata,
|
|
2740
2788
|
});
|
|
2741
2789
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2742
2790
|
}
|
|
@@ -2761,8 +2809,7 @@ const deserializeAws_json1_1UpdateContainerInstancesStateCommandError = async (o
|
|
|
2761
2809
|
body: await parseBody(output.body, context),
|
|
2762
2810
|
};
|
|
2763
2811
|
let response;
|
|
2764
|
-
|
|
2765
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
2813
|
switch (errorCode) {
|
|
2767
2814
|
case "ClientException":
|
|
2768
2815
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -2778,10 +2825,12 @@ const deserializeAws_json1_1UpdateContainerInstancesStateCommandError = async (o
|
|
|
2778
2825
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2779
2826
|
default:
|
|
2780
2827
|
const parsedBody = parsedOutput.body;
|
|
2828
|
+
const $metadata = deserializeMetadata(output);
|
|
2829
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2781
2830
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2782
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2831
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2783
2832
|
$fault: "client",
|
|
2784
|
-
$metadata
|
|
2833
|
+
$metadata,
|
|
2785
2834
|
});
|
|
2786
2835
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2787
2836
|
}
|
|
@@ -2806,8 +2855,7 @@ const deserializeAws_json1_1UpdateServiceCommandError = async (output, context)
|
|
|
2806
2855
|
body: await parseBody(output.body, context),
|
|
2807
2856
|
};
|
|
2808
2857
|
let response;
|
|
2809
|
-
|
|
2810
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
2859
|
switch (errorCode) {
|
|
2812
2860
|
case "AccessDeniedException":
|
|
2813
2861
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2838,10 +2886,12 @@ const deserializeAws_json1_1UpdateServiceCommandError = async (output, context)
|
|
|
2838
2886
|
throw await deserializeAws_json1_1ServiceNotFoundExceptionResponse(parsedOutput, context);
|
|
2839
2887
|
default:
|
|
2840
2888
|
const parsedBody = parsedOutput.body;
|
|
2889
|
+
const $metadata = deserializeMetadata(output);
|
|
2890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2841
2891
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2842
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2843
2893
|
$fault: "client",
|
|
2844
|
-
$metadata
|
|
2894
|
+
$metadata,
|
|
2845
2895
|
});
|
|
2846
2896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2847
2897
|
}
|
|
@@ -2866,8 +2916,7 @@ const deserializeAws_json1_1UpdateServicePrimaryTaskSetCommandError = async (out
|
|
|
2866
2916
|
body: await parseBody(output.body, context),
|
|
2867
2917
|
};
|
|
2868
2918
|
let response;
|
|
2869
|
-
|
|
2870
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
2920
|
switch (errorCode) {
|
|
2872
2921
|
case "AccessDeniedException":
|
|
2873
2922
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2898,10 +2947,12 @@ const deserializeAws_json1_1UpdateServicePrimaryTaskSetCommandError = async (out
|
|
|
2898
2947
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
2899
2948
|
default:
|
|
2900
2949
|
const parsedBody = parsedOutput.body;
|
|
2950
|
+
const $metadata = deserializeMetadata(output);
|
|
2951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2901
2952
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2903
2954
|
$fault: "client",
|
|
2904
|
-
$metadata
|
|
2955
|
+
$metadata,
|
|
2905
2956
|
});
|
|
2906
2957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2907
2958
|
}
|
|
@@ -2926,8 +2977,7 @@ const deserializeAws_json1_1UpdateTaskSetCommandError = async (output, context)
|
|
|
2926
2977
|
body: await parseBody(output.body, context),
|
|
2927
2978
|
};
|
|
2928
2979
|
let response;
|
|
2929
|
-
|
|
2930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
2981
|
switch (errorCode) {
|
|
2932
2982
|
case "AccessDeniedException":
|
|
2933
2983
|
case "com.amazonaws.ecs#AccessDeniedException":
|
|
@@ -2958,10 +3008,12 @@ const deserializeAws_json1_1UpdateTaskSetCommandError = async (output, context)
|
|
|
2958
3008
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
2959
3009
|
default:
|
|
2960
3010
|
const parsedBody = parsedOutput.body;
|
|
3011
|
+
const $metadata = deserializeMetadata(output);
|
|
3012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2961
3013
|
response = new ECSServiceException_1.ECSServiceException({
|
|
2962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2963
3015
|
$fault: "client",
|
|
2964
|
-
$metadata
|
|
3016
|
+
$metadata,
|
|
2965
3017
|
});
|
|
2966
3018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2967
3019
|
}
|
|
@@ -3184,8 +3236,8 @@ const deserializeAws_json1_1UpdateInProgressExceptionResponse = async (parsedOut
|
|
|
3184
3236
|
};
|
|
3185
3237
|
const serializeAws_json1_1AttachmentStateChange = (input, context) => {
|
|
3186
3238
|
return {
|
|
3187
|
-
...(input.attachmentArn
|
|
3188
|
-
...(input.status
|
|
3239
|
+
...(input.attachmentArn != null && { attachmentArn: input.attachmentArn }),
|
|
3240
|
+
...(input.status != null && { status: input.status }),
|
|
3189
3241
|
};
|
|
3190
3242
|
};
|
|
3191
3243
|
const serializeAws_json1_1AttachmentStateChanges = (input, context) => {
|
|
@@ -3200,10 +3252,10 @@ const serializeAws_json1_1AttachmentStateChanges = (input, context) => {
|
|
|
3200
3252
|
};
|
|
3201
3253
|
const serializeAws_json1_1Attribute = (input, context) => {
|
|
3202
3254
|
return {
|
|
3203
|
-
...(input.name
|
|
3204
|
-
...(input.targetId
|
|
3205
|
-
...(input.targetType
|
|
3206
|
-
...(input.value
|
|
3255
|
+
...(input.name != null && { name: input.name }),
|
|
3256
|
+
...(input.targetId != null && { targetId: input.targetId }),
|
|
3257
|
+
...(input.targetType != null && { targetType: input.targetType }),
|
|
3258
|
+
...(input.value != null && { value: input.value }),
|
|
3207
3259
|
};
|
|
3208
3260
|
};
|
|
3209
3261
|
const serializeAws_json1_1Attributes = (input, context) => {
|
|
@@ -3218,40 +3270,32 @@ const serializeAws_json1_1Attributes = (input, context) => {
|
|
|
3218
3270
|
};
|
|
3219
3271
|
const serializeAws_json1_1AutoScalingGroupProvider = (input, context) => {
|
|
3220
3272
|
return {
|
|
3221
|
-
...(input.autoScalingGroupArn
|
|
3222
|
-
|
|
3223
|
-
...(input.managedScaling !== undefined &&
|
|
3224
|
-
input.managedScaling !== null && {
|
|
3273
|
+
...(input.autoScalingGroupArn != null && { autoScalingGroupArn: input.autoScalingGroupArn }),
|
|
3274
|
+
...(input.managedScaling != null && {
|
|
3225
3275
|
managedScaling: serializeAws_json1_1ManagedScaling(input.managedScaling, context),
|
|
3226
3276
|
}),
|
|
3227
|
-
...(input.managedTerminationProtection
|
|
3228
|
-
input.managedTerminationProtection !== null && {
|
|
3277
|
+
...(input.managedTerminationProtection != null && {
|
|
3229
3278
|
managedTerminationProtection: input.managedTerminationProtection,
|
|
3230
3279
|
}),
|
|
3231
3280
|
};
|
|
3232
3281
|
};
|
|
3233
3282
|
const serializeAws_json1_1AutoScalingGroupProviderUpdate = (input, context) => {
|
|
3234
3283
|
return {
|
|
3235
|
-
...(input.managedScaling
|
|
3236
|
-
input.managedScaling !== null && {
|
|
3284
|
+
...(input.managedScaling != null && {
|
|
3237
3285
|
managedScaling: serializeAws_json1_1ManagedScaling(input.managedScaling, context),
|
|
3238
3286
|
}),
|
|
3239
|
-
...(input.managedTerminationProtection
|
|
3240
|
-
input.managedTerminationProtection !== null && {
|
|
3287
|
+
...(input.managedTerminationProtection != null && {
|
|
3241
3288
|
managedTerminationProtection: input.managedTerminationProtection,
|
|
3242
3289
|
}),
|
|
3243
3290
|
};
|
|
3244
3291
|
};
|
|
3245
3292
|
const serializeAws_json1_1AwsVpcConfiguration = (input, context) => {
|
|
3246
3293
|
return {
|
|
3247
|
-
...(input.assignPublicIp
|
|
3248
|
-
|
|
3249
|
-
...(input.securityGroups !== undefined &&
|
|
3250
|
-
input.securityGroups !== null && {
|
|
3294
|
+
...(input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }),
|
|
3295
|
+
...(input.securityGroups != null && {
|
|
3251
3296
|
securityGroups: serializeAws_json1_1StringList(input.securityGroups, context),
|
|
3252
3297
|
}),
|
|
3253
|
-
...(input.subnets
|
|
3254
|
-
input.subnets !== null && { subnets: serializeAws_json1_1StringList(input.subnets, context) }),
|
|
3298
|
+
...(input.subnets != null && { subnets: serializeAws_json1_1StringList(input.subnets, context) }),
|
|
3255
3299
|
};
|
|
3256
3300
|
};
|
|
3257
3301
|
const serializeAws_json1_1CapacityProviderFieldList = (input, context) => {
|
|
@@ -3276,16 +3320,14 @@ const serializeAws_json1_1CapacityProviderStrategy = (input, context) => {
|
|
|
3276
3320
|
};
|
|
3277
3321
|
const serializeAws_json1_1CapacityProviderStrategyItem = (input, context) => {
|
|
3278
3322
|
return {
|
|
3279
|
-
...(input.base
|
|
3280
|
-
...(input.capacityProvider
|
|
3281
|
-
|
|
3282
|
-
...(input.weight !== undefined && input.weight !== null && { weight: input.weight }),
|
|
3323
|
+
...(input.base != null && { base: input.base }),
|
|
3324
|
+
...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
|
|
3325
|
+
...(input.weight != null && { weight: input.weight }),
|
|
3283
3326
|
};
|
|
3284
3327
|
};
|
|
3285
3328
|
const serializeAws_json1_1ClusterConfiguration = (input, context) => {
|
|
3286
3329
|
return {
|
|
3287
|
-
...(input.executeCommandConfiguration
|
|
3288
|
-
input.executeCommandConfiguration !== null && {
|
|
3330
|
+
...(input.executeCommandConfiguration != null && {
|
|
3289
3331
|
executeCommandConfiguration: serializeAws_json1_1ExecuteCommandConfiguration(input.executeCommandConfiguration, context),
|
|
3290
3332
|
}),
|
|
3291
3333
|
};
|
|
@@ -3302,8 +3344,8 @@ const serializeAws_json1_1ClusterFieldList = (input, context) => {
|
|
|
3302
3344
|
};
|
|
3303
3345
|
const serializeAws_json1_1ClusterSetting = (input, context) => {
|
|
3304
3346
|
return {
|
|
3305
|
-
...(input.name
|
|
3306
|
-
...(input.value
|
|
3347
|
+
...(input.name != null && { name: input.name }),
|
|
3348
|
+
...(input.value != null && { value: input.value }),
|
|
3307
3349
|
};
|
|
3308
3350
|
};
|
|
3309
3351
|
const serializeAws_json1_1ClusterSettings = (input, context) => {
|
|
@@ -3328,97 +3370,69 @@ const serializeAws_json1_1CompatibilityList = (input, context) => {
|
|
|
3328
3370
|
};
|
|
3329
3371
|
const serializeAws_json1_1ContainerDefinition = (input, context) => {
|
|
3330
3372
|
return {
|
|
3331
|
-
...(input.command
|
|
3332
|
-
|
|
3333
|
-
...(input.
|
|
3334
|
-
...(input.
|
|
3335
|
-
|
|
3336
|
-
...(input.disableNetworking !== undefined &&
|
|
3337
|
-
input.disableNetworking !== null && { disableNetworking: input.disableNetworking }),
|
|
3338
|
-
...(input.dnsSearchDomains !== undefined &&
|
|
3339
|
-
input.dnsSearchDomains !== null && {
|
|
3373
|
+
...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
|
|
3374
|
+
...(input.cpu != null && { cpu: input.cpu }),
|
|
3375
|
+
...(input.dependsOn != null && { dependsOn: serializeAws_json1_1ContainerDependencies(input.dependsOn, context) }),
|
|
3376
|
+
...(input.disableNetworking != null && { disableNetworking: input.disableNetworking }),
|
|
3377
|
+
...(input.dnsSearchDomains != null && {
|
|
3340
3378
|
dnsSearchDomains: serializeAws_json1_1StringList(input.dnsSearchDomains, context),
|
|
3341
3379
|
}),
|
|
3342
|
-
...(input.dnsServers
|
|
3343
|
-
|
|
3344
|
-
...(input.dockerLabels !== undefined &&
|
|
3345
|
-
input.dockerLabels !== null && {
|
|
3380
|
+
...(input.dnsServers != null && { dnsServers: serializeAws_json1_1StringList(input.dnsServers, context) }),
|
|
3381
|
+
...(input.dockerLabels != null && {
|
|
3346
3382
|
dockerLabels: serializeAws_json1_1DockerLabelsMap(input.dockerLabels, context),
|
|
3347
3383
|
}),
|
|
3348
|
-
...(input.dockerSecurityOptions
|
|
3349
|
-
input.dockerSecurityOptions !== null && {
|
|
3384
|
+
...(input.dockerSecurityOptions != null && {
|
|
3350
3385
|
dockerSecurityOptions: serializeAws_json1_1StringList(input.dockerSecurityOptions, context),
|
|
3351
3386
|
}),
|
|
3352
|
-
...(input.entryPoint
|
|
3353
|
-
|
|
3354
|
-
...(input.environment !== undefined &&
|
|
3355
|
-
input.environment !== null && {
|
|
3387
|
+
...(input.entryPoint != null && { entryPoint: serializeAws_json1_1StringList(input.entryPoint, context) }),
|
|
3388
|
+
...(input.environment != null && {
|
|
3356
3389
|
environment: serializeAws_json1_1EnvironmentVariables(input.environment, context),
|
|
3357
3390
|
}),
|
|
3358
|
-
...(input.environmentFiles
|
|
3359
|
-
input.environmentFiles !== null && {
|
|
3391
|
+
...(input.environmentFiles != null && {
|
|
3360
3392
|
environmentFiles: serializeAws_json1_1EnvironmentFiles(input.environmentFiles, context),
|
|
3361
3393
|
}),
|
|
3362
|
-
...(input.essential
|
|
3363
|
-
...(input.extraHosts
|
|
3364
|
-
|
|
3365
|
-
...(input.firelensConfiguration !== undefined &&
|
|
3366
|
-
input.firelensConfiguration !== null && {
|
|
3394
|
+
...(input.essential != null && { essential: input.essential }),
|
|
3395
|
+
...(input.extraHosts != null && { extraHosts: serializeAws_json1_1HostEntryList(input.extraHosts, context) }),
|
|
3396
|
+
...(input.firelensConfiguration != null && {
|
|
3367
3397
|
firelensConfiguration: serializeAws_json1_1FirelensConfiguration(input.firelensConfiguration, context),
|
|
3368
3398
|
}),
|
|
3369
|
-
...(input.healthCheck
|
|
3370
|
-
|
|
3371
|
-
...(input.
|
|
3372
|
-
...(input.
|
|
3373
|
-
...(input.
|
|
3374
|
-
...(input.
|
|
3375
|
-
input.links !== null && { links: serializeAws_json1_1StringList(input.links, context) }),
|
|
3376
|
-
...(input.linuxParameters !== undefined &&
|
|
3377
|
-
input.linuxParameters !== null && {
|
|
3399
|
+
...(input.healthCheck != null && { healthCheck: serializeAws_json1_1HealthCheck(input.healthCheck, context) }),
|
|
3400
|
+
...(input.hostname != null && { hostname: input.hostname }),
|
|
3401
|
+
...(input.image != null && { image: input.image }),
|
|
3402
|
+
...(input.interactive != null && { interactive: input.interactive }),
|
|
3403
|
+
...(input.links != null && { links: serializeAws_json1_1StringList(input.links, context) }),
|
|
3404
|
+
...(input.linuxParameters != null && {
|
|
3378
3405
|
linuxParameters: serializeAws_json1_1LinuxParameters(input.linuxParameters, context),
|
|
3379
3406
|
}),
|
|
3380
|
-
...(input.logConfiguration
|
|
3381
|
-
input.logConfiguration !== null && {
|
|
3407
|
+
...(input.logConfiguration != null && {
|
|
3382
3408
|
logConfiguration: serializeAws_json1_1LogConfiguration(input.logConfiguration, context),
|
|
3383
3409
|
}),
|
|
3384
|
-
...(input.memory
|
|
3385
|
-
...(input.memoryReservation
|
|
3386
|
-
|
|
3387
|
-
...(input.
|
|
3388
|
-
|
|
3389
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3390
|
-
...(input.portMappings !== undefined &&
|
|
3391
|
-
input.portMappings !== null && {
|
|
3410
|
+
...(input.memory != null && { memory: input.memory }),
|
|
3411
|
+
...(input.memoryReservation != null && { memoryReservation: input.memoryReservation }),
|
|
3412
|
+
...(input.mountPoints != null && { mountPoints: serializeAws_json1_1MountPointList(input.mountPoints, context) }),
|
|
3413
|
+
...(input.name != null && { name: input.name }),
|
|
3414
|
+
...(input.portMappings != null && {
|
|
3392
3415
|
portMappings: serializeAws_json1_1PortMappingList(input.portMappings, context),
|
|
3393
3416
|
}),
|
|
3394
|
-
...(input.privileged
|
|
3395
|
-
...(input.pseudoTerminal
|
|
3396
|
-
|
|
3397
|
-
...(input.
|
|
3398
|
-
input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
|
|
3399
|
-
...(input.repositoryCredentials !== undefined &&
|
|
3400
|
-
input.repositoryCredentials !== null && {
|
|
3417
|
+
...(input.privileged != null && { privileged: input.privileged }),
|
|
3418
|
+
...(input.pseudoTerminal != null && { pseudoTerminal: input.pseudoTerminal }),
|
|
3419
|
+
...(input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
|
|
3420
|
+
...(input.repositoryCredentials != null && {
|
|
3401
3421
|
repositoryCredentials: serializeAws_json1_1RepositoryCredentials(input.repositoryCredentials, context),
|
|
3402
3422
|
}),
|
|
3403
|
-
...(input.resourceRequirements
|
|
3404
|
-
input.resourceRequirements !== null && {
|
|
3423
|
+
...(input.resourceRequirements != null && {
|
|
3405
3424
|
resourceRequirements: serializeAws_json1_1ResourceRequirements(input.resourceRequirements, context),
|
|
3406
3425
|
}),
|
|
3407
|
-
...(input.secrets
|
|
3408
|
-
|
|
3409
|
-
...(input.
|
|
3410
|
-
...(input.
|
|
3411
|
-
...(input.systemControls !== undefined &&
|
|
3412
|
-
input.systemControls !== null && {
|
|
3426
|
+
...(input.secrets != null && { secrets: serializeAws_json1_1SecretList(input.secrets, context) }),
|
|
3427
|
+
...(input.startTimeout != null && { startTimeout: input.startTimeout }),
|
|
3428
|
+
...(input.stopTimeout != null && { stopTimeout: input.stopTimeout }),
|
|
3429
|
+
...(input.systemControls != null && {
|
|
3413
3430
|
systemControls: serializeAws_json1_1SystemControls(input.systemControls, context),
|
|
3414
3431
|
}),
|
|
3415
|
-
...(input.ulimits
|
|
3416
|
-
|
|
3417
|
-
...(input.
|
|
3418
|
-
...(input.
|
|
3419
|
-
input.volumesFrom !== null && { volumesFrom: serializeAws_json1_1VolumeFromList(input.volumesFrom, context) }),
|
|
3420
|
-
...(input.workingDirectory !== undefined &&
|
|
3421
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory }),
|
|
3432
|
+
...(input.ulimits != null && { ulimits: serializeAws_json1_1UlimitList(input.ulimits, context) }),
|
|
3433
|
+
...(input.user != null && { user: input.user }),
|
|
3434
|
+
...(input.volumesFrom != null && { volumesFrom: serializeAws_json1_1VolumeFromList(input.volumesFrom, context) }),
|
|
3435
|
+
...(input.workingDirectory != null && { workingDirectory: input.workingDirectory }),
|
|
3422
3436
|
};
|
|
3423
3437
|
};
|
|
3424
3438
|
const serializeAws_json1_1ContainerDefinitions = (input, context) => {
|
|
@@ -3443,8 +3457,8 @@ const serializeAws_json1_1ContainerDependencies = (input, context) => {
|
|
|
3443
3457
|
};
|
|
3444
3458
|
const serializeAws_json1_1ContainerDependency = (input, context) => {
|
|
3445
3459
|
return {
|
|
3446
|
-
...(input.condition
|
|
3447
|
-
...(input.containerName
|
|
3460
|
+
...(input.condition != null && { condition: input.condition }),
|
|
3461
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
3448
3462
|
};
|
|
3449
3463
|
};
|
|
3450
3464
|
const serializeAws_json1_1ContainerInstanceFieldList = (input, context) => {
|
|
@@ -3459,23 +3473,18 @@ const serializeAws_json1_1ContainerInstanceFieldList = (input, context) => {
|
|
|
3459
3473
|
};
|
|
3460
3474
|
const serializeAws_json1_1ContainerOverride = (input, context) => {
|
|
3461
3475
|
return {
|
|
3462
|
-
...(input.command
|
|
3463
|
-
|
|
3464
|
-
...(input.
|
|
3465
|
-
...(input.environment !== undefined &&
|
|
3466
|
-
input.environment !== null && {
|
|
3476
|
+
...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
|
|
3477
|
+
...(input.cpu != null && { cpu: input.cpu }),
|
|
3478
|
+
...(input.environment != null && {
|
|
3467
3479
|
environment: serializeAws_json1_1EnvironmentVariables(input.environment, context),
|
|
3468
3480
|
}),
|
|
3469
|
-
...(input.environmentFiles
|
|
3470
|
-
input.environmentFiles !== null && {
|
|
3481
|
+
...(input.environmentFiles != null && {
|
|
3471
3482
|
environmentFiles: serializeAws_json1_1EnvironmentFiles(input.environmentFiles, context),
|
|
3472
3483
|
}),
|
|
3473
|
-
...(input.memory
|
|
3474
|
-
...(input.memoryReservation
|
|
3475
|
-
|
|
3476
|
-
...(input.
|
|
3477
|
-
...(input.resourceRequirements !== undefined &&
|
|
3478
|
-
input.resourceRequirements !== null && {
|
|
3484
|
+
...(input.memory != null && { memory: input.memory }),
|
|
3485
|
+
...(input.memoryReservation != null && { memoryReservation: input.memoryReservation }),
|
|
3486
|
+
...(input.name != null && { name: input.name }),
|
|
3487
|
+
...(input.resourceRequirements != null && {
|
|
3479
3488
|
resourceRequirements: serializeAws_json1_1ResourceRequirements(input.resourceRequirements, context),
|
|
3480
3489
|
}),
|
|
3481
3490
|
};
|
|
@@ -3492,16 +3501,15 @@ const serializeAws_json1_1ContainerOverrides = (input, context) => {
|
|
|
3492
3501
|
};
|
|
3493
3502
|
const serializeAws_json1_1ContainerStateChange = (input, context) => {
|
|
3494
3503
|
return {
|
|
3495
|
-
...(input.containerName
|
|
3496
|
-
...(input.exitCode
|
|
3497
|
-
...(input.imageDigest
|
|
3498
|
-
...(input.networkBindings
|
|
3499
|
-
input.networkBindings !== null && {
|
|
3504
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
3505
|
+
...(input.exitCode != null && { exitCode: input.exitCode }),
|
|
3506
|
+
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
3507
|
+
...(input.networkBindings != null && {
|
|
3500
3508
|
networkBindings: serializeAws_json1_1NetworkBindings(input.networkBindings, context),
|
|
3501
3509
|
}),
|
|
3502
|
-
...(input.reason
|
|
3503
|
-
...(input.runtimeId
|
|
3504
|
-
...(input.status
|
|
3510
|
+
...(input.reason != null && { reason: input.reason }),
|
|
3511
|
+
...(input.runtimeId != null && { runtimeId: input.runtimeId }),
|
|
3512
|
+
...(input.status != null && { status: input.status }),
|
|
3505
3513
|
};
|
|
3506
3514
|
};
|
|
3507
3515
|
const serializeAws_json1_1ContainerStateChanges = (input, context) => {
|
|
@@ -3516,273 +3524,225 @@ const serializeAws_json1_1ContainerStateChanges = (input, context) => {
|
|
|
3516
3524
|
};
|
|
3517
3525
|
const serializeAws_json1_1CreateCapacityProviderRequest = (input, context) => {
|
|
3518
3526
|
return {
|
|
3519
|
-
...(input.autoScalingGroupProvider
|
|
3520
|
-
input.autoScalingGroupProvider !== null && {
|
|
3527
|
+
...(input.autoScalingGroupProvider != null && {
|
|
3521
3528
|
autoScalingGroupProvider: serializeAws_json1_1AutoScalingGroupProvider(input.autoScalingGroupProvider, context),
|
|
3522
3529
|
}),
|
|
3523
|
-
...(input.name
|
|
3524
|
-
...(input.tags
|
|
3530
|
+
...(input.name != null && { name: input.name }),
|
|
3531
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3525
3532
|
};
|
|
3526
3533
|
};
|
|
3527
3534
|
const serializeAws_json1_1CreateClusterRequest = (input, context) => {
|
|
3528
3535
|
return {
|
|
3529
|
-
...(input.capacityProviders
|
|
3530
|
-
input.capacityProviders !== null && {
|
|
3536
|
+
...(input.capacityProviders != null && {
|
|
3531
3537
|
capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
|
|
3532
3538
|
}),
|
|
3533
|
-
...(input.clusterName
|
|
3534
|
-
...(input.configuration
|
|
3535
|
-
input.configuration !== null && {
|
|
3539
|
+
...(input.clusterName != null && { clusterName: input.clusterName }),
|
|
3540
|
+
...(input.configuration != null && {
|
|
3536
3541
|
configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
|
|
3537
3542
|
}),
|
|
3538
|
-
...(input.defaultCapacityProviderStrategy
|
|
3539
|
-
input.defaultCapacityProviderStrategy !== null && {
|
|
3543
|
+
...(input.defaultCapacityProviderStrategy != null && {
|
|
3540
3544
|
defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
|
|
3541
3545
|
}),
|
|
3542
|
-
...(input.settings
|
|
3543
|
-
|
|
3544
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3546
|
+
...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
3547
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3545
3548
|
};
|
|
3546
3549
|
};
|
|
3547
3550
|
const serializeAws_json1_1CreateServiceRequest = (input, context) => {
|
|
3548
3551
|
return {
|
|
3549
|
-
...(input.capacityProviderStrategy
|
|
3550
|
-
input.capacityProviderStrategy !== null && {
|
|
3552
|
+
...(input.capacityProviderStrategy != null && {
|
|
3551
3553
|
capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
|
|
3552
3554
|
}),
|
|
3553
|
-
...(input.clientToken
|
|
3554
|
-
...(input.cluster
|
|
3555
|
-
...(input.deploymentConfiguration
|
|
3556
|
-
input.deploymentConfiguration !== null && {
|
|
3555
|
+
...(input.clientToken != null && { clientToken: input.clientToken }),
|
|
3556
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3557
|
+
...(input.deploymentConfiguration != null && {
|
|
3557
3558
|
deploymentConfiguration: serializeAws_json1_1DeploymentConfiguration(input.deploymentConfiguration, context),
|
|
3558
3559
|
}),
|
|
3559
|
-
...(input.deploymentController
|
|
3560
|
-
input.deploymentController !== null && {
|
|
3560
|
+
...(input.deploymentController != null && {
|
|
3561
3561
|
deploymentController: serializeAws_json1_1DeploymentController(input.deploymentController, context),
|
|
3562
3562
|
}),
|
|
3563
|
-
...(input.desiredCount
|
|
3564
|
-
...(input.enableECSManagedTags
|
|
3565
|
-
|
|
3566
|
-
...(input.
|
|
3567
|
-
input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand }),
|
|
3568
|
-
...(input.healthCheckGracePeriodSeconds !== undefined &&
|
|
3569
|
-
input.healthCheckGracePeriodSeconds !== null && {
|
|
3563
|
+
...(input.desiredCount != null && { desiredCount: input.desiredCount }),
|
|
3564
|
+
...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
|
|
3565
|
+
...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
|
|
3566
|
+
...(input.healthCheckGracePeriodSeconds != null && {
|
|
3570
3567
|
healthCheckGracePeriodSeconds: input.healthCheckGracePeriodSeconds,
|
|
3571
3568
|
}),
|
|
3572
|
-
...(input.launchType
|
|
3573
|
-
...(input.loadBalancers
|
|
3574
|
-
input.loadBalancers !== null && {
|
|
3569
|
+
...(input.launchType != null && { launchType: input.launchType }),
|
|
3570
|
+
...(input.loadBalancers != null && {
|
|
3575
3571
|
loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
|
|
3576
3572
|
}),
|
|
3577
|
-
...(input.networkConfiguration
|
|
3578
|
-
input.networkConfiguration !== null && {
|
|
3573
|
+
...(input.networkConfiguration != null && {
|
|
3579
3574
|
networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
|
|
3580
3575
|
}),
|
|
3581
|
-
...(input.placementConstraints
|
|
3582
|
-
input.placementConstraints !== null && {
|
|
3576
|
+
...(input.placementConstraints != null && {
|
|
3583
3577
|
placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
|
|
3584
3578
|
}),
|
|
3585
|
-
...(input.placementStrategy
|
|
3586
|
-
input.placementStrategy !== null && {
|
|
3579
|
+
...(input.placementStrategy != null && {
|
|
3587
3580
|
placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
|
|
3588
3581
|
}),
|
|
3589
|
-
...(input.platformVersion
|
|
3590
|
-
|
|
3591
|
-
...(input.
|
|
3592
|
-
...(input.
|
|
3593
|
-
...(input.
|
|
3594
|
-
|
|
3595
|
-
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
3596
|
-
...(input.serviceRegistries !== undefined &&
|
|
3597
|
-
input.serviceRegistries !== null && {
|
|
3582
|
+
...(input.platformVersion != null && { platformVersion: input.platformVersion }),
|
|
3583
|
+
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
3584
|
+
...(input.role != null && { role: input.role }),
|
|
3585
|
+
...(input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy }),
|
|
3586
|
+
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3587
|
+
...(input.serviceRegistries != null && {
|
|
3598
3588
|
serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
|
|
3599
3589
|
}),
|
|
3600
|
-
...(input.tags
|
|
3601
|
-
...(input.taskDefinition
|
|
3602
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
3590
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3591
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
3603
3592
|
};
|
|
3604
3593
|
};
|
|
3605
3594
|
const serializeAws_json1_1CreateTaskSetRequest = (input, context) => {
|
|
3606
3595
|
return {
|
|
3607
|
-
...(input.capacityProviderStrategy
|
|
3608
|
-
input.capacityProviderStrategy !== null && {
|
|
3596
|
+
...(input.capacityProviderStrategy != null && {
|
|
3609
3597
|
capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
|
|
3610
3598
|
}),
|
|
3611
|
-
...(input.clientToken
|
|
3612
|
-
...(input.cluster
|
|
3613
|
-
...(input.externalId
|
|
3614
|
-
...(input.launchType
|
|
3615
|
-
...(input.loadBalancers
|
|
3616
|
-
input.loadBalancers !== null && {
|
|
3599
|
+
...(input.clientToken != null && { clientToken: input.clientToken }),
|
|
3600
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3601
|
+
...(input.externalId != null && { externalId: input.externalId }),
|
|
3602
|
+
...(input.launchType != null && { launchType: input.launchType }),
|
|
3603
|
+
...(input.loadBalancers != null && {
|
|
3617
3604
|
loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
|
|
3618
3605
|
}),
|
|
3619
|
-
...(input.networkConfiguration
|
|
3620
|
-
input.networkConfiguration !== null && {
|
|
3606
|
+
...(input.networkConfiguration != null && {
|
|
3621
3607
|
networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
|
|
3622
3608
|
}),
|
|
3623
|
-
...(input.platformVersion
|
|
3624
|
-
|
|
3625
|
-
...(input.
|
|
3626
|
-
|
|
3627
|
-
...(input.service !== undefined && input.service !== null && { service: input.service }),
|
|
3628
|
-
...(input.serviceRegistries !== undefined &&
|
|
3629
|
-
input.serviceRegistries !== null && {
|
|
3609
|
+
...(input.platformVersion != null && { platformVersion: input.platformVersion }),
|
|
3610
|
+
...(input.scale != null && { scale: serializeAws_json1_1Scale(input.scale, context) }),
|
|
3611
|
+
...(input.service != null && { service: input.service }),
|
|
3612
|
+
...(input.serviceRegistries != null && {
|
|
3630
3613
|
serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
|
|
3631
3614
|
}),
|
|
3632
|
-
...(input.tags
|
|
3633
|
-
...(input.taskDefinition
|
|
3634
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
3615
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3616
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
3635
3617
|
};
|
|
3636
3618
|
};
|
|
3637
3619
|
const serializeAws_json1_1DeleteAccountSettingRequest = (input, context) => {
|
|
3638
3620
|
return {
|
|
3639
|
-
...(input.name
|
|
3640
|
-
...(input.principalArn
|
|
3621
|
+
...(input.name != null && { name: input.name }),
|
|
3622
|
+
...(input.principalArn != null && { principalArn: input.principalArn }),
|
|
3641
3623
|
};
|
|
3642
3624
|
};
|
|
3643
3625
|
const serializeAws_json1_1DeleteAttributesRequest = (input, context) => {
|
|
3644
3626
|
return {
|
|
3645
|
-
...(input.attributes
|
|
3646
|
-
|
|
3647
|
-
...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
|
|
3627
|
+
...(input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
|
|
3628
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3648
3629
|
};
|
|
3649
3630
|
};
|
|
3650
3631
|
const serializeAws_json1_1DeleteCapacityProviderRequest = (input, context) => {
|
|
3651
3632
|
return {
|
|
3652
|
-
...(input.capacityProvider
|
|
3653
|
-
input.capacityProvider !== null && { capacityProvider: input.capacityProvider }),
|
|
3633
|
+
...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
|
|
3654
3634
|
};
|
|
3655
3635
|
};
|
|
3656
3636
|
const serializeAws_json1_1DeleteClusterRequest = (input, context) => {
|
|
3657
3637
|
return {
|
|
3658
|
-
...(input.cluster
|
|
3638
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3659
3639
|
};
|
|
3660
3640
|
};
|
|
3661
3641
|
const serializeAws_json1_1DeleteServiceRequest = (input, context) => {
|
|
3662
3642
|
return {
|
|
3663
|
-
...(input.cluster
|
|
3664
|
-
...(input.force
|
|
3665
|
-
...(input.service
|
|
3643
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3644
|
+
...(input.force != null && { force: input.force }),
|
|
3645
|
+
...(input.service != null && { service: input.service }),
|
|
3666
3646
|
};
|
|
3667
3647
|
};
|
|
3668
3648
|
const serializeAws_json1_1DeleteTaskSetRequest = (input, context) => {
|
|
3669
3649
|
return {
|
|
3670
|
-
...(input.cluster
|
|
3671
|
-
...(input.force
|
|
3672
|
-
...(input.service
|
|
3673
|
-
...(input.taskSet
|
|
3650
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3651
|
+
...(input.force != null && { force: input.force }),
|
|
3652
|
+
...(input.service != null && { service: input.service }),
|
|
3653
|
+
...(input.taskSet != null && { taskSet: input.taskSet }),
|
|
3674
3654
|
};
|
|
3675
3655
|
};
|
|
3676
3656
|
const serializeAws_json1_1DeploymentCircuitBreaker = (input, context) => {
|
|
3677
3657
|
return {
|
|
3678
|
-
...(input.enable
|
|
3679
|
-
...(input.rollback
|
|
3658
|
+
...(input.enable != null && { enable: input.enable }),
|
|
3659
|
+
...(input.rollback != null && { rollback: input.rollback }),
|
|
3680
3660
|
};
|
|
3681
3661
|
};
|
|
3682
3662
|
const serializeAws_json1_1DeploymentConfiguration = (input, context) => {
|
|
3683
3663
|
return {
|
|
3684
|
-
...(input.deploymentCircuitBreaker
|
|
3685
|
-
input.deploymentCircuitBreaker !== null && {
|
|
3664
|
+
...(input.deploymentCircuitBreaker != null && {
|
|
3686
3665
|
deploymentCircuitBreaker: serializeAws_json1_1DeploymentCircuitBreaker(input.deploymentCircuitBreaker, context),
|
|
3687
3666
|
}),
|
|
3688
|
-
...(input.maximumPercent
|
|
3689
|
-
|
|
3690
|
-
...(input.minimumHealthyPercent !== undefined &&
|
|
3691
|
-
input.minimumHealthyPercent !== null && { minimumHealthyPercent: input.minimumHealthyPercent }),
|
|
3667
|
+
...(input.maximumPercent != null && { maximumPercent: input.maximumPercent }),
|
|
3668
|
+
...(input.minimumHealthyPercent != null && { minimumHealthyPercent: input.minimumHealthyPercent }),
|
|
3692
3669
|
};
|
|
3693
3670
|
};
|
|
3694
3671
|
const serializeAws_json1_1DeploymentController = (input, context) => {
|
|
3695
3672
|
return {
|
|
3696
|
-
...(input.type
|
|
3673
|
+
...(input.type != null && { type: input.type }),
|
|
3697
3674
|
};
|
|
3698
3675
|
};
|
|
3699
3676
|
const serializeAws_json1_1DeregisterContainerInstanceRequest = (input, context) => {
|
|
3700
3677
|
return {
|
|
3701
|
-
...(input.cluster
|
|
3702
|
-
...(input.containerInstance
|
|
3703
|
-
|
|
3704
|
-
...(input.force !== undefined && input.force !== null && { force: input.force }),
|
|
3678
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3679
|
+
...(input.containerInstance != null && { containerInstance: input.containerInstance }),
|
|
3680
|
+
...(input.force != null && { force: input.force }),
|
|
3705
3681
|
};
|
|
3706
3682
|
};
|
|
3707
3683
|
const serializeAws_json1_1DeregisterTaskDefinitionRequest = (input, context) => {
|
|
3708
3684
|
return {
|
|
3709
|
-
...(input.taskDefinition
|
|
3710
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
3685
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
3711
3686
|
};
|
|
3712
3687
|
};
|
|
3713
3688
|
const serializeAws_json1_1DescribeCapacityProvidersRequest = (input, context) => {
|
|
3714
3689
|
return {
|
|
3715
|
-
...(input.capacityProviders
|
|
3716
|
-
input.capacityProviders !== null && {
|
|
3690
|
+
...(input.capacityProviders != null && {
|
|
3717
3691
|
capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
|
|
3718
3692
|
}),
|
|
3719
|
-
...(input.include
|
|
3720
|
-
|
|
3721
|
-
...(input.
|
|
3722
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3693
|
+
...(input.include != null && { include: serializeAws_json1_1CapacityProviderFieldList(input.include, context) }),
|
|
3694
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3695
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3723
3696
|
};
|
|
3724
3697
|
};
|
|
3725
3698
|
const serializeAws_json1_1DescribeClustersRequest = (input, context) => {
|
|
3726
3699
|
return {
|
|
3727
|
-
...(input.clusters
|
|
3728
|
-
|
|
3729
|
-
...(input.include !== undefined &&
|
|
3730
|
-
input.include !== null && { include: serializeAws_json1_1ClusterFieldList(input.include, context) }),
|
|
3700
|
+
...(input.clusters != null && { clusters: serializeAws_json1_1StringList(input.clusters, context) }),
|
|
3701
|
+
...(input.include != null && { include: serializeAws_json1_1ClusterFieldList(input.include, context) }),
|
|
3731
3702
|
};
|
|
3732
3703
|
};
|
|
3733
3704
|
const serializeAws_json1_1DescribeContainerInstancesRequest = (input, context) => {
|
|
3734
3705
|
return {
|
|
3735
|
-
...(input.cluster
|
|
3736
|
-
...(input.containerInstances
|
|
3737
|
-
input.containerInstances !== null && {
|
|
3706
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3707
|
+
...(input.containerInstances != null && {
|
|
3738
3708
|
containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
|
|
3739
3709
|
}),
|
|
3740
|
-
...(input.include
|
|
3741
|
-
input.include !== null && { include: serializeAws_json1_1ContainerInstanceFieldList(input.include, context) }),
|
|
3710
|
+
...(input.include != null && { include: serializeAws_json1_1ContainerInstanceFieldList(input.include, context) }),
|
|
3742
3711
|
};
|
|
3743
3712
|
};
|
|
3744
3713
|
const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
|
|
3745
3714
|
return {
|
|
3746
|
-
...(input.cluster
|
|
3747
|
-
...(input.include
|
|
3748
|
-
|
|
3749
|
-
...(input.services !== undefined &&
|
|
3750
|
-
input.services !== null && { services: serializeAws_json1_1StringList(input.services, context) }),
|
|
3715
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3716
|
+
...(input.include != null && { include: serializeAws_json1_1ServiceFieldList(input.include, context) }),
|
|
3717
|
+
...(input.services != null && { services: serializeAws_json1_1StringList(input.services, context) }),
|
|
3751
3718
|
};
|
|
3752
3719
|
};
|
|
3753
3720
|
const serializeAws_json1_1DescribeTaskDefinitionRequest = (input, context) => {
|
|
3754
3721
|
return {
|
|
3755
|
-
...(input.include
|
|
3756
|
-
|
|
3757
|
-
...(input.taskDefinition !== undefined &&
|
|
3758
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
3722
|
+
...(input.include != null && { include: serializeAws_json1_1TaskDefinitionFieldList(input.include, context) }),
|
|
3723
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
3759
3724
|
};
|
|
3760
3725
|
};
|
|
3761
3726
|
const serializeAws_json1_1DescribeTaskSetsRequest = (input, context) => {
|
|
3762
3727
|
return {
|
|
3763
|
-
...(input.cluster
|
|
3764
|
-
...(input.include
|
|
3765
|
-
|
|
3766
|
-
...(input.
|
|
3767
|
-
...(input.taskSets !== undefined &&
|
|
3768
|
-
input.taskSets !== null && { taskSets: serializeAws_json1_1StringList(input.taskSets, context) }),
|
|
3728
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3729
|
+
...(input.include != null && { include: serializeAws_json1_1TaskSetFieldList(input.include, context) }),
|
|
3730
|
+
...(input.service != null && { service: input.service }),
|
|
3731
|
+
...(input.taskSets != null && { taskSets: serializeAws_json1_1StringList(input.taskSets, context) }),
|
|
3769
3732
|
};
|
|
3770
3733
|
};
|
|
3771
3734
|
const serializeAws_json1_1DescribeTasksRequest = (input, context) => {
|
|
3772
3735
|
return {
|
|
3773
|
-
...(input.cluster
|
|
3774
|
-
...(input.include
|
|
3775
|
-
|
|
3776
|
-
...(input.tasks !== undefined &&
|
|
3777
|
-
input.tasks !== null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }),
|
|
3736
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3737
|
+
...(input.include != null && { include: serializeAws_json1_1TaskFieldList(input.include, context) }),
|
|
3738
|
+
...(input.tasks != null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }),
|
|
3778
3739
|
};
|
|
3779
3740
|
};
|
|
3780
3741
|
const serializeAws_json1_1Device = (input, context) => {
|
|
3781
3742
|
return {
|
|
3782
|
-
...(input.containerPath
|
|
3783
|
-
...(input.hostPath
|
|
3784
|
-
...(input.permissions
|
|
3785
|
-
input.permissions !== null && {
|
|
3743
|
+
...(input.containerPath != null && { containerPath: input.containerPath }),
|
|
3744
|
+
...(input.hostPath != null && { hostPath: input.hostPath }),
|
|
3745
|
+
...(input.permissions != null && {
|
|
3786
3746
|
permissions: serializeAws_json1_1DeviceCgroupPermissions(input.permissions, context),
|
|
3787
3747
|
}),
|
|
3788
3748
|
};
|
|
@@ -3809,9 +3769,8 @@ const serializeAws_json1_1DevicesList = (input, context) => {
|
|
|
3809
3769
|
};
|
|
3810
3770
|
const serializeAws_json1_1DiscoverPollEndpointRequest = (input, context) => {
|
|
3811
3771
|
return {
|
|
3812
|
-
...(input.cluster
|
|
3813
|
-
...(input.containerInstance
|
|
3814
|
-
input.containerInstance !== null && { containerInstance: input.containerInstance }),
|
|
3772
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3773
|
+
...(input.containerInstance != null && { containerInstance: input.containerInstance }),
|
|
3815
3774
|
};
|
|
3816
3775
|
};
|
|
3817
3776
|
const serializeAws_json1_1DockerLabelsMap = (input, context) => {
|
|
@@ -3827,39 +3786,34 @@ const serializeAws_json1_1DockerLabelsMap = (input, context) => {
|
|
|
3827
3786
|
};
|
|
3828
3787
|
const serializeAws_json1_1DockerVolumeConfiguration = (input, context) => {
|
|
3829
3788
|
return {
|
|
3830
|
-
...(input.autoprovision
|
|
3831
|
-
...(input.driver
|
|
3832
|
-
...(input.driverOpts
|
|
3833
|
-
|
|
3834
|
-
...(input.
|
|
3835
|
-
input.labels !== null && { labels: serializeAws_json1_1StringMap(input.labels, context) }),
|
|
3836
|
-
...(input.scope !== undefined && input.scope !== null && { scope: input.scope }),
|
|
3789
|
+
...(input.autoprovision != null && { autoprovision: input.autoprovision }),
|
|
3790
|
+
...(input.driver != null && { driver: input.driver }),
|
|
3791
|
+
...(input.driverOpts != null && { driverOpts: serializeAws_json1_1StringMap(input.driverOpts, context) }),
|
|
3792
|
+
...(input.labels != null && { labels: serializeAws_json1_1StringMap(input.labels, context) }),
|
|
3793
|
+
...(input.scope != null && { scope: input.scope }),
|
|
3837
3794
|
};
|
|
3838
3795
|
};
|
|
3839
3796
|
const serializeAws_json1_1EFSAuthorizationConfig = (input, context) => {
|
|
3840
3797
|
return {
|
|
3841
|
-
...(input.accessPointId
|
|
3842
|
-
...(input.iam
|
|
3798
|
+
...(input.accessPointId != null && { accessPointId: input.accessPointId }),
|
|
3799
|
+
...(input.iam != null && { iam: input.iam }),
|
|
3843
3800
|
};
|
|
3844
3801
|
};
|
|
3845
3802
|
const serializeAws_json1_1EFSVolumeConfiguration = (input, context) => {
|
|
3846
3803
|
return {
|
|
3847
|
-
...(input.authorizationConfig
|
|
3848
|
-
input.authorizationConfig !== null && {
|
|
3804
|
+
...(input.authorizationConfig != null && {
|
|
3849
3805
|
authorizationConfig: serializeAws_json1_1EFSAuthorizationConfig(input.authorizationConfig, context),
|
|
3850
3806
|
}),
|
|
3851
|
-
...(input.fileSystemId
|
|
3852
|
-
...(input.rootDirectory
|
|
3853
|
-
...(input.transitEncryption
|
|
3854
|
-
|
|
3855
|
-
...(input.transitEncryptionPort !== undefined &&
|
|
3856
|
-
input.transitEncryptionPort !== null && { transitEncryptionPort: input.transitEncryptionPort }),
|
|
3807
|
+
...(input.fileSystemId != null && { fileSystemId: input.fileSystemId }),
|
|
3808
|
+
...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
|
|
3809
|
+
...(input.transitEncryption != null && { transitEncryption: input.transitEncryption }),
|
|
3810
|
+
...(input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }),
|
|
3857
3811
|
};
|
|
3858
3812
|
};
|
|
3859
3813
|
const serializeAws_json1_1EnvironmentFile = (input, context) => {
|
|
3860
3814
|
return {
|
|
3861
|
-
...(input.type
|
|
3862
|
-
...(input.value
|
|
3815
|
+
...(input.type != null && { type: input.type }),
|
|
3816
|
+
...(input.value != null && { value: input.value }),
|
|
3863
3817
|
};
|
|
3864
3818
|
};
|
|
3865
3819
|
const serializeAws_json1_1EnvironmentFiles = (input, context) => {
|
|
@@ -3884,47 +3838,44 @@ const serializeAws_json1_1EnvironmentVariables = (input, context) => {
|
|
|
3884
3838
|
};
|
|
3885
3839
|
const serializeAws_json1_1EphemeralStorage = (input, context) => {
|
|
3886
3840
|
return {
|
|
3887
|
-
...(input.sizeInGiB
|
|
3841
|
+
...(input.sizeInGiB != null && { sizeInGiB: input.sizeInGiB }),
|
|
3888
3842
|
};
|
|
3889
3843
|
};
|
|
3890
3844
|
const serializeAws_json1_1ExecuteCommandConfiguration = (input, context) => {
|
|
3891
3845
|
return {
|
|
3892
|
-
...(input.kmsKeyId
|
|
3893
|
-
...(input.logConfiguration
|
|
3894
|
-
input.logConfiguration !== null && {
|
|
3846
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
3847
|
+
...(input.logConfiguration != null && {
|
|
3895
3848
|
logConfiguration: serializeAws_json1_1ExecuteCommandLogConfiguration(input.logConfiguration, context),
|
|
3896
3849
|
}),
|
|
3897
|
-
...(input.logging
|
|
3850
|
+
...(input.logging != null && { logging: input.logging }),
|
|
3898
3851
|
};
|
|
3899
3852
|
};
|
|
3900
3853
|
const serializeAws_json1_1ExecuteCommandLogConfiguration = (input, context) => {
|
|
3901
3854
|
return {
|
|
3902
|
-
...(input.cloudWatchEncryptionEnabled
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
...(input.s3BucketName
|
|
3907
|
-
...(input.s3EncryptionEnabled
|
|
3908
|
-
|
|
3909
|
-
...(input.s3KeyPrefix !== undefined && input.s3KeyPrefix !== null && { s3KeyPrefix: input.s3KeyPrefix }),
|
|
3855
|
+
...(input.cloudWatchEncryptionEnabled != null && {
|
|
3856
|
+
cloudWatchEncryptionEnabled: input.cloudWatchEncryptionEnabled,
|
|
3857
|
+
}),
|
|
3858
|
+
...(input.cloudWatchLogGroupName != null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName }),
|
|
3859
|
+
...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
|
|
3860
|
+
...(input.s3EncryptionEnabled != null && { s3EncryptionEnabled: input.s3EncryptionEnabled }),
|
|
3861
|
+
...(input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }),
|
|
3910
3862
|
};
|
|
3911
3863
|
};
|
|
3912
3864
|
const serializeAws_json1_1ExecuteCommandRequest = (input, context) => {
|
|
3913
3865
|
return {
|
|
3914
|
-
...(input.cluster
|
|
3915
|
-
...(input.command
|
|
3916
|
-
...(input.container
|
|
3917
|
-
...(input.interactive
|
|
3918
|
-
...(input.task
|
|
3866
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3867
|
+
...(input.command != null && { command: input.command }),
|
|
3868
|
+
...(input.container != null && { container: input.container }),
|
|
3869
|
+
...(input.interactive != null && { interactive: input.interactive }),
|
|
3870
|
+
...(input.task != null && { task: input.task }),
|
|
3919
3871
|
};
|
|
3920
3872
|
};
|
|
3921
3873
|
const serializeAws_json1_1FirelensConfiguration = (input, context) => {
|
|
3922
3874
|
return {
|
|
3923
|
-
...(input.options
|
|
3924
|
-
input.options !== null && {
|
|
3875
|
+
...(input.options != null && {
|
|
3925
3876
|
options: serializeAws_json1_1FirelensConfigurationOptionsMap(input.options, context),
|
|
3926
3877
|
}),
|
|
3927
|
-
...(input.type
|
|
3878
|
+
...(input.type != null && { type: input.type }),
|
|
3928
3879
|
};
|
|
3929
3880
|
};
|
|
3930
3881
|
const serializeAws_json1_1FirelensConfigurationOptionsMap = (input, context) => {
|
|
@@ -3940,35 +3891,32 @@ const serializeAws_json1_1FirelensConfigurationOptionsMap = (input, context) =>
|
|
|
3940
3891
|
};
|
|
3941
3892
|
const serializeAws_json1_1FSxWindowsFileServerAuthorizationConfig = (input, context) => {
|
|
3942
3893
|
return {
|
|
3943
|
-
...(input.credentialsParameter
|
|
3944
|
-
|
|
3945
|
-
...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
|
|
3894
|
+
...(input.credentialsParameter != null && { credentialsParameter: input.credentialsParameter }),
|
|
3895
|
+
...(input.domain != null && { domain: input.domain }),
|
|
3946
3896
|
};
|
|
3947
3897
|
};
|
|
3948
3898
|
const serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = (input, context) => {
|
|
3949
3899
|
return {
|
|
3950
|
-
...(input.authorizationConfig
|
|
3951
|
-
input.authorizationConfig !== null && {
|
|
3900
|
+
...(input.authorizationConfig != null && {
|
|
3952
3901
|
authorizationConfig: serializeAws_json1_1FSxWindowsFileServerAuthorizationConfig(input.authorizationConfig, context),
|
|
3953
3902
|
}),
|
|
3954
|
-
...(input.fileSystemId
|
|
3955
|
-
...(input.rootDirectory
|
|
3903
|
+
...(input.fileSystemId != null && { fileSystemId: input.fileSystemId }),
|
|
3904
|
+
...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
|
|
3956
3905
|
};
|
|
3957
3906
|
};
|
|
3958
3907
|
const serializeAws_json1_1HealthCheck = (input, context) => {
|
|
3959
3908
|
return {
|
|
3960
|
-
...(input.command
|
|
3961
|
-
|
|
3962
|
-
...(input.
|
|
3963
|
-
...(input.
|
|
3964
|
-
...(input.
|
|
3965
|
-
...(input.timeout !== undefined && input.timeout !== null && { timeout: input.timeout }),
|
|
3909
|
+
...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
|
|
3910
|
+
...(input.interval != null && { interval: input.interval }),
|
|
3911
|
+
...(input.retries != null && { retries: input.retries }),
|
|
3912
|
+
...(input.startPeriod != null && { startPeriod: input.startPeriod }),
|
|
3913
|
+
...(input.timeout != null && { timeout: input.timeout }),
|
|
3966
3914
|
};
|
|
3967
3915
|
};
|
|
3968
3916
|
const serializeAws_json1_1HostEntry = (input, context) => {
|
|
3969
3917
|
return {
|
|
3970
|
-
...(input.hostname
|
|
3971
|
-
...(input.ipAddress
|
|
3918
|
+
...(input.hostname != null && { hostname: input.hostname }),
|
|
3919
|
+
...(input.ipAddress != null && { ipAddress: input.ipAddress }),
|
|
3972
3920
|
};
|
|
3973
3921
|
};
|
|
3974
3922
|
const serializeAws_json1_1HostEntryList = (input, context) => {
|
|
@@ -3983,19 +3931,19 @@ const serializeAws_json1_1HostEntryList = (input, context) => {
|
|
|
3983
3931
|
};
|
|
3984
3932
|
const serializeAws_json1_1HostVolumeProperties = (input, context) => {
|
|
3985
3933
|
return {
|
|
3986
|
-
...(input.sourcePath
|
|
3934
|
+
...(input.sourcePath != null && { sourcePath: input.sourcePath }),
|
|
3987
3935
|
};
|
|
3988
3936
|
};
|
|
3989
3937
|
const serializeAws_json1_1InferenceAccelerator = (input, context) => {
|
|
3990
3938
|
return {
|
|
3991
|
-
...(input.deviceName
|
|
3992
|
-
...(input.deviceType
|
|
3939
|
+
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
3940
|
+
...(input.deviceType != null && { deviceType: input.deviceType }),
|
|
3993
3941
|
};
|
|
3994
3942
|
};
|
|
3995
3943
|
const serializeAws_json1_1InferenceAcceleratorOverride = (input, context) => {
|
|
3996
3944
|
return {
|
|
3997
|
-
...(input.deviceName
|
|
3998
|
-
...(input.deviceType
|
|
3945
|
+
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
3946
|
+
...(input.deviceType != null && { deviceType: input.deviceType }),
|
|
3999
3947
|
};
|
|
4000
3948
|
};
|
|
4001
3949
|
const serializeAws_json1_1InferenceAcceleratorOverrides = (input, context) => {
|
|
@@ -4020,126 +3968,114 @@ const serializeAws_json1_1InferenceAccelerators = (input, context) => {
|
|
|
4020
3968
|
};
|
|
4021
3969
|
const serializeAws_json1_1KernelCapabilities = (input, context) => {
|
|
4022
3970
|
return {
|
|
4023
|
-
...(input.add
|
|
4024
|
-
...(input.drop
|
|
4025
|
-
input.drop !== null && { drop: serializeAws_json1_1StringList(input.drop, context) }),
|
|
3971
|
+
...(input.add != null && { add: serializeAws_json1_1StringList(input.add, context) }),
|
|
3972
|
+
...(input.drop != null && { drop: serializeAws_json1_1StringList(input.drop, context) }),
|
|
4026
3973
|
};
|
|
4027
3974
|
};
|
|
4028
3975
|
const serializeAws_json1_1KeyValuePair = (input, context) => {
|
|
4029
3976
|
return {
|
|
4030
|
-
...(input.name
|
|
4031
|
-
...(input.value
|
|
3977
|
+
...(input.name != null && { name: input.name }),
|
|
3978
|
+
...(input.value != null && { value: input.value }),
|
|
4032
3979
|
};
|
|
4033
3980
|
};
|
|
4034
3981
|
const serializeAws_json1_1LinuxParameters = (input, context) => {
|
|
4035
3982
|
return {
|
|
4036
|
-
...(input.capabilities
|
|
4037
|
-
input.capabilities !== null && {
|
|
3983
|
+
...(input.capabilities != null && {
|
|
4038
3984
|
capabilities: serializeAws_json1_1KernelCapabilities(input.capabilities, context),
|
|
4039
3985
|
}),
|
|
4040
|
-
...(input.devices
|
|
4041
|
-
|
|
4042
|
-
...(input.
|
|
4043
|
-
|
|
4044
|
-
...(input.
|
|
4045
|
-
...(input.
|
|
4046
|
-
input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize }),
|
|
4047
|
-
...(input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness }),
|
|
4048
|
-
...(input.tmpfs !== undefined &&
|
|
4049
|
-
input.tmpfs !== null && { tmpfs: serializeAws_json1_1TmpfsList(input.tmpfs, context) }),
|
|
3986
|
+
...(input.devices != null && { devices: serializeAws_json1_1DevicesList(input.devices, context) }),
|
|
3987
|
+
...(input.initProcessEnabled != null && { initProcessEnabled: input.initProcessEnabled }),
|
|
3988
|
+
...(input.maxSwap != null && { maxSwap: input.maxSwap }),
|
|
3989
|
+
...(input.sharedMemorySize != null && { sharedMemorySize: input.sharedMemorySize }),
|
|
3990
|
+
...(input.swappiness != null && { swappiness: input.swappiness }),
|
|
3991
|
+
...(input.tmpfs != null && { tmpfs: serializeAws_json1_1TmpfsList(input.tmpfs, context) }),
|
|
4050
3992
|
};
|
|
4051
3993
|
};
|
|
4052
3994
|
const serializeAws_json1_1ListAccountSettingsRequest = (input, context) => {
|
|
4053
3995
|
return {
|
|
4054
|
-
...(input.effectiveSettings
|
|
4055
|
-
|
|
4056
|
-
...(input.
|
|
4057
|
-
...(input.
|
|
4058
|
-
...(input.
|
|
4059
|
-
...(input.
|
|
4060
|
-
...(input.value !== undefined && input.value !== null && { value: input.value }),
|
|
3996
|
+
...(input.effectiveSettings != null && { effectiveSettings: input.effectiveSettings }),
|
|
3997
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3998
|
+
...(input.name != null && { name: input.name }),
|
|
3999
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4000
|
+
...(input.principalArn != null && { principalArn: input.principalArn }),
|
|
4001
|
+
...(input.value != null && { value: input.value }),
|
|
4061
4002
|
};
|
|
4062
4003
|
};
|
|
4063
4004
|
const serializeAws_json1_1ListAttributesRequest = (input, context) => {
|
|
4064
4005
|
return {
|
|
4065
|
-
...(input.attributeName
|
|
4066
|
-
...(input.attributeValue
|
|
4067
|
-
|
|
4068
|
-
...(input.
|
|
4069
|
-
...(input.
|
|
4070
|
-
...(input.
|
|
4071
|
-
...(input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType }),
|
|
4006
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
4007
|
+
...(input.attributeValue != null && { attributeValue: input.attributeValue }),
|
|
4008
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4009
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4010
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4011
|
+
...(input.targetType != null && { targetType: input.targetType }),
|
|
4072
4012
|
};
|
|
4073
4013
|
};
|
|
4074
4014
|
const serializeAws_json1_1ListClustersRequest = (input, context) => {
|
|
4075
4015
|
return {
|
|
4076
|
-
...(input.maxResults
|
|
4077
|
-
...(input.nextToken
|
|
4016
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4017
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4078
4018
|
};
|
|
4079
4019
|
};
|
|
4080
4020
|
const serializeAws_json1_1ListContainerInstancesRequest = (input, context) => {
|
|
4081
4021
|
return {
|
|
4082
|
-
...(input.cluster
|
|
4083
|
-
...(input.filter
|
|
4084
|
-
...(input.maxResults
|
|
4085
|
-
...(input.nextToken
|
|
4086
|
-
...(input.status
|
|
4022
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4023
|
+
...(input.filter != null && { filter: input.filter }),
|
|
4024
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4025
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4026
|
+
...(input.status != null && { status: input.status }),
|
|
4087
4027
|
};
|
|
4088
4028
|
};
|
|
4089
4029
|
const serializeAws_json1_1ListServicesRequest = (input, context) => {
|
|
4090
4030
|
return {
|
|
4091
|
-
...(input.cluster
|
|
4092
|
-
...(input.launchType
|
|
4093
|
-
...(input.maxResults
|
|
4094
|
-
...(input.nextToken
|
|
4095
|
-
...(input.schedulingStrategy
|
|
4096
|
-
input.schedulingStrategy !== null && { schedulingStrategy: input.schedulingStrategy }),
|
|
4031
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4032
|
+
...(input.launchType != null && { launchType: input.launchType }),
|
|
4033
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4034
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4035
|
+
...(input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy }),
|
|
4097
4036
|
};
|
|
4098
4037
|
};
|
|
4099
4038
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4100
4039
|
return {
|
|
4101
|
-
...(input.resourceArn
|
|
4040
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
4102
4041
|
};
|
|
4103
4042
|
};
|
|
4104
4043
|
const serializeAws_json1_1ListTaskDefinitionFamiliesRequest = (input, context) => {
|
|
4105
4044
|
return {
|
|
4106
|
-
...(input.familyPrefix
|
|
4107
|
-
...(input.maxResults
|
|
4108
|
-
...(input.nextToken
|
|
4109
|
-
...(input.status
|
|
4045
|
+
...(input.familyPrefix != null && { familyPrefix: input.familyPrefix }),
|
|
4046
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4047
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4048
|
+
...(input.status != null && { status: input.status }),
|
|
4110
4049
|
};
|
|
4111
4050
|
};
|
|
4112
4051
|
const serializeAws_json1_1ListTaskDefinitionsRequest = (input, context) => {
|
|
4113
4052
|
return {
|
|
4114
|
-
...(input.familyPrefix
|
|
4115
|
-
...(input.maxResults
|
|
4116
|
-
...(input.nextToken
|
|
4117
|
-
...(input.sort
|
|
4118
|
-
...(input.status
|
|
4053
|
+
...(input.familyPrefix != null && { familyPrefix: input.familyPrefix }),
|
|
4054
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4055
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4056
|
+
...(input.sort != null && { sort: input.sort }),
|
|
4057
|
+
...(input.status != null && { status: input.status }),
|
|
4119
4058
|
};
|
|
4120
4059
|
};
|
|
4121
4060
|
const serializeAws_json1_1ListTasksRequest = (input, context) => {
|
|
4122
4061
|
return {
|
|
4123
|
-
...(input.cluster
|
|
4124
|
-
...(input.containerInstance
|
|
4125
|
-
|
|
4126
|
-
...(input.
|
|
4127
|
-
...(input.
|
|
4128
|
-
...(input.
|
|
4129
|
-
...(input.
|
|
4130
|
-
...(input.
|
|
4131
|
-
...(input.
|
|
4132
|
-
...(input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy }),
|
|
4062
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4063
|
+
...(input.containerInstance != null && { containerInstance: input.containerInstance }),
|
|
4064
|
+
...(input.desiredStatus != null && { desiredStatus: input.desiredStatus }),
|
|
4065
|
+
...(input.family != null && { family: input.family }),
|
|
4066
|
+
...(input.launchType != null && { launchType: input.launchType }),
|
|
4067
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4068
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4069
|
+
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
4070
|
+
...(input.startedBy != null && { startedBy: input.startedBy }),
|
|
4133
4071
|
};
|
|
4134
4072
|
};
|
|
4135
4073
|
const serializeAws_json1_1LoadBalancer = (input, context) => {
|
|
4136
4074
|
return {
|
|
4137
|
-
...(input.containerName
|
|
4138
|
-
...(input.containerPort
|
|
4139
|
-
...(input.loadBalancerName
|
|
4140
|
-
|
|
4141
|
-
...(input.targetGroupArn !== undefined &&
|
|
4142
|
-
input.targetGroupArn !== null && { targetGroupArn: input.targetGroupArn }),
|
|
4075
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
4076
|
+
...(input.containerPort != null && { containerPort: input.containerPort }),
|
|
4077
|
+
...(input.loadBalancerName != null && { loadBalancerName: input.loadBalancerName }),
|
|
4078
|
+
...(input.targetGroupArn != null && { targetGroupArn: input.targetGroupArn }),
|
|
4143
4079
|
};
|
|
4144
4080
|
};
|
|
4145
4081
|
const serializeAws_json1_1LoadBalancers = (input, context) => {
|
|
@@ -4154,11 +4090,9 @@ const serializeAws_json1_1LoadBalancers = (input, context) => {
|
|
|
4154
4090
|
};
|
|
4155
4091
|
const serializeAws_json1_1LogConfiguration = (input, context) => {
|
|
4156
4092
|
return {
|
|
4157
|
-
...(input.logDriver
|
|
4158
|
-
...(input.options
|
|
4159
|
-
|
|
4160
|
-
...(input.secretOptions !== undefined &&
|
|
4161
|
-
input.secretOptions !== null && { secretOptions: serializeAws_json1_1SecretList(input.secretOptions, context) }),
|
|
4093
|
+
...(input.logDriver != null && { logDriver: input.logDriver }),
|
|
4094
|
+
...(input.options != null && { options: serializeAws_json1_1LogConfigurationOptionsMap(input.options, context) }),
|
|
4095
|
+
...(input.secretOptions != null && { secretOptions: serializeAws_json1_1SecretList(input.secretOptions, context) }),
|
|
4162
4096
|
};
|
|
4163
4097
|
};
|
|
4164
4098
|
const serializeAws_json1_1LogConfigurationOptionsMap = (input, context) => {
|
|
@@ -4174,11 +4108,10 @@ const serializeAws_json1_1LogConfigurationOptionsMap = (input, context) => {
|
|
|
4174
4108
|
};
|
|
4175
4109
|
const serializeAws_json1_1ManagedAgentStateChange = (input, context) => {
|
|
4176
4110
|
return {
|
|
4177
|
-
...(input.containerName
|
|
4178
|
-
...(input.managedAgentName
|
|
4179
|
-
|
|
4180
|
-
...(input.
|
|
4181
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
4111
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
4112
|
+
...(input.managedAgentName != null && { managedAgentName: input.managedAgentName }),
|
|
4113
|
+
...(input.reason != null && { reason: input.reason }),
|
|
4114
|
+
...(input.status != null && { status: input.status }),
|
|
4182
4115
|
};
|
|
4183
4116
|
};
|
|
4184
4117
|
const serializeAws_json1_1ManagedAgentStateChanges = (input, context) => {
|
|
@@ -4193,22 +4126,18 @@ const serializeAws_json1_1ManagedAgentStateChanges = (input, context) => {
|
|
|
4193
4126
|
};
|
|
4194
4127
|
const serializeAws_json1_1ManagedScaling = (input, context) => {
|
|
4195
4128
|
return {
|
|
4196
|
-
...(input.instanceWarmupPeriod
|
|
4197
|
-
|
|
4198
|
-
...(input.
|
|
4199
|
-
|
|
4200
|
-
...(input.
|
|
4201
|
-
input.minimumScalingStepSize !== null && { minimumScalingStepSize: input.minimumScalingStepSize }),
|
|
4202
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
4203
|
-
...(input.targetCapacity !== undefined &&
|
|
4204
|
-
input.targetCapacity !== null && { targetCapacity: input.targetCapacity }),
|
|
4129
|
+
...(input.instanceWarmupPeriod != null && { instanceWarmupPeriod: input.instanceWarmupPeriod }),
|
|
4130
|
+
...(input.maximumScalingStepSize != null && { maximumScalingStepSize: input.maximumScalingStepSize }),
|
|
4131
|
+
...(input.minimumScalingStepSize != null && { minimumScalingStepSize: input.minimumScalingStepSize }),
|
|
4132
|
+
...(input.status != null && { status: input.status }),
|
|
4133
|
+
...(input.targetCapacity != null && { targetCapacity: input.targetCapacity }),
|
|
4205
4134
|
};
|
|
4206
4135
|
};
|
|
4207
4136
|
const serializeAws_json1_1MountPoint = (input, context) => {
|
|
4208
4137
|
return {
|
|
4209
|
-
...(input.containerPath
|
|
4210
|
-
...(input.readOnly
|
|
4211
|
-
...(input.sourceVolume
|
|
4138
|
+
...(input.containerPath != null && { containerPath: input.containerPath }),
|
|
4139
|
+
...(input.readOnly != null && { readOnly: input.readOnly }),
|
|
4140
|
+
...(input.sourceVolume != null && { sourceVolume: input.sourceVolume }),
|
|
4212
4141
|
};
|
|
4213
4142
|
};
|
|
4214
4143
|
const serializeAws_json1_1MountPointList = (input, context) => {
|
|
@@ -4223,10 +4152,10 @@ const serializeAws_json1_1MountPointList = (input, context) => {
|
|
|
4223
4152
|
};
|
|
4224
4153
|
const serializeAws_json1_1NetworkBinding = (input, context) => {
|
|
4225
4154
|
return {
|
|
4226
|
-
...(input.bindIP
|
|
4227
|
-
...(input.containerPort
|
|
4228
|
-
...(input.hostPort
|
|
4229
|
-
...(input.protocol
|
|
4155
|
+
...(input.bindIP != null && { bindIP: input.bindIP }),
|
|
4156
|
+
...(input.containerPort != null && { containerPort: input.containerPort }),
|
|
4157
|
+
...(input.hostPort != null && { hostPort: input.hostPort }),
|
|
4158
|
+
...(input.protocol != null && { protocol: input.protocol }),
|
|
4230
4159
|
};
|
|
4231
4160
|
};
|
|
4232
4161
|
const serializeAws_json1_1NetworkBindings = (input, context) => {
|
|
@@ -4241,16 +4170,15 @@ const serializeAws_json1_1NetworkBindings = (input, context) => {
|
|
|
4241
4170
|
};
|
|
4242
4171
|
const serializeAws_json1_1NetworkConfiguration = (input, context) => {
|
|
4243
4172
|
return {
|
|
4244
|
-
...(input.awsvpcConfiguration
|
|
4245
|
-
input.awsvpcConfiguration !== null && {
|
|
4173
|
+
...(input.awsvpcConfiguration != null && {
|
|
4246
4174
|
awsvpcConfiguration: serializeAws_json1_1AwsVpcConfiguration(input.awsvpcConfiguration, context),
|
|
4247
4175
|
}),
|
|
4248
4176
|
};
|
|
4249
4177
|
};
|
|
4250
4178
|
const serializeAws_json1_1PlacementConstraint = (input, context) => {
|
|
4251
4179
|
return {
|
|
4252
|
-
...(input.expression
|
|
4253
|
-
...(input.type
|
|
4180
|
+
...(input.expression != null && { expression: input.expression }),
|
|
4181
|
+
...(input.type != null && { type: input.type }),
|
|
4254
4182
|
};
|
|
4255
4183
|
};
|
|
4256
4184
|
const serializeAws_json1_1PlacementConstraints = (input, context) => {
|
|
@@ -4275,14 +4203,14 @@ const serializeAws_json1_1PlacementStrategies = (input, context) => {
|
|
|
4275
4203
|
};
|
|
4276
4204
|
const serializeAws_json1_1PlacementStrategy = (input, context) => {
|
|
4277
4205
|
return {
|
|
4278
|
-
...(input.field
|
|
4279
|
-
...(input.type
|
|
4206
|
+
...(input.field != null && { field: input.field }),
|
|
4207
|
+
...(input.type != null && { type: input.type }),
|
|
4280
4208
|
};
|
|
4281
4209
|
};
|
|
4282
4210
|
const serializeAws_json1_1PlatformDevice = (input, context) => {
|
|
4283
4211
|
return {
|
|
4284
|
-
...(input.id
|
|
4285
|
-
...(input.type
|
|
4212
|
+
...(input.id != null && { id: input.id }),
|
|
4213
|
+
...(input.type != null && { type: input.type }),
|
|
4286
4214
|
};
|
|
4287
4215
|
};
|
|
4288
4216
|
const serializeAws_json1_1PlatformDevices = (input, context) => {
|
|
@@ -4297,9 +4225,9 @@ const serializeAws_json1_1PlatformDevices = (input, context) => {
|
|
|
4297
4225
|
};
|
|
4298
4226
|
const serializeAws_json1_1PortMapping = (input, context) => {
|
|
4299
4227
|
return {
|
|
4300
|
-
...(input.containerPort
|
|
4301
|
-
...(input.hostPort
|
|
4302
|
-
...(input.protocol
|
|
4228
|
+
...(input.containerPort != null && { containerPort: input.containerPort }),
|
|
4229
|
+
...(input.hostPort != null && { hostPort: input.hostPort }),
|
|
4230
|
+
...(input.protocol != null && { protocol: input.protocol }),
|
|
4303
4231
|
};
|
|
4304
4232
|
};
|
|
4305
4233
|
const serializeAws_json1_1PortMappingList = (input, context) => {
|
|
@@ -4314,12 +4242,11 @@ const serializeAws_json1_1PortMappingList = (input, context) => {
|
|
|
4314
4242
|
};
|
|
4315
4243
|
const serializeAws_json1_1ProxyConfiguration = (input, context) => {
|
|
4316
4244
|
return {
|
|
4317
|
-
...(input.containerName
|
|
4318
|
-
...(input.properties
|
|
4319
|
-
input.properties !== null && {
|
|
4245
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
4246
|
+
...(input.properties != null && {
|
|
4320
4247
|
properties: serializeAws_json1_1ProxyConfigurationProperties(input.properties, context),
|
|
4321
4248
|
}),
|
|
4322
|
-
...(input.type
|
|
4249
|
+
...(input.type != null && { type: input.type }),
|
|
4323
4250
|
};
|
|
4324
4251
|
};
|
|
4325
4252
|
const serializeAws_json1_1ProxyConfigurationProperties = (input, context) => {
|
|
@@ -4334,131 +4261,109 @@ const serializeAws_json1_1ProxyConfigurationProperties = (input, context) => {
|
|
|
4334
4261
|
};
|
|
4335
4262
|
const serializeAws_json1_1PutAccountSettingDefaultRequest = (input, context) => {
|
|
4336
4263
|
return {
|
|
4337
|
-
...(input.name
|
|
4338
|
-
...(input.value
|
|
4264
|
+
...(input.name != null && { name: input.name }),
|
|
4265
|
+
...(input.value != null && { value: input.value }),
|
|
4339
4266
|
};
|
|
4340
4267
|
};
|
|
4341
4268
|
const serializeAws_json1_1PutAccountSettingRequest = (input, context) => {
|
|
4342
4269
|
return {
|
|
4343
|
-
...(input.name
|
|
4344
|
-
...(input.principalArn
|
|
4345
|
-
...(input.value
|
|
4270
|
+
...(input.name != null && { name: input.name }),
|
|
4271
|
+
...(input.principalArn != null && { principalArn: input.principalArn }),
|
|
4272
|
+
...(input.value != null && { value: input.value }),
|
|
4346
4273
|
};
|
|
4347
4274
|
};
|
|
4348
4275
|
const serializeAws_json1_1PutAttributesRequest = (input, context) => {
|
|
4349
4276
|
return {
|
|
4350
|
-
...(input.attributes
|
|
4351
|
-
|
|
4352
|
-
...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
|
|
4277
|
+
...(input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
|
|
4278
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4353
4279
|
};
|
|
4354
4280
|
};
|
|
4355
4281
|
const serializeAws_json1_1PutClusterCapacityProvidersRequest = (input, context) => {
|
|
4356
4282
|
return {
|
|
4357
|
-
...(input.capacityProviders
|
|
4358
|
-
input.capacityProviders !== null && {
|
|
4283
|
+
...(input.capacityProviders != null && {
|
|
4359
4284
|
capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
|
|
4360
4285
|
}),
|
|
4361
|
-
...(input.cluster
|
|
4362
|
-
...(input.defaultCapacityProviderStrategy
|
|
4363
|
-
input.defaultCapacityProviderStrategy !== null && {
|
|
4286
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4287
|
+
...(input.defaultCapacityProviderStrategy != null && {
|
|
4364
4288
|
defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
|
|
4365
4289
|
}),
|
|
4366
4290
|
};
|
|
4367
4291
|
};
|
|
4368
4292
|
const serializeAws_json1_1RegisterContainerInstanceRequest = (input, context) => {
|
|
4369
4293
|
return {
|
|
4370
|
-
...(input.attributes
|
|
4371
|
-
|
|
4372
|
-
...(input.
|
|
4373
|
-
...(input.
|
|
4374
|
-
|
|
4375
|
-
...(input.instanceIdentityDocument !== undefined &&
|
|
4376
|
-
input.instanceIdentityDocument !== null && { instanceIdentityDocument: input.instanceIdentityDocument }),
|
|
4377
|
-
...(input.instanceIdentityDocumentSignature !== undefined &&
|
|
4378
|
-
input.instanceIdentityDocumentSignature !== null && {
|
|
4294
|
+
...(input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
|
|
4295
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4296
|
+
...(input.containerInstanceArn != null && { containerInstanceArn: input.containerInstanceArn }),
|
|
4297
|
+
...(input.instanceIdentityDocument != null && { instanceIdentityDocument: input.instanceIdentityDocument }),
|
|
4298
|
+
...(input.instanceIdentityDocumentSignature != null && {
|
|
4379
4299
|
instanceIdentityDocumentSignature: input.instanceIdentityDocumentSignature,
|
|
4380
4300
|
}),
|
|
4381
|
-
...(input.platformDevices
|
|
4382
|
-
input.platformDevices !== null && {
|
|
4301
|
+
...(input.platformDevices != null && {
|
|
4383
4302
|
platformDevices: serializeAws_json1_1PlatformDevices(input.platformDevices, context),
|
|
4384
4303
|
}),
|
|
4385
|
-
...(input.tags
|
|
4386
|
-
...(input.totalResources
|
|
4387
|
-
input.totalResources !== null && {
|
|
4304
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
4305
|
+
...(input.totalResources != null && {
|
|
4388
4306
|
totalResources: serializeAws_json1_1Resources(input.totalResources, context),
|
|
4389
4307
|
}),
|
|
4390
|
-
...(input.versionInfo
|
|
4391
|
-
input.versionInfo !== null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }),
|
|
4308
|
+
...(input.versionInfo != null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }),
|
|
4392
4309
|
};
|
|
4393
4310
|
};
|
|
4394
4311
|
const serializeAws_json1_1RegisterTaskDefinitionRequest = (input, context) => {
|
|
4395
4312
|
return {
|
|
4396
|
-
...(input.containerDefinitions
|
|
4397
|
-
input.containerDefinitions !== null && {
|
|
4313
|
+
...(input.containerDefinitions != null && {
|
|
4398
4314
|
containerDefinitions: serializeAws_json1_1ContainerDefinitions(input.containerDefinitions, context),
|
|
4399
4315
|
}),
|
|
4400
|
-
...(input.cpu
|
|
4401
|
-
...(input.ephemeralStorage
|
|
4402
|
-
input.ephemeralStorage !== null && {
|
|
4316
|
+
...(input.cpu != null && { cpu: input.cpu }),
|
|
4317
|
+
...(input.ephemeralStorage != null && {
|
|
4403
4318
|
ephemeralStorage: serializeAws_json1_1EphemeralStorage(input.ephemeralStorage, context),
|
|
4404
4319
|
}),
|
|
4405
|
-
...(input.executionRoleArn
|
|
4406
|
-
|
|
4407
|
-
...(input.
|
|
4408
|
-
...(input.inferenceAccelerators !== undefined &&
|
|
4409
|
-
input.inferenceAccelerators !== null && {
|
|
4320
|
+
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
4321
|
+
...(input.family != null && { family: input.family }),
|
|
4322
|
+
...(input.inferenceAccelerators != null && {
|
|
4410
4323
|
inferenceAccelerators: serializeAws_json1_1InferenceAccelerators(input.inferenceAccelerators, context),
|
|
4411
4324
|
}),
|
|
4412
|
-
...(input.ipcMode
|
|
4413
|
-
...(input.memory
|
|
4414
|
-
...(input.networkMode
|
|
4415
|
-
...(input.pidMode
|
|
4416
|
-
...(input.placementConstraints
|
|
4417
|
-
input.placementConstraints !== null && {
|
|
4325
|
+
...(input.ipcMode != null && { ipcMode: input.ipcMode }),
|
|
4326
|
+
...(input.memory != null && { memory: input.memory }),
|
|
4327
|
+
...(input.networkMode != null && { networkMode: input.networkMode }),
|
|
4328
|
+
...(input.pidMode != null && { pidMode: input.pidMode }),
|
|
4329
|
+
...(input.placementConstraints != null && {
|
|
4418
4330
|
placementConstraints: serializeAws_json1_1TaskDefinitionPlacementConstraints(input.placementConstraints, context),
|
|
4419
4331
|
}),
|
|
4420
|
-
...(input.proxyConfiguration
|
|
4421
|
-
input.proxyConfiguration !== null && {
|
|
4332
|
+
...(input.proxyConfiguration != null && {
|
|
4422
4333
|
proxyConfiguration: serializeAws_json1_1ProxyConfiguration(input.proxyConfiguration, context),
|
|
4423
4334
|
}),
|
|
4424
|
-
...(input.requiresCompatibilities
|
|
4425
|
-
input.requiresCompatibilities !== null && {
|
|
4335
|
+
...(input.requiresCompatibilities != null && {
|
|
4426
4336
|
requiresCompatibilities: serializeAws_json1_1CompatibilityList(input.requiresCompatibilities, context),
|
|
4427
4337
|
}),
|
|
4428
|
-
...(input.runtimePlatform
|
|
4429
|
-
input.runtimePlatform !== null && {
|
|
4338
|
+
...(input.runtimePlatform != null && {
|
|
4430
4339
|
runtimePlatform: serializeAws_json1_1RuntimePlatform(input.runtimePlatform, context),
|
|
4431
4340
|
}),
|
|
4432
|
-
...(input.tags
|
|
4433
|
-
...(input.taskRoleArn
|
|
4434
|
-
...(input.volumes
|
|
4435
|
-
input.volumes !== null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }),
|
|
4341
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
4342
|
+
...(input.taskRoleArn != null && { taskRoleArn: input.taskRoleArn }),
|
|
4343
|
+
...(input.volumes != null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }),
|
|
4436
4344
|
};
|
|
4437
4345
|
};
|
|
4438
4346
|
const serializeAws_json1_1RepositoryCredentials = (input, context) => {
|
|
4439
4347
|
return {
|
|
4440
|
-
...(input.credentialsParameter
|
|
4441
|
-
input.credentialsParameter !== null && { credentialsParameter: input.credentialsParameter }),
|
|
4348
|
+
...(input.credentialsParameter != null && { credentialsParameter: input.credentialsParameter }),
|
|
4442
4349
|
};
|
|
4443
4350
|
};
|
|
4444
4351
|
const serializeAws_json1_1Resource = (input, context) => {
|
|
4445
4352
|
return {
|
|
4446
|
-
...(input.doubleValue
|
|
4447
|
-
|
|
4448
|
-
...(input.
|
|
4449
|
-
...(input.
|
|
4450
|
-
...(input.
|
|
4451
|
-
...(input.stringSetValue !== undefined &&
|
|
4452
|
-
input.stringSetValue !== null && {
|
|
4353
|
+
...(input.doubleValue != null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
|
|
4354
|
+
...(input.integerValue != null && { integerValue: input.integerValue }),
|
|
4355
|
+
...(input.longValue != null && { longValue: input.longValue }),
|
|
4356
|
+
...(input.name != null && { name: input.name }),
|
|
4357
|
+
...(input.stringSetValue != null && {
|
|
4453
4358
|
stringSetValue: serializeAws_json1_1StringList(input.stringSetValue, context),
|
|
4454
4359
|
}),
|
|
4455
|
-
...(input.type
|
|
4360
|
+
...(input.type != null && { type: input.type }),
|
|
4456
4361
|
};
|
|
4457
4362
|
};
|
|
4458
4363
|
const serializeAws_json1_1ResourceRequirement = (input, context) => {
|
|
4459
4364
|
return {
|
|
4460
|
-
...(input.type
|
|
4461
|
-
...(input.value
|
|
4365
|
+
...(input.type != null && { type: input.type }),
|
|
4366
|
+
...(input.value != null && { value: input.value }),
|
|
4462
4367
|
};
|
|
4463
4368
|
};
|
|
4464
4369
|
const serializeAws_json1_1ResourceRequirements = (input, context) => {
|
|
@@ -4483,60 +4388,49 @@ const serializeAws_json1_1Resources = (input, context) => {
|
|
|
4483
4388
|
};
|
|
4484
4389
|
const serializeAws_json1_1RunTaskRequest = (input, context) => {
|
|
4485
4390
|
return {
|
|
4486
|
-
...(input.capacityProviderStrategy
|
|
4487
|
-
input.capacityProviderStrategy !== null && {
|
|
4391
|
+
...(input.capacityProviderStrategy != null && {
|
|
4488
4392
|
capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
|
|
4489
4393
|
}),
|
|
4490
|
-
...(input.cluster
|
|
4491
|
-
...(input.count
|
|
4492
|
-
...(input.enableECSManagedTags
|
|
4493
|
-
|
|
4494
|
-
...(input.
|
|
4495
|
-
|
|
4496
|
-
...(input.
|
|
4497
|
-
...(input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType }),
|
|
4498
|
-
...(input.networkConfiguration !== undefined &&
|
|
4499
|
-
input.networkConfiguration !== null && {
|
|
4394
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4395
|
+
...(input.count != null && { count: input.count }),
|
|
4396
|
+
...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
|
|
4397
|
+
...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
|
|
4398
|
+
...(input.group != null && { group: input.group }),
|
|
4399
|
+
...(input.launchType != null && { launchType: input.launchType }),
|
|
4400
|
+
...(input.networkConfiguration != null && {
|
|
4500
4401
|
networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
|
|
4501
4402
|
}),
|
|
4502
|
-
...(input.overrides
|
|
4503
|
-
|
|
4504
|
-
...(input.placementConstraints !== undefined &&
|
|
4505
|
-
input.placementConstraints !== null && {
|
|
4403
|
+
...(input.overrides != null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) }),
|
|
4404
|
+
...(input.placementConstraints != null && {
|
|
4506
4405
|
placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
|
|
4507
4406
|
}),
|
|
4508
|
-
...(input.placementStrategy
|
|
4509
|
-
input.placementStrategy !== null && {
|
|
4407
|
+
...(input.placementStrategy != null && {
|
|
4510
4408
|
placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
|
|
4511
4409
|
}),
|
|
4512
|
-
...(input.platformVersion
|
|
4513
|
-
|
|
4514
|
-
...(input.
|
|
4515
|
-
...(input.
|
|
4516
|
-
...(input.
|
|
4517
|
-
...(input.
|
|
4518
|
-
...(input.taskDefinition !== undefined &&
|
|
4519
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
4410
|
+
...(input.platformVersion != null && { platformVersion: input.platformVersion }),
|
|
4411
|
+
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
4412
|
+
...(input.referenceId != null && { referenceId: input.referenceId }),
|
|
4413
|
+
...(input.startedBy != null && { startedBy: input.startedBy }),
|
|
4414
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
4415
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
4520
4416
|
};
|
|
4521
4417
|
};
|
|
4522
4418
|
const serializeAws_json1_1RuntimePlatform = (input, context) => {
|
|
4523
4419
|
return {
|
|
4524
|
-
...(input.cpuArchitecture
|
|
4525
|
-
|
|
4526
|
-
...(input.operatingSystemFamily !== undefined &&
|
|
4527
|
-
input.operatingSystemFamily !== null && { operatingSystemFamily: input.operatingSystemFamily }),
|
|
4420
|
+
...(input.cpuArchitecture != null && { cpuArchitecture: input.cpuArchitecture }),
|
|
4421
|
+
...(input.operatingSystemFamily != null && { operatingSystemFamily: input.operatingSystemFamily }),
|
|
4528
4422
|
};
|
|
4529
4423
|
};
|
|
4530
4424
|
const serializeAws_json1_1Scale = (input, context) => {
|
|
4531
4425
|
return {
|
|
4532
|
-
...(input.unit
|
|
4533
|
-
...(input.value
|
|
4426
|
+
...(input.unit != null && { unit: input.unit }),
|
|
4427
|
+
...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
|
|
4534
4428
|
};
|
|
4535
4429
|
};
|
|
4536
4430
|
const serializeAws_json1_1Secret = (input, context) => {
|
|
4537
4431
|
return {
|
|
4538
|
-
...(input.name
|
|
4539
|
-
...(input.valueFrom
|
|
4432
|
+
...(input.name != null && { name: input.name }),
|
|
4433
|
+
...(input.valueFrom != null && { valueFrom: input.valueFrom }),
|
|
4540
4434
|
};
|
|
4541
4435
|
};
|
|
4542
4436
|
const serializeAws_json1_1SecretList = (input, context) => {
|
|
@@ -4571,43 +4465,37 @@ const serializeAws_json1_1ServiceRegistries = (input, context) => {
|
|
|
4571
4465
|
};
|
|
4572
4466
|
const serializeAws_json1_1ServiceRegistry = (input, context) => {
|
|
4573
4467
|
return {
|
|
4574
|
-
...(input.containerName
|
|
4575
|
-
...(input.containerPort
|
|
4576
|
-
...(input.port
|
|
4577
|
-
...(input.registryArn
|
|
4468
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
4469
|
+
...(input.containerPort != null && { containerPort: input.containerPort }),
|
|
4470
|
+
...(input.port != null && { port: input.port }),
|
|
4471
|
+
...(input.registryArn != null && { registryArn: input.registryArn }),
|
|
4578
4472
|
};
|
|
4579
4473
|
};
|
|
4580
4474
|
const serializeAws_json1_1StartTaskRequest = (input, context) => {
|
|
4581
4475
|
return {
|
|
4582
|
-
...(input.cluster
|
|
4583
|
-
...(input.containerInstances
|
|
4584
|
-
input.containerInstances !== null && {
|
|
4476
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4477
|
+
...(input.containerInstances != null && {
|
|
4585
4478
|
containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
|
|
4586
4479
|
}),
|
|
4587
|
-
...(input.enableECSManagedTags
|
|
4588
|
-
|
|
4589
|
-
...(input.
|
|
4590
|
-
|
|
4591
|
-
...(input.group !== undefined && input.group !== null && { group: input.group }),
|
|
4592
|
-
...(input.networkConfiguration !== undefined &&
|
|
4593
|
-
input.networkConfiguration !== null && {
|
|
4480
|
+
...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
|
|
4481
|
+
...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
|
|
4482
|
+
...(input.group != null && { group: input.group }),
|
|
4483
|
+
...(input.networkConfiguration != null && {
|
|
4594
4484
|
networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
|
|
4595
4485
|
}),
|
|
4596
|
-
...(input.overrides
|
|
4597
|
-
|
|
4598
|
-
...(input.
|
|
4599
|
-
...(input.
|
|
4600
|
-
...(input.
|
|
4601
|
-
...(input.
|
|
4602
|
-
...(input.taskDefinition !== undefined &&
|
|
4603
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
4486
|
+
...(input.overrides != null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) }),
|
|
4487
|
+
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
4488
|
+
...(input.referenceId != null && { referenceId: input.referenceId }),
|
|
4489
|
+
...(input.startedBy != null && { startedBy: input.startedBy }),
|
|
4490
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
4491
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
4604
4492
|
};
|
|
4605
4493
|
};
|
|
4606
4494
|
const serializeAws_json1_1StopTaskRequest = (input, context) => {
|
|
4607
4495
|
return {
|
|
4608
|
-
...(input.cluster
|
|
4609
|
-
...(input.reason
|
|
4610
|
-
...(input.task
|
|
4496
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4497
|
+
...(input.reason != null && { reason: input.reason }),
|
|
4498
|
+
...(input.task != null && { task: input.task }),
|
|
4611
4499
|
};
|
|
4612
4500
|
};
|
|
4613
4501
|
const serializeAws_json1_1StringList = (input, context) => {
|
|
@@ -4633,60 +4521,52 @@ const serializeAws_json1_1StringMap = (input, context) => {
|
|
|
4633
4521
|
};
|
|
4634
4522
|
const serializeAws_json1_1SubmitAttachmentStateChangesRequest = (input, context) => {
|
|
4635
4523
|
return {
|
|
4636
|
-
...(input.attachments
|
|
4637
|
-
input.attachments !== null && {
|
|
4524
|
+
...(input.attachments != null && {
|
|
4638
4525
|
attachments: serializeAws_json1_1AttachmentStateChanges(input.attachments, context),
|
|
4639
4526
|
}),
|
|
4640
|
-
...(input.cluster
|
|
4527
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4641
4528
|
};
|
|
4642
4529
|
};
|
|
4643
4530
|
const serializeAws_json1_1SubmitContainerStateChangeRequest = (input, context) => {
|
|
4644
4531
|
return {
|
|
4645
|
-
...(input.cluster
|
|
4646
|
-
...(input.containerName
|
|
4647
|
-
...(input.exitCode
|
|
4648
|
-
...(input.networkBindings
|
|
4649
|
-
input.networkBindings !== null && {
|
|
4532
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4533
|
+
...(input.containerName != null && { containerName: input.containerName }),
|
|
4534
|
+
...(input.exitCode != null && { exitCode: input.exitCode }),
|
|
4535
|
+
...(input.networkBindings != null && {
|
|
4650
4536
|
networkBindings: serializeAws_json1_1NetworkBindings(input.networkBindings, context),
|
|
4651
4537
|
}),
|
|
4652
|
-
...(input.reason
|
|
4653
|
-
...(input.runtimeId
|
|
4654
|
-
...(input.status
|
|
4655
|
-
...(input.task
|
|
4538
|
+
...(input.reason != null && { reason: input.reason }),
|
|
4539
|
+
...(input.runtimeId != null && { runtimeId: input.runtimeId }),
|
|
4540
|
+
...(input.status != null && { status: input.status }),
|
|
4541
|
+
...(input.task != null && { task: input.task }),
|
|
4656
4542
|
};
|
|
4657
4543
|
};
|
|
4658
4544
|
const serializeAws_json1_1SubmitTaskStateChangeRequest = (input, context) => {
|
|
4659
4545
|
return {
|
|
4660
|
-
...(input.attachments
|
|
4661
|
-
input.attachments !== null && {
|
|
4546
|
+
...(input.attachments != null && {
|
|
4662
4547
|
attachments: serializeAws_json1_1AttachmentStateChanges(input.attachments, context),
|
|
4663
4548
|
}),
|
|
4664
|
-
...(input.cluster
|
|
4665
|
-
...(input.containers
|
|
4666
|
-
input.containers !== null && {
|
|
4549
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4550
|
+
...(input.containers != null && {
|
|
4667
4551
|
containers: serializeAws_json1_1ContainerStateChanges(input.containers, context),
|
|
4668
4552
|
}),
|
|
4669
|
-
...(input.executionStoppedAt
|
|
4670
|
-
input.executionStoppedAt !== null && {
|
|
4553
|
+
...(input.executionStoppedAt != null && {
|
|
4671
4554
|
executionStoppedAt: Math.round(input.executionStoppedAt.getTime() / 1000),
|
|
4672
4555
|
}),
|
|
4673
|
-
...(input.managedAgents
|
|
4674
|
-
input.managedAgents !== null && {
|
|
4556
|
+
...(input.managedAgents != null && {
|
|
4675
4557
|
managedAgents: serializeAws_json1_1ManagedAgentStateChanges(input.managedAgents, context),
|
|
4676
4558
|
}),
|
|
4677
|
-
...(input.pullStartedAt
|
|
4678
|
-
|
|
4679
|
-
...(input.
|
|
4680
|
-
|
|
4681
|
-
...(input.
|
|
4682
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
4683
|
-
...(input.task !== undefined && input.task !== null && { task: input.task }),
|
|
4559
|
+
...(input.pullStartedAt != null && { pullStartedAt: Math.round(input.pullStartedAt.getTime() / 1000) }),
|
|
4560
|
+
...(input.pullStoppedAt != null && { pullStoppedAt: Math.round(input.pullStoppedAt.getTime() / 1000) }),
|
|
4561
|
+
...(input.reason != null && { reason: input.reason }),
|
|
4562
|
+
...(input.status != null && { status: input.status }),
|
|
4563
|
+
...(input.task != null && { task: input.task }),
|
|
4684
4564
|
};
|
|
4685
4565
|
};
|
|
4686
4566
|
const serializeAws_json1_1SystemControl = (input, context) => {
|
|
4687
4567
|
return {
|
|
4688
|
-
...(input.namespace
|
|
4689
|
-
...(input.value
|
|
4568
|
+
...(input.namespace != null && { namespace: input.namespace }),
|
|
4569
|
+
...(input.value != null && { value: input.value }),
|
|
4690
4570
|
};
|
|
4691
4571
|
};
|
|
4692
4572
|
const serializeAws_json1_1SystemControls = (input, context) => {
|
|
@@ -4701,8 +4581,8 @@ const serializeAws_json1_1SystemControls = (input, context) => {
|
|
|
4701
4581
|
};
|
|
4702
4582
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
4703
4583
|
return {
|
|
4704
|
-
...(input.key
|
|
4705
|
-
...(input.value
|
|
4584
|
+
...(input.key != null && { key: input.key }),
|
|
4585
|
+
...(input.value != null && { value: input.value }),
|
|
4706
4586
|
};
|
|
4707
4587
|
};
|
|
4708
4588
|
const serializeAws_json1_1TagKeys = (input, context) => {
|
|
@@ -4717,8 +4597,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
4717
4597
|
};
|
|
4718
4598
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
4719
4599
|
return {
|
|
4720
|
-
...(input.resourceArn
|
|
4721
|
-
...(input.tags
|
|
4600
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
4601
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
4722
4602
|
};
|
|
4723
4603
|
};
|
|
4724
4604
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
@@ -4743,8 +4623,8 @@ const serializeAws_json1_1TaskDefinitionFieldList = (input, context) => {
|
|
|
4743
4623
|
};
|
|
4744
4624
|
const serializeAws_json1_1TaskDefinitionPlacementConstraint = (input, context) => {
|
|
4745
4625
|
return {
|
|
4746
|
-
...(input.expression
|
|
4747
|
-
...(input.type
|
|
4626
|
+
...(input.expression != null && { expression: input.expression }),
|
|
4627
|
+
...(input.type != null && { type: input.type }),
|
|
4748
4628
|
};
|
|
4749
4629
|
};
|
|
4750
4630
|
const serializeAws_json1_1TaskDefinitionPlacementConstraints = (input, context) => {
|
|
@@ -4769,23 +4649,19 @@ const serializeAws_json1_1TaskFieldList = (input, context) => {
|
|
|
4769
4649
|
};
|
|
4770
4650
|
const serializeAws_json1_1TaskOverride = (input, context) => {
|
|
4771
4651
|
return {
|
|
4772
|
-
...(input.containerOverrides
|
|
4773
|
-
input.containerOverrides !== null && {
|
|
4652
|
+
...(input.containerOverrides != null && {
|
|
4774
4653
|
containerOverrides: serializeAws_json1_1ContainerOverrides(input.containerOverrides, context),
|
|
4775
4654
|
}),
|
|
4776
|
-
...(input.cpu
|
|
4777
|
-
...(input.ephemeralStorage
|
|
4778
|
-
input.ephemeralStorage !== null && {
|
|
4655
|
+
...(input.cpu != null && { cpu: input.cpu }),
|
|
4656
|
+
...(input.ephemeralStorage != null && {
|
|
4779
4657
|
ephemeralStorage: serializeAws_json1_1EphemeralStorage(input.ephemeralStorage, context),
|
|
4780
4658
|
}),
|
|
4781
|
-
...(input.executionRoleArn
|
|
4782
|
-
|
|
4783
|
-
...(input.inferenceAcceleratorOverrides !== undefined &&
|
|
4784
|
-
input.inferenceAcceleratorOverrides !== null && {
|
|
4659
|
+
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
4660
|
+
...(input.inferenceAcceleratorOverrides != null && {
|
|
4785
4661
|
inferenceAcceleratorOverrides: serializeAws_json1_1InferenceAcceleratorOverrides(input.inferenceAcceleratorOverrides, context),
|
|
4786
4662
|
}),
|
|
4787
|
-
...(input.memory
|
|
4788
|
-
...(input.taskRoleArn
|
|
4663
|
+
...(input.memory != null && { memory: input.memory }),
|
|
4664
|
+
...(input.taskRoleArn != null && { taskRoleArn: input.taskRoleArn }),
|
|
4789
4665
|
};
|
|
4790
4666
|
};
|
|
4791
4667
|
const serializeAws_json1_1TaskSetFieldList = (input, context) => {
|
|
@@ -4800,10 +4676,9 @@ const serializeAws_json1_1TaskSetFieldList = (input, context) => {
|
|
|
4800
4676
|
};
|
|
4801
4677
|
const serializeAws_json1_1Tmpfs = (input, context) => {
|
|
4802
4678
|
return {
|
|
4803
|
-
...(input.containerPath
|
|
4804
|
-
...(input.mountOptions
|
|
4805
|
-
|
|
4806
|
-
...(input.size !== undefined && input.size !== null && { size: input.size }),
|
|
4679
|
+
...(input.containerPath != null && { containerPath: input.containerPath }),
|
|
4680
|
+
...(input.mountOptions != null && { mountOptions: serializeAws_json1_1StringList(input.mountOptions, context) }),
|
|
4681
|
+
...(input.size != null && { size: input.size }),
|
|
4807
4682
|
};
|
|
4808
4683
|
};
|
|
4809
4684
|
const serializeAws_json1_1TmpfsList = (input, context) => {
|
|
@@ -4818,9 +4693,9 @@ const serializeAws_json1_1TmpfsList = (input, context) => {
|
|
|
4818
4693
|
};
|
|
4819
4694
|
const serializeAws_json1_1Ulimit = (input, context) => {
|
|
4820
4695
|
return {
|
|
4821
|
-
...(input.hardLimit
|
|
4822
|
-
...(input.name
|
|
4823
|
-
...(input.softLimit
|
|
4696
|
+
...(input.hardLimit != null && { hardLimit: input.hardLimit }),
|
|
4697
|
+
...(input.name != null && { name: input.name }),
|
|
4698
|
+
...(input.softLimit != null && { softLimit: input.softLimit }),
|
|
4824
4699
|
};
|
|
4825
4700
|
};
|
|
4826
4701
|
const serializeAws_json1_1UlimitList = (input, context) => {
|
|
@@ -4835,153 +4710,126 @@ const serializeAws_json1_1UlimitList = (input, context) => {
|
|
|
4835
4710
|
};
|
|
4836
4711
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
4837
4712
|
return {
|
|
4838
|
-
...(input.resourceArn
|
|
4839
|
-
...(input.tagKeys
|
|
4840
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
|
|
4713
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
4714
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
|
|
4841
4715
|
};
|
|
4842
4716
|
};
|
|
4843
4717
|
const serializeAws_json1_1UpdateCapacityProviderRequest = (input, context) => {
|
|
4844
4718
|
return {
|
|
4845
|
-
...(input.autoScalingGroupProvider
|
|
4846
|
-
input.autoScalingGroupProvider !== null && {
|
|
4719
|
+
...(input.autoScalingGroupProvider != null && {
|
|
4847
4720
|
autoScalingGroupProvider: serializeAws_json1_1AutoScalingGroupProviderUpdate(input.autoScalingGroupProvider, context),
|
|
4848
4721
|
}),
|
|
4849
|
-
...(input.name
|
|
4722
|
+
...(input.name != null && { name: input.name }),
|
|
4850
4723
|
};
|
|
4851
4724
|
};
|
|
4852
4725
|
const serializeAws_json1_1UpdateClusterRequest = (input, context) => {
|
|
4853
4726
|
return {
|
|
4854
|
-
...(input.cluster
|
|
4855
|
-
...(input.configuration
|
|
4856
|
-
input.configuration !== null && {
|
|
4727
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4728
|
+
...(input.configuration != null && {
|
|
4857
4729
|
configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
|
|
4858
4730
|
}),
|
|
4859
|
-
...(input.settings
|
|
4860
|
-
input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
4731
|
+
...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
4861
4732
|
};
|
|
4862
4733
|
};
|
|
4863
4734
|
const serializeAws_json1_1UpdateClusterSettingsRequest = (input, context) => {
|
|
4864
4735
|
return {
|
|
4865
|
-
...(input.cluster
|
|
4866
|
-
...(input.settings
|
|
4867
|
-
input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
4736
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4737
|
+
...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
4868
4738
|
};
|
|
4869
4739
|
};
|
|
4870
4740
|
const serializeAws_json1_1UpdateContainerAgentRequest = (input, context) => {
|
|
4871
4741
|
return {
|
|
4872
|
-
...(input.cluster
|
|
4873
|
-
...(input.containerInstance
|
|
4874
|
-
input.containerInstance !== null && { containerInstance: input.containerInstance }),
|
|
4742
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4743
|
+
...(input.containerInstance != null && { containerInstance: input.containerInstance }),
|
|
4875
4744
|
};
|
|
4876
4745
|
};
|
|
4877
4746
|
const serializeAws_json1_1UpdateContainerInstancesStateRequest = (input, context) => {
|
|
4878
4747
|
return {
|
|
4879
|
-
...(input.cluster
|
|
4880
|
-
...(input.containerInstances
|
|
4881
|
-
input.containerInstances !== null && {
|
|
4748
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4749
|
+
...(input.containerInstances != null && {
|
|
4882
4750
|
containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
|
|
4883
4751
|
}),
|
|
4884
|
-
...(input.status
|
|
4752
|
+
...(input.status != null && { status: input.status }),
|
|
4885
4753
|
};
|
|
4886
4754
|
};
|
|
4887
4755
|
const serializeAws_json1_1UpdateServicePrimaryTaskSetRequest = (input, context) => {
|
|
4888
4756
|
return {
|
|
4889
|
-
...(input.cluster
|
|
4890
|
-
...(input.primaryTaskSet
|
|
4891
|
-
|
|
4892
|
-
...(input.service !== undefined && input.service !== null && { service: input.service }),
|
|
4757
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4758
|
+
...(input.primaryTaskSet != null && { primaryTaskSet: input.primaryTaskSet }),
|
|
4759
|
+
...(input.service != null && { service: input.service }),
|
|
4893
4760
|
};
|
|
4894
4761
|
};
|
|
4895
4762
|
const serializeAws_json1_1UpdateServiceRequest = (input, context) => {
|
|
4896
4763
|
return {
|
|
4897
|
-
...(input.capacityProviderStrategy
|
|
4898
|
-
input.capacityProviderStrategy !== null && {
|
|
4764
|
+
...(input.capacityProviderStrategy != null && {
|
|
4899
4765
|
capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
|
|
4900
4766
|
}),
|
|
4901
|
-
...(input.cluster
|
|
4902
|
-
...(input.deploymentConfiguration
|
|
4903
|
-
input.deploymentConfiguration !== null && {
|
|
4767
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4768
|
+
...(input.deploymentConfiguration != null && {
|
|
4904
4769
|
deploymentConfiguration: serializeAws_json1_1DeploymentConfiguration(input.deploymentConfiguration, context),
|
|
4905
4770
|
}),
|
|
4906
|
-
...(input.desiredCount
|
|
4907
|
-
...(input.enableECSManagedTags
|
|
4908
|
-
|
|
4909
|
-
...(input.
|
|
4910
|
-
|
|
4911
|
-
...(input.forceNewDeployment !== undefined &&
|
|
4912
|
-
input.forceNewDeployment !== null && { forceNewDeployment: input.forceNewDeployment }),
|
|
4913
|
-
...(input.healthCheckGracePeriodSeconds !== undefined &&
|
|
4914
|
-
input.healthCheckGracePeriodSeconds !== null && {
|
|
4771
|
+
...(input.desiredCount != null && { desiredCount: input.desiredCount }),
|
|
4772
|
+
...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
|
|
4773
|
+
...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
|
|
4774
|
+
...(input.forceNewDeployment != null && { forceNewDeployment: input.forceNewDeployment }),
|
|
4775
|
+
...(input.healthCheckGracePeriodSeconds != null && {
|
|
4915
4776
|
healthCheckGracePeriodSeconds: input.healthCheckGracePeriodSeconds,
|
|
4916
4777
|
}),
|
|
4917
|
-
...(input.loadBalancers
|
|
4918
|
-
input.loadBalancers !== null && {
|
|
4778
|
+
...(input.loadBalancers != null && {
|
|
4919
4779
|
loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
|
|
4920
4780
|
}),
|
|
4921
|
-
...(input.networkConfiguration
|
|
4922
|
-
input.networkConfiguration !== null && {
|
|
4781
|
+
...(input.networkConfiguration != null && {
|
|
4923
4782
|
networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
|
|
4924
4783
|
}),
|
|
4925
|
-
...(input.placementConstraints
|
|
4926
|
-
input.placementConstraints !== null && {
|
|
4784
|
+
...(input.placementConstraints != null && {
|
|
4927
4785
|
placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
|
|
4928
4786
|
}),
|
|
4929
|
-
...(input.placementStrategy
|
|
4930
|
-
input.placementStrategy !== null && {
|
|
4787
|
+
...(input.placementStrategy != null && {
|
|
4931
4788
|
placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
|
|
4932
4789
|
}),
|
|
4933
|
-
...(input.platformVersion
|
|
4934
|
-
|
|
4935
|
-
...(input.
|
|
4936
|
-
...(input.
|
|
4937
|
-
...(input.serviceRegistries !== undefined &&
|
|
4938
|
-
input.serviceRegistries !== null && {
|
|
4790
|
+
...(input.platformVersion != null && { platformVersion: input.platformVersion }),
|
|
4791
|
+
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
4792
|
+
...(input.service != null && { service: input.service }),
|
|
4793
|
+
...(input.serviceRegistries != null && {
|
|
4939
4794
|
serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
|
|
4940
4795
|
}),
|
|
4941
|
-
...(input.taskDefinition
|
|
4942
|
-
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
|
|
4796
|
+
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
4943
4797
|
};
|
|
4944
4798
|
};
|
|
4945
4799
|
const serializeAws_json1_1UpdateTaskSetRequest = (input, context) => {
|
|
4946
4800
|
return {
|
|
4947
|
-
...(input.cluster
|
|
4948
|
-
...(input.scale
|
|
4949
|
-
|
|
4950
|
-
...(input.
|
|
4951
|
-
...(input.taskSet !== undefined && input.taskSet !== null && { taskSet: input.taskSet }),
|
|
4801
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4802
|
+
...(input.scale != null && { scale: serializeAws_json1_1Scale(input.scale, context) }),
|
|
4803
|
+
...(input.service != null && { service: input.service }),
|
|
4804
|
+
...(input.taskSet != null && { taskSet: input.taskSet }),
|
|
4952
4805
|
};
|
|
4953
4806
|
};
|
|
4954
4807
|
const serializeAws_json1_1VersionInfo = (input, context) => {
|
|
4955
4808
|
return {
|
|
4956
|
-
...(input.agentHash
|
|
4957
|
-
...(input.agentVersion
|
|
4958
|
-
...(input.dockerVersion
|
|
4809
|
+
...(input.agentHash != null && { agentHash: input.agentHash }),
|
|
4810
|
+
...(input.agentVersion != null && { agentVersion: input.agentVersion }),
|
|
4811
|
+
...(input.dockerVersion != null && { dockerVersion: input.dockerVersion }),
|
|
4959
4812
|
};
|
|
4960
4813
|
};
|
|
4961
4814
|
const serializeAws_json1_1Volume = (input, context) => {
|
|
4962
4815
|
return {
|
|
4963
|
-
...(input.dockerVolumeConfiguration
|
|
4964
|
-
input.dockerVolumeConfiguration !== null && {
|
|
4816
|
+
...(input.dockerVolumeConfiguration != null && {
|
|
4965
4817
|
dockerVolumeConfiguration: serializeAws_json1_1DockerVolumeConfiguration(input.dockerVolumeConfiguration, context),
|
|
4966
4818
|
}),
|
|
4967
|
-
...(input.efsVolumeConfiguration
|
|
4968
|
-
input.efsVolumeConfiguration !== null && {
|
|
4819
|
+
...(input.efsVolumeConfiguration != null && {
|
|
4969
4820
|
efsVolumeConfiguration: serializeAws_json1_1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
|
|
4970
4821
|
}),
|
|
4971
|
-
...(input.fsxWindowsFileServerVolumeConfiguration
|
|
4972
|
-
input.fsxWindowsFileServerVolumeConfiguration !== null && {
|
|
4822
|
+
...(input.fsxWindowsFileServerVolumeConfiguration != null && {
|
|
4973
4823
|
fsxWindowsFileServerVolumeConfiguration: serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration(input.fsxWindowsFileServerVolumeConfiguration, context),
|
|
4974
4824
|
}),
|
|
4975
|
-
...(input.host
|
|
4976
|
-
|
|
4977
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
4825
|
+
...(input.host != null && { host: serializeAws_json1_1HostVolumeProperties(input.host, context) }),
|
|
4826
|
+
...(input.name != null && { name: input.name }),
|
|
4978
4827
|
};
|
|
4979
4828
|
};
|
|
4980
4829
|
const serializeAws_json1_1VolumeFrom = (input, context) => {
|
|
4981
4830
|
return {
|
|
4982
|
-
...(input.readOnly
|
|
4983
|
-
...(input.sourceContainer
|
|
4984
|
-
input.sourceContainer !== null && { sourceContainer: input.sourceContainer }),
|
|
4831
|
+
...(input.readOnly != null && { readOnly: input.readOnly }),
|
|
4832
|
+
...(input.sourceContainer != null && { sourceContainer: input.sourceContainer }),
|
|
4985
4833
|
};
|
|
4986
4834
|
};
|
|
4987
4835
|
const serializeAws_json1_1VolumeFromList = (input, context) => {
|
|
@@ -5011,9 +4859,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
5011
4859
|
};
|
|
5012
4860
|
const deserializeAws_json1_1Attachment = (output, context) => {
|
|
5013
4861
|
return {
|
|
5014
|
-
details: output.details
|
|
5015
|
-
? deserializeAws_json1_1AttachmentDetails(output.details, context)
|
|
5016
|
-
: undefined,
|
|
4862
|
+
details: output.details != null ? deserializeAws_json1_1AttachmentDetails(output.details, context) : undefined,
|
|
5017
4863
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5018
4864
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5019
4865
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -5068,21 +4914,15 @@ const deserializeAws_json1_1Attributes = (output, context) => {
|
|
|
5068
4914
|
const deserializeAws_json1_1AutoScalingGroupProvider = (output, context) => {
|
|
5069
4915
|
return {
|
|
5070
4916
|
autoScalingGroupArn: (0, smithy_client_1.expectString)(output.autoScalingGroupArn),
|
|
5071
|
-
managedScaling: output.managedScaling
|
|
5072
|
-
? deserializeAws_json1_1ManagedScaling(output.managedScaling, context)
|
|
5073
|
-
: undefined,
|
|
4917
|
+
managedScaling: output.managedScaling != null ? deserializeAws_json1_1ManagedScaling(output.managedScaling, context) : undefined,
|
|
5074
4918
|
managedTerminationProtection: (0, smithy_client_1.expectString)(output.managedTerminationProtection),
|
|
5075
4919
|
};
|
|
5076
4920
|
};
|
|
5077
4921
|
const deserializeAws_json1_1AwsVpcConfiguration = (output, context) => {
|
|
5078
4922
|
return {
|
|
5079
4923
|
assignPublicIp: (0, smithy_client_1.expectString)(output.assignPublicIp),
|
|
5080
|
-
securityGroups: output.securityGroups
|
|
5081
|
-
|
|
5082
|
-
: undefined,
|
|
5083
|
-
subnets: output.subnets !== undefined && output.subnets !== null
|
|
5084
|
-
? deserializeAws_json1_1StringList(output.subnets, context)
|
|
5085
|
-
: undefined,
|
|
4924
|
+
securityGroups: output.securityGroups != null ? deserializeAws_json1_1StringList(output.securityGroups, context) : undefined,
|
|
4925
|
+
subnets: output.subnets != null ? deserializeAws_json1_1StringList(output.subnets, context) : undefined,
|
|
5086
4926
|
};
|
|
5087
4927
|
};
|
|
5088
4928
|
const deserializeAws_json1_1BlockedException = (output, context) => {
|
|
@@ -5092,13 +4932,13 @@ const deserializeAws_json1_1BlockedException = (output, context) => {
|
|
|
5092
4932
|
};
|
|
5093
4933
|
const deserializeAws_json1_1CapacityProvider = (output, context) => {
|
|
5094
4934
|
return {
|
|
5095
|
-
autoScalingGroupProvider: output.autoScalingGroupProvider
|
|
4935
|
+
autoScalingGroupProvider: output.autoScalingGroupProvider != null
|
|
5096
4936
|
? deserializeAws_json1_1AutoScalingGroupProvider(output.autoScalingGroupProvider, context)
|
|
5097
4937
|
: undefined,
|
|
5098
4938
|
capacityProviderArn: (0, smithy_client_1.expectString)(output.capacityProviderArn),
|
|
5099
4939
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5100
4940
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5101
|
-
tags: output.tags
|
|
4941
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
5102
4942
|
updateStatus: (0, smithy_client_1.expectString)(output.updateStatus),
|
|
5103
4943
|
updateStatusReason: (0, smithy_client_1.expectString)(output.updateStatusReason),
|
|
5104
4944
|
};
|
|
@@ -5140,37 +4980,31 @@ const deserializeAws_json1_1ClientException = (output, context) => {
|
|
|
5140
4980
|
const deserializeAws_json1_1Cluster = (output, context) => {
|
|
5141
4981
|
return {
|
|
5142
4982
|
activeServicesCount: (0, smithy_client_1.expectInt32)(output.activeServicesCount),
|
|
5143
|
-
attachments: output.attachments
|
|
5144
|
-
? deserializeAws_json1_1Attachments(output.attachments, context)
|
|
5145
|
-
: undefined,
|
|
4983
|
+
attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
|
|
5146
4984
|
attachmentsStatus: (0, smithy_client_1.expectString)(output.attachmentsStatus),
|
|
5147
|
-
capacityProviders: output.capacityProviders
|
|
4985
|
+
capacityProviders: output.capacityProviders != null
|
|
5148
4986
|
? deserializeAws_json1_1StringList(output.capacityProviders, context)
|
|
5149
4987
|
: undefined,
|
|
5150
4988
|
clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
|
|
5151
4989
|
clusterName: (0, smithy_client_1.expectString)(output.clusterName),
|
|
5152
|
-
configuration: output.configuration
|
|
4990
|
+
configuration: output.configuration != null
|
|
5153
4991
|
? deserializeAws_json1_1ClusterConfiguration(output.configuration, context)
|
|
5154
4992
|
: undefined,
|
|
5155
|
-
defaultCapacityProviderStrategy: output.defaultCapacityProviderStrategy
|
|
4993
|
+
defaultCapacityProviderStrategy: output.defaultCapacityProviderStrategy != null
|
|
5156
4994
|
? deserializeAws_json1_1CapacityProviderStrategy(output.defaultCapacityProviderStrategy, context)
|
|
5157
4995
|
: undefined,
|
|
5158
4996
|
pendingTasksCount: (0, smithy_client_1.expectInt32)(output.pendingTasksCount),
|
|
5159
4997
|
registeredContainerInstancesCount: (0, smithy_client_1.expectInt32)(output.registeredContainerInstancesCount),
|
|
5160
4998
|
runningTasksCount: (0, smithy_client_1.expectInt32)(output.runningTasksCount),
|
|
5161
|
-
settings: output.settings
|
|
5162
|
-
|
|
5163
|
-
: undefined,
|
|
5164
|
-
statistics: output.statistics !== undefined && output.statistics !== null
|
|
5165
|
-
? deserializeAws_json1_1Statistics(output.statistics, context)
|
|
5166
|
-
: undefined,
|
|
4999
|
+
settings: output.settings != null ? deserializeAws_json1_1ClusterSettings(output.settings, context) : undefined,
|
|
5000
|
+
statistics: output.statistics != null ? deserializeAws_json1_1Statistics(output.statistics, context) : undefined,
|
|
5167
5001
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5168
|
-
tags: output.tags
|
|
5002
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
5169
5003
|
};
|
|
5170
5004
|
};
|
|
5171
5005
|
const deserializeAws_json1_1ClusterConfiguration = (output, context) => {
|
|
5172
5006
|
return {
|
|
5173
|
-
executeCommandConfiguration: output.executeCommandConfiguration
|
|
5007
|
+
executeCommandConfiguration: output.executeCommandConfiguration != null
|
|
5174
5008
|
? deserializeAws_json1_1ExecuteCommandConfiguration(output.executeCommandConfiguration, context)
|
|
5175
5009
|
: undefined,
|
|
5176
5010
|
};
|
|
@@ -5239,23 +5073,19 @@ const deserializeAws_json1_1Container = (output, context) => {
|
|
|
5239
5073
|
containerArn: (0, smithy_client_1.expectString)(output.containerArn),
|
|
5240
5074
|
cpu: (0, smithy_client_1.expectString)(output.cpu),
|
|
5241
5075
|
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
5242
|
-
gpuIds: output.gpuIds
|
|
5243
|
-
? deserializeAws_json1_1GpuIds(output.gpuIds, context)
|
|
5244
|
-
: undefined,
|
|
5076
|
+
gpuIds: output.gpuIds != null ? deserializeAws_json1_1GpuIds(output.gpuIds, context) : undefined,
|
|
5245
5077
|
healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
|
|
5246
5078
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
5247
5079
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
5248
5080
|
lastStatus: (0, smithy_client_1.expectString)(output.lastStatus),
|
|
5249
|
-
managedAgents: output.managedAgents
|
|
5250
|
-
? deserializeAws_json1_1ManagedAgents(output.managedAgents, context)
|
|
5251
|
-
: undefined,
|
|
5081
|
+
managedAgents: output.managedAgents != null ? deserializeAws_json1_1ManagedAgents(output.managedAgents, context) : undefined,
|
|
5252
5082
|
memory: (0, smithy_client_1.expectString)(output.memory),
|
|
5253
5083
|
memoryReservation: (0, smithy_client_1.expectString)(output.memoryReservation),
|
|
5254
5084
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5255
|
-
networkBindings: output.networkBindings
|
|
5085
|
+
networkBindings: output.networkBindings != null
|
|
5256
5086
|
? deserializeAws_json1_1NetworkBindings(output.networkBindings, context)
|
|
5257
5087
|
: undefined,
|
|
5258
|
-
networkInterfaces: output.networkInterfaces
|
|
5088
|
+
networkInterfaces: output.networkInterfaces != null
|
|
5259
5089
|
? deserializeAws_json1_1NetworkInterfaces(output.networkInterfaces, context)
|
|
5260
5090
|
: undefined,
|
|
5261
5091
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
@@ -5265,90 +5095,58 @@ const deserializeAws_json1_1Container = (output, context) => {
|
|
|
5265
5095
|
};
|
|
5266
5096
|
const deserializeAws_json1_1ContainerDefinition = (output, context) => {
|
|
5267
5097
|
return {
|
|
5268
|
-
command: output.command
|
|
5269
|
-
? deserializeAws_json1_1StringList(output.command, context)
|
|
5270
|
-
: undefined,
|
|
5098
|
+
command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
|
|
5271
5099
|
cpu: (0, smithy_client_1.expectInt32)(output.cpu),
|
|
5272
|
-
dependsOn: output.dependsOn
|
|
5273
|
-
? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context)
|
|
5274
|
-
: undefined,
|
|
5100
|
+
dependsOn: output.dependsOn != null ? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context) : undefined,
|
|
5275
5101
|
disableNetworking: (0, smithy_client_1.expectBoolean)(output.disableNetworking),
|
|
5276
|
-
dnsSearchDomains: output.dnsSearchDomains
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
? deserializeAws_json1_1StringList(output.dnsServers, context)
|
|
5281
|
-
: undefined,
|
|
5282
|
-
dockerLabels: output.dockerLabels !== undefined && output.dockerLabels !== null
|
|
5283
|
-
? deserializeAws_json1_1DockerLabelsMap(output.dockerLabels, context)
|
|
5284
|
-
: undefined,
|
|
5285
|
-
dockerSecurityOptions: output.dockerSecurityOptions !== undefined && output.dockerSecurityOptions !== null
|
|
5102
|
+
dnsSearchDomains: output.dnsSearchDomains != null ? deserializeAws_json1_1StringList(output.dnsSearchDomains, context) : undefined,
|
|
5103
|
+
dnsServers: output.dnsServers != null ? deserializeAws_json1_1StringList(output.dnsServers, context) : undefined,
|
|
5104
|
+
dockerLabels: output.dockerLabels != null ? deserializeAws_json1_1DockerLabelsMap(output.dockerLabels, context) : undefined,
|
|
5105
|
+
dockerSecurityOptions: output.dockerSecurityOptions != null
|
|
5286
5106
|
? deserializeAws_json1_1StringList(output.dockerSecurityOptions, context)
|
|
5287
5107
|
: undefined,
|
|
5288
|
-
entryPoint: output.entryPoint
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
environment: output.environment !== undefined && output.environment !== null
|
|
5292
|
-
? deserializeAws_json1_1EnvironmentVariables(output.environment, context)
|
|
5293
|
-
: undefined,
|
|
5294
|
-
environmentFiles: output.environmentFiles !== undefined && output.environmentFiles !== null
|
|
5108
|
+
entryPoint: output.entryPoint != null ? deserializeAws_json1_1StringList(output.entryPoint, context) : undefined,
|
|
5109
|
+
environment: output.environment != null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) : undefined,
|
|
5110
|
+
environmentFiles: output.environmentFiles != null
|
|
5295
5111
|
? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context)
|
|
5296
5112
|
: undefined,
|
|
5297
5113
|
essential: (0, smithy_client_1.expectBoolean)(output.essential),
|
|
5298
|
-
extraHosts: output.extraHosts
|
|
5299
|
-
|
|
5300
|
-
: undefined,
|
|
5301
|
-
firelensConfiguration: output.firelensConfiguration !== undefined && output.firelensConfiguration !== null
|
|
5114
|
+
extraHosts: output.extraHosts != null ? deserializeAws_json1_1HostEntryList(output.extraHosts, context) : undefined,
|
|
5115
|
+
firelensConfiguration: output.firelensConfiguration != null
|
|
5302
5116
|
? deserializeAws_json1_1FirelensConfiguration(output.firelensConfiguration, context)
|
|
5303
5117
|
: undefined,
|
|
5304
|
-
healthCheck: output.healthCheck
|
|
5305
|
-
? deserializeAws_json1_1HealthCheck(output.healthCheck, context)
|
|
5306
|
-
: undefined,
|
|
5118
|
+
healthCheck: output.healthCheck != null ? deserializeAws_json1_1HealthCheck(output.healthCheck, context) : undefined,
|
|
5307
5119
|
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
5308
5120
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
5309
5121
|
interactive: (0, smithy_client_1.expectBoolean)(output.interactive),
|
|
5310
|
-
links: output.links
|
|
5311
|
-
|
|
5312
|
-
: undefined,
|
|
5313
|
-
linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
|
|
5122
|
+
links: output.links != null ? deserializeAws_json1_1StringList(output.links, context) : undefined,
|
|
5123
|
+
linuxParameters: output.linuxParameters != null
|
|
5314
5124
|
? deserializeAws_json1_1LinuxParameters(output.linuxParameters, context)
|
|
5315
5125
|
: undefined,
|
|
5316
|
-
logConfiguration: output.logConfiguration
|
|
5126
|
+
logConfiguration: output.logConfiguration != null
|
|
5317
5127
|
? deserializeAws_json1_1LogConfiguration(output.logConfiguration, context)
|
|
5318
5128
|
: undefined,
|
|
5319
5129
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
5320
5130
|
memoryReservation: (0, smithy_client_1.expectInt32)(output.memoryReservation),
|
|
5321
|
-
mountPoints: output.mountPoints
|
|
5322
|
-
? deserializeAws_json1_1MountPointList(output.mountPoints, context)
|
|
5323
|
-
: undefined,
|
|
5131
|
+
mountPoints: output.mountPoints != null ? deserializeAws_json1_1MountPointList(output.mountPoints, context) : undefined,
|
|
5324
5132
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5325
|
-
portMappings: output.portMappings
|
|
5326
|
-
? deserializeAws_json1_1PortMappingList(output.portMappings, context)
|
|
5327
|
-
: undefined,
|
|
5133
|
+
portMappings: output.portMappings != null ? deserializeAws_json1_1PortMappingList(output.portMappings, context) : undefined,
|
|
5328
5134
|
privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
|
|
5329
5135
|
pseudoTerminal: (0, smithy_client_1.expectBoolean)(output.pseudoTerminal),
|
|
5330
5136
|
readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
|
|
5331
|
-
repositoryCredentials: output.repositoryCredentials
|
|
5137
|
+
repositoryCredentials: output.repositoryCredentials != null
|
|
5332
5138
|
? deserializeAws_json1_1RepositoryCredentials(output.repositoryCredentials, context)
|
|
5333
5139
|
: undefined,
|
|
5334
|
-
resourceRequirements: output.resourceRequirements
|
|
5140
|
+
resourceRequirements: output.resourceRequirements != null
|
|
5335
5141
|
? deserializeAws_json1_1ResourceRequirements(output.resourceRequirements, context)
|
|
5336
5142
|
: undefined,
|
|
5337
|
-
secrets: output.secrets
|
|
5338
|
-
? deserializeAws_json1_1SecretList(output.secrets, context)
|
|
5339
|
-
: undefined,
|
|
5143
|
+
secrets: output.secrets != null ? deserializeAws_json1_1SecretList(output.secrets, context) : undefined,
|
|
5340
5144
|
startTimeout: (0, smithy_client_1.expectInt32)(output.startTimeout),
|
|
5341
5145
|
stopTimeout: (0, smithy_client_1.expectInt32)(output.stopTimeout),
|
|
5342
|
-
systemControls: output.systemControls
|
|
5343
|
-
|
|
5344
|
-
: undefined,
|
|
5345
|
-
ulimits: output.ulimits !== undefined && output.ulimits !== null
|
|
5346
|
-
? deserializeAws_json1_1UlimitList(output.ulimits, context)
|
|
5347
|
-
: undefined,
|
|
5146
|
+
systemControls: output.systemControls != null ? deserializeAws_json1_1SystemControls(output.systemControls, context) : undefined,
|
|
5147
|
+
ulimits: output.ulimits != null ? deserializeAws_json1_1UlimitList(output.ulimits, context) : undefined,
|
|
5348
5148
|
user: (0, smithy_client_1.expectString)(output.user),
|
|
5349
|
-
volumesFrom: output.volumesFrom
|
|
5350
|
-
? deserializeAws_json1_1VolumeFromList(output.volumesFrom, context)
|
|
5351
|
-
: undefined,
|
|
5149
|
+
volumesFrom: output.volumesFrom != null ? deserializeAws_json1_1VolumeFromList(output.volumesFrom, context) : undefined,
|
|
5352
5150
|
workingDirectory: (0, smithy_client_1.expectString)(output.workingDirectory),
|
|
5353
5151
|
};
|
|
5354
5152
|
};
|
|
@@ -5384,43 +5182,35 @@ const deserializeAws_json1_1ContainerInstance = (output, context) => {
|
|
|
5384
5182
|
return {
|
|
5385
5183
|
agentConnected: (0, smithy_client_1.expectBoolean)(output.agentConnected),
|
|
5386
5184
|
agentUpdateStatus: (0, smithy_client_1.expectString)(output.agentUpdateStatus),
|
|
5387
|
-
attachments: output.attachments
|
|
5388
|
-
|
|
5389
|
-
: undefined,
|
|
5390
|
-
attributes: output.attributes !== undefined && output.attributes !== null
|
|
5391
|
-
? deserializeAws_json1_1Attributes(output.attributes, context)
|
|
5392
|
-
: undefined,
|
|
5185
|
+
attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
|
|
5186
|
+
attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
|
|
5393
5187
|
capacityProviderName: (0, smithy_client_1.expectString)(output.capacityProviderName),
|
|
5394
5188
|
containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
|
|
5395
5189
|
ec2InstanceId: (0, smithy_client_1.expectString)(output.ec2InstanceId),
|
|
5396
|
-
healthStatus: output.healthStatus
|
|
5190
|
+
healthStatus: output.healthStatus != null
|
|
5397
5191
|
? deserializeAws_json1_1ContainerInstanceHealthStatus(output.healthStatus, context)
|
|
5398
5192
|
: undefined,
|
|
5399
5193
|
pendingTasksCount: (0, smithy_client_1.expectInt32)(output.pendingTasksCount),
|
|
5400
|
-
registeredAt: output.registeredAt
|
|
5194
|
+
registeredAt: output.registeredAt != null
|
|
5401
5195
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
|
|
5402
5196
|
: undefined,
|
|
5403
|
-
registeredResources: output.registeredResources
|
|
5197
|
+
registeredResources: output.registeredResources != null
|
|
5404
5198
|
? deserializeAws_json1_1Resources(output.registeredResources, context)
|
|
5405
5199
|
: undefined,
|
|
5406
|
-
remainingResources: output.remainingResources
|
|
5200
|
+
remainingResources: output.remainingResources != null
|
|
5407
5201
|
? deserializeAws_json1_1Resources(output.remainingResources, context)
|
|
5408
5202
|
: undefined,
|
|
5409
5203
|
runningTasksCount: (0, smithy_client_1.expectInt32)(output.runningTasksCount),
|
|
5410
5204
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5411
5205
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
5412
|
-
tags: output.tags
|
|
5206
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
5413
5207
|
version: (0, smithy_client_1.expectLong)(output.version),
|
|
5414
|
-
versionInfo: output.versionInfo
|
|
5415
|
-
? deserializeAws_json1_1VersionInfo(output.versionInfo, context)
|
|
5416
|
-
: undefined,
|
|
5208
|
+
versionInfo: output.versionInfo != null ? deserializeAws_json1_1VersionInfo(output.versionInfo, context) : undefined,
|
|
5417
5209
|
};
|
|
5418
5210
|
};
|
|
5419
5211
|
const deserializeAws_json1_1ContainerInstanceHealthStatus = (output, context) => {
|
|
5420
5212
|
return {
|
|
5421
|
-
details: output.details
|
|
5422
|
-
? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context)
|
|
5423
|
-
: undefined,
|
|
5213
|
+
details: output.details != null ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context) : undefined,
|
|
5424
5214
|
overallStatus: (0, smithy_client_1.expectString)(output.overallStatus),
|
|
5425
5215
|
};
|
|
5426
5216
|
};
|
|
@@ -5437,20 +5227,16 @@ const deserializeAws_json1_1ContainerInstances = (output, context) => {
|
|
|
5437
5227
|
};
|
|
5438
5228
|
const deserializeAws_json1_1ContainerOverride = (output, context) => {
|
|
5439
5229
|
return {
|
|
5440
|
-
command: output.command
|
|
5441
|
-
? deserializeAws_json1_1StringList(output.command, context)
|
|
5442
|
-
: undefined,
|
|
5230
|
+
command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
|
|
5443
5231
|
cpu: (0, smithy_client_1.expectInt32)(output.cpu),
|
|
5444
|
-
environment: output.environment
|
|
5445
|
-
|
|
5446
|
-
: undefined,
|
|
5447
|
-
environmentFiles: output.environmentFiles !== undefined && output.environmentFiles !== null
|
|
5232
|
+
environment: output.environment != null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) : undefined,
|
|
5233
|
+
environmentFiles: output.environmentFiles != null
|
|
5448
5234
|
? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context)
|
|
5449
5235
|
: undefined,
|
|
5450
5236
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
5451
5237
|
memoryReservation: (0, smithy_client_1.expectInt32)(output.memoryReservation),
|
|
5452
5238
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5453
|
-
resourceRequirements: output.resourceRequirements
|
|
5239
|
+
resourceRequirements: output.resourceRequirements != null
|
|
5454
5240
|
? deserializeAws_json1_1ResourceRequirements(output.resourceRequirements, context)
|
|
5455
5241
|
: undefined,
|
|
5456
5242
|
};
|
|
@@ -5479,87 +5265,69 @@ const deserializeAws_json1_1Containers = (output, context) => {
|
|
|
5479
5265
|
};
|
|
5480
5266
|
const deserializeAws_json1_1CreateCapacityProviderResponse = (output, context) => {
|
|
5481
5267
|
return {
|
|
5482
|
-
capacityProvider: output.capacityProvider
|
|
5268
|
+
capacityProvider: output.capacityProvider != null
|
|
5483
5269
|
? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
|
|
5484
5270
|
: undefined,
|
|
5485
5271
|
};
|
|
5486
5272
|
};
|
|
5487
5273
|
const deserializeAws_json1_1CreateClusterResponse = (output, context) => {
|
|
5488
5274
|
return {
|
|
5489
|
-
cluster: output.cluster
|
|
5490
|
-
? deserializeAws_json1_1Cluster(output.cluster, context)
|
|
5491
|
-
: undefined,
|
|
5275
|
+
cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
|
|
5492
5276
|
};
|
|
5493
5277
|
};
|
|
5494
5278
|
const deserializeAws_json1_1CreateServiceResponse = (output, context) => {
|
|
5495
5279
|
return {
|
|
5496
|
-
service: output.service
|
|
5497
|
-
? deserializeAws_json1_1Service(output.service, context)
|
|
5498
|
-
: undefined,
|
|
5280
|
+
service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
|
|
5499
5281
|
};
|
|
5500
5282
|
};
|
|
5501
5283
|
const deserializeAws_json1_1CreateTaskSetResponse = (output, context) => {
|
|
5502
5284
|
return {
|
|
5503
|
-
taskSet: output.taskSet
|
|
5504
|
-
? deserializeAws_json1_1TaskSet(output.taskSet, context)
|
|
5505
|
-
: undefined,
|
|
5285
|
+
taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
|
|
5506
5286
|
};
|
|
5507
5287
|
};
|
|
5508
5288
|
const deserializeAws_json1_1DeleteAccountSettingResponse = (output, context) => {
|
|
5509
5289
|
return {
|
|
5510
|
-
setting: output.setting
|
|
5511
|
-
? deserializeAws_json1_1Setting(output.setting, context)
|
|
5512
|
-
: undefined,
|
|
5290
|
+
setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
|
|
5513
5291
|
};
|
|
5514
5292
|
};
|
|
5515
5293
|
const deserializeAws_json1_1DeleteAttributesResponse = (output, context) => {
|
|
5516
5294
|
return {
|
|
5517
|
-
attributes: output.attributes
|
|
5518
|
-
? deserializeAws_json1_1Attributes(output.attributes, context)
|
|
5519
|
-
: undefined,
|
|
5295
|
+
attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
|
|
5520
5296
|
};
|
|
5521
5297
|
};
|
|
5522
5298
|
const deserializeAws_json1_1DeleteCapacityProviderResponse = (output, context) => {
|
|
5523
5299
|
return {
|
|
5524
|
-
capacityProvider: output.capacityProvider
|
|
5300
|
+
capacityProvider: output.capacityProvider != null
|
|
5525
5301
|
? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
|
|
5526
5302
|
: undefined,
|
|
5527
5303
|
};
|
|
5528
5304
|
};
|
|
5529
5305
|
const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
|
|
5530
5306
|
return {
|
|
5531
|
-
cluster: output.cluster
|
|
5532
|
-
? deserializeAws_json1_1Cluster(output.cluster, context)
|
|
5533
|
-
: undefined,
|
|
5307
|
+
cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
|
|
5534
5308
|
};
|
|
5535
5309
|
};
|
|
5536
5310
|
const deserializeAws_json1_1DeleteServiceResponse = (output, context) => {
|
|
5537
5311
|
return {
|
|
5538
|
-
service: output.service
|
|
5539
|
-
? deserializeAws_json1_1Service(output.service, context)
|
|
5540
|
-
: undefined,
|
|
5312
|
+
service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
|
|
5541
5313
|
};
|
|
5542
5314
|
};
|
|
5543
5315
|
const deserializeAws_json1_1DeleteTaskSetResponse = (output, context) => {
|
|
5544
5316
|
return {
|
|
5545
|
-
taskSet: output.taskSet
|
|
5546
|
-
? deserializeAws_json1_1TaskSet(output.taskSet, context)
|
|
5547
|
-
: undefined,
|
|
5317
|
+
taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
|
|
5548
5318
|
};
|
|
5549
5319
|
};
|
|
5550
5320
|
const deserializeAws_json1_1Deployment = (output, context) => {
|
|
5551
5321
|
return {
|
|
5552
|
-
capacityProviderStrategy: output.capacityProviderStrategy
|
|
5322
|
+
capacityProviderStrategy: output.capacityProviderStrategy != null
|
|
5553
5323
|
? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
|
|
5554
5324
|
: undefined,
|
|
5555
|
-
createdAt: output.createdAt
|
|
5556
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5557
|
-
: undefined,
|
|
5325
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5558
5326
|
desiredCount: (0, smithy_client_1.expectInt32)(output.desiredCount),
|
|
5559
5327
|
failedTasks: (0, smithy_client_1.expectInt32)(output.failedTasks),
|
|
5560
5328
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5561
5329
|
launchType: (0, smithy_client_1.expectString)(output.launchType),
|
|
5562
|
-
networkConfiguration: output.networkConfiguration
|
|
5330
|
+
networkConfiguration: output.networkConfiguration != null
|
|
5563
5331
|
? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
|
|
5564
5332
|
: undefined,
|
|
5565
5333
|
pendingCount: (0, smithy_client_1.expectInt32)(output.pendingCount),
|
|
@@ -5570,9 +5338,7 @@ const deserializeAws_json1_1Deployment = (output, context) => {
|
|
|
5570
5338
|
runningCount: (0, smithy_client_1.expectInt32)(output.runningCount),
|
|
5571
5339
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5572
5340
|
taskDefinition: (0, smithy_client_1.expectString)(output.taskDefinition),
|
|
5573
|
-
updatedAt: output.updatedAt
|
|
5574
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
5575
|
-
: undefined,
|
|
5341
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
5576
5342
|
};
|
|
5577
5343
|
};
|
|
5578
5344
|
const deserializeAws_json1_1DeploymentCircuitBreaker = (output, context) => {
|
|
@@ -5583,7 +5349,7 @@ const deserializeAws_json1_1DeploymentCircuitBreaker = (output, context) => {
|
|
|
5583
5349
|
};
|
|
5584
5350
|
const deserializeAws_json1_1DeploymentConfiguration = (output, context) => {
|
|
5585
5351
|
return {
|
|
5586
|
-
deploymentCircuitBreaker: output.deploymentCircuitBreaker
|
|
5352
|
+
deploymentCircuitBreaker: output.deploymentCircuitBreaker != null
|
|
5587
5353
|
? deserializeAws_json1_1DeploymentCircuitBreaker(output.deploymentCircuitBreaker, context)
|
|
5588
5354
|
: undefined,
|
|
5589
5355
|
maximumPercent: (0, smithy_client_1.expectInt32)(output.maximumPercent),
|
|
@@ -5608,92 +5374,68 @@ const deserializeAws_json1_1Deployments = (output, context) => {
|
|
|
5608
5374
|
};
|
|
5609
5375
|
const deserializeAws_json1_1DeregisterContainerInstanceResponse = (output, context) => {
|
|
5610
5376
|
return {
|
|
5611
|
-
containerInstance: output.containerInstance
|
|
5377
|
+
containerInstance: output.containerInstance != null
|
|
5612
5378
|
? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
|
|
5613
5379
|
: undefined,
|
|
5614
5380
|
};
|
|
5615
5381
|
};
|
|
5616
5382
|
const deserializeAws_json1_1DeregisterTaskDefinitionResponse = (output, context) => {
|
|
5617
5383
|
return {
|
|
5618
|
-
taskDefinition: output.taskDefinition
|
|
5619
|
-
? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
|
|
5620
|
-
: undefined,
|
|
5384
|
+
taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
|
|
5621
5385
|
};
|
|
5622
5386
|
};
|
|
5623
5387
|
const deserializeAws_json1_1DescribeCapacityProvidersResponse = (output, context) => {
|
|
5624
5388
|
return {
|
|
5625
|
-
capacityProviders: output.capacityProviders
|
|
5389
|
+
capacityProviders: output.capacityProviders != null
|
|
5626
5390
|
? deserializeAws_json1_1CapacityProviders(output.capacityProviders, context)
|
|
5627
5391
|
: undefined,
|
|
5628
|
-
failures: output.failures
|
|
5629
|
-
? deserializeAws_json1_1Failures(output.failures, context)
|
|
5630
|
-
: undefined,
|
|
5392
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5631
5393
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5632
5394
|
};
|
|
5633
5395
|
};
|
|
5634
5396
|
const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
|
|
5635
5397
|
return {
|
|
5636
|
-
clusters: output.clusters
|
|
5637
|
-
|
|
5638
|
-
: undefined,
|
|
5639
|
-
failures: output.failures !== undefined && output.failures !== null
|
|
5640
|
-
? deserializeAws_json1_1Failures(output.failures, context)
|
|
5641
|
-
: undefined,
|
|
5398
|
+
clusters: output.clusters != null ? deserializeAws_json1_1Clusters(output.clusters, context) : undefined,
|
|
5399
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5642
5400
|
};
|
|
5643
5401
|
};
|
|
5644
5402
|
const deserializeAws_json1_1DescribeContainerInstancesResponse = (output, context) => {
|
|
5645
5403
|
return {
|
|
5646
|
-
containerInstances: output.containerInstances
|
|
5404
|
+
containerInstances: output.containerInstances != null
|
|
5647
5405
|
? deserializeAws_json1_1ContainerInstances(output.containerInstances, context)
|
|
5648
5406
|
: undefined,
|
|
5649
|
-
failures: output.failures
|
|
5650
|
-
? deserializeAws_json1_1Failures(output.failures, context)
|
|
5651
|
-
: undefined,
|
|
5407
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5652
5408
|
};
|
|
5653
5409
|
};
|
|
5654
5410
|
const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
|
|
5655
5411
|
return {
|
|
5656
|
-
failures: output.failures
|
|
5657
|
-
|
|
5658
|
-
: undefined,
|
|
5659
|
-
services: output.services !== undefined && output.services !== null
|
|
5660
|
-
? deserializeAws_json1_1Services(output.services, context)
|
|
5661
|
-
: undefined,
|
|
5412
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5413
|
+
services: output.services != null ? deserializeAws_json1_1Services(output.services, context) : undefined,
|
|
5662
5414
|
};
|
|
5663
5415
|
};
|
|
5664
5416
|
const deserializeAws_json1_1DescribeTaskDefinitionResponse = (output, context) => {
|
|
5665
5417
|
return {
|
|
5666
|
-
tags: output.tags
|
|
5667
|
-
taskDefinition: output.taskDefinition
|
|
5668
|
-
? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
|
|
5669
|
-
: undefined,
|
|
5418
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
5419
|
+
taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
|
|
5670
5420
|
};
|
|
5671
5421
|
};
|
|
5672
5422
|
const deserializeAws_json1_1DescribeTaskSetsResponse = (output, context) => {
|
|
5673
5423
|
return {
|
|
5674
|
-
failures: output.failures
|
|
5675
|
-
|
|
5676
|
-
: undefined,
|
|
5677
|
-
taskSets: output.taskSets !== undefined && output.taskSets !== null
|
|
5678
|
-
? deserializeAws_json1_1TaskSets(output.taskSets, context)
|
|
5679
|
-
: undefined,
|
|
5424
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5425
|
+
taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
|
|
5680
5426
|
};
|
|
5681
5427
|
};
|
|
5682
5428
|
const deserializeAws_json1_1DescribeTasksResponse = (output, context) => {
|
|
5683
5429
|
return {
|
|
5684
|
-
failures: output.failures
|
|
5685
|
-
|
|
5686
|
-
: undefined,
|
|
5687
|
-
tasks: output.tasks !== undefined && output.tasks !== null
|
|
5688
|
-
? deserializeAws_json1_1Tasks(output.tasks, context)
|
|
5689
|
-
: undefined,
|
|
5430
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5431
|
+
tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
|
|
5690
5432
|
};
|
|
5691
5433
|
};
|
|
5692
5434
|
const deserializeAws_json1_1Device = (output, context) => {
|
|
5693
5435
|
return {
|
|
5694
5436
|
containerPath: (0, smithy_client_1.expectString)(output.containerPath),
|
|
5695
5437
|
hostPath: (0, smithy_client_1.expectString)(output.hostPath),
|
|
5696
|
-
permissions: output.permissions
|
|
5438
|
+
permissions: output.permissions != null
|
|
5697
5439
|
? deserializeAws_json1_1DeviceCgroupPermissions(output.permissions, context)
|
|
5698
5440
|
: undefined,
|
|
5699
5441
|
};
|
|
@@ -5741,12 +5483,8 @@ const deserializeAws_json1_1DockerVolumeConfiguration = (output, context) => {
|
|
|
5741
5483
|
return {
|
|
5742
5484
|
autoprovision: (0, smithy_client_1.expectBoolean)(output.autoprovision),
|
|
5743
5485
|
driver: (0, smithy_client_1.expectString)(output.driver),
|
|
5744
|
-
driverOpts: output.driverOpts
|
|
5745
|
-
|
|
5746
|
-
: undefined,
|
|
5747
|
-
labels: output.labels !== undefined && output.labels !== null
|
|
5748
|
-
? deserializeAws_json1_1StringMap(output.labels, context)
|
|
5749
|
-
: undefined,
|
|
5486
|
+
driverOpts: output.driverOpts != null ? deserializeAws_json1_1StringMap(output.driverOpts, context) : undefined,
|
|
5487
|
+
labels: output.labels != null ? deserializeAws_json1_1StringMap(output.labels, context) : undefined,
|
|
5750
5488
|
scope: (0, smithy_client_1.expectString)(output.scope),
|
|
5751
5489
|
};
|
|
5752
5490
|
};
|
|
@@ -5758,7 +5496,7 @@ const deserializeAws_json1_1EFSAuthorizationConfig = (output, context) => {
|
|
|
5758
5496
|
};
|
|
5759
5497
|
const deserializeAws_json1_1EFSVolumeConfiguration = (output, context) => {
|
|
5760
5498
|
return {
|
|
5761
|
-
authorizationConfig: output.authorizationConfig
|
|
5499
|
+
authorizationConfig: output.authorizationConfig != null
|
|
5762
5500
|
? deserializeAws_json1_1EFSAuthorizationConfig(output.authorizationConfig, context)
|
|
5763
5501
|
: undefined,
|
|
5764
5502
|
fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
|
|
@@ -5803,7 +5541,7 @@ const deserializeAws_json1_1EphemeralStorage = (output, context) => {
|
|
|
5803
5541
|
const deserializeAws_json1_1ExecuteCommandConfiguration = (output, context) => {
|
|
5804
5542
|
return {
|
|
5805
5543
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
5806
|
-
logConfiguration: output.logConfiguration
|
|
5544
|
+
logConfiguration: output.logConfiguration != null
|
|
5807
5545
|
? deserializeAws_json1_1ExecuteCommandLogConfiguration(output.logConfiguration, context)
|
|
5808
5546
|
: undefined,
|
|
5809
5547
|
logging: (0, smithy_client_1.expectString)(output.logging),
|
|
@@ -5824,9 +5562,7 @@ const deserializeAws_json1_1ExecuteCommandResponse = (output, context) => {
|
|
|
5824
5562
|
containerArn: (0, smithy_client_1.expectString)(output.containerArn),
|
|
5825
5563
|
containerName: (0, smithy_client_1.expectString)(output.containerName),
|
|
5826
5564
|
interactive: (0, smithy_client_1.expectBoolean)(output.interactive),
|
|
5827
|
-
session: output.session
|
|
5828
|
-
? deserializeAws_json1_1Session(output.session, context)
|
|
5829
|
-
: undefined,
|
|
5565
|
+
session: output.session != null ? deserializeAws_json1_1Session(output.session, context) : undefined,
|
|
5830
5566
|
taskArn: (0, smithy_client_1.expectString)(output.taskArn),
|
|
5831
5567
|
};
|
|
5832
5568
|
};
|
|
@@ -5850,7 +5586,7 @@ const deserializeAws_json1_1Failures = (output, context) => {
|
|
|
5850
5586
|
};
|
|
5851
5587
|
const deserializeAws_json1_1FirelensConfiguration = (output, context) => {
|
|
5852
5588
|
return {
|
|
5853
|
-
options: output.options
|
|
5589
|
+
options: output.options != null
|
|
5854
5590
|
? deserializeAws_json1_1FirelensConfigurationOptionsMap(output.options, context)
|
|
5855
5591
|
: undefined,
|
|
5856
5592
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -5875,7 +5611,7 @@ const deserializeAws_json1_1FSxWindowsFileServerAuthorizationConfig = (output, c
|
|
|
5875
5611
|
};
|
|
5876
5612
|
const deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = (output, context) => {
|
|
5877
5613
|
return {
|
|
5878
|
-
authorizationConfig: output.authorizationConfig
|
|
5614
|
+
authorizationConfig: output.authorizationConfig != null
|
|
5879
5615
|
? deserializeAws_json1_1FSxWindowsFileServerAuthorizationConfig(output.authorizationConfig, context)
|
|
5880
5616
|
: undefined,
|
|
5881
5617
|
fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
|
|
@@ -5895,9 +5631,7 @@ const deserializeAws_json1_1GpuIds = (output, context) => {
|
|
|
5895
5631
|
};
|
|
5896
5632
|
const deserializeAws_json1_1HealthCheck = (output, context) => {
|
|
5897
5633
|
return {
|
|
5898
|
-
command: output.command
|
|
5899
|
-
? deserializeAws_json1_1StringList(output.command, context)
|
|
5900
|
-
: undefined,
|
|
5634
|
+
command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
|
|
5901
5635
|
interval: (0, smithy_client_1.expectInt32)(output.interval),
|
|
5902
5636
|
retries: (0, smithy_client_1.expectInt32)(output.retries),
|
|
5903
5637
|
startPeriod: (0, smithy_client_1.expectInt32)(output.startPeriod),
|
|
@@ -5962,10 +5696,10 @@ const deserializeAws_json1_1InferenceAccelerators = (output, context) => {
|
|
|
5962
5696
|
};
|
|
5963
5697
|
const deserializeAws_json1_1InstanceHealthCheckResult = (output, context) => {
|
|
5964
5698
|
return {
|
|
5965
|
-
lastStatusChange: output.lastStatusChange
|
|
5699
|
+
lastStatusChange: output.lastStatusChange != null
|
|
5966
5700
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStatusChange)))
|
|
5967
5701
|
: undefined,
|
|
5968
|
-
lastUpdated: output.lastUpdated
|
|
5702
|
+
lastUpdated: output.lastUpdated != null
|
|
5969
5703
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5970
5704
|
: undefined,
|
|
5971
5705
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -5990,12 +5724,8 @@ const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
|
5990
5724
|
};
|
|
5991
5725
|
const deserializeAws_json1_1KernelCapabilities = (output, context) => {
|
|
5992
5726
|
return {
|
|
5993
|
-
add: output.add
|
|
5994
|
-
|
|
5995
|
-
: undefined,
|
|
5996
|
-
drop: output.drop !== undefined && output.drop !== null
|
|
5997
|
-
? deserializeAws_json1_1StringList(output.drop, context)
|
|
5998
|
-
: undefined,
|
|
5727
|
+
add: output.add != null ? deserializeAws_json1_1StringList(output.add, context) : undefined,
|
|
5728
|
+
drop: output.drop != null ? deserializeAws_json1_1StringList(output.drop, context) : undefined,
|
|
5999
5729
|
};
|
|
6000
5730
|
};
|
|
6001
5731
|
const deserializeAws_json1_1KeyValuePair = (output, context) => {
|
|
@@ -6011,48 +5741,36 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
6011
5741
|
};
|
|
6012
5742
|
const deserializeAws_json1_1LinuxParameters = (output, context) => {
|
|
6013
5743
|
return {
|
|
6014
|
-
capabilities: output.capabilities
|
|
6015
|
-
|
|
6016
|
-
: undefined,
|
|
6017
|
-
devices: output.devices !== undefined && output.devices !== null
|
|
6018
|
-
? deserializeAws_json1_1DevicesList(output.devices, context)
|
|
6019
|
-
: undefined,
|
|
5744
|
+
capabilities: output.capabilities != null ? deserializeAws_json1_1KernelCapabilities(output.capabilities, context) : undefined,
|
|
5745
|
+
devices: output.devices != null ? deserializeAws_json1_1DevicesList(output.devices, context) : undefined,
|
|
6020
5746
|
initProcessEnabled: (0, smithy_client_1.expectBoolean)(output.initProcessEnabled),
|
|
6021
5747
|
maxSwap: (0, smithy_client_1.expectInt32)(output.maxSwap),
|
|
6022
5748
|
sharedMemorySize: (0, smithy_client_1.expectInt32)(output.sharedMemorySize),
|
|
6023
5749
|
swappiness: (0, smithy_client_1.expectInt32)(output.swappiness),
|
|
6024
|
-
tmpfs: output.tmpfs
|
|
6025
|
-
? deserializeAws_json1_1TmpfsList(output.tmpfs, context)
|
|
6026
|
-
: undefined,
|
|
5750
|
+
tmpfs: output.tmpfs != null ? deserializeAws_json1_1TmpfsList(output.tmpfs, context) : undefined,
|
|
6027
5751
|
};
|
|
6028
5752
|
};
|
|
6029
5753
|
const deserializeAws_json1_1ListAccountSettingsResponse = (output, context) => {
|
|
6030
5754
|
return {
|
|
6031
5755
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6032
|
-
settings: output.settings
|
|
6033
|
-
? deserializeAws_json1_1Settings(output.settings, context)
|
|
6034
|
-
: undefined,
|
|
5756
|
+
settings: output.settings != null ? deserializeAws_json1_1Settings(output.settings, context) : undefined,
|
|
6035
5757
|
};
|
|
6036
5758
|
};
|
|
6037
5759
|
const deserializeAws_json1_1ListAttributesResponse = (output, context) => {
|
|
6038
5760
|
return {
|
|
6039
|
-
attributes: output.attributes
|
|
6040
|
-
? deserializeAws_json1_1Attributes(output.attributes, context)
|
|
6041
|
-
: undefined,
|
|
5761
|
+
attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
|
|
6042
5762
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6043
5763
|
};
|
|
6044
5764
|
};
|
|
6045
5765
|
const deserializeAws_json1_1ListClustersResponse = (output, context) => {
|
|
6046
5766
|
return {
|
|
6047
|
-
clusterArns: output.clusterArns
|
|
6048
|
-
? deserializeAws_json1_1StringList(output.clusterArns, context)
|
|
6049
|
-
: undefined,
|
|
5767
|
+
clusterArns: output.clusterArns != null ? deserializeAws_json1_1StringList(output.clusterArns, context) : undefined,
|
|
6050
5768
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6051
5769
|
};
|
|
6052
5770
|
};
|
|
6053
5771
|
const deserializeAws_json1_1ListContainerInstancesResponse = (output, context) => {
|
|
6054
5772
|
return {
|
|
6055
|
-
containerInstanceArns: output.containerInstanceArns
|
|
5773
|
+
containerInstanceArns: output.containerInstanceArns != null
|
|
6056
5774
|
? deserializeAws_json1_1StringList(output.containerInstanceArns, context)
|
|
6057
5775
|
: undefined,
|
|
6058
5776
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -6061,28 +5779,24 @@ const deserializeAws_json1_1ListContainerInstancesResponse = (output, context) =
|
|
|
6061
5779
|
const deserializeAws_json1_1ListServicesResponse = (output, context) => {
|
|
6062
5780
|
return {
|
|
6063
5781
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6064
|
-
serviceArns: output.serviceArns
|
|
6065
|
-
? deserializeAws_json1_1StringList(output.serviceArns, context)
|
|
6066
|
-
: undefined,
|
|
5782
|
+
serviceArns: output.serviceArns != null ? deserializeAws_json1_1StringList(output.serviceArns, context) : undefined,
|
|
6067
5783
|
};
|
|
6068
5784
|
};
|
|
6069
5785
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6070
5786
|
return {
|
|
6071
|
-
tags: output.tags
|
|
5787
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
6072
5788
|
};
|
|
6073
5789
|
};
|
|
6074
5790
|
const deserializeAws_json1_1ListTaskDefinitionFamiliesResponse = (output, context) => {
|
|
6075
5791
|
return {
|
|
6076
|
-
families: output.families
|
|
6077
|
-
? deserializeAws_json1_1StringList(output.families, context)
|
|
6078
|
-
: undefined,
|
|
5792
|
+
families: output.families != null ? deserializeAws_json1_1StringList(output.families, context) : undefined,
|
|
6079
5793
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6080
5794
|
};
|
|
6081
5795
|
};
|
|
6082
5796
|
const deserializeAws_json1_1ListTaskDefinitionsResponse = (output, context) => {
|
|
6083
5797
|
return {
|
|
6084
5798
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6085
|
-
taskDefinitionArns: output.taskDefinitionArns
|
|
5799
|
+
taskDefinitionArns: output.taskDefinitionArns != null
|
|
6086
5800
|
? deserializeAws_json1_1StringList(output.taskDefinitionArns, context)
|
|
6087
5801
|
: undefined,
|
|
6088
5802
|
};
|
|
@@ -6090,9 +5804,7 @@ const deserializeAws_json1_1ListTaskDefinitionsResponse = (output, context) => {
|
|
|
6090
5804
|
const deserializeAws_json1_1ListTasksResponse = (output, context) => {
|
|
6091
5805
|
return {
|
|
6092
5806
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
6093
|
-
taskArns: output.taskArns
|
|
6094
|
-
? deserializeAws_json1_1StringList(output.taskArns, context)
|
|
6095
|
-
: undefined,
|
|
5807
|
+
taskArns: output.taskArns != null ? deserializeAws_json1_1StringList(output.taskArns, context) : undefined,
|
|
6096
5808
|
};
|
|
6097
5809
|
};
|
|
6098
5810
|
const deserializeAws_json1_1LoadBalancer = (output, context) => {
|
|
@@ -6117,12 +5829,8 @@ const deserializeAws_json1_1LoadBalancers = (output, context) => {
|
|
|
6117
5829
|
const deserializeAws_json1_1LogConfiguration = (output, context) => {
|
|
6118
5830
|
return {
|
|
6119
5831
|
logDriver: (0, smithy_client_1.expectString)(output.logDriver),
|
|
6120
|
-
options: output.options
|
|
6121
|
-
|
|
6122
|
-
: undefined,
|
|
6123
|
-
secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
|
|
6124
|
-
? deserializeAws_json1_1SecretList(output.secretOptions, context)
|
|
6125
|
-
: undefined,
|
|
5832
|
+
options: output.options != null ? deserializeAws_json1_1LogConfigurationOptionsMap(output.options, context) : undefined,
|
|
5833
|
+
secretOptions: output.secretOptions != null ? deserializeAws_json1_1SecretList(output.secretOptions, context) : undefined,
|
|
6126
5834
|
};
|
|
6127
5835
|
};
|
|
6128
5836
|
const deserializeAws_json1_1LogConfigurationOptionsMap = (output, context) => {
|
|
@@ -6138,7 +5846,7 @@ const deserializeAws_json1_1LogConfigurationOptionsMap = (output, context) => {
|
|
|
6138
5846
|
};
|
|
6139
5847
|
const deserializeAws_json1_1ManagedAgent = (output, context) => {
|
|
6140
5848
|
return {
|
|
6141
|
-
lastStartedAt: output.lastStartedAt
|
|
5849
|
+
lastStartedAt: output.lastStartedAt != null
|
|
6142
5850
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStartedAt)))
|
|
6143
5851
|
: undefined,
|
|
6144
5852
|
lastStatus: (0, smithy_client_1.expectString)(output.lastStatus),
|
|
@@ -6210,7 +5918,7 @@ const deserializeAws_json1_1NetworkBindings = (output, context) => {
|
|
|
6210
5918
|
};
|
|
6211
5919
|
const deserializeAws_json1_1NetworkConfiguration = (output, context) => {
|
|
6212
5920
|
return {
|
|
6213
|
-
awsvpcConfiguration: output.awsvpcConfiguration
|
|
5921
|
+
awsvpcConfiguration: output.awsvpcConfiguration != null
|
|
6214
5922
|
? deserializeAws_json1_1AwsVpcConfiguration(output.awsvpcConfiguration, context)
|
|
6215
5923
|
: undefined,
|
|
6216
5924
|
};
|
|
@@ -6303,7 +6011,7 @@ const deserializeAws_json1_1PortMappingList = (output, context) => {
|
|
|
6303
6011
|
const deserializeAws_json1_1ProxyConfiguration = (output, context) => {
|
|
6304
6012
|
return {
|
|
6305
6013
|
containerName: (0, smithy_client_1.expectString)(output.containerName),
|
|
6306
|
-
properties: output.properties
|
|
6014
|
+
properties: output.properties != null
|
|
6307
6015
|
? deserializeAws_json1_1ProxyConfigurationProperties(output.properties, context)
|
|
6308
6016
|
: undefined,
|
|
6309
6017
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -6322,45 +6030,35 @@ const deserializeAws_json1_1ProxyConfigurationProperties = (output, context) =>
|
|
|
6322
6030
|
};
|
|
6323
6031
|
const deserializeAws_json1_1PutAccountSettingDefaultResponse = (output, context) => {
|
|
6324
6032
|
return {
|
|
6325
|
-
setting: output.setting
|
|
6326
|
-
? deserializeAws_json1_1Setting(output.setting, context)
|
|
6327
|
-
: undefined,
|
|
6033
|
+
setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
|
|
6328
6034
|
};
|
|
6329
6035
|
};
|
|
6330
6036
|
const deserializeAws_json1_1PutAccountSettingResponse = (output, context) => {
|
|
6331
6037
|
return {
|
|
6332
|
-
setting: output.setting
|
|
6333
|
-
? deserializeAws_json1_1Setting(output.setting, context)
|
|
6334
|
-
: undefined,
|
|
6038
|
+
setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
|
|
6335
6039
|
};
|
|
6336
6040
|
};
|
|
6337
6041
|
const deserializeAws_json1_1PutAttributesResponse = (output, context) => {
|
|
6338
6042
|
return {
|
|
6339
|
-
attributes: output.attributes
|
|
6340
|
-
? deserializeAws_json1_1Attributes(output.attributes, context)
|
|
6341
|
-
: undefined,
|
|
6043
|
+
attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
|
|
6342
6044
|
};
|
|
6343
6045
|
};
|
|
6344
6046
|
const deserializeAws_json1_1PutClusterCapacityProvidersResponse = (output, context) => {
|
|
6345
6047
|
return {
|
|
6346
|
-
cluster: output.cluster
|
|
6347
|
-
? deserializeAws_json1_1Cluster(output.cluster, context)
|
|
6348
|
-
: undefined,
|
|
6048
|
+
cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
|
|
6349
6049
|
};
|
|
6350
6050
|
};
|
|
6351
6051
|
const deserializeAws_json1_1RegisterContainerInstanceResponse = (output, context) => {
|
|
6352
6052
|
return {
|
|
6353
|
-
containerInstance: output.containerInstance
|
|
6053
|
+
containerInstance: output.containerInstance != null
|
|
6354
6054
|
? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
|
|
6355
6055
|
: undefined,
|
|
6356
6056
|
};
|
|
6357
6057
|
};
|
|
6358
6058
|
const deserializeAws_json1_1RegisterTaskDefinitionResponse = (output, context) => {
|
|
6359
6059
|
return {
|
|
6360
|
-
tags: output.tags
|
|
6361
|
-
taskDefinition: output.taskDefinition
|
|
6362
|
-
? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
|
|
6363
|
-
: undefined,
|
|
6060
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
6061
|
+
taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
|
|
6364
6062
|
};
|
|
6365
6063
|
};
|
|
6366
6064
|
const deserializeAws_json1_1RepositoryCredentials = (output, context) => {
|
|
@@ -6385,9 +6083,7 @@ const deserializeAws_json1_1Resource = (output, context) => {
|
|
|
6385
6083
|
integerValue: (0, smithy_client_1.expectInt32)(output.integerValue),
|
|
6386
6084
|
longValue: (0, smithy_client_1.expectLong)(output.longValue),
|
|
6387
6085
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6388
|
-
stringSetValue: output.stringSetValue
|
|
6389
|
-
? deserializeAws_json1_1StringList(output.stringSetValue, context)
|
|
6390
|
-
: undefined,
|
|
6086
|
+
stringSetValue: output.stringSetValue != null ? deserializeAws_json1_1StringList(output.stringSetValue, context) : undefined,
|
|
6391
6087
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6392
6088
|
};
|
|
6393
6089
|
};
|
|
@@ -6431,12 +6127,8 @@ const deserializeAws_json1_1Resources = (output, context) => {
|
|
|
6431
6127
|
};
|
|
6432
6128
|
const deserializeAws_json1_1RunTaskResponse = (output, context) => {
|
|
6433
6129
|
return {
|
|
6434
|
-
failures: output.failures
|
|
6435
|
-
|
|
6436
|
-
: undefined,
|
|
6437
|
-
tasks: output.tasks !== undefined && output.tasks !== null
|
|
6438
|
-
? deserializeAws_json1_1Tasks(output.tasks, context)
|
|
6439
|
-
: undefined,
|
|
6130
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
6131
|
+
tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
|
|
6440
6132
|
};
|
|
6441
6133
|
};
|
|
6442
6134
|
const deserializeAws_json1_1RuntimePlatform = (output, context) => {
|
|
@@ -6475,42 +6167,34 @@ const deserializeAws_json1_1ServerException = (output, context) => {
|
|
|
6475
6167
|
};
|
|
6476
6168
|
const deserializeAws_json1_1Service = (output, context) => {
|
|
6477
6169
|
return {
|
|
6478
|
-
capacityProviderStrategy: output.capacityProviderStrategy
|
|
6170
|
+
capacityProviderStrategy: output.capacityProviderStrategy != null
|
|
6479
6171
|
? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
|
|
6480
6172
|
: undefined,
|
|
6481
6173
|
clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
|
|
6482
|
-
createdAt: output.createdAt
|
|
6483
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
6484
|
-
: undefined,
|
|
6174
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6485
6175
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
6486
|
-
deploymentConfiguration: output.deploymentConfiguration
|
|
6176
|
+
deploymentConfiguration: output.deploymentConfiguration != null
|
|
6487
6177
|
? deserializeAws_json1_1DeploymentConfiguration(output.deploymentConfiguration, context)
|
|
6488
6178
|
: undefined,
|
|
6489
|
-
deploymentController: output.deploymentController
|
|
6179
|
+
deploymentController: output.deploymentController != null
|
|
6490
6180
|
? deserializeAws_json1_1DeploymentController(output.deploymentController, context)
|
|
6491
6181
|
: undefined,
|
|
6492
|
-
deployments: output.deployments
|
|
6493
|
-
? deserializeAws_json1_1Deployments(output.deployments, context)
|
|
6494
|
-
: undefined,
|
|
6182
|
+
deployments: output.deployments != null ? deserializeAws_json1_1Deployments(output.deployments, context) : undefined,
|
|
6495
6183
|
desiredCount: (0, smithy_client_1.expectInt32)(output.desiredCount),
|
|
6496
6184
|
enableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.enableECSManagedTags),
|
|
6497
6185
|
enableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.enableExecuteCommand),
|
|
6498
|
-
events: output.events
|
|
6499
|
-
? deserializeAws_json1_1ServiceEvents(output.events, context)
|
|
6500
|
-
: undefined,
|
|
6186
|
+
events: output.events != null ? deserializeAws_json1_1ServiceEvents(output.events, context) : undefined,
|
|
6501
6187
|
healthCheckGracePeriodSeconds: (0, smithy_client_1.expectInt32)(output.healthCheckGracePeriodSeconds),
|
|
6502
6188
|
launchType: (0, smithy_client_1.expectString)(output.launchType),
|
|
6503
|
-
loadBalancers: output.loadBalancers
|
|
6504
|
-
|
|
6505
|
-
: undefined,
|
|
6506
|
-
networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
|
|
6189
|
+
loadBalancers: output.loadBalancers != null ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context) : undefined,
|
|
6190
|
+
networkConfiguration: output.networkConfiguration != null
|
|
6507
6191
|
? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
|
|
6508
6192
|
: undefined,
|
|
6509
6193
|
pendingCount: (0, smithy_client_1.expectInt32)(output.pendingCount),
|
|
6510
|
-
placementConstraints: output.placementConstraints
|
|
6194
|
+
placementConstraints: output.placementConstraints != null
|
|
6511
6195
|
? deserializeAws_json1_1PlacementConstraints(output.placementConstraints, context)
|
|
6512
6196
|
: undefined,
|
|
6513
|
-
placementStrategy: output.placementStrategy
|
|
6197
|
+
placementStrategy: output.placementStrategy != null
|
|
6514
6198
|
? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
|
|
6515
6199
|
: undefined,
|
|
6516
6200
|
platformFamily: (0, smithy_client_1.expectString)(output.platformFamily),
|
|
@@ -6521,22 +6205,18 @@ const deserializeAws_json1_1Service = (output, context) => {
|
|
|
6521
6205
|
schedulingStrategy: (0, smithy_client_1.expectString)(output.schedulingStrategy),
|
|
6522
6206
|
serviceArn: (0, smithy_client_1.expectString)(output.serviceArn),
|
|
6523
6207
|
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
6524
|
-
serviceRegistries: output.serviceRegistries
|
|
6208
|
+
serviceRegistries: output.serviceRegistries != null
|
|
6525
6209
|
? deserializeAws_json1_1ServiceRegistries(output.serviceRegistries, context)
|
|
6526
6210
|
: undefined,
|
|
6527
6211
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
6528
|
-
tags: output.tags
|
|
6212
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
6529
6213
|
taskDefinition: (0, smithy_client_1.expectString)(output.taskDefinition),
|
|
6530
|
-
taskSets: output.taskSets
|
|
6531
|
-
? deserializeAws_json1_1TaskSets(output.taskSets, context)
|
|
6532
|
-
: undefined,
|
|
6214
|
+
taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
|
|
6533
6215
|
};
|
|
6534
6216
|
};
|
|
6535
6217
|
const deserializeAws_json1_1ServiceEvent = (output, context) => {
|
|
6536
6218
|
return {
|
|
6537
|
-
createdAt: output.createdAt
|
|
6538
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
6539
|
-
: undefined,
|
|
6219
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6540
6220
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
6541
6221
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
6542
6222
|
};
|
|
@@ -6619,12 +6299,8 @@ const deserializeAws_json1_1Settings = (output, context) => {
|
|
|
6619
6299
|
};
|
|
6620
6300
|
const deserializeAws_json1_1StartTaskResponse = (output, context) => {
|
|
6621
6301
|
return {
|
|
6622
|
-
failures: output.failures
|
|
6623
|
-
|
|
6624
|
-
: undefined,
|
|
6625
|
-
tasks: output.tasks !== undefined && output.tasks !== null
|
|
6626
|
-
? deserializeAws_json1_1Tasks(output.tasks, context)
|
|
6627
|
-
: undefined,
|
|
6302
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
6303
|
+
tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
|
|
6628
6304
|
};
|
|
6629
6305
|
};
|
|
6630
6306
|
const deserializeAws_json1_1Statistics = (output, context) => {
|
|
@@ -6640,7 +6316,7 @@ const deserializeAws_json1_1Statistics = (output, context) => {
|
|
|
6640
6316
|
};
|
|
6641
6317
|
const deserializeAws_json1_1StopTaskResponse = (output, context) => {
|
|
6642
6318
|
return {
|
|
6643
|
-
task: output.task
|
|
6319
|
+
task: output.task != null ? deserializeAws_json1_1Task(output.task, context) : undefined,
|
|
6644
6320
|
};
|
|
6645
6321
|
};
|
|
6646
6322
|
const deserializeAws_json1_1StringList = (output, context) => {
|
|
@@ -6729,67 +6405,51 @@ const deserializeAws_json1_1TargetNotFoundException = (output, context) => {
|
|
|
6729
6405
|
};
|
|
6730
6406
|
const deserializeAws_json1_1Task = (output, context) => {
|
|
6731
6407
|
return {
|
|
6732
|
-
attachments: output.attachments
|
|
6733
|
-
|
|
6734
|
-
: undefined,
|
|
6735
|
-
attributes: output.attributes !== undefined && output.attributes !== null
|
|
6736
|
-
? deserializeAws_json1_1Attributes(output.attributes, context)
|
|
6737
|
-
: undefined,
|
|
6408
|
+
attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
|
|
6409
|
+
attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
|
|
6738
6410
|
availabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
6739
6411
|
capacityProviderName: (0, smithy_client_1.expectString)(output.capacityProviderName),
|
|
6740
6412
|
clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
|
|
6741
6413
|
connectivity: (0, smithy_client_1.expectString)(output.connectivity),
|
|
6742
|
-
connectivityAt: output.connectivityAt
|
|
6414
|
+
connectivityAt: output.connectivityAt != null
|
|
6743
6415
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.connectivityAt)))
|
|
6744
6416
|
: undefined,
|
|
6745
6417
|
containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
|
|
6746
|
-
containers: output.containers
|
|
6747
|
-
? deserializeAws_json1_1Containers(output.containers, context)
|
|
6748
|
-
: undefined,
|
|
6418
|
+
containers: output.containers != null ? deserializeAws_json1_1Containers(output.containers, context) : undefined,
|
|
6749
6419
|
cpu: (0, smithy_client_1.expectString)(output.cpu),
|
|
6750
|
-
createdAt: output.createdAt
|
|
6751
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
6752
|
-
: undefined,
|
|
6420
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6753
6421
|
desiredStatus: (0, smithy_client_1.expectString)(output.desiredStatus),
|
|
6754
6422
|
enableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.enableExecuteCommand),
|
|
6755
|
-
ephemeralStorage: output.ephemeralStorage
|
|
6423
|
+
ephemeralStorage: output.ephemeralStorage != null
|
|
6756
6424
|
? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
|
|
6757
6425
|
: undefined,
|
|
6758
|
-
executionStoppedAt: output.executionStoppedAt
|
|
6426
|
+
executionStoppedAt: output.executionStoppedAt != null
|
|
6759
6427
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.executionStoppedAt)))
|
|
6760
6428
|
: undefined,
|
|
6761
6429
|
group: (0, smithy_client_1.expectString)(output.group),
|
|
6762
6430
|
healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
|
|
6763
|
-
inferenceAccelerators: output.inferenceAccelerators
|
|
6431
|
+
inferenceAccelerators: output.inferenceAccelerators != null
|
|
6764
6432
|
? deserializeAws_json1_1InferenceAccelerators(output.inferenceAccelerators, context)
|
|
6765
6433
|
: undefined,
|
|
6766
6434
|
lastStatus: (0, smithy_client_1.expectString)(output.lastStatus),
|
|
6767
6435
|
launchType: (0, smithy_client_1.expectString)(output.launchType),
|
|
6768
6436
|
memory: (0, smithy_client_1.expectString)(output.memory),
|
|
6769
|
-
overrides: output.overrides
|
|
6770
|
-
? deserializeAws_json1_1TaskOverride(output.overrides, context)
|
|
6771
|
-
: undefined,
|
|
6437
|
+
overrides: output.overrides != null ? deserializeAws_json1_1TaskOverride(output.overrides, context) : undefined,
|
|
6772
6438
|
platformFamily: (0, smithy_client_1.expectString)(output.platformFamily),
|
|
6773
6439
|
platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
|
|
6774
|
-
pullStartedAt: output.pullStartedAt
|
|
6440
|
+
pullStartedAt: output.pullStartedAt != null
|
|
6775
6441
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pullStartedAt)))
|
|
6776
6442
|
: undefined,
|
|
6777
|
-
pullStoppedAt: output.pullStoppedAt
|
|
6443
|
+
pullStoppedAt: output.pullStoppedAt != null
|
|
6778
6444
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pullStoppedAt)))
|
|
6779
6445
|
: undefined,
|
|
6780
|
-
startedAt: output.startedAt
|
|
6781
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
|
|
6782
|
-
: undefined,
|
|
6446
|
+
startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
|
|
6783
6447
|
startedBy: (0, smithy_client_1.expectString)(output.startedBy),
|
|
6784
6448
|
stopCode: (0, smithy_client_1.expectString)(output.stopCode),
|
|
6785
|
-
stoppedAt: output.stoppedAt
|
|
6786
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppedAt)))
|
|
6787
|
-
: undefined,
|
|
6449
|
+
stoppedAt: output.stoppedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppedAt))) : undefined,
|
|
6788
6450
|
stoppedReason: (0, smithy_client_1.expectString)(output.stoppedReason),
|
|
6789
|
-
stoppingAt: output.stoppingAt
|
|
6790
|
-
|
|
6791
|
-
: undefined,
|
|
6792
|
-
tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
6451
|
+
stoppingAt: output.stoppingAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppingAt))) : undefined,
|
|
6452
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
6793
6453
|
taskArn: (0, smithy_client_1.expectString)(output.taskArn),
|
|
6794
6454
|
taskDefinitionArn: (0, smithy_client_1.expectString)(output.taskDefinitionArn),
|
|
6795
6455
|
version: (0, smithy_client_1.expectLong)(output.version),
|
|
@@ -6797,54 +6457,52 @@ const deserializeAws_json1_1Task = (output, context) => {
|
|
|
6797
6457
|
};
|
|
6798
6458
|
const deserializeAws_json1_1TaskDefinition = (output, context) => {
|
|
6799
6459
|
return {
|
|
6800
|
-
compatibilities: output.compatibilities
|
|
6460
|
+
compatibilities: output.compatibilities != null
|
|
6801
6461
|
? deserializeAws_json1_1CompatibilityList(output.compatibilities, context)
|
|
6802
6462
|
: undefined,
|
|
6803
|
-
containerDefinitions: output.containerDefinitions
|
|
6463
|
+
containerDefinitions: output.containerDefinitions != null
|
|
6804
6464
|
? deserializeAws_json1_1ContainerDefinitions(output.containerDefinitions, context)
|
|
6805
6465
|
: undefined,
|
|
6806
6466
|
cpu: (0, smithy_client_1.expectString)(output.cpu),
|
|
6807
|
-
deregisteredAt: output.deregisteredAt
|
|
6467
|
+
deregisteredAt: output.deregisteredAt != null
|
|
6808
6468
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deregisteredAt)))
|
|
6809
6469
|
: undefined,
|
|
6810
|
-
ephemeralStorage: output.ephemeralStorage
|
|
6470
|
+
ephemeralStorage: output.ephemeralStorage != null
|
|
6811
6471
|
? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
|
|
6812
6472
|
: undefined,
|
|
6813
6473
|
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
6814
6474
|
family: (0, smithy_client_1.expectString)(output.family),
|
|
6815
|
-
inferenceAccelerators: output.inferenceAccelerators
|
|
6475
|
+
inferenceAccelerators: output.inferenceAccelerators != null
|
|
6816
6476
|
? deserializeAws_json1_1InferenceAccelerators(output.inferenceAccelerators, context)
|
|
6817
6477
|
: undefined,
|
|
6818
6478
|
ipcMode: (0, smithy_client_1.expectString)(output.ipcMode),
|
|
6819
6479
|
memory: (0, smithy_client_1.expectString)(output.memory),
|
|
6820
6480
|
networkMode: (0, smithy_client_1.expectString)(output.networkMode),
|
|
6821
6481
|
pidMode: (0, smithy_client_1.expectString)(output.pidMode),
|
|
6822
|
-
placementConstraints: output.placementConstraints
|
|
6482
|
+
placementConstraints: output.placementConstraints != null
|
|
6823
6483
|
? deserializeAws_json1_1TaskDefinitionPlacementConstraints(output.placementConstraints, context)
|
|
6824
6484
|
: undefined,
|
|
6825
|
-
proxyConfiguration: output.proxyConfiguration
|
|
6485
|
+
proxyConfiguration: output.proxyConfiguration != null
|
|
6826
6486
|
? deserializeAws_json1_1ProxyConfiguration(output.proxyConfiguration, context)
|
|
6827
6487
|
: undefined,
|
|
6828
|
-
registeredAt: output.registeredAt
|
|
6488
|
+
registeredAt: output.registeredAt != null
|
|
6829
6489
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
|
|
6830
6490
|
: undefined,
|
|
6831
6491
|
registeredBy: (0, smithy_client_1.expectString)(output.registeredBy),
|
|
6832
|
-
requiresAttributes: output.requiresAttributes
|
|
6492
|
+
requiresAttributes: output.requiresAttributes != null
|
|
6833
6493
|
? deserializeAws_json1_1RequiresAttributes(output.requiresAttributes, context)
|
|
6834
6494
|
: undefined,
|
|
6835
|
-
requiresCompatibilities: output.requiresCompatibilities
|
|
6495
|
+
requiresCompatibilities: output.requiresCompatibilities != null
|
|
6836
6496
|
? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
|
|
6837
6497
|
: undefined,
|
|
6838
6498
|
revision: (0, smithy_client_1.expectInt32)(output.revision),
|
|
6839
|
-
runtimePlatform: output.runtimePlatform
|
|
6499
|
+
runtimePlatform: output.runtimePlatform != null
|
|
6840
6500
|
? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
|
|
6841
6501
|
: undefined,
|
|
6842
6502
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
6843
6503
|
taskDefinitionArn: (0, smithy_client_1.expectString)(output.taskDefinitionArn),
|
|
6844
6504
|
taskRoleArn: (0, smithy_client_1.expectString)(output.taskRoleArn),
|
|
6845
|
-
volumes: output.volumes
|
|
6846
|
-
? deserializeAws_json1_1VolumeList(output.volumes, context)
|
|
6847
|
-
: undefined,
|
|
6505
|
+
volumes: output.volumes != null ? deserializeAws_json1_1VolumeList(output.volumes, context) : undefined,
|
|
6848
6506
|
};
|
|
6849
6507
|
};
|
|
6850
6508
|
const deserializeAws_json1_1TaskDefinitionPlacementConstraint = (output, context) => {
|
|
@@ -6866,15 +6524,15 @@ const deserializeAws_json1_1TaskDefinitionPlacementConstraints = (output, contex
|
|
|
6866
6524
|
};
|
|
6867
6525
|
const deserializeAws_json1_1TaskOverride = (output, context) => {
|
|
6868
6526
|
return {
|
|
6869
|
-
containerOverrides: output.containerOverrides
|
|
6527
|
+
containerOverrides: output.containerOverrides != null
|
|
6870
6528
|
? deserializeAws_json1_1ContainerOverrides(output.containerOverrides, context)
|
|
6871
6529
|
: undefined,
|
|
6872
6530
|
cpu: (0, smithy_client_1.expectString)(output.cpu),
|
|
6873
|
-
ephemeralStorage: output.ephemeralStorage
|
|
6531
|
+
ephemeralStorage: output.ephemeralStorage != null
|
|
6874
6532
|
? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
|
|
6875
6533
|
: undefined,
|
|
6876
6534
|
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
6877
|
-
inferenceAcceleratorOverrides: output.inferenceAcceleratorOverrides
|
|
6535
|
+
inferenceAcceleratorOverrides: output.inferenceAcceleratorOverrides != null
|
|
6878
6536
|
? deserializeAws_json1_1InferenceAcceleratorOverrides(output.inferenceAcceleratorOverrides, context)
|
|
6879
6537
|
: undefined,
|
|
6880
6538
|
memory: (0, smithy_client_1.expectString)(output.memory),
|
|
@@ -6894,46 +6552,38 @@ const deserializeAws_json1_1Tasks = (output, context) => {
|
|
|
6894
6552
|
};
|
|
6895
6553
|
const deserializeAws_json1_1TaskSet = (output, context) => {
|
|
6896
6554
|
return {
|
|
6897
|
-
capacityProviderStrategy: output.capacityProviderStrategy
|
|
6555
|
+
capacityProviderStrategy: output.capacityProviderStrategy != null
|
|
6898
6556
|
? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
|
|
6899
6557
|
: undefined,
|
|
6900
6558
|
clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
|
|
6901
6559
|
computedDesiredCount: (0, smithy_client_1.expectInt32)(output.computedDesiredCount),
|
|
6902
|
-
createdAt: output.createdAt
|
|
6903
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
6904
|
-
: undefined,
|
|
6560
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6905
6561
|
externalId: (0, smithy_client_1.expectString)(output.externalId),
|
|
6906
6562
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
6907
6563
|
launchType: (0, smithy_client_1.expectString)(output.launchType),
|
|
6908
|
-
loadBalancers: output.loadBalancers
|
|
6909
|
-
|
|
6910
|
-
: undefined,
|
|
6911
|
-
networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
|
|
6564
|
+
loadBalancers: output.loadBalancers != null ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context) : undefined,
|
|
6565
|
+
networkConfiguration: output.networkConfiguration != null
|
|
6912
6566
|
? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
|
|
6913
6567
|
: undefined,
|
|
6914
6568
|
pendingCount: (0, smithy_client_1.expectInt32)(output.pendingCount),
|
|
6915
6569
|
platformFamily: (0, smithy_client_1.expectString)(output.platformFamily),
|
|
6916
6570
|
platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
|
|
6917
6571
|
runningCount: (0, smithy_client_1.expectInt32)(output.runningCount),
|
|
6918
|
-
scale: output.scale
|
|
6919
|
-
? deserializeAws_json1_1Scale(output.scale, context)
|
|
6920
|
-
: undefined,
|
|
6572
|
+
scale: output.scale != null ? deserializeAws_json1_1Scale(output.scale, context) : undefined,
|
|
6921
6573
|
serviceArn: (0, smithy_client_1.expectString)(output.serviceArn),
|
|
6922
|
-
serviceRegistries: output.serviceRegistries
|
|
6574
|
+
serviceRegistries: output.serviceRegistries != null
|
|
6923
6575
|
? deserializeAws_json1_1ServiceRegistries(output.serviceRegistries, context)
|
|
6924
6576
|
: undefined,
|
|
6925
6577
|
stabilityStatus: (0, smithy_client_1.expectString)(output.stabilityStatus),
|
|
6926
|
-
stabilityStatusAt: output.stabilityStatusAt
|
|
6578
|
+
stabilityStatusAt: output.stabilityStatusAt != null
|
|
6927
6579
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stabilityStatusAt)))
|
|
6928
6580
|
: undefined,
|
|
6929
6581
|
startedBy: (0, smithy_client_1.expectString)(output.startedBy),
|
|
6930
6582
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
6931
|
-
tags: output.tags
|
|
6583
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
6932
6584
|
taskDefinition: (0, smithy_client_1.expectString)(output.taskDefinition),
|
|
6933
6585
|
taskSetArn: (0, smithy_client_1.expectString)(output.taskSetArn),
|
|
6934
|
-
updatedAt: output.updatedAt
|
|
6935
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
6936
|
-
: undefined,
|
|
6586
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
6937
6587
|
};
|
|
6938
6588
|
};
|
|
6939
6589
|
const deserializeAws_json1_1TaskSetNotFoundException = (output, context) => {
|
|
@@ -6955,9 +6605,7 @@ const deserializeAws_json1_1TaskSets = (output, context) => {
|
|
|
6955
6605
|
const deserializeAws_json1_1Tmpfs = (output, context) => {
|
|
6956
6606
|
return {
|
|
6957
6607
|
containerPath: (0, smithy_client_1.expectString)(output.containerPath),
|
|
6958
|
-
mountOptions: output.mountOptions
|
|
6959
|
-
? deserializeAws_json1_1StringList(output.mountOptions, context)
|
|
6960
|
-
: undefined,
|
|
6608
|
+
mountOptions: output.mountOptions != null ? deserializeAws_json1_1StringList(output.mountOptions, context) : undefined,
|
|
6961
6609
|
size: (0, smithy_client_1.expectInt32)(output.size),
|
|
6962
6610
|
};
|
|
6963
6611
|
};
|
|
@@ -7000,40 +6648,34 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
7000
6648
|
};
|
|
7001
6649
|
const deserializeAws_json1_1UpdateCapacityProviderResponse = (output, context) => {
|
|
7002
6650
|
return {
|
|
7003
|
-
capacityProvider: output.capacityProvider
|
|
6651
|
+
capacityProvider: output.capacityProvider != null
|
|
7004
6652
|
? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
|
|
7005
6653
|
: undefined,
|
|
7006
6654
|
};
|
|
7007
6655
|
};
|
|
7008
6656
|
const deserializeAws_json1_1UpdateClusterResponse = (output, context) => {
|
|
7009
6657
|
return {
|
|
7010
|
-
cluster: output.cluster
|
|
7011
|
-
? deserializeAws_json1_1Cluster(output.cluster, context)
|
|
7012
|
-
: undefined,
|
|
6658
|
+
cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
|
|
7013
6659
|
};
|
|
7014
6660
|
};
|
|
7015
6661
|
const deserializeAws_json1_1UpdateClusterSettingsResponse = (output, context) => {
|
|
7016
6662
|
return {
|
|
7017
|
-
cluster: output.cluster
|
|
7018
|
-
? deserializeAws_json1_1Cluster(output.cluster, context)
|
|
7019
|
-
: undefined,
|
|
6663
|
+
cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
|
|
7020
6664
|
};
|
|
7021
6665
|
};
|
|
7022
6666
|
const deserializeAws_json1_1UpdateContainerAgentResponse = (output, context) => {
|
|
7023
6667
|
return {
|
|
7024
|
-
containerInstance: output.containerInstance
|
|
6668
|
+
containerInstance: output.containerInstance != null
|
|
7025
6669
|
? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
|
|
7026
6670
|
: undefined,
|
|
7027
6671
|
};
|
|
7028
6672
|
};
|
|
7029
6673
|
const deserializeAws_json1_1UpdateContainerInstancesStateResponse = (output, context) => {
|
|
7030
6674
|
return {
|
|
7031
|
-
containerInstances: output.containerInstances
|
|
6675
|
+
containerInstances: output.containerInstances != null
|
|
7032
6676
|
? deserializeAws_json1_1ContainerInstances(output.containerInstances, context)
|
|
7033
6677
|
: undefined,
|
|
7034
|
-
failures: output.failures
|
|
7035
|
-
? deserializeAws_json1_1Failures(output.failures, context)
|
|
7036
|
-
: undefined,
|
|
6678
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
7037
6679
|
};
|
|
7038
6680
|
};
|
|
7039
6681
|
const deserializeAws_json1_1UpdateInProgressException = (output, context) => {
|
|
@@ -7043,23 +6685,17 @@ const deserializeAws_json1_1UpdateInProgressException = (output, context) => {
|
|
|
7043
6685
|
};
|
|
7044
6686
|
const deserializeAws_json1_1UpdateServicePrimaryTaskSetResponse = (output, context) => {
|
|
7045
6687
|
return {
|
|
7046
|
-
taskSet: output.taskSet
|
|
7047
|
-
? deserializeAws_json1_1TaskSet(output.taskSet, context)
|
|
7048
|
-
: undefined,
|
|
6688
|
+
taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
|
|
7049
6689
|
};
|
|
7050
6690
|
};
|
|
7051
6691
|
const deserializeAws_json1_1UpdateServiceResponse = (output, context) => {
|
|
7052
6692
|
return {
|
|
7053
|
-
service: output.service
|
|
7054
|
-
? deserializeAws_json1_1Service(output.service, context)
|
|
7055
|
-
: undefined,
|
|
6693
|
+
service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
|
|
7056
6694
|
};
|
|
7057
6695
|
};
|
|
7058
6696
|
const deserializeAws_json1_1UpdateTaskSetResponse = (output, context) => {
|
|
7059
6697
|
return {
|
|
7060
|
-
taskSet: output.taskSet
|
|
7061
|
-
? deserializeAws_json1_1TaskSet(output.taskSet, context)
|
|
7062
|
-
: undefined,
|
|
6698
|
+
taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
|
|
7063
6699
|
};
|
|
7064
6700
|
};
|
|
7065
6701
|
const deserializeAws_json1_1VersionInfo = (output, context) => {
|
|
@@ -7071,19 +6707,16 @@ const deserializeAws_json1_1VersionInfo = (output, context) => {
|
|
|
7071
6707
|
};
|
|
7072
6708
|
const deserializeAws_json1_1Volume = (output, context) => {
|
|
7073
6709
|
return {
|
|
7074
|
-
dockerVolumeConfiguration: output.dockerVolumeConfiguration
|
|
6710
|
+
dockerVolumeConfiguration: output.dockerVolumeConfiguration != null
|
|
7075
6711
|
? deserializeAws_json1_1DockerVolumeConfiguration(output.dockerVolumeConfiguration, context)
|
|
7076
6712
|
: undefined,
|
|
7077
|
-
efsVolumeConfiguration: output.efsVolumeConfiguration
|
|
6713
|
+
efsVolumeConfiguration: output.efsVolumeConfiguration != null
|
|
7078
6714
|
? deserializeAws_json1_1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
|
|
7079
6715
|
: undefined,
|
|
7080
|
-
fsxWindowsFileServerVolumeConfiguration: output.fsxWindowsFileServerVolumeConfiguration
|
|
7081
|
-
output.fsxWindowsFileServerVolumeConfiguration !== null
|
|
6716
|
+
fsxWindowsFileServerVolumeConfiguration: output.fsxWindowsFileServerVolumeConfiguration != null
|
|
7082
6717
|
? deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration(output.fsxWindowsFileServerVolumeConfiguration, context)
|
|
7083
6718
|
: undefined,
|
|
7084
|
-
host: output.host
|
|
7085
|
-
? deserializeAws_json1_1HostVolumeProperties(output.host, context)
|
|
7086
|
-
: undefined,
|
|
6719
|
+
host: output.host != null ? deserializeAws_json1_1HostVolumeProperties(output.host, context) : undefined,
|
|
7087
6720
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
7088
6721
|
};
|
|
7089
6722
|
};
|
|
@@ -7177,5 +6810,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7177
6810
|
if (data["__type"] !== undefined) {
|
|
7178
6811
|
return sanitizeErrorCode(data["__type"]);
|
|
7179
6812
|
}
|
|
7180
|
-
return "";
|
|
7181
6813
|
};
|