@aws-sdk/client-emr-serverless 3.118.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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({
@@ -534,7 +520,7 @@ export var deserializeAws_restJson1CancelJobRunCommand = function (output, conte
534
520
  });
535
521
  }); };
536
522
  var deserializeAws_restJson1CancelJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
537
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
523
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
538
524
  var _c;
539
525
  return __generator(this, function (_d) {
540
526
  switch (_d.label) {
@@ -544,7 +530,6 @@ var deserializeAws_restJson1CancelJobRunCommandError = function (output, context
544
530
  return [4, parseBody(output.body, context)];
545
531
  case 1:
546
532
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
547
- errorCode = "UnknownError";
548
533
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
549
534
  _b = errorCode;
550
535
  switch (_b) {
@@ -564,10 +549,12 @@ var deserializeAws_restJson1CancelJobRunCommandError = function (output, context
564
549
  case 7: throw _d.sent();
565
550
  case 8:
566
551
  parsedBody = parsedOutput.body;
552
+ $metadata = deserializeMetadata(output);
553
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
567
554
  response = new __BaseException({
568
- name: parsedBody.code || parsedBody.Code || errorCode,
555
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
569
556
  $fault: "client",
570
- $metadata: deserializeMetadata(output),
557
+ $metadata: $metadata,
571
558
  });
572
559
  throw __decorateServiceException(response, parsedBody);
573
560
  }
@@ -606,7 +593,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
606
593
  });
607
594
  }); };
608
595
  var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
609
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
596
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
610
597
  var _c;
611
598
  return __generator(this, function (_d) {
612
599
  switch (_d.label) {
@@ -616,7 +603,6 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
616
603
  return [4, parseBody(output.body, context)];
617
604
  case 1:
618
605
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
619
- errorCode = "UnknownError";
620
606
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
621
607
  _b = errorCode;
622
608
  switch (_b) {
@@ -636,10 +622,12 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
636
622
  case 7: throw _d.sent();
637
623
  case 8:
638
624
  parsedBody = parsedOutput.body;
625
+ $metadata = deserializeMetadata(output);
626
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
639
627
  response = new __BaseException({
640
- name: parsedBody.code || parsedBody.Code || errorCode,
628
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
641
629
  $fault: "client",
642
- $metadata: deserializeMetadata(output),
630
+ $metadata: $metadata,
643
631
  });
644
632
  throw __decorateServiceException(response, parsedBody);
645
633
  }
@@ -664,7 +652,7 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
664
652
  });
665
653
  }); };
666
654
  var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
667
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
655
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
668
656
  var _c;
669
657
  return __generator(this, function (_d) {
670
658
  switch (_d.label) {
@@ -674,7 +662,6 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
674
662
  return [4, parseBody(output.body, context)];
675
663
  case 1:
676
664
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
677
- errorCode = "UnknownError";
678
665
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
679
666
  _b = errorCode;
680
667
  switch (_b) {
@@ -694,10 +681,12 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
694
681
  case 7: throw _d.sent();
695
682
  case 8:
696
683
  parsedBody = parsedOutput.body;
684
+ $metadata = deserializeMetadata(output);
685
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
697
686
  response = new __BaseException({
698
- name: parsedBody.code || parsedBody.Code || errorCode,
687
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
699
688
  $fault: "client",
700
- $metadata: deserializeMetadata(output),
689
+ $metadata: $metadata,
701
690
  });
702
691
  throw __decorateServiceException(response, parsedBody);
703
692
  }
@@ -728,7 +717,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
728
717
  });
729
718
  }); };
730
719
  var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
731
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
720
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
732
721
  var _c;
733
722
  return __generator(this, function (_d) {
734
723
  switch (_d.label) {
@@ -738,7 +727,6 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
738
727
  return [4, parseBody(output.body, context)];
739
728
  case 1:
740
729
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
741
- errorCode = "UnknownError";
742
730
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
743
731
  _b = errorCode;
744
732
  switch (_b) {
@@ -758,10 +746,12 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
758
746
  case 7: throw _d.sent();
759
747
  case 8:
760
748
  parsedBody = parsedOutput.body;
749
+ $metadata = deserializeMetadata(output);
750
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
761
751
  response = new __BaseException({
762
- name: parsedBody.code || parsedBody.Code || errorCode,
752
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
763
753
  $fault: "client",
764
- $metadata: deserializeMetadata(output),
754
+ $metadata: $metadata,
765
755
  });
766
756
  throw __decorateServiceException(response, parsedBody);
767
757
  }
@@ -792,7 +782,7 @@ export var deserializeAws_restJson1GetJobRunCommand = function (output, context)
792
782
  });
793
783
  }); };
794
784
  var deserializeAws_restJson1GetJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
795
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
785
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
796
786
  var _c;
797
787
  return __generator(this, function (_d) {
798
788
  switch (_d.label) {
@@ -802,7 +792,6 @@ var deserializeAws_restJson1GetJobRunCommandError = function (output, context) {
802
792
  return [4, parseBody(output.body, context)];
803
793
  case 1:
804
794
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
805
- errorCode = "UnknownError";
806
795
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
807
796
  _b = errorCode;
808
797
  switch (_b) {
@@ -822,10 +811,12 @@ var deserializeAws_restJson1GetJobRunCommandError = function (output, context) {
822
811
  case 7: throw _d.sent();
823
812
  case 8:
824
813
  parsedBody = parsedOutput.body;
814
+ $metadata = deserializeMetadata(output);
815
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
825
816
  response = new __BaseException({
826
- name: parsedBody.code || parsedBody.Code || errorCode,
817
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
827
818
  $fault: "client",
828
- $metadata: deserializeMetadata(output),
819
+ $metadata: $metadata,
829
820
  });
830
821
  throw __decorateServiceException(response, parsedBody);
831
822
  }
@@ -860,7 +851,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
860
851
  });
861
852
  }); };
862
853
  var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
863
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
854
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
864
855
  var _c;
865
856
  return __generator(this, function (_d) {
866
857
  switch (_d.label) {
@@ -870,7 +861,6 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
870
861
  return [4, parseBody(output.body, context)];
871
862
  case 1:
872
863
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
873
- errorCode = "UnknownError";
874
864
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
875
865
  _b = errorCode;
876
866
  switch (_b) {
@@ -886,10 +876,12 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
886
876
  case 5: throw _d.sent();
887
877
  case 6:
888
878
  parsedBody = parsedOutput.body;
879
+ $metadata = deserializeMetadata(output);
880
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
889
881
  response = new __BaseException({
890
- name: parsedBody.code || parsedBody.Code || errorCode,
882
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
891
883
  $fault: "client",
892
- $metadata: deserializeMetadata(output),
884
+ $metadata: $metadata,
893
885
  });
894
886
  throw __decorateServiceException(response, parsedBody);
895
887
  }
@@ -924,7 +916,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
924
916
  });
925
917
  }); };
926
918
  var deserializeAws_restJson1ListJobRunsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
927
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
919
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
928
920
  var _c;
929
921
  return __generator(this, function (_d) {
930
922
  switch (_d.label) {
@@ -934,7 +926,6 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
934
926
  return [4, parseBody(output.body, context)];
935
927
  case 1:
936
928
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
937
- errorCode = "UnknownError";
938
929
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
939
930
  _b = errorCode;
940
931
  switch (_b) {
@@ -950,10 +941,12 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
950
941
  case 5: throw _d.sent();
951
942
  case 6:
952
943
  parsedBody = parsedOutput.body;
944
+ $metadata = deserializeMetadata(output);
945
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
953
946
  response = new __BaseException({
954
- name: parsedBody.code || parsedBody.Code || errorCode,
947
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
955
948
  $fault: "client",
956
- $metadata: deserializeMetadata(output),
949
+ $metadata: $metadata,
957
950
  });
958
951
  throw __decorateServiceException(response, parsedBody);
959
952
  }
@@ -984,7 +977,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
984
977
  });
985
978
  }); };
986
979
  var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
987
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
980
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
988
981
  var _c;
989
982
  return __generator(this, function (_d) {
990
983
  switch (_d.label) {
@@ -994,7 +987,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
994
987
  return [4, parseBody(output.body, context)];
995
988
  case 1:
996
989
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
997
- errorCode = "UnknownError";
998
990
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
999
991
  _b = errorCode;
1000
992
  switch (_b) {
@@ -1014,10 +1006,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
1014
1006
  case 7: throw _d.sent();
1015
1007
  case 8:
1016
1008
  parsedBody = parsedOutput.body;
1009
+ $metadata = deserializeMetadata(output);
1010
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1017
1011
  response = new __BaseException({
1018
- name: parsedBody.code || parsedBody.Code || errorCode,
1012
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1019
1013
  $fault: "client",
1020
- $metadata: deserializeMetadata(output),
1014
+ $metadata: $metadata,
1021
1015
  });
1022
1016
  throw __decorateServiceException(response, parsedBody);
1023
1017
  }
@@ -1042,7 +1036,7 @@ export var deserializeAws_restJson1StartApplicationCommand = function (output, c
1042
1036
  });
1043
1037
  }); };
1044
1038
  var deserializeAws_restJson1StartApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1045
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1039
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1046
1040
  var _c;
1047
1041
  return __generator(this, function (_d) {
1048
1042
  switch (_d.label) {
@@ -1052,7 +1046,6 @@ var deserializeAws_restJson1StartApplicationCommandError = function (output, con
1052
1046
  return [4, parseBody(output.body, context)];
1053
1047
  case 1:
1054
1048
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1055
- errorCode = "UnknownError";
1056
1049
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1057
1050
  _b = errorCode;
1058
1051
  switch (_b) {
@@ -1076,10 +1069,12 @@ var deserializeAws_restJson1StartApplicationCommandError = function (output, con
1076
1069
  case 9: throw _d.sent();
1077
1070
  case 10:
1078
1071
  parsedBody = parsedOutput.body;
1072
+ $metadata = deserializeMetadata(output);
1073
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1079
1074
  response = new __BaseException({
1080
- name: parsedBody.code || parsedBody.Code || errorCode,
1075
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1081
1076
  $fault: "client",
1082
- $metadata: deserializeMetadata(output),
1077
+ $metadata: $metadata,
1083
1078
  });
1084
1079
  throw __decorateServiceException(response, parsedBody);
1085
1080
  }
@@ -1118,7 +1113,7 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
1118
1113
  });
1119
1114
  }); };
1120
1115
  var deserializeAws_restJson1StartJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1121
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1116
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1122
1117
  var _c;
1123
1118
  return __generator(this, function (_d) {
1124
1119
  switch (_d.label) {
@@ -1128,7 +1123,6 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
1128
1123
  return [4, parseBody(output.body, context)];
1129
1124
  case 1:
1130
1125
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1131
- errorCode = "UnknownError";
1132
1126
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1133
1127
  _b = errorCode;
1134
1128
  switch (_b) {
@@ -1152,10 +1146,12 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
1152
1146
  case 9: throw _d.sent();
1153
1147
  case 10:
1154
1148
  parsedBody = parsedOutput.body;
1149
+ $metadata = deserializeMetadata(output);
1150
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1155
1151
  response = new __BaseException({
1156
- name: parsedBody.code || parsedBody.Code || errorCode,
1152
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1157
1153
  $fault: "client",
1158
- $metadata: deserializeMetadata(output),
1154
+ $metadata: $metadata,
1159
1155
  });
1160
1156
  throw __decorateServiceException(response, parsedBody);
1161
1157
  }
@@ -1180,7 +1176,7 @@ export var deserializeAws_restJson1StopApplicationCommand = function (output, co
1180
1176
  });
1181
1177
  }); };
1182
1178
  var deserializeAws_restJson1StopApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1183
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1179
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1184
1180
  var _c;
1185
1181
  return __generator(this, function (_d) {
1186
1182
  switch (_d.label) {
@@ -1190,7 +1186,6 @@ var deserializeAws_restJson1StopApplicationCommandError = function (output, cont
1190
1186
  return [4, parseBody(output.body, context)];
1191
1187
  case 1:
1192
1188
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1193
- errorCode = "UnknownError";
1194
1189
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1195
1190
  _b = errorCode;
1196
1191
  switch (_b) {
@@ -1210,10 +1205,12 @@ var deserializeAws_restJson1StopApplicationCommandError = function (output, cont
1210
1205
  case 7: throw _d.sent();
1211
1206
  case 8:
1212
1207
  parsedBody = parsedOutput.body;
1208
+ $metadata = deserializeMetadata(output);
1209
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1213
1210
  response = new __BaseException({
1214
- name: parsedBody.code || parsedBody.Code || errorCode,
1211
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1215
1212
  $fault: "client",
1216
- $metadata: deserializeMetadata(output),
1213
+ $metadata: $metadata,
1217
1214
  });
1218
1215
  throw __decorateServiceException(response, parsedBody);
1219
1216
  }
@@ -1238,7 +1235,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
1238
1235
  });
1239
1236
  }); };
1240
1237
  var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1241
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1238
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1242
1239
  var _c;
1243
1240
  return __generator(this, function (_d) {
1244
1241
  switch (_d.label) {
@@ -1248,7 +1245,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
1248
1245
  return [4, parseBody(output.body, context)];
1249
1246
  case 1:
1250
1247
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1251
- errorCode = "UnknownError";
1252
1248
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1253
1249
  _b = errorCode;
1254
1250
  switch (_b) {
@@ -1268,10 +1264,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
1268
1264
  case 7: throw _d.sent();
1269
1265
  case 8:
1270
1266
  parsedBody = parsedOutput.body;
1267
+ $metadata = deserializeMetadata(output);
1268
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1271
1269
  response = new __BaseException({
1272
- name: parsedBody.code || parsedBody.Code || errorCode,
1270
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1273
1271
  $fault: "client",
1274
- $metadata: deserializeMetadata(output),
1272
+ $metadata: $metadata,
1275
1273
  });
1276
1274
  throw __decorateServiceException(response, parsedBody);
1277
1275
  }
@@ -1296,7 +1294,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
1296
1294
  });
1297
1295
  }); };
1298
1296
  var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1299
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1297
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1300
1298
  var _c;
1301
1299
  return __generator(this, function (_d) {
1302
1300
  switch (_d.label) {
@@ -1306,7 +1304,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
1306
1304
  return [4, parseBody(output.body, context)];
1307
1305
  case 1:
1308
1306
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1309
- errorCode = "UnknownError";
1310
1307
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1311
1308
  _b = errorCode;
1312
1309
  switch (_b) {
@@ -1326,10 +1323,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
1326
1323
  case 7: throw _d.sent();
1327
1324
  case 8:
1328
1325
  parsedBody = parsedOutput.body;
1326
+ $metadata = deserializeMetadata(output);
1327
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1329
1328
  response = new __BaseException({
1330
- name: parsedBody.code || parsedBody.Code || errorCode,
1329
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1331
1330
  $fault: "client",
1332
- $metadata: deserializeMetadata(output),
1331
+ $metadata: $metadata,
1333
1332
  });
1334
1333
  throw __decorateServiceException(response, parsedBody);
1335
1334
  }
@@ -1360,7 +1359,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
1360
1359
  });
1361
1360
  }); };
1362
1361
  var deserializeAws_restJson1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1363
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1362
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1364
1363
  var _c;
1365
1364
  return __generator(this, function (_d) {
1366
1365
  switch (_d.label) {
@@ -1370,7 +1369,6 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
1370
1369
  return [4, parseBody(output.body, context)];
1371
1370
  case 1:
1372
1371
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1373
- errorCode = "UnknownError";
1374
1372
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1375
1373
  _b = errorCode;
1376
1374
  switch (_b) {
@@ -1390,10 +1388,12 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
1390
1388
  case 7: throw _d.sent();
1391
1389
  case 8:
1392
1390
  parsedBody = parsedOutput.body;
1391
+ $metadata = deserializeMetadata(output);
1392
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1393
1393
  response = new __BaseException({
1394
- name: parsedBody.code || parsedBody.Code || errorCode,
1394
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1395
1395
  $fault: "client",
1396
- $metadata: deserializeMetadata(output),
1396
+ $metadata: $metadata,
1397
1397
  });
1398
1398
  throw __decorateServiceException(response, parsedBody);
1399
1399
  }
@@ -1460,19 +1460,15 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
1460
1460
  });
1461
1461
  }); };
1462
1462
  var serializeAws_restJson1AutoStartConfig = function (input, context) {
1463
- return __assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
1463
+ return __assign({}, (input.enabled != null && { enabled: input.enabled }));
1464
1464
  };
1465
1465
  var serializeAws_restJson1AutoStopConfig = function (input, context) {
1466
- return __assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.idleTimeoutMinutes !== undefined &&
1467
- input.idleTimeoutMinutes !== null && { idleTimeoutMinutes: input.idleTimeoutMinutes }));
1466
+ return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }));
1468
1467
  };
1469
1468
  var serializeAws_restJson1Configuration = function (input, context) {
1470
- return __assign(__assign(__assign({}, (input.classification !== undefined &&
1471
- input.classification !== null && { classification: input.classification })), (input.configurations !== undefined &&
1472
- input.configurations !== null && {
1469
+ return __assign(__assign(__assign({}, (input.classification != null && { classification: input.classification })), (input.configurations != null && {
1473
1470
  configurations: serializeAws_restJson1ConfigurationList(input.configurations, context),
1474
- })), (input.properties !== undefined &&
1475
- input.properties !== null && {
1471
+ })), (input.properties != null && {
1476
1472
  properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
1477
1473
  }));
1478
1474
  };
@@ -1487,11 +1483,9 @@ var serializeAws_restJson1ConfigurationList = function (input, context) {
1487
1483
  });
1488
1484
  };
1489
1485
  var serializeAws_restJson1ConfigurationOverrides = function (input, context) {
1490
- return __assign(__assign({}, (input.applicationConfiguration !== undefined &&
1491
- input.applicationConfiguration !== null && {
1486
+ return __assign(__assign({}, (input.applicationConfiguration != null && {
1492
1487
  applicationConfiguration: serializeAws_restJson1ConfigurationList(input.applicationConfiguration, context),
1493
- })), (input.monitoringConfiguration !== undefined &&
1494
- input.monitoringConfiguration !== null && {
1488
+ })), (input.monitoringConfiguration != null && {
1495
1489
  monitoringConfiguration: serializeAws_restJson1MonitoringConfiguration(input.monitoringConfiguration, context),
1496
1490
  }));
1497
1491
  };
@@ -1506,13 +1500,12 @@ var serializeAws_restJson1EntryPointArguments = function (input, context) {
1506
1500
  });
1507
1501
  };
1508
1502
  var serializeAws_restJson1Hive = function (input, context) {
1509
- 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 }));
1510
1504
  };
1511
1505
  var serializeAws_restJson1InitialCapacityConfig = function (input, context) {
1512
- return __assign(__assign({}, (input.workerConfiguration !== undefined &&
1513
- input.workerConfiguration !== null && {
1506
+ return __assign(__assign({}, (input.workerConfiguration != null && {
1514
1507
  workerConfiguration: serializeAws_restJson1WorkerResourceConfig(input.workerConfiguration, context),
1515
- })), (input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }));
1508
+ })), (input.workerCount != null && { workerCount: input.workerCount }));
1516
1509
  };
1517
1510
  var serializeAws_restJson1InitialCapacityConfigMap = function (input, context) {
1518
1511
  return Object.entries(input).reduce(function (acc, _a) {
@@ -1532,31 +1525,25 @@ var serializeAws_restJson1JobDriver = function (input, context) {
1532
1525
  });
1533
1526
  };
1534
1527
  var serializeAws_restJson1ManagedPersistenceMonitoringConfiguration = function (input, context) {
1535
- return __assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.encryptionKeyArn !== undefined &&
1536
- input.encryptionKeyArn !== null && { encryptionKeyArn: input.encryptionKeyArn }));
1528
+ return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }));
1537
1529
  };
1538
1530
  var serializeAws_restJson1MaximumAllowedResources = function (input, context) {
1539
- 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 }));
1540
1532
  };
1541
1533
  var serializeAws_restJson1MonitoringConfiguration = function (input, context) {
1542
- return __assign(__assign({}, (input.managedPersistenceMonitoringConfiguration !== undefined &&
1543
- input.managedPersistenceMonitoringConfiguration !== null && {
1534
+ return __assign(__assign({}, (input.managedPersistenceMonitoringConfiguration != null && {
1544
1535
  managedPersistenceMonitoringConfiguration: serializeAws_restJson1ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
1545
- })), (input.s3MonitoringConfiguration !== undefined &&
1546
- input.s3MonitoringConfiguration !== null && {
1536
+ })), (input.s3MonitoringConfiguration != null && {
1547
1537
  s3MonitoringConfiguration: serializeAws_restJson1S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
1548
1538
  }));
1549
1539
  };
1550
1540
  var serializeAws_restJson1NetworkConfiguration = function (input, context) {
1551
- return __assign(__assign({}, (input.securityGroupIds !== undefined &&
1552
- input.securityGroupIds !== null && {
1541
+ return __assign(__assign({}, (input.securityGroupIds != null && {
1553
1542
  securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
1554
- })), (input.subnetIds !== undefined &&
1555
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }));
1543
+ })), (input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }));
1556
1544
  };
1557
1545
  var serializeAws_restJson1S3MonitoringConfiguration = function (input, context) {
1558
- return __assign(__assign({}, (input.encryptionKeyArn !== undefined &&
1559
- 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 }));
1560
1547
  };
1561
1548
  var serializeAws_restJson1SecurityGroupIds = function (input, context) {
1562
1549
  return input
@@ -1579,11 +1566,9 @@ var serializeAws_restJson1SensitivePropertiesMap = function (input, context) {
1579
1566
  }, {});
1580
1567
  };
1581
1568
  var serializeAws_restJson1SparkSubmit = function (input, context) {
1582
- return __assign(__assign(__assign({}, (input.entryPoint !== undefined && input.entryPoint !== null && { entryPoint: input.entryPoint })), (input.entryPointArguments !== undefined &&
1583
- input.entryPointArguments !== null && {
1569
+ return __assign(__assign(__assign({}, (input.entryPoint != null && { entryPoint: input.entryPoint })), (input.entryPointArguments != null && {
1584
1570
  entryPointArguments: serializeAws_restJson1EntryPointArguments(input.entryPointArguments, context),
1585
- })), (input.sparkSubmitParameters !== undefined &&
1586
- input.sparkSubmitParameters !== null && { sparkSubmitParameters: input.sparkSubmitParameters }));
1571
+ })), (input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }));
1587
1572
  };
1588
1573
  var serializeAws_restJson1SubnetIds = function (input, context) {
1589
1574
  return input
@@ -1606,41 +1591,35 @@ var serializeAws_restJson1TagMap = function (input, context) {
1606
1591
  }, {});
1607
1592
  };
1608
1593
  var serializeAws_restJson1WorkerResourceConfig = function (input, context) {
1609
- 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 }));
1610
1595
  };
1611
1596
  var deserializeAws_restJson1Application = function (output, context) {
1612
1597
  return {
1613
1598
  applicationId: __expectString(output.applicationId),
1614
1599
  arn: __expectString(output.arn),
1615
- autoStartConfiguration: output.autoStartConfiguration !== undefined && output.autoStartConfiguration !== null
1600
+ autoStartConfiguration: output.autoStartConfiguration != null
1616
1601
  ? deserializeAws_restJson1AutoStartConfig(output.autoStartConfiguration, context)
1617
1602
  : undefined,
1618
- autoStopConfiguration: output.autoStopConfiguration !== undefined && output.autoStopConfiguration !== null
1603
+ autoStopConfiguration: output.autoStopConfiguration != null
1619
1604
  ? deserializeAws_restJson1AutoStopConfig(output.autoStopConfiguration, context)
1620
1605
  : undefined,
1621
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1622
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1623
- : undefined,
1624
- initialCapacity: output.initialCapacity !== undefined && output.initialCapacity !== null
1606
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1607
+ initialCapacity: output.initialCapacity != null
1625
1608
  ? deserializeAws_restJson1InitialCapacityConfigMap(output.initialCapacity, context)
1626
1609
  : undefined,
1627
- maximumCapacity: output.maximumCapacity !== undefined && output.maximumCapacity !== null
1610
+ maximumCapacity: output.maximumCapacity != null
1628
1611
  ? deserializeAws_restJson1MaximumAllowedResources(output.maximumCapacity, context)
1629
1612
  : undefined,
1630
1613
  name: __expectString(output.name),
1631
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
1614
+ networkConfiguration: output.networkConfiguration != null
1632
1615
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
1633
1616
  : undefined,
1634
1617
  releaseLabel: __expectString(output.releaseLabel),
1635
1618
  state: __expectString(output.state),
1636
1619
  stateDetails: __expectString(output.stateDetails),
1637
- tags: output.tags !== undefined && output.tags !== null
1638
- ? deserializeAws_restJson1TagMap(output.tags, context)
1639
- : undefined,
1620
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1640
1621
  type: __expectString(output.type),
1641
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1642
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1643
- : undefined,
1622
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1644
1623
  };
1645
1624
  };
1646
1625
  var deserializeAws_restJson1ApplicationList = function (output, context) {
@@ -1657,18 +1636,14 @@ var deserializeAws_restJson1ApplicationList = function (output, context) {
1657
1636
  var deserializeAws_restJson1ApplicationSummary = function (output, context) {
1658
1637
  return {
1659
1638
  arn: __expectString(output.arn),
1660
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1661
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1662
- : undefined,
1639
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1663
1640
  id: __expectString(output.id),
1664
1641
  name: __expectString(output.name),
1665
1642
  releaseLabel: __expectString(output.releaseLabel),
1666
1643
  state: __expectString(output.state),
1667
1644
  stateDetails: __expectString(output.stateDetails),
1668
1645
  type: __expectString(output.type),
1669
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1670
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1671
- : undefined,
1646
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1672
1647
  };
1673
1648
  };
1674
1649
  var deserializeAws_restJson1AutoStartConfig = function (output, context) {
@@ -1685,10 +1660,10 @@ var deserializeAws_restJson1AutoStopConfig = function (output, context) {
1685
1660
  var deserializeAws_restJson1Configuration = function (output, context) {
1686
1661
  return {
1687
1662
  classification: __expectString(output.classification),
1688
- configurations: output.configurations !== undefined && output.configurations !== null
1663
+ configurations: output.configurations != null
1689
1664
  ? deserializeAws_restJson1ConfigurationList(output.configurations, context)
1690
1665
  : undefined,
1691
- properties: output.properties !== undefined && output.properties !== null
1666
+ properties: output.properties != null
1692
1667
  ? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
1693
1668
  : undefined,
1694
1669
  };
@@ -1706,10 +1681,10 @@ var deserializeAws_restJson1ConfigurationList = function (output, context) {
1706
1681
  };
1707
1682
  var deserializeAws_restJson1ConfigurationOverrides = function (output, context) {
1708
1683
  return {
1709
- applicationConfiguration: output.applicationConfiguration !== undefined && output.applicationConfiguration !== null
1684
+ applicationConfiguration: output.applicationConfiguration != null
1710
1685
  ? deserializeAws_restJson1ConfigurationList(output.applicationConfiguration, context)
1711
1686
  : undefined,
1712
- monitoringConfiguration: output.monitoringConfiguration !== undefined && output.monitoringConfiguration !== null
1687
+ monitoringConfiguration: output.monitoringConfiguration != null
1713
1688
  ? deserializeAws_restJson1MonitoringConfiguration(output.monitoringConfiguration, context)
1714
1689
  : undefined,
1715
1690
  };
@@ -1734,7 +1709,7 @@ var deserializeAws_restJson1Hive = function (output, context) {
1734
1709
  };
1735
1710
  var deserializeAws_restJson1InitialCapacityConfig = function (output, context) {
1736
1711
  return {
1737
- workerConfiguration: output.workerConfiguration !== undefined && output.workerConfiguration !== null
1712
+ workerConfiguration: output.workerConfiguration != null
1738
1713
  ? deserializeAws_restJson1WorkerResourceConfig(output.workerConfiguration, context)
1739
1714
  : undefined,
1740
1715
  workerCount: __expectLong(output.workerCount),
@@ -1767,35 +1742,29 @@ var deserializeAws_restJson1JobRun = function (output, context) {
1767
1742
  return {
1768
1743
  applicationId: __expectString(output.applicationId),
1769
1744
  arn: __expectString(output.arn),
1770
- configurationOverrides: output.configurationOverrides !== undefined && output.configurationOverrides !== null
1745
+ configurationOverrides: output.configurationOverrides != null
1771
1746
  ? deserializeAws_restJson1ConfigurationOverrides(output.configurationOverrides, context)
1772
1747
  : undefined,
1773
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1774
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1775
- : undefined,
1748
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1776
1749
  createdBy: __expectString(output.createdBy),
1777
1750
  executionRole: __expectString(output.executionRole),
1778
- jobDriver: output.jobDriver !== undefined && output.jobDriver !== null
1751
+ jobDriver: output.jobDriver != null
1779
1752
  ? deserializeAws_restJson1JobDriver(__expectUnion(output.jobDriver), context)
1780
1753
  : undefined,
1781
1754
  jobRunId: __expectString(output.jobRunId),
1782
1755
  name: __expectString(output.name),
1783
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
1756
+ networkConfiguration: output.networkConfiguration != null
1784
1757
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
1785
1758
  : undefined,
1786
1759
  releaseLabel: __expectString(output.releaseLabel),
1787
1760
  state: __expectString(output.state),
1788
1761
  stateDetails: __expectString(output.stateDetails),
1789
- tags: output.tags !== undefined && output.tags !== null
1790
- ? deserializeAws_restJson1TagMap(output.tags, context)
1791
- : undefined,
1762
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1792
1763
  totalExecutionDurationSeconds: __expectInt32(output.totalExecutionDurationSeconds),
1793
- totalResourceUtilization: output.totalResourceUtilization !== undefined && output.totalResourceUtilization !== null
1764
+ totalResourceUtilization: output.totalResourceUtilization != null
1794
1765
  ? deserializeAws_restJson1TotalResourceUtilization(output.totalResourceUtilization, context)
1795
1766
  : undefined,
1796
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1797
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1798
- : undefined,
1767
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1799
1768
  };
1800
1769
  };
1801
1770
  var deserializeAws_restJson1JobRuns = function (output, context) {
@@ -1813,9 +1782,7 @@ var deserializeAws_restJson1JobRunSummary = function (output, context) {
1813
1782
  return {
1814
1783
  applicationId: __expectString(output.applicationId),
1815
1784
  arn: __expectString(output.arn),
1816
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1817
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1818
- : undefined,
1785
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1819
1786
  createdBy: __expectString(output.createdBy),
1820
1787
  executionRole: __expectString(output.executionRole),
1821
1788
  id: __expectString(output.id),
@@ -1824,9 +1791,7 @@ var deserializeAws_restJson1JobRunSummary = function (output, context) {
1824
1791
  state: __expectString(output.state),
1825
1792
  stateDetails: __expectString(output.stateDetails),
1826
1793
  type: __expectString(output.type),
1827
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
1828
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
1829
- : undefined,
1794
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
1830
1795
  };
1831
1796
  };
1832
1797
  var deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration = function (output, context) {
@@ -1844,23 +1809,20 @@ var deserializeAws_restJson1MaximumAllowedResources = function (output, context)
1844
1809
  };
1845
1810
  var deserializeAws_restJson1MonitoringConfiguration = function (output, context) {
1846
1811
  return {
1847
- managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration !== undefined &&
1848
- output.managedPersistenceMonitoringConfiguration !== null
1812
+ managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
1849
1813
  ? deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
1850
1814
  : undefined,
1851
- s3MonitoringConfiguration: output.s3MonitoringConfiguration !== undefined && output.s3MonitoringConfiguration !== null
1815
+ s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
1852
1816
  ? deserializeAws_restJson1S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
1853
1817
  : undefined,
1854
1818
  };
1855
1819
  };
1856
1820
  var deserializeAws_restJson1NetworkConfiguration = function (output, context) {
1857
1821
  return {
1858
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
1822
+ securityGroupIds: output.securityGroupIds != null
1859
1823
  ? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
1860
1824
  : undefined,
1861
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
1862
- ? deserializeAws_restJson1SubnetIds(output.subnetIds, context)
1863
- : undefined,
1825
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
1864
1826
  };
1865
1827
  };
1866
1828
  var deserializeAws_restJson1S3MonitoringConfiguration = function (output, context) {
@@ -1893,7 +1855,7 @@ var deserializeAws_restJson1SensitivePropertiesMap = function (output, context)
1893
1855
  var deserializeAws_restJson1SparkSubmit = function (output, context) {
1894
1856
  return {
1895
1857
  entryPoint: __expectString(output.entryPoint),
1896
- entryPointArguments: output.entryPointArguments !== undefined && output.entryPointArguments !== null
1858
+ entryPointArguments: output.entryPointArguments != null
1897
1859
  ? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
1898
1860
  : undefined,
1899
1861
  sparkSubmitParameters: __expectString(output.sparkSubmitParameters),
@@ -1990,5 +1952,4 @@ var loadRestJsonErrorCode = function (output, data) {
1990
1952
  if (data["__type"] !== undefined) {
1991
1953
  return sanitizeErrorCode(data["__type"]);
1992
1954
  }
1993
- return "";
1994
1955
  };