@aws-sdk/client-translate 3.121.0 → 3.130.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 CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-translate
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-translate
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -997,113 +997,105 @@ const serializeAws_json1_1CreateParallelDataRequest = (input, context) => {
997
997
  var _a;
998
998
  return {
999
999
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1000
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1001
- ...(input.EncryptionKey !== undefined &&
1002
- input.EncryptionKey !== null && {
1000
+ ...(input.Description != null && { Description: input.Description }),
1001
+ ...(input.EncryptionKey != null && {
1003
1002
  EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1004
1003
  }),
1005
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1006
- ...(input.ParallelDataConfig !== undefined &&
1007
- input.ParallelDataConfig !== null && {
1004
+ ...(input.Name != null && { Name: input.Name }),
1005
+ ...(input.ParallelDataConfig != null && {
1008
1006
  ParallelDataConfig: serializeAws_json1_1ParallelDataConfig(input.ParallelDataConfig, context),
1009
1007
  }),
1010
1008
  };
1011
1009
  };
1012
1010
  const serializeAws_json1_1DeleteParallelDataRequest = (input, context) => {
1013
1011
  return {
1014
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1012
+ ...(input.Name != null && { Name: input.Name }),
1015
1013
  };
1016
1014
  };
1017
1015
  const serializeAws_json1_1DeleteTerminologyRequest = (input, context) => {
1018
1016
  return {
1019
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1017
+ ...(input.Name != null && { Name: input.Name }),
1020
1018
  };
1021
1019
  };
1022
1020
  const serializeAws_json1_1DescribeTextTranslationJobRequest = (input, context) => {
1023
1021
  return {
1024
- ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
1022
+ ...(input.JobId != null && { JobId: input.JobId }),
1025
1023
  };
1026
1024
  };
1027
1025
  const serializeAws_json1_1EncryptionKey = (input, context) => {
1028
1026
  return {
1029
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
1030
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
1027
+ ...(input.Id != null && { Id: input.Id }),
1028
+ ...(input.Type != null && { Type: input.Type }),
1031
1029
  };
1032
1030
  };
1033
1031
  const serializeAws_json1_1GetParallelDataRequest = (input, context) => {
1034
1032
  return {
1035
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1033
+ ...(input.Name != null && { Name: input.Name }),
1036
1034
  };
1037
1035
  };
1038
1036
  const serializeAws_json1_1GetTerminologyRequest = (input, context) => {
1039
1037
  return {
1040
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1041
- ...(input.TerminologyDataFormat !== undefined &&
1042
- input.TerminologyDataFormat !== null && { TerminologyDataFormat: input.TerminologyDataFormat }),
1038
+ ...(input.Name != null && { Name: input.Name }),
1039
+ ...(input.TerminologyDataFormat != null && { TerminologyDataFormat: input.TerminologyDataFormat }),
1043
1040
  };
1044
1041
  };
1045
1042
  const serializeAws_json1_1ImportTerminologyRequest = (input, context) => {
1046
1043
  return {
1047
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1048
- ...(input.EncryptionKey !== undefined &&
1049
- input.EncryptionKey !== null && {
1044
+ ...(input.Description != null && { Description: input.Description }),
1045
+ ...(input.EncryptionKey != null && {
1050
1046
  EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1051
1047
  }),
1052
- ...(input.MergeStrategy !== undefined && input.MergeStrategy !== null && { MergeStrategy: input.MergeStrategy }),
1053
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1054
- ...(input.TerminologyData !== undefined &&
1055
- input.TerminologyData !== null && {
1048
+ ...(input.MergeStrategy != null && { MergeStrategy: input.MergeStrategy }),
1049
+ ...(input.Name != null && { Name: input.Name }),
1050
+ ...(input.TerminologyData != null && {
1056
1051
  TerminologyData: serializeAws_json1_1TerminologyData(input.TerminologyData, context),
1057
1052
  }),
1058
1053
  };
1059
1054
  };
1060
1055
  const serializeAws_json1_1InputDataConfig = (input, context) => {
1061
1056
  return {
1062
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
1063
- ...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
1057
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
1058
+ ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1064
1059
  };
1065
1060
  };
1066
1061
  const serializeAws_json1_1ListLanguagesRequest = (input, context) => {
1067
1062
  return {
1068
- ...(input.DisplayLanguageCode !== undefined &&
1069
- input.DisplayLanguageCode !== null && { DisplayLanguageCode: input.DisplayLanguageCode }),
1070
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1071
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1063
+ ...(input.DisplayLanguageCode != null && { DisplayLanguageCode: input.DisplayLanguageCode }),
1064
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1065
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1072
1066
  };
1073
1067
  };
1074
1068
  const serializeAws_json1_1ListParallelDataRequest = (input, context) => {
1075
1069
  return {
1076
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1077
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1070
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1071
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1078
1072
  };
1079
1073
  };
1080
1074
  const serializeAws_json1_1ListTerminologiesRequest = (input, context) => {
1081
1075
  return {
1082
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1083
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1076
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1077
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1084
1078
  };
1085
1079
  };
1086
1080
  const serializeAws_json1_1ListTextTranslationJobsRequest = (input, context) => {
1087
1081
  return {
1088
- ...(input.Filter !== undefined &&
1089
- input.Filter !== null && { Filter: serializeAws_json1_1TextTranslationJobFilter(input.Filter, context) }),
1090
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1091
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1082
+ ...(input.Filter != null && { Filter: serializeAws_json1_1TextTranslationJobFilter(input.Filter, context) }),
1083
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1084
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1092
1085
  };
1093
1086
  };
1094
1087
  const serializeAws_json1_1OutputDataConfig = (input, context) => {
1095
1088
  return {
1096
- ...(input.EncryptionKey !== undefined &&
1097
- input.EncryptionKey !== null && {
1089
+ ...(input.EncryptionKey != null && {
1098
1090
  EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1099
1091
  }),
1100
- ...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
1092
+ ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1101
1093
  };
1102
1094
  };
1103
1095
  const serializeAws_json1_1ParallelDataConfig = (input, context) => {
1104
1096
  return {
1105
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
1106
- ...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
1097
+ ...(input.Format != null && { Format: input.Format }),
1098
+ ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1107
1099
  };
1108
1100
  };
1109
1101
  const serializeAws_json1_1ResourceNameList = (input, context) => {
@@ -1120,38 +1112,30 @@ const serializeAws_json1_1StartTextTranslationJobRequest = (input, context) => {
1120
1112
  var _a;
1121
1113
  return {
1122
1114
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1123
- ...(input.DataAccessRoleArn !== undefined &&
1124
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
1125
- ...(input.InputDataConfig !== undefined &&
1126
- input.InputDataConfig !== null && {
1115
+ ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
1116
+ ...(input.InputDataConfig != null && {
1127
1117
  InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
1128
1118
  }),
1129
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
1130
- ...(input.OutputDataConfig !== undefined &&
1131
- input.OutputDataConfig !== null && {
1119
+ ...(input.JobName != null && { JobName: input.JobName }),
1120
+ ...(input.OutputDataConfig != null && {
1132
1121
  OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
1133
1122
  }),
1134
- ...(input.ParallelDataNames !== undefined &&
1135
- input.ParallelDataNames !== null && {
1123
+ ...(input.ParallelDataNames != null && {
1136
1124
  ParallelDataNames: serializeAws_json1_1ResourceNameList(input.ParallelDataNames, context),
1137
1125
  }),
1138
- ...(input.Settings !== undefined &&
1139
- input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
1140
- ...(input.SourceLanguageCode !== undefined &&
1141
- input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode }),
1142
- ...(input.TargetLanguageCodes !== undefined &&
1143
- input.TargetLanguageCodes !== null && {
1126
+ ...(input.Settings != null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
1127
+ ...(input.SourceLanguageCode != null && { SourceLanguageCode: input.SourceLanguageCode }),
1128
+ ...(input.TargetLanguageCodes != null && {
1144
1129
  TargetLanguageCodes: serializeAws_json1_1TargetLanguageCodeStringList(input.TargetLanguageCodes, context),
1145
1130
  }),
1146
- ...(input.TerminologyNames !== undefined &&
1147
- input.TerminologyNames !== null && {
1131
+ ...(input.TerminologyNames != null && {
1148
1132
  TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
1149
1133
  }),
1150
1134
  };
1151
1135
  };
1152
1136
  const serializeAws_json1_1StopTextTranslationJobRequest = (input, context) => {
1153
1137
  return {
1154
- ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
1138
+ ...(input.JobId != null && { JobId: input.JobId }),
1155
1139
  };
1156
1140
  };
1157
1141
  const serializeAws_json1_1TargetLanguageCodeStringList = (input, context) => {
@@ -1166,55 +1150,47 @@ const serializeAws_json1_1TargetLanguageCodeStringList = (input, context) => {
1166
1150
  };
1167
1151
  const serializeAws_json1_1TerminologyData = (input, context) => {
1168
1152
  return {
1169
- ...(input.Directionality !== undefined &&
1170
- input.Directionality !== null && { Directionality: input.Directionality }),
1171
- ...(input.File !== undefined && input.File !== null && { File: context.base64Encoder(input.File) }),
1172
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
1153
+ ...(input.Directionality != null && { Directionality: input.Directionality }),
1154
+ ...(input.File != null && { File: context.base64Encoder(input.File) }),
1155
+ ...(input.Format != null && { Format: input.Format }),
1173
1156
  };
1174
1157
  };
1175
1158
  const serializeAws_json1_1TextTranslationJobFilter = (input, context) => {
1176
1159
  return {
1177
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
1178
- ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
1179
- ...(input.SubmittedAfterTime !== undefined &&
1180
- input.SubmittedAfterTime !== null && {
1160
+ ...(input.JobName != null && { JobName: input.JobName }),
1161
+ ...(input.JobStatus != null && { JobStatus: input.JobStatus }),
1162
+ ...(input.SubmittedAfterTime != null && {
1181
1163
  SubmittedAfterTime: Math.round(input.SubmittedAfterTime.getTime() / 1000),
1182
1164
  }),
1183
- ...(input.SubmittedBeforeTime !== undefined &&
1184
- input.SubmittedBeforeTime !== null && {
1165
+ ...(input.SubmittedBeforeTime != null && {
1185
1166
  SubmittedBeforeTime: Math.round(input.SubmittedBeforeTime.getTime() / 1000),
1186
1167
  }),
1187
1168
  };
1188
1169
  };
1189
1170
  const serializeAws_json1_1TranslateTextRequest = (input, context) => {
1190
1171
  return {
1191
- ...(input.Settings !== undefined &&
1192
- input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
1193
- ...(input.SourceLanguageCode !== undefined &&
1194
- input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode }),
1195
- ...(input.TargetLanguageCode !== undefined &&
1196
- input.TargetLanguageCode !== null && { TargetLanguageCode: input.TargetLanguageCode }),
1197
- ...(input.TerminologyNames !== undefined &&
1198
- input.TerminologyNames !== null && {
1172
+ ...(input.Settings != null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
1173
+ ...(input.SourceLanguageCode != null && { SourceLanguageCode: input.SourceLanguageCode }),
1174
+ ...(input.TargetLanguageCode != null && { TargetLanguageCode: input.TargetLanguageCode }),
1175
+ ...(input.TerminologyNames != null && {
1199
1176
  TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
1200
1177
  }),
1201
- ...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
1178
+ ...(input.Text != null && { Text: input.Text }),
1202
1179
  };
1203
1180
  };
1204
1181
  const serializeAws_json1_1TranslationSettings = (input, context) => {
1205
1182
  return {
1206
- ...(input.Formality !== undefined && input.Formality !== null && { Formality: input.Formality }),
1207
- ...(input.Profanity !== undefined && input.Profanity !== null && { Profanity: input.Profanity }),
1183
+ ...(input.Formality != null && { Formality: input.Formality }),
1184
+ ...(input.Profanity != null && { Profanity: input.Profanity }),
1208
1185
  };
1209
1186
  };
1210
1187
  const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
1211
1188
  var _a;
1212
1189
  return {
1213
1190
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1214
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1215
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1216
- ...(input.ParallelDataConfig !== undefined &&
1217
- input.ParallelDataConfig !== null && {
1191
+ ...(input.Description != null && { Description: input.Description }),
1192
+ ...(input.Name != null && { Name: input.Name }),
1193
+ ...(input.ParallelDataConfig != null && {
1218
1194
  ParallelDataConfig: serializeAws_json1_1ParallelDataConfig(input.ParallelDataConfig, context),
1219
1195
  }),
1220
1196
  };
@@ -1222,9 +1198,7 @@ const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
1222
1198
  const deserializeAws_json1_1AppliedTerminology = (output, context) => {
1223
1199
  return {
1224
1200
  Name: (0, smithy_client_1.expectString)(output.Name),
1225
- Terms: output.Terms !== undefined && output.Terms !== null
1226
- ? deserializeAws_json1_1TermList(output.Terms, context)
1227
- : undefined,
1201
+ Terms: output.Terms != null ? deserializeAws_json1_1TermList(output.Terms, context) : undefined,
1228
1202
  };
1229
1203
  };
1230
1204
  const deserializeAws_json1_1AppliedTerminologyList = (output, context) => {
@@ -1262,7 +1236,7 @@ const deserializeAws_json1_1DeleteParallelDataResponse = (output, context) => {
1262
1236
  };
1263
1237
  const deserializeAws_json1_1DescribeTextTranslationJobResponse = (output, context) => {
1264
1238
  return {
1265
- TextTranslationJobProperties: output.TextTranslationJobProperties !== undefined && output.TextTranslationJobProperties !== null
1239
+ TextTranslationJobProperties: output.TextTranslationJobProperties != null
1266
1240
  ? deserializeAws_json1_1TextTranslationJobProperties(output.TextTranslationJobProperties, context)
1267
1241
  : undefined,
1268
1242
  };
@@ -1281,40 +1255,39 @@ const deserializeAws_json1_1EncryptionKey = (output, context) => {
1281
1255
  };
1282
1256
  const deserializeAws_json1_1GetParallelDataResponse = (output, context) => {
1283
1257
  return {
1284
- AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
1258
+ AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
1285
1259
  ? deserializeAws_json1_1ParallelDataDataLocation(output.AuxiliaryDataLocation, context)
1286
1260
  : undefined,
1287
- DataLocation: output.DataLocation !== undefined && output.DataLocation !== null
1261
+ DataLocation: output.DataLocation != null
1288
1262
  ? deserializeAws_json1_1ParallelDataDataLocation(output.DataLocation, context)
1289
1263
  : undefined,
1290
- LatestUpdateAttemptAuxiliaryDataLocation: output.LatestUpdateAttemptAuxiliaryDataLocation !== undefined &&
1291
- output.LatestUpdateAttemptAuxiliaryDataLocation !== null
1264
+ LatestUpdateAttemptAuxiliaryDataLocation: output.LatestUpdateAttemptAuxiliaryDataLocation != null
1292
1265
  ? deserializeAws_json1_1ParallelDataDataLocation(output.LatestUpdateAttemptAuxiliaryDataLocation, context)
1293
1266
  : undefined,
1294
- ParallelDataProperties: output.ParallelDataProperties !== undefined && output.ParallelDataProperties !== null
1267
+ ParallelDataProperties: output.ParallelDataProperties != null
1295
1268
  ? deserializeAws_json1_1ParallelDataProperties(output.ParallelDataProperties, context)
1296
1269
  : undefined,
1297
1270
  };
1298
1271
  };
1299
1272
  const deserializeAws_json1_1GetTerminologyResponse = (output, context) => {
1300
1273
  return {
1301
- AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
1274
+ AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
1302
1275
  ? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
1303
1276
  : undefined,
1304
- TerminologyDataLocation: output.TerminologyDataLocation !== undefined && output.TerminologyDataLocation !== null
1277
+ TerminologyDataLocation: output.TerminologyDataLocation != null
1305
1278
  ? deserializeAws_json1_1TerminologyDataLocation(output.TerminologyDataLocation, context)
1306
1279
  : undefined,
1307
- TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
1280
+ TerminologyProperties: output.TerminologyProperties != null
1308
1281
  ? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
1309
1282
  : undefined,
1310
1283
  };
1311
1284
  };
1312
1285
  const deserializeAws_json1_1ImportTerminologyResponse = (output, context) => {
1313
1286
  return {
1314
- AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
1287
+ AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
1315
1288
  ? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
1316
1289
  : undefined,
1317
- TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
1290
+ TerminologyProperties: output.TerminologyProperties != null
1318
1291
  ? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
1319
1292
  : undefined,
1320
1293
  };
@@ -1388,16 +1361,14 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
1388
1361
  const deserializeAws_json1_1ListLanguagesResponse = (output, context) => {
1389
1362
  return {
1390
1363
  DisplayLanguageCode: (0, smithy_client_1.expectString)(output.DisplayLanguageCode),
1391
- Languages: output.Languages !== undefined && output.Languages !== null
1392
- ? deserializeAws_json1_1LanguagesList(output.Languages, context)
1393
- : undefined,
1364
+ Languages: output.Languages != null ? deserializeAws_json1_1LanguagesList(output.Languages, context) : undefined,
1394
1365
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1395
1366
  };
1396
1367
  };
1397
1368
  const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
1398
1369
  return {
1399
1370
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1400
- ParallelDataPropertiesList: output.ParallelDataPropertiesList !== undefined && output.ParallelDataPropertiesList !== null
1371
+ ParallelDataPropertiesList: output.ParallelDataPropertiesList != null
1401
1372
  ? deserializeAws_json1_1ParallelDataPropertiesList(output.ParallelDataPropertiesList, context)
1402
1373
  : undefined,
1403
1374
  };
@@ -1405,7 +1376,7 @@ const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
1405
1376
  const deserializeAws_json1_1ListTerminologiesResponse = (output, context) => {
1406
1377
  return {
1407
1378
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1408
- TerminologyPropertiesList: output.TerminologyPropertiesList !== undefined && output.TerminologyPropertiesList !== null
1379
+ TerminologyPropertiesList: output.TerminologyPropertiesList != null
1409
1380
  ? deserializeAws_json1_1TerminologyPropertiesList(output.TerminologyPropertiesList, context)
1410
1381
  : undefined,
1411
1382
  };
@@ -1413,16 +1384,14 @@ const deserializeAws_json1_1ListTerminologiesResponse = (output, context) => {
1413
1384
  const deserializeAws_json1_1ListTextTranslationJobsResponse = (output, context) => {
1414
1385
  return {
1415
1386
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1416
- TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList !== undefined && output.TextTranslationJobPropertiesList !== null
1387
+ TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList != null
1417
1388
  ? deserializeAws_json1_1TextTranslationJobPropertiesList(output.TextTranslationJobPropertiesList, context)
1418
1389
  : undefined,
1419
1390
  };
1420
1391
  };
1421
1392
  const deserializeAws_json1_1OutputDataConfig = (output, context) => {
1422
1393
  return {
1423
- EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1424
- ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1425
- : undefined,
1394
+ EncryptionKey: output.EncryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined,
1426
1395
  S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
1427
1396
  };
1428
1397
  };
@@ -1441,32 +1410,28 @@ const deserializeAws_json1_1ParallelDataDataLocation = (output, context) => {
1441
1410
  const deserializeAws_json1_1ParallelDataProperties = (output, context) => {
1442
1411
  return {
1443
1412
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1444
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1445
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1446
- : undefined,
1413
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1447
1414
  Description: (0, smithy_client_1.expectString)(output.Description),
1448
- EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1449
- ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1450
- : undefined,
1415
+ EncryptionKey: output.EncryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined,
1451
1416
  FailedRecordCount: (0, smithy_client_1.expectLong)(output.FailedRecordCount),
1452
1417
  ImportedDataSize: (0, smithy_client_1.expectLong)(output.ImportedDataSize),
1453
1418
  ImportedRecordCount: (0, smithy_client_1.expectLong)(output.ImportedRecordCount),
1454
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
1419
+ LastUpdatedAt: output.LastUpdatedAt != null
1455
1420
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
1456
1421
  : undefined,
1457
- LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
1422
+ LatestUpdateAttemptAt: output.LatestUpdateAttemptAt != null
1458
1423
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestUpdateAttemptAt)))
1459
1424
  : undefined,
1460
1425
  LatestUpdateAttemptStatus: (0, smithy_client_1.expectString)(output.LatestUpdateAttemptStatus),
1461
1426
  Message: (0, smithy_client_1.expectString)(output.Message),
1462
1427
  Name: (0, smithy_client_1.expectString)(output.Name),
1463
- ParallelDataConfig: output.ParallelDataConfig !== undefined && output.ParallelDataConfig !== null
1428
+ ParallelDataConfig: output.ParallelDataConfig != null
1464
1429
  ? deserializeAws_json1_1ParallelDataConfig(output.ParallelDataConfig, context)
1465
1430
  : undefined,
1466
1431
  SkippedRecordCount: (0, smithy_client_1.expectLong)(output.SkippedRecordCount),
1467
1432
  SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
1468
1433
  Status: (0, smithy_client_1.expectString)(output.Status),
1469
- TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
1434
+ TargetLanguageCodes: output.TargetLanguageCodes != null
1470
1435
  ? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
1471
1436
  : undefined,
1472
1437
  };
@@ -1541,16 +1506,12 @@ const deserializeAws_json1_1TerminologyDataLocation = (output, context) => {
1541
1506
  const deserializeAws_json1_1TerminologyProperties = (output, context) => {
1542
1507
  return {
1543
1508
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1544
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1545
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1546
- : undefined,
1509
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1547
1510
  Description: (0, smithy_client_1.expectString)(output.Description),
1548
1511
  Directionality: (0, smithy_client_1.expectString)(output.Directionality),
1549
- EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1550
- ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1551
- : undefined,
1512
+ EncryptionKey: output.EncryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined,
1552
1513
  Format: (0, smithy_client_1.expectString)(output.Format),
1553
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
1514
+ LastUpdatedAt: output.LastUpdatedAt != null
1554
1515
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
1555
1516
  : undefined,
1556
1517
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -1558,7 +1519,7 @@ const deserializeAws_json1_1TerminologyProperties = (output, context) => {
1558
1519
  SizeBytes: (0, smithy_client_1.expectInt32)(output.SizeBytes),
1559
1520
  SkippedTermCount: (0, smithy_client_1.expectInt32)(output.SkippedTermCount),
1560
1521
  SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
1561
- TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
1522
+ TargetLanguageCodes: output.TargetLanguageCodes != null
1562
1523
  ? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
1563
1524
  : undefined,
1564
1525
  TermCount: (0, smithy_client_1.expectInt32)(output.TermCount),
@@ -1594,36 +1555,30 @@ const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) =
1594
1555
  const deserializeAws_json1_1TextTranslationJobProperties = (output, context) => {
1595
1556
  return {
1596
1557
  DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
1597
- EndTime: output.EndTime !== undefined && output.EndTime !== null
1598
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
1599
- : undefined,
1600
- InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
1558
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
1559
+ InputDataConfig: output.InputDataConfig != null
1601
1560
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
1602
1561
  : undefined,
1603
- JobDetails: output.JobDetails !== undefined && output.JobDetails !== null
1604
- ? deserializeAws_json1_1JobDetails(output.JobDetails, context)
1605
- : undefined,
1562
+ JobDetails: output.JobDetails != null ? deserializeAws_json1_1JobDetails(output.JobDetails, context) : undefined,
1606
1563
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1607
1564
  JobName: (0, smithy_client_1.expectString)(output.JobName),
1608
1565
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1609
1566
  Message: (0, smithy_client_1.expectString)(output.Message),
1610
- OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
1567
+ OutputDataConfig: output.OutputDataConfig != null
1611
1568
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
1612
1569
  : undefined,
1613
- ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
1570
+ ParallelDataNames: output.ParallelDataNames != null
1614
1571
  ? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
1615
1572
  : undefined,
1616
- Settings: output.Settings !== undefined && output.Settings !== null
1617
- ? deserializeAws_json1_1TranslationSettings(output.Settings, context)
1618
- : undefined,
1573
+ Settings: output.Settings != null ? deserializeAws_json1_1TranslationSettings(output.Settings, context) : undefined,
1619
1574
  SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
1620
- SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
1575
+ SubmittedTime: output.SubmittedTime != null
1621
1576
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmittedTime)))
1622
1577
  : undefined,
1623
- TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
1578
+ TargetLanguageCodes: output.TargetLanguageCodes != null
1624
1579
  ? deserializeAws_json1_1TargetLanguageCodeStringList(output.TargetLanguageCodes, context)
1625
1580
  : undefined,
1626
- TerminologyNames: output.TerminologyNames !== undefined && output.TerminologyNames !== null
1581
+ TerminologyNames: output.TerminologyNames != null
1627
1582
  ? deserializeAws_json1_1ResourceNameList(output.TerminologyNames, context)
1628
1583
  : undefined,
1629
1584
  };
@@ -1646,10 +1601,10 @@ const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
1646
1601
  };
1647
1602
  const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
1648
1603
  return {
1649
- AppliedSettings: output.AppliedSettings !== undefined && output.AppliedSettings !== null
1604
+ AppliedSettings: output.AppliedSettings != null
1650
1605
  ? deserializeAws_json1_1TranslationSettings(output.AppliedSettings, context)
1651
1606
  : undefined,
1652
- AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
1607
+ AppliedTerminologies: output.AppliedTerminologies != null
1653
1608
  ? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
1654
1609
  : undefined,
1655
1610
  SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
@@ -1678,7 +1633,7 @@ const deserializeAws_json1_1UnsupportedLanguagePairException = (output, context)
1678
1633
  };
1679
1634
  const deserializeAws_json1_1UpdateParallelDataResponse = (output, context) => {
1680
1635
  return {
1681
- LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
1636
+ LatestUpdateAttemptAt: output.LatestUpdateAttemptAt != null
1682
1637
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestUpdateAttemptAt)))
1683
1638
  : undefined,
1684
1639
  LatestUpdateAttemptStatus: (0, smithy_client_1.expectString)(output.LatestUpdateAttemptStatus),
@@ -1730,6 +1685,9 @@ const loadRestJsonErrorCode = (output, data) => {
1730
1685
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1731
1686
  const sanitizeErrorCode = (rawValue) => {
1732
1687
  let cleanValue = rawValue;
1688
+ if (typeof cleanValue === "number") {
1689
+ cleanValue = cleanValue.toString();
1690
+ }
1733
1691
  if (cleanValue.indexOf(":") >= 0) {
1734
1692
  cleanValue = cleanValue.split(":")[0];
1735
1693
  }
@@ -1274,67 +1274,59 @@ var deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse = function (p
1274
1274
  }); };
1275
1275
  var serializeAws_json1_1CreateParallelDataRequest = function (input, context) {
1276
1276
  var _a;
1277
- return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EncryptionKey !== undefined &&
1278
- input.EncryptionKey !== null && {
1277
+ return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.EncryptionKey != null && {
1279
1278
  EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1280
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ParallelDataConfig !== undefined &&
1281
- input.ParallelDataConfig !== null && {
1279
+ })), (input.Name != null && { Name: input.Name })), (input.ParallelDataConfig != null && {
1282
1280
  ParallelDataConfig: serializeAws_json1_1ParallelDataConfig(input.ParallelDataConfig, context),
1283
1281
  }));
1284
1282
  };
1285
1283
  var serializeAws_json1_1DeleteParallelDataRequest = function (input, context) {
1286
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
1284
+ return __assign({}, (input.Name != null && { Name: input.Name }));
1287
1285
  };
1288
1286
  var serializeAws_json1_1DeleteTerminologyRequest = function (input, context) {
1289
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
1287
+ return __assign({}, (input.Name != null && { Name: input.Name }));
1290
1288
  };
1291
1289
  var serializeAws_json1_1DescribeTextTranslationJobRequest = function (input, context) {
1292
- return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
1290
+ return __assign({}, (input.JobId != null && { JobId: input.JobId }));
1293
1291
  };
1294
1292
  var serializeAws_json1_1EncryptionKey = function (input, context) {
1295
- return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
1293
+ return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Type != null && { Type: input.Type }));
1296
1294
  };
1297
1295
  var serializeAws_json1_1GetParallelDataRequest = function (input, context) {
1298
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
1296
+ return __assign({}, (input.Name != null && { Name: input.Name }));
1299
1297
  };
1300
1298
  var serializeAws_json1_1GetTerminologyRequest = function (input, context) {
1301
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.TerminologyDataFormat !== undefined &&
1302
- input.TerminologyDataFormat !== null && { TerminologyDataFormat: input.TerminologyDataFormat }));
1299
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.TerminologyDataFormat != null && { TerminologyDataFormat: input.TerminologyDataFormat }));
1303
1300
  };
1304
1301
  var serializeAws_json1_1ImportTerminologyRequest = function (input, context) {
1305
- return __assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EncryptionKey !== undefined &&
1306
- input.EncryptionKey !== null && {
1302
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.EncryptionKey != null && {
1307
1303
  EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1308
- })), (input.MergeStrategy !== undefined && input.MergeStrategy !== null && { MergeStrategy: input.MergeStrategy })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.TerminologyData !== undefined &&
1309
- input.TerminologyData !== null && {
1304
+ })), (input.MergeStrategy != null && { MergeStrategy: input.MergeStrategy })), (input.Name != null && { Name: input.Name })), (input.TerminologyData != null && {
1310
1305
  TerminologyData: serializeAws_json1_1TerminologyData(input.TerminologyData, context),
1311
1306
  }));
1312
1307
  };
1313
1308
  var serializeAws_json1_1InputDataConfig = function (input, context) {
1314
- return __assign(__assign({}, (input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
1309
+ return __assign(__assign({}, (input.ContentType != null && { ContentType: input.ContentType })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
1315
1310
  };
1316
1311
  var serializeAws_json1_1ListLanguagesRequest = function (input, context) {
1317
- return __assign(__assign(__assign({}, (input.DisplayLanguageCode !== undefined &&
1318
- input.DisplayLanguageCode !== null && { DisplayLanguageCode: input.DisplayLanguageCode })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1312
+ return __assign(__assign(__assign({}, (input.DisplayLanguageCode != null && { DisplayLanguageCode: input.DisplayLanguageCode })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1319
1313
  };
1320
1314
  var serializeAws_json1_1ListParallelDataRequest = function (input, context) {
1321
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1315
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1322
1316
  };
1323
1317
  var serializeAws_json1_1ListTerminologiesRequest = function (input, context) {
1324
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1318
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1325
1319
  };
1326
1320
  var serializeAws_json1_1ListTextTranslationJobsRequest = function (input, context) {
1327
- return __assign(__assign(__assign({}, (input.Filter !== undefined &&
1328
- input.Filter !== null && { Filter: serializeAws_json1_1TextTranslationJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1321
+ return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1TextTranslationJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1329
1322
  };
1330
1323
  var serializeAws_json1_1OutputDataConfig = function (input, context) {
1331
- return __assign(__assign({}, (input.EncryptionKey !== undefined &&
1332
- input.EncryptionKey !== null && {
1324
+ return __assign(__assign({}, (input.EncryptionKey != null && {
1333
1325
  EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1334
- })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
1326
+ })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
1335
1327
  };
1336
1328
  var serializeAws_json1_1ParallelDataConfig = function (input, context) {
1337
- return __assign(__assign({}, (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
1329
+ return __assign(__assign({}, (input.Format != null && { Format: input.Format })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
1338
1330
  };
1339
1331
  var serializeAws_json1_1ResourceNameList = function (input, context) {
1340
1332
  return input
@@ -1348,28 +1340,20 @@ var serializeAws_json1_1ResourceNameList = function (input, context) {
1348
1340
  };
1349
1341
  var serializeAws_json1_1StartTextTranslationJobRequest = function (input, context) {
1350
1342
  var _a;
1351
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
1352
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
1353
- input.InputDataConfig !== null && {
1343
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
1354
1344
  InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
1355
- })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.OutputDataConfig !== undefined &&
1356
- input.OutputDataConfig !== null && {
1345
+ })), (input.JobName != null && { JobName: input.JobName })), (input.OutputDataConfig != null && {
1357
1346
  OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
1358
- })), (input.ParallelDataNames !== undefined &&
1359
- input.ParallelDataNames !== null && {
1347
+ })), (input.ParallelDataNames != null && {
1360
1348
  ParallelDataNames: serializeAws_json1_1ResourceNameList(input.ParallelDataNames, context),
1361
- })), (input.Settings !== undefined &&
1362
- input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode !== undefined &&
1363
- input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCodes !== undefined &&
1364
- input.TargetLanguageCodes !== null && {
1349
+ })), (input.Settings != null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode != null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCodes != null && {
1365
1350
  TargetLanguageCodes: serializeAws_json1_1TargetLanguageCodeStringList(input.TargetLanguageCodes, context),
1366
- })), (input.TerminologyNames !== undefined &&
1367
- input.TerminologyNames !== null && {
1351
+ })), (input.TerminologyNames != null && {
1368
1352
  TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
1369
1353
  }));
1370
1354
  };
1371
1355
  var serializeAws_json1_1StopTextTranslationJobRequest = function (input, context) {
1372
- return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
1356
+ return __assign({}, (input.JobId != null && { JobId: input.JobId }));
1373
1357
  };
1374
1358
  var serializeAws_json1_1TargetLanguageCodeStringList = function (input, context) {
1375
1359
  return input
@@ -1382,43 +1366,33 @@ var serializeAws_json1_1TargetLanguageCodeStringList = function (input, context)
1382
1366
  });
1383
1367
  };
1384
1368
  var serializeAws_json1_1TerminologyData = function (input, context) {
1385
- return __assign(__assign(__assign({}, (input.Directionality !== undefined &&
1386
- input.Directionality !== null && { Directionality: input.Directionality })), (input.File !== undefined && input.File !== null && { File: context.base64Encoder(input.File) })), (input.Format !== undefined && input.Format !== null && { Format: input.Format }));
1369
+ return __assign(__assign(__assign({}, (input.Directionality != null && { Directionality: input.Directionality })), (input.File != null && { File: context.base64Encoder(input.File) })), (input.Format != null && { Format: input.Format }));
1387
1370
  };
1388
1371
  var serializeAws_json1_1TextTranslationJobFilter = function (input, context) {
1389
- return __assign(__assign(__assign(__assign({}, (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus })), (input.SubmittedAfterTime !== undefined &&
1390
- input.SubmittedAfterTime !== null && {
1372
+ return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmittedAfterTime != null && {
1391
1373
  SubmittedAfterTime: Math.round(input.SubmittedAfterTime.getTime() / 1000),
1392
- })), (input.SubmittedBeforeTime !== undefined &&
1393
- input.SubmittedBeforeTime !== null && {
1374
+ })), (input.SubmittedBeforeTime != null && {
1394
1375
  SubmittedBeforeTime: Math.round(input.SubmittedBeforeTime.getTime() / 1000),
1395
1376
  }));
1396
1377
  };
1397
1378
  var serializeAws_json1_1TranslateTextRequest = function (input, context) {
1398
- return __assign(__assign(__assign(__assign(__assign({}, (input.Settings !== undefined &&
1399
- input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode !== undefined &&
1400
- input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCode !== undefined &&
1401
- input.TargetLanguageCode !== null && { TargetLanguageCode: input.TargetLanguageCode })), (input.TerminologyNames !== undefined &&
1402
- input.TerminologyNames !== null && {
1379
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Settings != null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode != null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCode != null && { TargetLanguageCode: input.TargetLanguageCode })), (input.TerminologyNames != null && {
1403
1380
  TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
1404
- })), (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
1381
+ })), (input.Text != null && { Text: input.Text }));
1405
1382
  };
1406
1383
  var serializeAws_json1_1TranslationSettings = function (input, context) {
1407
- return __assign(__assign({}, (input.Formality !== undefined && input.Formality !== null && { Formality: input.Formality })), (input.Profanity !== undefined && input.Profanity !== null && { Profanity: input.Profanity }));
1384
+ return __assign(__assign({}, (input.Formality != null && { Formality: input.Formality })), (input.Profanity != null && { Profanity: input.Profanity }));
1408
1385
  };
1409
1386
  var serializeAws_json1_1UpdateParallelDataRequest = function (input, context) {
1410
1387
  var _a;
1411
- return __assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ParallelDataConfig !== undefined &&
1412
- input.ParallelDataConfig !== null && {
1388
+ return __assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.ParallelDataConfig != null && {
1413
1389
  ParallelDataConfig: serializeAws_json1_1ParallelDataConfig(input.ParallelDataConfig, context),
1414
1390
  }));
1415
1391
  };
1416
1392
  var deserializeAws_json1_1AppliedTerminology = function (output, context) {
1417
1393
  return {
1418
1394
  Name: __expectString(output.Name),
1419
- Terms: output.Terms !== undefined && output.Terms !== null
1420
- ? deserializeAws_json1_1TermList(output.Terms, context)
1421
- : undefined,
1395
+ Terms: output.Terms != null ? deserializeAws_json1_1TermList(output.Terms, context) : undefined,
1422
1396
  };
1423
1397
  };
1424
1398
  var deserializeAws_json1_1AppliedTerminologyList = function (output, context) {
@@ -1456,7 +1430,7 @@ var deserializeAws_json1_1DeleteParallelDataResponse = function (output, context
1456
1430
  };
1457
1431
  var deserializeAws_json1_1DescribeTextTranslationJobResponse = function (output, context) {
1458
1432
  return {
1459
- TextTranslationJobProperties: output.TextTranslationJobProperties !== undefined && output.TextTranslationJobProperties !== null
1433
+ TextTranslationJobProperties: output.TextTranslationJobProperties != null
1460
1434
  ? deserializeAws_json1_1TextTranslationJobProperties(output.TextTranslationJobProperties, context)
1461
1435
  : undefined,
1462
1436
  };
@@ -1475,40 +1449,39 @@ var deserializeAws_json1_1EncryptionKey = function (output, context) {
1475
1449
  };
1476
1450
  var deserializeAws_json1_1GetParallelDataResponse = function (output, context) {
1477
1451
  return {
1478
- AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
1452
+ AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
1479
1453
  ? deserializeAws_json1_1ParallelDataDataLocation(output.AuxiliaryDataLocation, context)
1480
1454
  : undefined,
1481
- DataLocation: output.DataLocation !== undefined && output.DataLocation !== null
1455
+ DataLocation: output.DataLocation != null
1482
1456
  ? deserializeAws_json1_1ParallelDataDataLocation(output.DataLocation, context)
1483
1457
  : undefined,
1484
- LatestUpdateAttemptAuxiliaryDataLocation: output.LatestUpdateAttemptAuxiliaryDataLocation !== undefined &&
1485
- output.LatestUpdateAttemptAuxiliaryDataLocation !== null
1458
+ LatestUpdateAttemptAuxiliaryDataLocation: output.LatestUpdateAttemptAuxiliaryDataLocation != null
1486
1459
  ? deserializeAws_json1_1ParallelDataDataLocation(output.LatestUpdateAttemptAuxiliaryDataLocation, context)
1487
1460
  : undefined,
1488
- ParallelDataProperties: output.ParallelDataProperties !== undefined && output.ParallelDataProperties !== null
1461
+ ParallelDataProperties: output.ParallelDataProperties != null
1489
1462
  ? deserializeAws_json1_1ParallelDataProperties(output.ParallelDataProperties, context)
1490
1463
  : undefined,
1491
1464
  };
1492
1465
  };
1493
1466
  var deserializeAws_json1_1GetTerminologyResponse = function (output, context) {
1494
1467
  return {
1495
- AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
1468
+ AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
1496
1469
  ? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
1497
1470
  : undefined,
1498
- TerminologyDataLocation: output.TerminologyDataLocation !== undefined && output.TerminologyDataLocation !== null
1471
+ TerminologyDataLocation: output.TerminologyDataLocation != null
1499
1472
  ? deserializeAws_json1_1TerminologyDataLocation(output.TerminologyDataLocation, context)
1500
1473
  : undefined,
1501
- TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
1474
+ TerminologyProperties: output.TerminologyProperties != null
1502
1475
  ? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
1503
1476
  : undefined,
1504
1477
  };
1505
1478
  };
1506
1479
  var deserializeAws_json1_1ImportTerminologyResponse = function (output, context) {
1507
1480
  return {
1508
- AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
1481
+ AuxiliaryDataLocation: output.AuxiliaryDataLocation != null
1509
1482
  ? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
1510
1483
  : undefined,
1511
- TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
1484
+ TerminologyProperties: output.TerminologyProperties != null
1512
1485
  ? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
1513
1486
  : undefined,
1514
1487
  };
@@ -1582,16 +1555,14 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
1582
1555
  var deserializeAws_json1_1ListLanguagesResponse = function (output, context) {
1583
1556
  return {
1584
1557
  DisplayLanguageCode: __expectString(output.DisplayLanguageCode),
1585
- Languages: output.Languages !== undefined && output.Languages !== null
1586
- ? deserializeAws_json1_1LanguagesList(output.Languages, context)
1587
- : undefined,
1558
+ Languages: output.Languages != null ? deserializeAws_json1_1LanguagesList(output.Languages, context) : undefined,
1588
1559
  NextToken: __expectString(output.NextToken),
1589
1560
  };
1590
1561
  };
1591
1562
  var deserializeAws_json1_1ListParallelDataResponse = function (output, context) {
1592
1563
  return {
1593
1564
  NextToken: __expectString(output.NextToken),
1594
- ParallelDataPropertiesList: output.ParallelDataPropertiesList !== undefined && output.ParallelDataPropertiesList !== null
1565
+ ParallelDataPropertiesList: output.ParallelDataPropertiesList != null
1595
1566
  ? deserializeAws_json1_1ParallelDataPropertiesList(output.ParallelDataPropertiesList, context)
1596
1567
  : undefined,
1597
1568
  };
@@ -1599,7 +1570,7 @@ var deserializeAws_json1_1ListParallelDataResponse = function (output, context)
1599
1570
  var deserializeAws_json1_1ListTerminologiesResponse = function (output, context) {
1600
1571
  return {
1601
1572
  NextToken: __expectString(output.NextToken),
1602
- TerminologyPropertiesList: output.TerminologyPropertiesList !== undefined && output.TerminologyPropertiesList !== null
1573
+ TerminologyPropertiesList: output.TerminologyPropertiesList != null
1603
1574
  ? deserializeAws_json1_1TerminologyPropertiesList(output.TerminologyPropertiesList, context)
1604
1575
  : undefined,
1605
1576
  };
@@ -1607,16 +1578,14 @@ var deserializeAws_json1_1ListTerminologiesResponse = function (output, context)
1607
1578
  var deserializeAws_json1_1ListTextTranslationJobsResponse = function (output, context) {
1608
1579
  return {
1609
1580
  NextToken: __expectString(output.NextToken),
1610
- TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList !== undefined && output.TextTranslationJobPropertiesList !== null
1581
+ TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList != null
1611
1582
  ? deserializeAws_json1_1TextTranslationJobPropertiesList(output.TextTranslationJobPropertiesList, context)
1612
1583
  : undefined,
1613
1584
  };
1614
1585
  };
1615
1586
  var deserializeAws_json1_1OutputDataConfig = function (output, context) {
1616
1587
  return {
1617
- EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1618
- ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1619
- : undefined,
1588
+ EncryptionKey: output.EncryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined,
1620
1589
  S3Uri: __expectString(output.S3Uri),
1621
1590
  };
1622
1591
  };
@@ -1635,32 +1604,28 @@ var deserializeAws_json1_1ParallelDataDataLocation = function (output, context)
1635
1604
  var deserializeAws_json1_1ParallelDataProperties = function (output, context) {
1636
1605
  return {
1637
1606
  Arn: __expectString(output.Arn),
1638
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1639
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1640
- : undefined,
1607
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1641
1608
  Description: __expectString(output.Description),
1642
- EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1643
- ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1644
- : undefined,
1609
+ EncryptionKey: output.EncryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined,
1645
1610
  FailedRecordCount: __expectLong(output.FailedRecordCount),
1646
1611
  ImportedDataSize: __expectLong(output.ImportedDataSize),
1647
1612
  ImportedRecordCount: __expectLong(output.ImportedRecordCount),
1648
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
1613
+ LastUpdatedAt: output.LastUpdatedAt != null
1649
1614
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
1650
1615
  : undefined,
1651
- LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
1616
+ LatestUpdateAttemptAt: output.LatestUpdateAttemptAt != null
1652
1617
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestUpdateAttemptAt)))
1653
1618
  : undefined,
1654
1619
  LatestUpdateAttemptStatus: __expectString(output.LatestUpdateAttemptStatus),
1655
1620
  Message: __expectString(output.Message),
1656
1621
  Name: __expectString(output.Name),
1657
- ParallelDataConfig: output.ParallelDataConfig !== undefined && output.ParallelDataConfig !== null
1622
+ ParallelDataConfig: output.ParallelDataConfig != null
1658
1623
  ? deserializeAws_json1_1ParallelDataConfig(output.ParallelDataConfig, context)
1659
1624
  : undefined,
1660
1625
  SkippedRecordCount: __expectLong(output.SkippedRecordCount),
1661
1626
  SourceLanguageCode: __expectString(output.SourceLanguageCode),
1662
1627
  Status: __expectString(output.Status),
1663
- TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
1628
+ TargetLanguageCodes: output.TargetLanguageCodes != null
1664
1629
  ? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
1665
1630
  : undefined,
1666
1631
  };
@@ -1735,16 +1700,12 @@ var deserializeAws_json1_1TerminologyDataLocation = function (output, context) {
1735
1700
  var deserializeAws_json1_1TerminologyProperties = function (output, context) {
1736
1701
  return {
1737
1702
  Arn: __expectString(output.Arn),
1738
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1739
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1740
- : undefined,
1703
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1741
1704
  Description: __expectString(output.Description),
1742
1705
  Directionality: __expectString(output.Directionality),
1743
- EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1744
- ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1745
- : undefined,
1706
+ EncryptionKey: output.EncryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined,
1746
1707
  Format: __expectString(output.Format),
1747
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
1708
+ LastUpdatedAt: output.LastUpdatedAt != null
1748
1709
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
1749
1710
  : undefined,
1750
1711
  Message: __expectString(output.Message),
@@ -1752,7 +1713,7 @@ var deserializeAws_json1_1TerminologyProperties = function (output, context) {
1752
1713
  SizeBytes: __expectInt32(output.SizeBytes),
1753
1714
  SkippedTermCount: __expectInt32(output.SkippedTermCount),
1754
1715
  SourceLanguageCode: __expectString(output.SourceLanguageCode),
1755
- TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
1716
+ TargetLanguageCodes: output.TargetLanguageCodes != null
1756
1717
  ? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
1757
1718
  : undefined,
1758
1719
  TermCount: __expectInt32(output.TermCount),
@@ -1788,36 +1749,30 @@ var deserializeAws_json1_1TextSizeLimitExceededException = function (output, con
1788
1749
  var deserializeAws_json1_1TextTranslationJobProperties = function (output, context) {
1789
1750
  return {
1790
1751
  DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
1791
- EndTime: output.EndTime !== undefined && output.EndTime !== null
1792
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
1793
- : undefined,
1794
- InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
1752
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
1753
+ InputDataConfig: output.InputDataConfig != null
1795
1754
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
1796
1755
  : undefined,
1797
- JobDetails: output.JobDetails !== undefined && output.JobDetails !== null
1798
- ? deserializeAws_json1_1JobDetails(output.JobDetails, context)
1799
- : undefined,
1756
+ JobDetails: output.JobDetails != null ? deserializeAws_json1_1JobDetails(output.JobDetails, context) : undefined,
1800
1757
  JobId: __expectString(output.JobId),
1801
1758
  JobName: __expectString(output.JobName),
1802
1759
  JobStatus: __expectString(output.JobStatus),
1803
1760
  Message: __expectString(output.Message),
1804
- OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
1761
+ OutputDataConfig: output.OutputDataConfig != null
1805
1762
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
1806
1763
  : undefined,
1807
- ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
1764
+ ParallelDataNames: output.ParallelDataNames != null
1808
1765
  ? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
1809
1766
  : undefined,
1810
- Settings: output.Settings !== undefined && output.Settings !== null
1811
- ? deserializeAws_json1_1TranslationSettings(output.Settings, context)
1812
- : undefined,
1767
+ Settings: output.Settings != null ? deserializeAws_json1_1TranslationSettings(output.Settings, context) : undefined,
1813
1768
  SourceLanguageCode: __expectString(output.SourceLanguageCode),
1814
- SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
1769
+ SubmittedTime: output.SubmittedTime != null
1815
1770
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmittedTime)))
1816
1771
  : undefined,
1817
- TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
1772
+ TargetLanguageCodes: output.TargetLanguageCodes != null
1818
1773
  ? deserializeAws_json1_1TargetLanguageCodeStringList(output.TargetLanguageCodes, context)
1819
1774
  : undefined,
1820
- TerminologyNames: output.TerminologyNames !== undefined && output.TerminologyNames !== null
1775
+ TerminologyNames: output.TerminologyNames != null
1821
1776
  ? deserializeAws_json1_1ResourceNameList(output.TerminologyNames, context)
1822
1777
  : undefined,
1823
1778
  };
@@ -1840,10 +1795,10 @@ var deserializeAws_json1_1TooManyRequestsException = function (output, context)
1840
1795
  };
1841
1796
  var deserializeAws_json1_1TranslateTextResponse = function (output, context) {
1842
1797
  return {
1843
- AppliedSettings: output.AppliedSettings !== undefined && output.AppliedSettings !== null
1798
+ AppliedSettings: output.AppliedSettings != null
1844
1799
  ? deserializeAws_json1_1TranslationSettings(output.AppliedSettings, context)
1845
1800
  : undefined,
1846
- AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
1801
+ AppliedTerminologies: output.AppliedTerminologies != null
1847
1802
  ? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
1848
1803
  : undefined,
1849
1804
  SourceLanguageCode: __expectString(output.SourceLanguageCode),
@@ -1872,7 +1827,7 @@ var deserializeAws_json1_1UnsupportedLanguagePairException = function (output, c
1872
1827
  };
1873
1828
  var deserializeAws_json1_1UpdateParallelDataResponse = function (output, context) {
1874
1829
  return {
1875
- LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
1830
+ LatestUpdateAttemptAt: output.LatestUpdateAttemptAt != null
1876
1831
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestUpdateAttemptAt)))
1877
1832
  : undefined,
1878
1833
  LatestUpdateAttemptStatus: __expectString(output.LatestUpdateAttemptStatus),
@@ -1936,6 +1891,9 @@ var loadRestJsonErrorCode = function (output, data) {
1936
1891
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1937
1892
  var sanitizeErrorCode = function (rawValue) {
1938
1893
  var cleanValue = rawValue;
1894
+ if (typeof cleanValue === "number") {
1895
+ cleanValue = cleanValue.toString();
1896
+ }
1939
1897
  if (cleanValue.indexOf(":") >= 0) {
1940
1898
  cleanValue = cleanValue.split(":")[0];
1941
1899
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",