@aws-sdk/client-emr-serverless 3.121.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 CHANGED
@@ -3,6 +3,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-emr-serverless
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -52,31 +52,26 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
52
52
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
53
53
  let body;
54
54
  body = JSON.stringify({
55
- ...(input.autoStartConfiguration !== undefined &&
56
- input.autoStartConfiguration !== null && {
55
+ ...(input.autoStartConfiguration != null && {
57
56
  autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
58
57
  }),
59
- ...(input.autoStopConfiguration !== undefined &&
60
- input.autoStopConfiguration !== null && {
58
+ ...(input.autoStopConfiguration != null && {
61
59
  autoStopConfiguration: serializeAws_restJson1AutoStopConfig(input.autoStopConfiguration, context),
62
60
  }),
63
61
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
64
- ...(input.initialCapacity !== undefined &&
65
- input.initialCapacity !== null && {
62
+ ...(input.initialCapacity != null && {
66
63
  initialCapacity: serializeAws_restJson1InitialCapacityConfigMap(input.initialCapacity, context),
67
64
  }),
68
- ...(input.maximumCapacity !== undefined &&
69
- input.maximumCapacity !== null && {
65
+ ...(input.maximumCapacity != null && {
70
66
  maximumCapacity: serializeAws_restJson1MaximumAllowedResources(input.maximumCapacity, context),
71
67
  }),
72
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
73
- ...(input.networkConfiguration !== undefined &&
74
- input.networkConfiguration !== null && {
68
+ ...(input.name != null && { name: input.name }),
69
+ ...(input.networkConfiguration != null && {
75
70
  networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
76
71
  }),
77
- ...(input.releaseLabel !== undefined && input.releaseLabel !== null && { releaseLabel: input.releaseLabel }),
78
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
79
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
72
+ ...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
73
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
74
+ ...(input.type != null && { type: input.type }),
80
75
  });
81
76
  return new protocol_http_1.HttpRequest({
82
77
  protocol,
@@ -314,18 +309,14 @@ const serializeAws_restJson1StartJobRunCommand = async (input, context) => {
314
309
  let body;
315
310
  body = JSON.stringify({
316
311
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
317
- ...(input.configurationOverrides !== undefined &&
318
- input.configurationOverrides !== null && {
312
+ ...(input.configurationOverrides != null && {
319
313
  configurationOverrides: serializeAws_restJson1ConfigurationOverrides(input.configurationOverrides, context),
320
314
  }),
321
- ...(input.executionRoleArn !== undefined &&
322
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn }),
323
- ...(input.executionTimeoutMinutes !== undefined &&
324
- input.executionTimeoutMinutes !== null && { executionTimeoutMinutes: input.executionTimeoutMinutes }),
325
- ...(input.jobDriver !== undefined &&
326
- input.jobDriver !== null && { jobDriver: serializeAws_restJson1JobDriver(input.jobDriver, context) }),
327
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
328
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
315
+ ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
316
+ ...(input.executionTimeoutMinutes != null && { executionTimeoutMinutes: input.executionTimeoutMinutes }),
317
+ ...(input.jobDriver != null && { jobDriver: serializeAws_restJson1JobDriver(input.jobDriver, context) }),
318
+ ...(input.name != null && { name: input.name }),
319
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
329
320
  });
330
321
  return new protocol_http_1.HttpRequest({
331
322
  protocol,
@@ -382,7 +373,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
382
373
  }
383
374
  let body;
384
375
  body = JSON.stringify({
385
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
376
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
386
377
  });
387
378
  return new protocol_http_1.HttpRequest({
388
379
  protocol,
@@ -444,25 +435,20 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
444
435
  }
445
436
  let body;
446
437
  body = JSON.stringify({
447
- ...(input.autoStartConfiguration !== undefined &&
448
- input.autoStartConfiguration !== null && {
438
+ ...(input.autoStartConfiguration != null && {
449
439
  autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
450
440
  }),
451
- ...(input.autoStopConfiguration !== undefined &&
452
- input.autoStopConfiguration !== null && {
441
+ ...(input.autoStopConfiguration != null && {
453
442
  autoStopConfiguration: serializeAws_restJson1AutoStopConfig(input.autoStopConfiguration, context),
454
443
  }),
455
444
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
456
- ...(input.initialCapacity !== undefined &&
457
- input.initialCapacity !== null && {
445
+ ...(input.initialCapacity != null && {
458
446
  initialCapacity: serializeAws_restJson1InitialCapacityConfigMap(input.initialCapacity, context),
459
447
  }),
460
- ...(input.maximumCapacity !== undefined &&
461
- input.maximumCapacity !== null && {
448
+ ...(input.maximumCapacity != null && {
462
449
  maximumCapacity: serializeAws_restJson1MaximumAllowedResources(input.maximumCapacity, context),
463
450
  }),
464
- ...(input.networkConfiguration !== undefined &&
465
- input.networkConfiguration !== null && {
451
+ ...(input.networkConfiguration != null && {
466
452
  networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
467
453
  }),
468
454
  });
@@ -1163,26 +1149,22 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1163
1149
  };
1164
1150
  const serializeAws_restJson1AutoStartConfig = (input, context) => {
1165
1151
  return {
1166
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1152
+ ...(input.enabled != null && { enabled: input.enabled }),
1167
1153
  };
1168
1154
  };
1169
1155
  const serializeAws_restJson1AutoStopConfig = (input, context) => {
1170
1156
  return {
1171
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1172
- ...(input.idleTimeoutMinutes !== undefined &&
1173
- input.idleTimeoutMinutes !== null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
1157
+ ...(input.enabled != null && { enabled: input.enabled }),
1158
+ ...(input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
1174
1159
  };
1175
1160
  };
1176
1161
  const serializeAws_restJson1Configuration = (input, context) => {
1177
1162
  return {
1178
- ...(input.classification !== undefined &&
1179
- input.classification !== null && { classification: input.classification }),
1180
- ...(input.configurations !== undefined &&
1181
- input.configurations !== null && {
1163
+ ...(input.classification != null && { classification: input.classification }),
1164
+ ...(input.configurations != null && {
1182
1165
  configurations: serializeAws_restJson1ConfigurationList(input.configurations, context),
1183
1166
  }),
1184
- ...(input.properties !== undefined &&
1185
- input.properties !== null && {
1167
+ ...(input.properties != null && {
1186
1168
  properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
1187
1169
  }),
1188
1170
  };
@@ -1199,12 +1181,10 @@ const serializeAws_restJson1ConfigurationList = (input, context) => {
1199
1181
  };
1200
1182
  const serializeAws_restJson1ConfigurationOverrides = (input, context) => {
1201
1183
  return {
1202
- ...(input.applicationConfiguration !== undefined &&
1203
- input.applicationConfiguration !== null && {
1184
+ ...(input.applicationConfiguration != null && {
1204
1185
  applicationConfiguration: serializeAws_restJson1ConfigurationList(input.applicationConfiguration, context),
1205
1186
  }),
1206
- ...(input.monitoringConfiguration !== undefined &&
1207
- input.monitoringConfiguration !== null && {
1187
+ ...(input.monitoringConfiguration != null && {
1208
1188
  monitoringConfiguration: serializeAws_restJson1MonitoringConfiguration(input.monitoringConfiguration, context),
1209
1189
  }),
1210
1190
  };
@@ -1221,18 +1201,17 @@ const serializeAws_restJson1EntryPointArguments = (input, context) => {
1221
1201
  };
1222
1202
  const serializeAws_restJson1Hive = (input, context) => {
1223
1203
  return {
1224
- ...(input.initQueryFile !== undefined && input.initQueryFile !== null && { initQueryFile: input.initQueryFile }),
1225
- ...(input.parameters !== undefined && input.parameters !== null && { parameters: input.parameters }),
1226
- ...(input.query !== undefined && input.query !== null && { query: input.query }),
1204
+ ...(input.initQueryFile != null && { initQueryFile: input.initQueryFile }),
1205
+ ...(input.parameters != null && { parameters: input.parameters }),
1206
+ ...(input.query != null && { query: input.query }),
1227
1207
  };
1228
1208
  };
1229
1209
  const serializeAws_restJson1InitialCapacityConfig = (input, context) => {
1230
1210
  return {
1231
- ...(input.workerConfiguration !== undefined &&
1232
- input.workerConfiguration !== null && {
1211
+ ...(input.workerConfiguration != null && {
1233
1212
  workerConfiguration: serializeAws_restJson1WorkerResourceConfig(input.workerConfiguration, context),
1234
1213
  }),
1235
- ...(input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }),
1214
+ ...(input.workerCount != null && { workerCount: input.workerCount }),
1236
1215
  };
1237
1216
  };
1238
1217
  const serializeAws_restJson1InitialCapacityConfigMap = (input, context) => {
@@ -1255,45 +1234,39 @@ const serializeAws_restJson1JobDriver = (input, context) => {
1255
1234
  };
1256
1235
  const serializeAws_restJson1ManagedPersistenceMonitoringConfiguration = (input, context) => {
1257
1236
  return {
1258
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1259
- ...(input.encryptionKeyArn !== undefined &&
1260
- input.encryptionKeyArn !== null && { encryptionKeyArn: input.encryptionKeyArn }),
1237
+ ...(input.enabled != null && { enabled: input.enabled }),
1238
+ ...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
1261
1239
  };
1262
1240
  };
1263
1241
  const serializeAws_restJson1MaximumAllowedResources = (input, context) => {
1264
1242
  return {
1265
- ...(input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu }),
1266
- ...(input.disk !== undefined && input.disk !== null && { disk: input.disk }),
1267
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
1243
+ ...(input.cpu != null && { cpu: input.cpu }),
1244
+ ...(input.disk != null && { disk: input.disk }),
1245
+ ...(input.memory != null && { memory: input.memory }),
1268
1246
  };
1269
1247
  };
1270
1248
  const serializeAws_restJson1MonitoringConfiguration = (input, context) => {
1271
1249
  return {
1272
- ...(input.managedPersistenceMonitoringConfiguration !== undefined &&
1273
- input.managedPersistenceMonitoringConfiguration !== null && {
1250
+ ...(input.managedPersistenceMonitoringConfiguration != null && {
1274
1251
  managedPersistenceMonitoringConfiguration: serializeAws_restJson1ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
1275
1252
  }),
1276
- ...(input.s3MonitoringConfiguration !== undefined &&
1277
- input.s3MonitoringConfiguration !== null && {
1253
+ ...(input.s3MonitoringConfiguration != null && {
1278
1254
  s3MonitoringConfiguration: serializeAws_restJson1S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
1279
1255
  }),
1280
1256
  };
1281
1257
  };
1282
1258
  const serializeAws_restJson1NetworkConfiguration = (input, context) => {
1283
1259
  return {
1284
- ...(input.securityGroupIds !== undefined &&
1285
- input.securityGroupIds !== null && {
1260
+ ...(input.securityGroupIds != null && {
1286
1261
  securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
1287
1262
  }),
1288
- ...(input.subnetIds !== undefined &&
1289
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
1263
+ ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
1290
1264
  };
1291
1265
  };
1292
1266
  const serializeAws_restJson1S3MonitoringConfiguration = (input, context) => {
1293
1267
  return {
1294
- ...(input.encryptionKeyArn !== undefined &&
1295
- input.encryptionKeyArn !== null && { encryptionKeyArn: input.encryptionKeyArn }),
1296
- ...(input.logUri !== undefined && input.logUri !== null && { logUri: input.logUri }),
1268
+ ...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
1269
+ ...(input.logUri != null && { logUri: input.logUri }),
1297
1270
  };
1298
1271
  };
1299
1272
  const serializeAws_restJson1SecurityGroupIds = (input, context) => {
@@ -1319,13 +1292,11 @@ const serializeAws_restJson1SensitivePropertiesMap = (input, context) => {
1319
1292
  };
1320
1293
  const serializeAws_restJson1SparkSubmit = (input, context) => {
1321
1294
  return {
1322
- ...(input.entryPoint !== undefined && input.entryPoint !== null && { entryPoint: input.entryPoint }),
1323
- ...(input.entryPointArguments !== undefined &&
1324
- input.entryPointArguments !== null && {
1295
+ ...(input.entryPoint != null && { entryPoint: input.entryPoint }),
1296
+ ...(input.entryPointArguments != null && {
1325
1297
  entryPointArguments: serializeAws_restJson1EntryPointArguments(input.entryPointArguments, context),
1326
1298
  }),
1327
- ...(input.sparkSubmitParameters !== undefined &&
1328
- input.sparkSubmitParameters !== null && { sparkSubmitParameters: input.sparkSubmitParameters }),
1299
+ ...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
1329
1300
  };
1330
1301
  };
1331
1302
  const serializeAws_restJson1SubnetIds = (input, context) => {
@@ -1351,44 +1322,38 @@ const serializeAws_restJson1TagMap = (input, context) => {
1351
1322
  };
1352
1323
  const serializeAws_restJson1WorkerResourceConfig = (input, context) => {
1353
1324
  return {
1354
- ...(input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu }),
1355
- ...(input.disk !== undefined && input.disk !== null && { disk: input.disk }),
1356
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
1325
+ ...(input.cpu != null && { cpu: input.cpu }),
1326
+ ...(input.disk != null && { disk: input.disk }),
1327
+ ...(input.memory != null && { memory: input.memory }),
1357
1328
  };
1358
1329
  };
1359
1330
  const deserializeAws_restJson1Application = (output, context) => {
1360
1331
  return {
1361
1332
  applicationId: (0, smithy_client_1.expectString)(output.applicationId),
1362
1333
  arn: (0, smithy_client_1.expectString)(output.arn),
1363
- autoStartConfiguration: output.autoStartConfiguration !== undefined && output.autoStartConfiguration !== null
1334
+ autoStartConfiguration: output.autoStartConfiguration != null
1364
1335
  ? deserializeAws_restJson1AutoStartConfig(output.autoStartConfiguration, context)
1365
1336
  : undefined,
1366
- autoStopConfiguration: output.autoStopConfiguration !== undefined && output.autoStopConfiguration !== null
1337
+ autoStopConfiguration: output.autoStopConfiguration != null
1367
1338
  ? deserializeAws_restJson1AutoStopConfig(output.autoStopConfiguration, context)
1368
1339
  : undefined,
1369
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1370
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1371
- : undefined,
1372
- initialCapacity: output.initialCapacity !== undefined && output.initialCapacity !== null
1340
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
1341
+ initialCapacity: output.initialCapacity != null
1373
1342
  ? deserializeAws_restJson1InitialCapacityConfigMap(output.initialCapacity, context)
1374
1343
  : undefined,
1375
- maximumCapacity: output.maximumCapacity !== undefined && output.maximumCapacity !== null
1344
+ maximumCapacity: output.maximumCapacity != null
1376
1345
  ? deserializeAws_restJson1MaximumAllowedResources(output.maximumCapacity, context)
1377
1346
  : undefined,
1378
1347
  name: (0, smithy_client_1.expectString)(output.name),
1379
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
1348
+ networkConfiguration: output.networkConfiguration != null
1380
1349
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
1381
1350
  : undefined,
1382
1351
  releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
1383
1352
  state: (0, smithy_client_1.expectString)(output.state),
1384
1353
  stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
1385
- tags: output.tags !== undefined && output.tags !== null
1386
- ? deserializeAws_restJson1TagMap(output.tags, context)
1387
- : undefined,
1354
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1388
1355
  type: (0, smithy_client_1.expectString)(output.type),
1389
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1390
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
1391
- : undefined,
1356
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
1392
1357
  };
1393
1358
  };
1394
1359
  const deserializeAws_restJson1ApplicationList = (output, context) => {
@@ -1405,18 +1370,14 @@ const deserializeAws_restJson1ApplicationList = (output, context) => {
1405
1370
  const deserializeAws_restJson1ApplicationSummary = (output, context) => {
1406
1371
  return {
1407
1372
  arn: (0, smithy_client_1.expectString)(output.arn),
1408
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1409
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1410
- : undefined,
1373
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
1411
1374
  id: (0, smithy_client_1.expectString)(output.id),
1412
1375
  name: (0, smithy_client_1.expectString)(output.name),
1413
1376
  releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
1414
1377
  state: (0, smithy_client_1.expectString)(output.state),
1415
1378
  stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
1416
1379
  type: (0, smithy_client_1.expectString)(output.type),
1417
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1418
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
1419
- : undefined,
1380
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
1420
1381
  };
1421
1382
  };
1422
1383
  const deserializeAws_restJson1AutoStartConfig = (output, context) => {
@@ -1433,10 +1394,10 @@ const deserializeAws_restJson1AutoStopConfig = (output, context) => {
1433
1394
  const deserializeAws_restJson1Configuration = (output, context) => {
1434
1395
  return {
1435
1396
  classification: (0, smithy_client_1.expectString)(output.classification),
1436
- configurations: output.configurations !== undefined && output.configurations !== null
1397
+ configurations: output.configurations != null
1437
1398
  ? deserializeAws_restJson1ConfigurationList(output.configurations, context)
1438
1399
  : undefined,
1439
- properties: output.properties !== undefined && output.properties !== null
1400
+ properties: output.properties != null
1440
1401
  ? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
1441
1402
  : undefined,
1442
1403
  };
@@ -1454,10 +1415,10 @@ const deserializeAws_restJson1ConfigurationList = (output, context) => {
1454
1415
  };
1455
1416
  const deserializeAws_restJson1ConfigurationOverrides = (output, context) => {
1456
1417
  return {
1457
- applicationConfiguration: output.applicationConfiguration !== undefined && output.applicationConfiguration !== null
1418
+ applicationConfiguration: output.applicationConfiguration != null
1458
1419
  ? deserializeAws_restJson1ConfigurationList(output.applicationConfiguration, context)
1459
1420
  : undefined,
1460
- monitoringConfiguration: output.monitoringConfiguration !== undefined && output.monitoringConfiguration !== null
1421
+ monitoringConfiguration: output.monitoringConfiguration != null
1461
1422
  ? deserializeAws_restJson1MonitoringConfiguration(output.monitoringConfiguration, context)
1462
1423
  : undefined,
1463
1424
  };
@@ -1482,7 +1443,7 @@ const deserializeAws_restJson1Hive = (output, context) => {
1482
1443
  };
1483
1444
  const deserializeAws_restJson1InitialCapacityConfig = (output, context) => {
1484
1445
  return {
1485
- workerConfiguration: output.workerConfiguration !== undefined && output.workerConfiguration !== null
1446
+ workerConfiguration: output.workerConfiguration != null
1486
1447
  ? deserializeAws_restJson1WorkerResourceConfig(output.workerConfiguration, context)
1487
1448
  : undefined,
1488
1449
  workerCount: (0, smithy_client_1.expectLong)(output.workerCount),
@@ -1516,35 +1477,29 @@ const deserializeAws_restJson1JobRun = (output, context) => {
1516
1477
  return {
1517
1478
  applicationId: (0, smithy_client_1.expectString)(output.applicationId),
1518
1479
  arn: (0, smithy_client_1.expectString)(output.arn),
1519
- configurationOverrides: output.configurationOverrides !== undefined && output.configurationOverrides !== null
1480
+ configurationOverrides: output.configurationOverrides != null
1520
1481
  ? deserializeAws_restJson1ConfigurationOverrides(output.configurationOverrides, context)
1521
1482
  : undefined,
1522
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1523
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1524
- : undefined,
1483
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
1525
1484
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
1526
1485
  executionRole: (0, smithy_client_1.expectString)(output.executionRole),
1527
- jobDriver: output.jobDriver !== undefined && output.jobDriver !== null
1486
+ jobDriver: output.jobDriver != null
1528
1487
  ? deserializeAws_restJson1JobDriver((0, smithy_client_1.expectUnion)(output.jobDriver), context)
1529
1488
  : undefined,
1530
1489
  jobRunId: (0, smithy_client_1.expectString)(output.jobRunId),
1531
1490
  name: (0, smithy_client_1.expectString)(output.name),
1532
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
1491
+ networkConfiguration: output.networkConfiguration != null
1533
1492
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
1534
1493
  : undefined,
1535
1494
  releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
1536
1495
  state: (0, smithy_client_1.expectString)(output.state),
1537
1496
  stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
1538
- tags: output.tags !== undefined && output.tags !== null
1539
- ? deserializeAws_restJson1TagMap(output.tags, context)
1540
- : undefined,
1497
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1541
1498
  totalExecutionDurationSeconds: (0, smithy_client_1.expectInt32)(output.totalExecutionDurationSeconds),
1542
- totalResourceUtilization: output.totalResourceUtilization !== undefined && output.totalResourceUtilization !== null
1499
+ totalResourceUtilization: output.totalResourceUtilization != null
1543
1500
  ? deserializeAws_restJson1TotalResourceUtilization(output.totalResourceUtilization, context)
1544
1501
  : undefined,
1545
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1546
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
1547
- : undefined,
1502
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
1548
1503
  };
1549
1504
  };
1550
1505
  const deserializeAws_restJson1JobRuns = (output, context) => {
@@ -1562,9 +1517,7 @@ const deserializeAws_restJson1JobRunSummary = (output, context) => {
1562
1517
  return {
1563
1518
  applicationId: (0, smithy_client_1.expectString)(output.applicationId),
1564
1519
  arn: (0, smithy_client_1.expectString)(output.arn),
1565
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1566
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
1567
- : undefined,
1520
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
1568
1521
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
1569
1522
  executionRole: (0, smithy_client_1.expectString)(output.executionRole),
1570
1523
  id: (0, smithy_client_1.expectString)(output.id),
@@ -1573,9 +1526,7 @@ const deserializeAws_restJson1JobRunSummary = (output, context) => {
1573
1526
  state: (0, smithy_client_1.expectString)(output.state),
1574
1527
  stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
1575
1528
  type: (0, smithy_client_1.expectString)(output.type),
1576
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1577
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
1578
- : undefined,
1529
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
1579
1530
  };
1580
1531
  };
1581
1532
  const deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration = (output, context) => {
@@ -1593,23 +1544,20 @@ const deserializeAws_restJson1MaximumAllowedResources = (output, context) => {
1593
1544
  };
1594
1545
  const deserializeAws_restJson1MonitoringConfiguration = (output, context) => {
1595
1546
  return {
1596
- managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration !== undefined &&
1597
- output.managedPersistenceMonitoringConfiguration !== null
1547
+ managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
1598
1548
  ? deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
1599
1549
  : undefined,
1600
- s3MonitoringConfiguration: output.s3MonitoringConfiguration !== undefined && output.s3MonitoringConfiguration !== null
1550
+ s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
1601
1551
  ? deserializeAws_restJson1S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
1602
1552
  : undefined,
1603
1553
  };
1604
1554
  };
1605
1555
  const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
1606
1556
  return {
1607
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
1557
+ securityGroupIds: output.securityGroupIds != null
1608
1558
  ? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
1609
1559
  : undefined,
1610
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
1611
- ? deserializeAws_restJson1SubnetIds(output.subnetIds, context)
1612
- : undefined,
1560
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
1613
1561
  };
1614
1562
  };
1615
1563
  const deserializeAws_restJson1S3MonitoringConfiguration = (output, context) => {
@@ -1643,7 +1591,7 @@ const deserializeAws_restJson1SensitivePropertiesMap = (output, context) => {
1643
1591
  const deserializeAws_restJson1SparkSubmit = (output, context) => {
1644
1592
  return {
1645
1593
  entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
1646
- entryPointArguments: output.entryPointArguments !== undefined && output.entryPointArguments !== null
1594
+ entryPointArguments: output.entryPointArguments != null
1647
1595
  ? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
1648
1596
  : undefined,
1649
1597
  sparkSubmitParameters: (0, smithy_client_1.expectString)(output.sparkSubmitParameters),
@@ -58,22 +58,17 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
58
58
  "content-type": "application/json",
59
59
  };
60
60
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
61
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.autoStartConfiguration !== undefined &&
62
- input.autoStartConfiguration !== null && {
61
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.autoStartConfiguration != null && {
63
62
  autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
64
- })), (input.autoStopConfiguration !== undefined &&
65
- input.autoStopConfiguration !== null && {
63
+ })), (input.autoStopConfiguration != null && {
66
64
  autoStopConfiguration: serializeAws_restJson1AutoStopConfig(input.autoStopConfiguration, context),
67
- })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.initialCapacity !== undefined &&
68
- input.initialCapacity !== null && {
65
+ })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.initialCapacity != null && {
69
66
  initialCapacity: serializeAws_restJson1InitialCapacityConfigMap(input.initialCapacity, context),
70
- })), (input.maximumCapacity !== undefined &&
71
- input.maximumCapacity !== null && {
67
+ })), (input.maximumCapacity != null && {
72
68
  maximumCapacity: serializeAws_restJson1MaximumAllowedResources(input.maximumCapacity, context),
73
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.networkConfiguration !== undefined &&
74
- input.networkConfiguration !== null && {
69
+ })), (input.name != null && { name: input.name })), (input.networkConfiguration != null && {
75
70
  networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
76
- })), (input.releaseLabel !== undefined && input.releaseLabel !== null && { releaseLabel: input.releaseLabel })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
71
+ })), (input.releaseLabel != null && { releaseLabel: input.releaseLabel })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type != null && { type: input.type })));
77
72
  return [2, new __HttpRequest({
78
73
  protocol: protocol,
79
74
  hostname: hostname,
@@ -338,13 +333,9 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
338
333
  else {
339
334
  throw new Error("No value provided for input HTTP label: applicationId.");
340
335
  }
341
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.configurationOverrides !== undefined &&
342
- input.configurationOverrides !== null && {
336
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.configurationOverrides != null && {
343
337
  configurationOverrides: serializeAws_restJson1ConfigurationOverrides(input.configurationOverrides, context),
344
- })), (input.executionRoleArn !== undefined &&
345
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.executionTimeoutMinutes !== undefined &&
346
- input.executionTimeoutMinutes !== null && { executionTimeoutMinutes: input.executionTimeoutMinutes })), (input.jobDriver !== undefined &&
347
- input.jobDriver !== null && { jobDriver: serializeAws_restJson1JobDriver(input.jobDriver, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
338
+ })), (input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn })), (input.executionTimeoutMinutes != null && { executionTimeoutMinutes: input.executionTimeoutMinutes })), (input.jobDriver != null && { jobDriver: serializeAws_restJson1JobDriver(input.jobDriver, context) })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
348
339
  return [2, new __HttpRequest({
349
340
  protocol: protocol,
350
341
  hostname: hostname,
@@ -409,7 +400,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
409
400
  else {
410
401
  throw new Error("No value provided for input HTTP label: resourceArn.");
411
402
  }
412
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
403
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
413
404
  return [2, new __HttpRequest({
414
405
  protocol: protocol,
415
406
  hostname: hostname,
@@ -477,20 +468,15 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
477
468
  else {
478
469
  throw new Error("No value provided for input HTTP label: applicationId.");
479
470
  }
480
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.autoStartConfiguration !== undefined &&
481
- input.autoStartConfiguration !== null && {
471
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.autoStartConfiguration != null && {
482
472
  autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
483
- })), (input.autoStopConfiguration !== undefined &&
484
- input.autoStopConfiguration !== null && {
473
+ })), (input.autoStopConfiguration != null && {
485
474
  autoStopConfiguration: serializeAws_restJson1AutoStopConfig(input.autoStopConfiguration, context),
486
- })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.initialCapacity !== undefined &&
487
- input.initialCapacity !== null && {
475
+ })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.initialCapacity != null && {
488
476
  initialCapacity: serializeAws_restJson1InitialCapacityConfigMap(input.initialCapacity, context),
489
- })), (input.maximumCapacity !== undefined &&
490
- input.maximumCapacity !== null && {
477
+ })), (input.maximumCapacity != null && {
491
478
  maximumCapacity: serializeAws_restJson1MaximumAllowedResources(input.maximumCapacity, context),
492
- })), (input.networkConfiguration !== undefined &&
493
- input.networkConfiguration !== null && {
479
+ })), (input.networkConfiguration != null && {
494
480
  networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
495
481
  })));
496
482
  return [2, new __HttpRequest({
@@ -1474,19 +1460,15 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
1474
1460
  });
1475
1461
  }); };
1476
1462
  var serializeAws_restJson1AutoStartConfig = function (input, context) {
1477
- return __assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
1463
+ return __assign({}, (input.enabled != null && { enabled: input.enabled }));
1478
1464
  };
1479
1465
  var serializeAws_restJson1AutoStopConfig = function (input, context) {
1480
- return __assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.idleTimeoutMinutes !== undefined &&
1481
- input.idleTimeoutMinutes !== null && { idleTimeoutMinutes: input.idleTimeoutMinutes }));
1466
+ return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }));
1482
1467
  };
1483
1468
  var serializeAws_restJson1Configuration = function (input, context) {
1484
- return __assign(__assign(__assign({}, (input.classification !== undefined &&
1485
- input.classification !== null && { classification: input.classification })), (input.configurations !== undefined &&
1486
- input.configurations !== null && {
1469
+ return __assign(__assign(__assign({}, (input.classification != null && { classification: input.classification })), (input.configurations != null && {
1487
1470
  configurations: serializeAws_restJson1ConfigurationList(input.configurations, context),
1488
- })), (input.properties !== undefined &&
1489
- input.properties !== null && {
1471
+ })), (input.properties != null && {
1490
1472
  properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
1491
1473
  }));
1492
1474
  };
@@ -1501,11 +1483,9 @@ var serializeAws_restJson1ConfigurationList = function (input, context) {
1501
1483
  });
1502
1484
  };
1503
1485
  var serializeAws_restJson1ConfigurationOverrides = function (input, context) {
1504
- return __assign(__assign({}, (input.applicationConfiguration !== undefined &&
1505
- input.applicationConfiguration !== null && {
1486
+ return __assign(__assign({}, (input.applicationConfiguration != null && {
1506
1487
  applicationConfiguration: serializeAws_restJson1ConfigurationList(input.applicationConfiguration, context),
1507
- })), (input.monitoringConfiguration !== undefined &&
1508
- input.monitoringConfiguration !== null && {
1488
+ })), (input.monitoringConfiguration != null && {
1509
1489
  monitoringConfiguration: serializeAws_restJson1MonitoringConfiguration(input.monitoringConfiguration, context),
1510
1490
  }));
1511
1491
  };
@@ -1520,13 +1500,12 @@ var serializeAws_restJson1EntryPointArguments = function (input, context) {
1520
1500
  });
1521
1501
  };
1522
1502
  var serializeAws_restJson1Hive = function (input, context) {
1523
- return __assign(__assign(__assign({}, (input.initQueryFile !== undefined && input.initQueryFile !== null && { initQueryFile: input.initQueryFile })), (input.parameters !== undefined && input.parameters !== null && { parameters: input.parameters })), (input.query !== undefined && input.query !== null && { query: input.query }));
1503
+ return __assign(__assign(__assign({}, (input.initQueryFile != null && { initQueryFile: input.initQueryFile })), (input.parameters != null && { parameters: input.parameters })), (input.query != null && { query: input.query }));
1524
1504
  };
1525
1505
  var serializeAws_restJson1InitialCapacityConfig = function (input, context) {
1526
- return __assign(__assign({}, (input.workerConfiguration !== undefined &&
1527
- input.workerConfiguration !== null && {
1506
+ return __assign(__assign({}, (input.workerConfiguration != null && {
1528
1507
  workerConfiguration: serializeAws_restJson1WorkerResourceConfig(input.workerConfiguration, context),
1529
- })), (input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }));
1508
+ })), (input.workerCount != null && { workerCount: input.workerCount }));
1530
1509
  };
1531
1510
  var serializeAws_restJson1InitialCapacityConfigMap = function (input, context) {
1532
1511
  return Object.entries(input).reduce(function (acc, _a) {
@@ -1546,31 +1525,25 @@ var serializeAws_restJson1JobDriver = function (input, context) {
1546
1525
  });
1547
1526
  };
1548
1527
  var serializeAws_restJson1ManagedPersistenceMonitoringConfiguration = function (input, context) {
1549
- return __assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.encryptionKeyArn !== undefined &&
1550
- input.encryptionKeyArn !== null && { encryptionKeyArn: input.encryptionKeyArn }));
1528
+ return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }));
1551
1529
  };
1552
1530
  var serializeAws_restJson1MaximumAllowedResources = function (input, context) {
1553
- return __assign(__assign(__assign({}, (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.disk !== undefined && input.disk !== null && { disk: input.disk })), (input.memory !== undefined && input.memory !== null && { memory: input.memory }));
1531
+ return __assign(__assign(__assign({}, (input.cpu != null && { cpu: input.cpu })), (input.disk != null && { disk: input.disk })), (input.memory != null && { memory: input.memory }));
1554
1532
  };
1555
1533
  var serializeAws_restJson1MonitoringConfiguration = function (input, context) {
1556
- return __assign(__assign({}, (input.managedPersistenceMonitoringConfiguration !== undefined &&
1557
- input.managedPersistenceMonitoringConfiguration !== null && {
1534
+ return __assign(__assign({}, (input.managedPersistenceMonitoringConfiguration != null && {
1558
1535
  managedPersistenceMonitoringConfiguration: serializeAws_restJson1ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
1559
- })), (input.s3MonitoringConfiguration !== undefined &&
1560
- input.s3MonitoringConfiguration !== null && {
1536
+ })), (input.s3MonitoringConfiguration != null && {
1561
1537
  s3MonitoringConfiguration: serializeAws_restJson1S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
1562
1538
  }));
1563
1539
  };
1564
1540
  var serializeAws_restJson1NetworkConfiguration = function (input, context) {
1565
- return __assign(__assign({}, (input.securityGroupIds !== undefined &&
1566
- input.securityGroupIds !== null && {
1541
+ return __assign(__assign({}, (input.securityGroupIds != null && {
1567
1542
  securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
1568
- })), (input.subnetIds !== undefined &&
1569
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }));
1543
+ })), (input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }));
1570
1544
  };
1571
1545
  var serializeAws_restJson1S3MonitoringConfiguration = function (input, context) {
1572
- return __assign(__assign({}, (input.encryptionKeyArn !== undefined &&
1573
- input.encryptionKeyArn !== null && { encryptionKeyArn: input.encryptionKeyArn })), (input.logUri !== undefined && input.logUri !== null && { logUri: input.logUri }));
1546
+ return __assign(__assign({}, (input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn })), (input.logUri != null && { logUri: input.logUri }));
1574
1547
  };
1575
1548
  var serializeAws_restJson1SecurityGroupIds = function (input, context) {
1576
1549
  return input
@@ -1593,11 +1566,9 @@ var serializeAws_restJson1SensitivePropertiesMap = function (input, context) {
1593
1566
  }, {});
1594
1567
  };
1595
1568
  var serializeAws_restJson1SparkSubmit = function (input, context) {
1596
- return __assign(__assign(__assign({}, (input.entryPoint !== undefined && input.entryPoint !== null && { entryPoint: input.entryPoint })), (input.entryPointArguments !== undefined &&
1597
- input.entryPointArguments !== null && {
1569
+ return __assign(__assign(__assign({}, (input.entryPoint != null && { entryPoint: input.entryPoint })), (input.entryPointArguments != null && {
1598
1570
  entryPointArguments: serializeAws_restJson1EntryPointArguments(input.entryPointArguments, context),
1599
- })), (input.sparkSubmitParameters !== undefined &&
1600
- input.sparkSubmitParameters !== null && { sparkSubmitParameters: input.sparkSubmitParameters }));
1571
+ })), (input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }));
1601
1572
  };
1602
1573
  var serializeAws_restJson1SubnetIds = function (input, context) {
1603
1574
  return input
@@ -1620,41 +1591,35 @@ var serializeAws_restJson1TagMap = function (input, context) {
1620
1591
  }, {});
1621
1592
  };
1622
1593
  var serializeAws_restJson1WorkerResourceConfig = function (input, context) {
1623
- return __assign(__assign(__assign({}, (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.disk !== undefined && input.disk !== null && { disk: input.disk })), (input.memory !== undefined && input.memory !== null && { memory: input.memory }));
1594
+ return __assign(__assign(__assign({}, (input.cpu != null && { cpu: input.cpu })), (input.disk != null && { disk: input.disk })), (input.memory != null && { memory: input.memory }));
1624
1595
  };
1625
1596
  var deserializeAws_restJson1Application = function (output, context) {
1626
1597
  return {
1627
1598
  applicationId: __expectString(output.applicationId),
1628
1599
  arn: __expectString(output.arn),
1629
- autoStartConfiguration: output.autoStartConfiguration !== undefined && output.autoStartConfiguration !== null
1600
+ autoStartConfiguration: output.autoStartConfiguration != null
1630
1601
  ? deserializeAws_restJson1AutoStartConfig(output.autoStartConfiguration, context)
1631
1602
  : undefined,
1632
- autoStopConfiguration: output.autoStopConfiguration !== undefined && output.autoStopConfiguration !== null
1603
+ autoStopConfiguration: output.autoStopConfiguration != null
1633
1604
  ? deserializeAws_restJson1AutoStopConfig(output.autoStopConfiguration, context)
1634
1605
  : undefined,
1635
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1636
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1637
- : undefined,
1638
- initialCapacity: output.initialCapacity !== undefined && output.initialCapacity !== null
1606
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1607
+ initialCapacity: output.initialCapacity != null
1639
1608
  ? deserializeAws_restJson1InitialCapacityConfigMap(output.initialCapacity, context)
1640
1609
  : undefined,
1641
- maximumCapacity: output.maximumCapacity !== undefined && output.maximumCapacity !== null
1610
+ maximumCapacity: output.maximumCapacity != null
1642
1611
  ? deserializeAws_restJson1MaximumAllowedResources(output.maximumCapacity, context)
1643
1612
  : undefined,
1644
1613
  name: __expectString(output.name),
1645
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
1614
+ networkConfiguration: output.networkConfiguration != null
1646
1615
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
1647
1616
  : undefined,
1648
1617
  releaseLabel: __expectString(output.releaseLabel),
1649
1618
  state: __expectString(output.state),
1650
1619
  stateDetails: __expectString(output.stateDetails),
1651
- tags: output.tags !== undefined && output.tags !== null
1652
- ? deserializeAws_restJson1TagMap(output.tags, context)
1653
- : undefined,
1620
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1654
1621
  type: __expectString(output.type),
1655
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1656
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1657
- : undefined,
1622
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1658
1623
  };
1659
1624
  };
1660
1625
  var deserializeAws_restJson1ApplicationList = function (output, context) {
@@ -1671,18 +1636,14 @@ var deserializeAws_restJson1ApplicationList = function (output, context) {
1671
1636
  var deserializeAws_restJson1ApplicationSummary = function (output, context) {
1672
1637
  return {
1673
1638
  arn: __expectString(output.arn),
1674
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1675
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1676
- : undefined,
1639
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1677
1640
  id: __expectString(output.id),
1678
1641
  name: __expectString(output.name),
1679
1642
  releaseLabel: __expectString(output.releaseLabel),
1680
1643
  state: __expectString(output.state),
1681
1644
  stateDetails: __expectString(output.stateDetails),
1682
1645
  type: __expectString(output.type),
1683
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1684
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1685
- : undefined,
1646
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1686
1647
  };
1687
1648
  };
1688
1649
  var deserializeAws_restJson1AutoStartConfig = function (output, context) {
@@ -1699,10 +1660,10 @@ var deserializeAws_restJson1AutoStopConfig = function (output, context) {
1699
1660
  var deserializeAws_restJson1Configuration = function (output, context) {
1700
1661
  return {
1701
1662
  classification: __expectString(output.classification),
1702
- configurations: output.configurations !== undefined && output.configurations !== null
1663
+ configurations: output.configurations != null
1703
1664
  ? deserializeAws_restJson1ConfigurationList(output.configurations, context)
1704
1665
  : undefined,
1705
- properties: output.properties !== undefined && output.properties !== null
1666
+ properties: output.properties != null
1706
1667
  ? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
1707
1668
  : undefined,
1708
1669
  };
@@ -1720,10 +1681,10 @@ var deserializeAws_restJson1ConfigurationList = function (output, context) {
1720
1681
  };
1721
1682
  var deserializeAws_restJson1ConfigurationOverrides = function (output, context) {
1722
1683
  return {
1723
- applicationConfiguration: output.applicationConfiguration !== undefined && output.applicationConfiguration !== null
1684
+ applicationConfiguration: output.applicationConfiguration != null
1724
1685
  ? deserializeAws_restJson1ConfigurationList(output.applicationConfiguration, context)
1725
1686
  : undefined,
1726
- monitoringConfiguration: output.monitoringConfiguration !== undefined && output.monitoringConfiguration !== null
1687
+ monitoringConfiguration: output.monitoringConfiguration != null
1727
1688
  ? deserializeAws_restJson1MonitoringConfiguration(output.monitoringConfiguration, context)
1728
1689
  : undefined,
1729
1690
  };
@@ -1748,7 +1709,7 @@ var deserializeAws_restJson1Hive = function (output, context) {
1748
1709
  };
1749
1710
  var deserializeAws_restJson1InitialCapacityConfig = function (output, context) {
1750
1711
  return {
1751
- workerConfiguration: output.workerConfiguration !== undefined && output.workerConfiguration !== null
1712
+ workerConfiguration: output.workerConfiguration != null
1752
1713
  ? deserializeAws_restJson1WorkerResourceConfig(output.workerConfiguration, context)
1753
1714
  : undefined,
1754
1715
  workerCount: __expectLong(output.workerCount),
@@ -1781,35 +1742,29 @@ var deserializeAws_restJson1JobRun = function (output, context) {
1781
1742
  return {
1782
1743
  applicationId: __expectString(output.applicationId),
1783
1744
  arn: __expectString(output.arn),
1784
- configurationOverrides: output.configurationOverrides !== undefined && output.configurationOverrides !== null
1745
+ configurationOverrides: output.configurationOverrides != null
1785
1746
  ? deserializeAws_restJson1ConfigurationOverrides(output.configurationOverrides, context)
1786
1747
  : undefined,
1787
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1788
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1789
- : undefined,
1748
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1790
1749
  createdBy: __expectString(output.createdBy),
1791
1750
  executionRole: __expectString(output.executionRole),
1792
- jobDriver: output.jobDriver !== undefined && output.jobDriver !== null
1751
+ jobDriver: output.jobDriver != null
1793
1752
  ? deserializeAws_restJson1JobDriver(__expectUnion(output.jobDriver), context)
1794
1753
  : undefined,
1795
1754
  jobRunId: __expectString(output.jobRunId),
1796
1755
  name: __expectString(output.name),
1797
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
1756
+ networkConfiguration: output.networkConfiguration != null
1798
1757
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
1799
1758
  : undefined,
1800
1759
  releaseLabel: __expectString(output.releaseLabel),
1801
1760
  state: __expectString(output.state),
1802
1761
  stateDetails: __expectString(output.stateDetails),
1803
- tags: output.tags !== undefined && output.tags !== null
1804
- ? deserializeAws_restJson1TagMap(output.tags, context)
1805
- : undefined,
1762
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1806
1763
  totalExecutionDurationSeconds: __expectInt32(output.totalExecutionDurationSeconds),
1807
- totalResourceUtilization: output.totalResourceUtilization !== undefined && output.totalResourceUtilization !== null
1764
+ totalResourceUtilization: output.totalResourceUtilization != null
1808
1765
  ? deserializeAws_restJson1TotalResourceUtilization(output.totalResourceUtilization, context)
1809
1766
  : undefined,
1810
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1811
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1812
- : undefined,
1767
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1813
1768
  };
1814
1769
  };
1815
1770
  var deserializeAws_restJson1JobRuns = function (output, context) {
@@ -1827,9 +1782,7 @@ var deserializeAws_restJson1JobRunSummary = function (output, context) {
1827
1782
  return {
1828
1783
  applicationId: __expectString(output.applicationId),
1829
1784
  arn: __expectString(output.arn),
1830
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1831
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1832
- : undefined,
1785
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1833
1786
  createdBy: __expectString(output.createdBy),
1834
1787
  executionRole: __expectString(output.executionRole),
1835
1788
  id: __expectString(output.id),
@@ -1838,9 +1791,7 @@ var deserializeAws_restJson1JobRunSummary = function (output, context) {
1838
1791
  state: __expectString(output.state),
1839
1792
  stateDetails: __expectString(output.stateDetails),
1840
1793
  type: __expectString(output.type),
1841
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1842
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1843
- : undefined,
1794
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1844
1795
  };
1845
1796
  };
1846
1797
  var deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration = function (output, context) {
@@ -1858,23 +1809,20 @@ var deserializeAws_restJson1MaximumAllowedResources = function (output, context)
1858
1809
  };
1859
1810
  var deserializeAws_restJson1MonitoringConfiguration = function (output, context) {
1860
1811
  return {
1861
- managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration !== undefined &&
1862
- output.managedPersistenceMonitoringConfiguration !== null
1812
+ managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
1863
1813
  ? deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
1864
1814
  : undefined,
1865
- s3MonitoringConfiguration: output.s3MonitoringConfiguration !== undefined && output.s3MonitoringConfiguration !== null
1815
+ s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
1866
1816
  ? deserializeAws_restJson1S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
1867
1817
  : undefined,
1868
1818
  };
1869
1819
  };
1870
1820
  var deserializeAws_restJson1NetworkConfiguration = function (output, context) {
1871
1821
  return {
1872
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
1822
+ securityGroupIds: output.securityGroupIds != null
1873
1823
  ? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
1874
1824
  : undefined,
1875
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
1876
- ? deserializeAws_restJson1SubnetIds(output.subnetIds, context)
1877
- : undefined,
1825
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
1878
1826
  };
1879
1827
  };
1880
1828
  var deserializeAws_restJson1S3MonitoringConfiguration = function (output, context) {
@@ -1907,7 +1855,7 @@ var deserializeAws_restJson1SensitivePropertiesMap = function (output, context)
1907
1855
  var deserializeAws_restJson1SparkSubmit = function (output, context) {
1908
1856
  return {
1909
1857
  entryPoint: __expectString(output.entryPoint),
1910
- entryPointArguments: output.entryPointArguments !== undefined && output.entryPointArguments !== null
1858
+ entryPointArguments: output.entryPointArguments != null
1911
1859
  ? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
1912
1860
  : undefined,
1913
1861
  sparkSubmitParameters: __expectString(output.sparkSubmitParameters),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-serverless",
3
3
  "description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.127.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.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.127.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",