@aws-sdk/client-emr-serverless 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +150 -189
- package/dist-es/protocols/Aws_restJson1.js +132 -171
- package/package.json +26 -26
|
@@ -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
|
|
56
|
-
input.autoStartConfiguration !== null && {
|
|
55
|
+
...(input.autoStartConfiguration != null && {
|
|
57
56
|
autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
|
|
58
57
|
}),
|
|
59
|
-
...(input.autoStopConfiguration
|
|
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
|
|
65
|
-
input.initialCapacity !== null && {
|
|
62
|
+
...(input.initialCapacity != null && {
|
|
66
63
|
initialCapacity: serializeAws_restJson1InitialCapacityConfigMap(input.initialCapacity, context),
|
|
67
64
|
}),
|
|
68
|
-
...(input.maximumCapacity
|
|
69
|
-
input.maximumCapacity !== null && {
|
|
65
|
+
...(input.maximumCapacity != null && {
|
|
70
66
|
maximumCapacity: serializeAws_restJson1MaximumAllowedResources(input.maximumCapacity, context),
|
|
71
67
|
}),
|
|
72
|
-
...(input.name
|
|
73
|
-
...(input.networkConfiguration
|
|
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
|
|
78
|
-
...(input.tags
|
|
79
|
-
...(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
|
|
318
|
-
input.configurationOverrides !== null && {
|
|
312
|
+
...(input.configurationOverrides != null && {
|
|
319
313
|
configurationOverrides: serializeAws_restJson1ConfigurationOverrides(input.configurationOverrides, context),
|
|
320
314
|
}),
|
|
321
|
-
...(input.executionRoleArn
|
|
322
|
-
|
|
323
|
-
...(input.
|
|
324
|
-
|
|
325
|
-
...(input.
|
|
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
|
|
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
|
|
448
|
-
input.autoStartConfiguration !== null && {
|
|
438
|
+
...(input.autoStartConfiguration != null && {
|
|
449
439
|
autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
|
|
450
440
|
}),
|
|
451
|
-
...(input.autoStopConfiguration
|
|
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
|
|
457
|
-
input.initialCapacity !== null && {
|
|
445
|
+
...(input.initialCapacity != null && {
|
|
458
446
|
initialCapacity: serializeAws_restJson1InitialCapacityConfigMap(input.initialCapacity, context),
|
|
459
447
|
}),
|
|
460
|
-
...(input.maximumCapacity
|
|
461
|
-
input.maximumCapacity !== null && {
|
|
448
|
+
...(input.maximumCapacity != null && {
|
|
462
449
|
maximumCapacity: serializeAws_restJson1MaximumAllowedResources(input.maximumCapacity, context),
|
|
463
450
|
}),
|
|
464
|
-
...(input.networkConfiguration
|
|
465
|
-
input.networkConfiguration !== null && {
|
|
451
|
+
...(input.networkConfiguration != null && {
|
|
466
452
|
networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
|
|
467
453
|
}),
|
|
468
454
|
});
|
|
@@ -502,8 +488,7 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
502
488
|
body: await parseBody(output.body, context),
|
|
503
489
|
};
|
|
504
490
|
let response;
|
|
505
|
-
|
|
506
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
492
|
switch (errorCode) {
|
|
508
493
|
case "InternalServerException":
|
|
509
494
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -516,10 +501,12 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
516
501
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
517
502
|
default:
|
|
518
503
|
const parsedBody = parsedOutput.body;
|
|
504
|
+
const $metadata = deserializeMetadata(output);
|
|
505
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
519
506
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
507
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
521
508
|
$fault: "client",
|
|
522
|
-
$metadata
|
|
509
|
+
$metadata,
|
|
523
510
|
});
|
|
524
511
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
525
512
|
}
|
|
@@ -553,8 +540,7 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
553
540
|
body: await parseBody(output.body, context),
|
|
554
541
|
};
|
|
555
542
|
let response;
|
|
556
|
-
|
|
557
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
544
|
switch (errorCode) {
|
|
559
545
|
case "ConflictException":
|
|
560
546
|
case "com.amazonaws.emrserverless#ConflictException":
|
|
@@ -567,10 +553,12 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
567
553
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
568
554
|
default:
|
|
569
555
|
const parsedBody = parsedOutput.body;
|
|
556
|
+
const $metadata = deserializeMetadata(output);
|
|
557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
570
558
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
572
560
|
$fault: "client",
|
|
573
|
-
$metadata
|
|
561
|
+
$metadata,
|
|
574
562
|
});
|
|
575
563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
576
564
|
}
|
|
@@ -592,8 +580,7 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
592
580
|
body: await parseBody(output.body, context),
|
|
593
581
|
};
|
|
594
582
|
let response;
|
|
595
|
-
|
|
596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
584
|
switch (errorCode) {
|
|
598
585
|
case "InternalServerException":
|
|
599
586
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -606,10 +593,12 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
606
593
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
607
594
|
default:
|
|
608
595
|
const parsedBody = parsedOutput.body;
|
|
596
|
+
const $metadata = deserializeMetadata(output);
|
|
597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
609
598
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
611
600
|
$fault: "client",
|
|
612
|
-
$metadata
|
|
601
|
+
$metadata,
|
|
613
602
|
});
|
|
614
603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
604
|
}
|
|
@@ -635,8 +624,7 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
635
624
|
body: await parseBody(output.body, context),
|
|
636
625
|
};
|
|
637
626
|
let response;
|
|
638
|
-
|
|
639
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
628
|
switch (errorCode) {
|
|
641
629
|
case "InternalServerException":
|
|
642
630
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -649,10 +637,12 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
649
637
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
650
638
|
default:
|
|
651
639
|
const parsedBody = parsedOutput.body;
|
|
640
|
+
const $metadata = deserializeMetadata(output);
|
|
641
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
652
642
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
653
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
643
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
654
644
|
$fault: "client",
|
|
655
|
-
$metadata
|
|
645
|
+
$metadata,
|
|
656
646
|
});
|
|
657
647
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
658
648
|
}
|
|
@@ -678,8 +668,7 @@ const deserializeAws_restJson1GetJobRunCommandError = async (output, context) =>
|
|
|
678
668
|
body: await parseBody(output.body, context),
|
|
679
669
|
};
|
|
680
670
|
let response;
|
|
681
|
-
|
|
682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
672
|
switch (errorCode) {
|
|
684
673
|
case "InternalServerException":
|
|
685
674
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -692,10 +681,12 @@ const deserializeAws_restJson1GetJobRunCommandError = async (output, context) =>
|
|
|
692
681
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
693
682
|
default:
|
|
694
683
|
const parsedBody = parsedOutput.body;
|
|
684
|
+
const $metadata = deserializeMetadata(output);
|
|
685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
695
686
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
697
688
|
$fault: "client",
|
|
698
|
-
$metadata
|
|
689
|
+
$metadata,
|
|
699
690
|
});
|
|
700
691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
701
692
|
}
|
|
@@ -725,8 +716,7 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
725
716
|
body: await parseBody(output.body, context),
|
|
726
717
|
};
|
|
727
718
|
let response;
|
|
728
|
-
|
|
729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
720
|
switch (errorCode) {
|
|
731
721
|
case "InternalServerException":
|
|
732
722
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -736,10 +726,12 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
736
726
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
737
727
|
default:
|
|
738
728
|
const parsedBody = parsedOutput.body;
|
|
729
|
+
const $metadata = deserializeMetadata(output);
|
|
730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
739
731
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
740
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
741
733
|
$fault: "client",
|
|
742
|
-
$metadata
|
|
734
|
+
$metadata,
|
|
743
735
|
});
|
|
744
736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
745
737
|
}
|
|
@@ -769,8 +761,7 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
769
761
|
body: await parseBody(output.body, context),
|
|
770
762
|
};
|
|
771
763
|
let response;
|
|
772
|
-
|
|
773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
765
|
switch (errorCode) {
|
|
775
766
|
case "InternalServerException":
|
|
776
767
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -780,10 +771,12 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
780
771
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
781
772
|
default:
|
|
782
773
|
const parsedBody = parsedOutput.body;
|
|
774
|
+
const $metadata = deserializeMetadata(output);
|
|
775
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
783
776
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
777
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
785
778
|
$fault: "client",
|
|
786
|
-
$metadata
|
|
779
|
+
$metadata,
|
|
787
780
|
});
|
|
788
781
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
789
782
|
}
|
|
@@ -809,8 +802,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
809
802
|
body: await parseBody(output.body, context),
|
|
810
803
|
};
|
|
811
804
|
let response;
|
|
812
|
-
|
|
813
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
806
|
switch (errorCode) {
|
|
815
807
|
case "InternalServerException":
|
|
816
808
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -823,10 +815,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
823
815
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
824
816
|
default:
|
|
825
817
|
const parsedBody = parsedOutput.body;
|
|
818
|
+
const $metadata = deserializeMetadata(output);
|
|
819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
826
820
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
827
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
828
822
|
$fault: "client",
|
|
829
|
-
$metadata
|
|
823
|
+
$metadata,
|
|
830
824
|
});
|
|
831
825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
832
826
|
}
|
|
@@ -848,8 +842,7 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
848
842
|
body: await parseBody(output.body, context),
|
|
849
843
|
};
|
|
850
844
|
let response;
|
|
851
|
-
|
|
852
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
846
|
switch (errorCode) {
|
|
854
847
|
case "InternalServerException":
|
|
855
848
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -865,10 +858,12 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
865
858
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
866
859
|
default:
|
|
867
860
|
const parsedBody = parsedOutput.body;
|
|
861
|
+
const $metadata = deserializeMetadata(output);
|
|
862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
868
863
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
870
865
|
$fault: "client",
|
|
871
|
-
$metadata
|
|
866
|
+
$metadata,
|
|
872
867
|
});
|
|
873
868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
874
869
|
}
|
|
@@ -902,8 +897,7 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
902
897
|
body: await parseBody(output.body, context),
|
|
903
898
|
};
|
|
904
899
|
let response;
|
|
905
|
-
|
|
906
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
901
|
switch (errorCode) {
|
|
908
902
|
case "ConflictException":
|
|
909
903
|
case "com.amazonaws.emrserverless#ConflictException":
|
|
@@ -919,10 +913,12 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
919
913
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
920
914
|
default:
|
|
921
915
|
const parsedBody = parsedOutput.body;
|
|
916
|
+
const $metadata = deserializeMetadata(output);
|
|
917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
922
918
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
923
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
924
920
|
$fault: "client",
|
|
925
|
-
$metadata
|
|
921
|
+
$metadata,
|
|
926
922
|
});
|
|
927
923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
928
924
|
}
|
|
@@ -944,8 +940,7 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
944
940
|
body: await parseBody(output.body, context),
|
|
945
941
|
};
|
|
946
942
|
let response;
|
|
947
|
-
|
|
948
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
944
|
switch (errorCode) {
|
|
950
945
|
case "InternalServerException":
|
|
951
946
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -958,10 +953,12 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
958
953
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
959
954
|
default:
|
|
960
955
|
const parsedBody = parsedOutput.body;
|
|
956
|
+
const $metadata = deserializeMetadata(output);
|
|
957
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
961
958
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
959
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
963
960
|
$fault: "client",
|
|
964
|
-
$metadata
|
|
961
|
+
$metadata,
|
|
965
962
|
});
|
|
966
963
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
967
964
|
}
|
|
@@ -983,8 +980,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
983
980
|
body: await parseBody(output.body, context),
|
|
984
981
|
};
|
|
985
982
|
let response;
|
|
986
|
-
|
|
987
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
984
|
switch (errorCode) {
|
|
989
985
|
case "InternalServerException":
|
|
990
986
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -997,10 +993,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
997
993
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
998
994
|
default:
|
|
999
995
|
const parsedBody = parsedOutput.body;
|
|
996
|
+
const $metadata = deserializeMetadata(output);
|
|
997
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1000
998
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
1001
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1002
1000
|
$fault: "client",
|
|
1003
|
-
$metadata
|
|
1001
|
+
$metadata,
|
|
1004
1002
|
});
|
|
1005
1003
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1006
1004
|
}
|
|
@@ -1022,8 +1020,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1022
1020
|
body: await parseBody(output.body, context),
|
|
1023
1021
|
};
|
|
1024
1022
|
let response;
|
|
1025
|
-
|
|
1026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
1024
|
switch (errorCode) {
|
|
1028
1025
|
case "InternalServerException":
|
|
1029
1026
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -1036,10 +1033,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1036
1033
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1037
1034
|
default:
|
|
1038
1035
|
const parsedBody = parsedOutput.body;
|
|
1036
|
+
const $metadata = deserializeMetadata(output);
|
|
1037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1039
1038
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
1040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1041
1040
|
$fault: "client",
|
|
1042
|
-
$metadata
|
|
1041
|
+
$metadata,
|
|
1043
1042
|
});
|
|
1044
1043
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1045
1044
|
}
|
|
@@ -1065,8 +1064,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1065
1064
|
body: await parseBody(output.body, context),
|
|
1066
1065
|
};
|
|
1067
1066
|
let response;
|
|
1068
|
-
|
|
1069
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1068
|
switch (errorCode) {
|
|
1071
1069
|
case "InternalServerException":
|
|
1072
1070
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
@@ -1079,10 +1077,12 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1079
1077
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1080
1078
|
default:
|
|
1081
1079
|
const parsedBody = parsedOutput.body;
|
|
1080
|
+
const $metadata = deserializeMetadata(output);
|
|
1081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1082
1082
|
response = new EMRServerlessServiceException_1.EMRServerlessServiceException({
|
|
1083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1084
1084
|
$fault: "client",
|
|
1085
|
-
$metadata
|
|
1085
|
+
$metadata,
|
|
1086
1086
|
});
|
|
1087
1087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1088
1088
|
}
|
|
@@ -1149,26 +1149,22 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1149
1149
|
};
|
|
1150
1150
|
const serializeAws_restJson1AutoStartConfig = (input, context) => {
|
|
1151
1151
|
return {
|
|
1152
|
-
...(input.enabled
|
|
1152
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1153
1153
|
};
|
|
1154
1154
|
};
|
|
1155
1155
|
const serializeAws_restJson1AutoStopConfig = (input, context) => {
|
|
1156
1156
|
return {
|
|
1157
|
-
...(input.enabled
|
|
1158
|
-
...(input.idleTimeoutMinutes
|
|
1159
|
-
input.idleTimeoutMinutes !== null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
|
|
1157
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1158
|
+
...(input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
|
|
1160
1159
|
};
|
|
1161
1160
|
};
|
|
1162
1161
|
const serializeAws_restJson1Configuration = (input, context) => {
|
|
1163
1162
|
return {
|
|
1164
|
-
...(input.classification
|
|
1165
|
-
|
|
1166
|
-
...(input.configurations !== undefined &&
|
|
1167
|
-
input.configurations !== null && {
|
|
1163
|
+
...(input.classification != null && { classification: input.classification }),
|
|
1164
|
+
...(input.configurations != null && {
|
|
1168
1165
|
configurations: serializeAws_restJson1ConfigurationList(input.configurations, context),
|
|
1169
1166
|
}),
|
|
1170
|
-
...(input.properties
|
|
1171
|
-
input.properties !== null && {
|
|
1167
|
+
...(input.properties != null && {
|
|
1172
1168
|
properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
|
|
1173
1169
|
}),
|
|
1174
1170
|
};
|
|
@@ -1185,12 +1181,10 @@ const serializeAws_restJson1ConfigurationList = (input, context) => {
|
|
|
1185
1181
|
};
|
|
1186
1182
|
const serializeAws_restJson1ConfigurationOverrides = (input, context) => {
|
|
1187
1183
|
return {
|
|
1188
|
-
...(input.applicationConfiguration
|
|
1189
|
-
input.applicationConfiguration !== null && {
|
|
1184
|
+
...(input.applicationConfiguration != null && {
|
|
1190
1185
|
applicationConfiguration: serializeAws_restJson1ConfigurationList(input.applicationConfiguration, context),
|
|
1191
1186
|
}),
|
|
1192
|
-
...(input.monitoringConfiguration
|
|
1193
|
-
input.monitoringConfiguration !== null && {
|
|
1187
|
+
...(input.monitoringConfiguration != null && {
|
|
1194
1188
|
monitoringConfiguration: serializeAws_restJson1MonitoringConfiguration(input.monitoringConfiguration, context),
|
|
1195
1189
|
}),
|
|
1196
1190
|
};
|
|
@@ -1207,18 +1201,17 @@ const serializeAws_restJson1EntryPointArguments = (input, context) => {
|
|
|
1207
1201
|
};
|
|
1208
1202
|
const serializeAws_restJson1Hive = (input, context) => {
|
|
1209
1203
|
return {
|
|
1210
|
-
...(input.initQueryFile
|
|
1211
|
-
...(input.parameters
|
|
1212
|
-
...(input.query
|
|
1204
|
+
...(input.initQueryFile != null && { initQueryFile: input.initQueryFile }),
|
|
1205
|
+
...(input.parameters != null && { parameters: input.parameters }),
|
|
1206
|
+
...(input.query != null && { query: input.query }),
|
|
1213
1207
|
};
|
|
1214
1208
|
};
|
|
1215
1209
|
const serializeAws_restJson1InitialCapacityConfig = (input, context) => {
|
|
1216
1210
|
return {
|
|
1217
|
-
...(input.workerConfiguration
|
|
1218
|
-
input.workerConfiguration !== null && {
|
|
1211
|
+
...(input.workerConfiguration != null && {
|
|
1219
1212
|
workerConfiguration: serializeAws_restJson1WorkerResourceConfig(input.workerConfiguration, context),
|
|
1220
1213
|
}),
|
|
1221
|
-
...(input.workerCount
|
|
1214
|
+
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1222
1215
|
};
|
|
1223
1216
|
};
|
|
1224
1217
|
const serializeAws_restJson1InitialCapacityConfigMap = (input, context) => {
|
|
@@ -1241,45 +1234,39 @@ const serializeAws_restJson1JobDriver = (input, context) => {
|
|
|
1241
1234
|
};
|
|
1242
1235
|
const serializeAws_restJson1ManagedPersistenceMonitoringConfiguration = (input, context) => {
|
|
1243
1236
|
return {
|
|
1244
|
-
...(input.enabled
|
|
1245
|
-
...(input.encryptionKeyArn
|
|
1246
|
-
input.encryptionKeyArn !== null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1237
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1238
|
+
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1247
1239
|
};
|
|
1248
1240
|
};
|
|
1249
1241
|
const serializeAws_restJson1MaximumAllowedResources = (input, context) => {
|
|
1250
1242
|
return {
|
|
1251
|
-
...(input.cpu
|
|
1252
|
-
...(input.disk
|
|
1253
|
-
...(input.memory
|
|
1243
|
+
...(input.cpu != null && { cpu: input.cpu }),
|
|
1244
|
+
...(input.disk != null && { disk: input.disk }),
|
|
1245
|
+
...(input.memory != null && { memory: input.memory }),
|
|
1254
1246
|
};
|
|
1255
1247
|
};
|
|
1256
1248
|
const serializeAws_restJson1MonitoringConfiguration = (input, context) => {
|
|
1257
1249
|
return {
|
|
1258
|
-
...(input.managedPersistenceMonitoringConfiguration
|
|
1259
|
-
input.managedPersistenceMonitoringConfiguration !== null && {
|
|
1250
|
+
...(input.managedPersistenceMonitoringConfiguration != null && {
|
|
1260
1251
|
managedPersistenceMonitoringConfiguration: serializeAws_restJson1ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
|
|
1261
1252
|
}),
|
|
1262
|
-
...(input.s3MonitoringConfiguration
|
|
1263
|
-
input.s3MonitoringConfiguration !== null && {
|
|
1253
|
+
...(input.s3MonitoringConfiguration != null && {
|
|
1264
1254
|
s3MonitoringConfiguration: serializeAws_restJson1S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
|
|
1265
1255
|
}),
|
|
1266
1256
|
};
|
|
1267
1257
|
};
|
|
1268
1258
|
const serializeAws_restJson1NetworkConfiguration = (input, context) => {
|
|
1269
1259
|
return {
|
|
1270
|
-
...(input.securityGroupIds
|
|
1271
|
-
input.securityGroupIds !== null && {
|
|
1260
|
+
...(input.securityGroupIds != null && {
|
|
1272
1261
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
1273
1262
|
}),
|
|
1274
|
-
...(input.subnetIds
|
|
1275
|
-
input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
|
|
1263
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
|
|
1276
1264
|
};
|
|
1277
1265
|
};
|
|
1278
1266
|
const serializeAws_restJson1S3MonitoringConfiguration = (input, context) => {
|
|
1279
1267
|
return {
|
|
1280
|
-
...(input.encryptionKeyArn
|
|
1281
|
-
|
|
1282
|
-
...(input.logUri !== undefined && input.logUri !== null && { logUri: input.logUri }),
|
|
1268
|
+
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1269
|
+
...(input.logUri != null && { logUri: input.logUri }),
|
|
1283
1270
|
};
|
|
1284
1271
|
};
|
|
1285
1272
|
const serializeAws_restJson1SecurityGroupIds = (input, context) => {
|
|
@@ -1305,13 +1292,11 @@ const serializeAws_restJson1SensitivePropertiesMap = (input, context) => {
|
|
|
1305
1292
|
};
|
|
1306
1293
|
const serializeAws_restJson1SparkSubmit = (input, context) => {
|
|
1307
1294
|
return {
|
|
1308
|
-
...(input.entryPoint
|
|
1309
|
-
...(input.entryPointArguments
|
|
1310
|
-
input.entryPointArguments !== null && {
|
|
1295
|
+
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1296
|
+
...(input.entryPointArguments != null && {
|
|
1311
1297
|
entryPointArguments: serializeAws_restJson1EntryPointArguments(input.entryPointArguments, context),
|
|
1312
1298
|
}),
|
|
1313
|
-
...(input.sparkSubmitParameters
|
|
1314
|
-
input.sparkSubmitParameters !== null && { sparkSubmitParameters: input.sparkSubmitParameters }),
|
|
1299
|
+
...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
|
|
1315
1300
|
};
|
|
1316
1301
|
};
|
|
1317
1302
|
const serializeAws_restJson1SubnetIds = (input, context) => {
|
|
@@ -1337,44 +1322,38 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1337
1322
|
};
|
|
1338
1323
|
const serializeAws_restJson1WorkerResourceConfig = (input, context) => {
|
|
1339
1324
|
return {
|
|
1340
|
-
...(input.cpu
|
|
1341
|
-
...(input.disk
|
|
1342
|
-
...(input.memory
|
|
1325
|
+
...(input.cpu != null && { cpu: input.cpu }),
|
|
1326
|
+
...(input.disk != null && { disk: input.disk }),
|
|
1327
|
+
...(input.memory != null && { memory: input.memory }),
|
|
1343
1328
|
};
|
|
1344
1329
|
};
|
|
1345
1330
|
const deserializeAws_restJson1Application = (output, context) => {
|
|
1346
1331
|
return {
|
|
1347
1332
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1348
1333
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1349
|
-
autoStartConfiguration: output.autoStartConfiguration
|
|
1334
|
+
autoStartConfiguration: output.autoStartConfiguration != null
|
|
1350
1335
|
? deserializeAws_restJson1AutoStartConfig(output.autoStartConfiguration, context)
|
|
1351
1336
|
: undefined,
|
|
1352
|
-
autoStopConfiguration: output.autoStopConfiguration
|
|
1337
|
+
autoStopConfiguration: output.autoStopConfiguration != null
|
|
1353
1338
|
? deserializeAws_restJson1AutoStopConfig(output.autoStopConfiguration, context)
|
|
1354
1339
|
: undefined,
|
|
1355
|
-
createdAt: output.createdAt
|
|
1356
|
-
|
|
1357
|
-
: undefined,
|
|
1358
|
-
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
|
|
1359
1342
|
? deserializeAws_restJson1InitialCapacityConfigMap(output.initialCapacity, context)
|
|
1360
1343
|
: undefined,
|
|
1361
|
-
maximumCapacity: output.maximumCapacity
|
|
1344
|
+
maximumCapacity: output.maximumCapacity != null
|
|
1362
1345
|
? deserializeAws_restJson1MaximumAllowedResources(output.maximumCapacity, context)
|
|
1363
1346
|
: undefined,
|
|
1364
1347
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1365
|
-
networkConfiguration: output.networkConfiguration
|
|
1348
|
+
networkConfiguration: output.networkConfiguration != null
|
|
1366
1349
|
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
1367
1350
|
: undefined,
|
|
1368
1351
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1369
1352
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1370
1353
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1371
|
-
tags: output.tags
|
|
1372
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1373
|
-
: undefined,
|
|
1354
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1374
1355
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1375
|
-
updatedAt: output.updatedAt
|
|
1376
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
1377
|
-
: undefined,
|
|
1356
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1378
1357
|
};
|
|
1379
1358
|
};
|
|
1380
1359
|
const deserializeAws_restJson1ApplicationList = (output, context) => {
|
|
@@ -1391,18 +1370,14 @@ const deserializeAws_restJson1ApplicationList = (output, context) => {
|
|
|
1391
1370
|
const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
1392
1371
|
return {
|
|
1393
1372
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1394
|
-
createdAt: output.createdAt
|
|
1395
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
1396
|
-
: undefined,
|
|
1373
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1397
1374
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1398
1375
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1399
1376
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1400
1377
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1401
1378
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1402
1379
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1403
|
-
updatedAt: output.updatedAt
|
|
1404
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
1405
|
-
: undefined,
|
|
1380
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1406
1381
|
};
|
|
1407
1382
|
};
|
|
1408
1383
|
const deserializeAws_restJson1AutoStartConfig = (output, context) => {
|
|
@@ -1419,10 +1394,10 @@ const deserializeAws_restJson1AutoStopConfig = (output, context) => {
|
|
|
1419
1394
|
const deserializeAws_restJson1Configuration = (output, context) => {
|
|
1420
1395
|
return {
|
|
1421
1396
|
classification: (0, smithy_client_1.expectString)(output.classification),
|
|
1422
|
-
configurations: output.configurations
|
|
1397
|
+
configurations: output.configurations != null
|
|
1423
1398
|
? deserializeAws_restJson1ConfigurationList(output.configurations, context)
|
|
1424
1399
|
: undefined,
|
|
1425
|
-
properties: output.properties
|
|
1400
|
+
properties: output.properties != null
|
|
1426
1401
|
? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
|
|
1427
1402
|
: undefined,
|
|
1428
1403
|
};
|
|
@@ -1440,10 +1415,10 @@ const deserializeAws_restJson1ConfigurationList = (output, context) => {
|
|
|
1440
1415
|
};
|
|
1441
1416
|
const deserializeAws_restJson1ConfigurationOverrides = (output, context) => {
|
|
1442
1417
|
return {
|
|
1443
|
-
applicationConfiguration: output.applicationConfiguration
|
|
1418
|
+
applicationConfiguration: output.applicationConfiguration != null
|
|
1444
1419
|
? deserializeAws_restJson1ConfigurationList(output.applicationConfiguration, context)
|
|
1445
1420
|
: undefined,
|
|
1446
|
-
monitoringConfiguration: output.monitoringConfiguration
|
|
1421
|
+
monitoringConfiguration: output.monitoringConfiguration != null
|
|
1447
1422
|
? deserializeAws_restJson1MonitoringConfiguration(output.monitoringConfiguration, context)
|
|
1448
1423
|
: undefined,
|
|
1449
1424
|
};
|
|
@@ -1468,7 +1443,7 @@ const deserializeAws_restJson1Hive = (output, context) => {
|
|
|
1468
1443
|
};
|
|
1469
1444
|
const deserializeAws_restJson1InitialCapacityConfig = (output, context) => {
|
|
1470
1445
|
return {
|
|
1471
|
-
workerConfiguration: output.workerConfiguration
|
|
1446
|
+
workerConfiguration: output.workerConfiguration != null
|
|
1472
1447
|
? deserializeAws_restJson1WorkerResourceConfig(output.workerConfiguration, context)
|
|
1473
1448
|
: undefined,
|
|
1474
1449
|
workerCount: (0, smithy_client_1.expectLong)(output.workerCount),
|
|
@@ -1502,35 +1477,29 @@ const deserializeAws_restJson1JobRun = (output, context) => {
|
|
|
1502
1477
|
return {
|
|
1503
1478
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1504
1479
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1505
|
-
configurationOverrides: output.configurationOverrides
|
|
1480
|
+
configurationOverrides: output.configurationOverrides != null
|
|
1506
1481
|
? deserializeAws_restJson1ConfigurationOverrides(output.configurationOverrides, context)
|
|
1507
1482
|
: undefined,
|
|
1508
|
-
createdAt: output.createdAt
|
|
1509
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
1510
|
-
: undefined,
|
|
1483
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1511
1484
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
1512
1485
|
executionRole: (0, smithy_client_1.expectString)(output.executionRole),
|
|
1513
|
-
jobDriver: output.jobDriver
|
|
1486
|
+
jobDriver: output.jobDriver != null
|
|
1514
1487
|
? deserializeAws_restJson1JobDriver((0, smithy_client_1.expectUnion)(output.jobDriver), context)
|
|
1515
1488
|
: undefined,
|
|
1516
1489
|
jobRunId: (0, smithy_client_1.expectString)(output.jobRunId),
|
|
1517
1490
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1518
|
-
networkConfiguration: output.networkConfiguration
|
|
1491
|
+
networkConfiguration: output.networkConfiguration != null
|
|
1519
1492
|
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
1520
1493
|
: undefined,
|
|
1521
1494
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1522
1495
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1523
1496
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1524
|
-
tags: output.tags
|
|
1525
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1526
|
-
: undefined,
|
|
1497
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1527
1498
|
totalExecutionDurationSeconds: (0, smithy_client_1.expectInt32)(output.totalExecutionDurationSeconds),
|
|
1528
|
-
totalResourceUtilization: output.totalResourceUtilization
|
|
1499
|
+
totalResourceUtilization: output.totalResourceUtilization != null
|
|
1529
1500
|
? deserializeAws_restJson1TotalResourceUtilization(output.totalResourceUtilization, context)
|
|
1530
1501
|
: undefined,
|
|
1531
|
-
updatedAt: output.updatedAt
|
|
1532
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
1533
|
-
: undefined,
|
|
1502
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1534
1503
|
};
|
|
1535
1504
|
};
|
|
1536
1505
|
const deserializeAws_restJson1JobRuns = (output, context) => {
|
|
@@ -1548,9 +1517,7 @@ const deserializeAws_restJson1JobRunSummary = (output, context) => {
|
|
|
1548
1517
|
return {
|
|
1549
1518
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1550
1519
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1551
|
-
createdAt: output.createdAt
|
|
1552
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
1553
|
-
: undefined,
|
|
1520
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1554
1521
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
1555
1522
|
executionRole: (0, smithy_client_1.expectString)(output.executionRole),
|
|
1556
1523
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -1559,9 +1526,7 @@ const deserializeAws_restJson1JobRunSummary = (output, context) => {
|
|
|
1559
1526
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1560
1527
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1561
1528
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1562
|
-
updatedAt: output.updatedAt
|
|
1563
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
1564
|
-
: undefined,
|
|
1529
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1565
1530
|
};
|
|
1566
1531
|
};
|
|
1567
1532
|
const deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration = (output, context) => {
|
|
@@ -1579,23 +1544,20 @@ const deserializeAws_restJson1MaximumAllowedResources = (output, context) => {
|
|
|
1579
1544
|
};
|
|
1580
1545
|
const deserializeAws_restJson1MonitoringConfiguration = (output, context) => {
|
|
1581
1546
|
return {
|
|
1582
|
-
managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration
|
|
1583
|
-
output.managedPersistenceMonitoringConfiguration !== null
|
|
1547
|
+
managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
|
|
1584
1548
|
? deserializeAws_restJson1ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
|
|
1585
1549
|
: undefined,
|
|
1586
|
-
s3MonitoringConfiguration: output.s3MonitoringConfiguration
|
|
1550
|
+
s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
|
|
1587
1551
|
? deserializeAws_restJson1S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
|
|
1588
1552
|
: undefined,
|
|
1589
1553
|
};
|
|
1590
1554
|
};
|
|
1591
1555
|
const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
|
|
1592
1556
|
return {
|
|
1593
|
-
securityGroupIds: output.securityGroupIds
|
|
1557
|
+
securityGroupIds: output.securityGroupIds != null
|
|
1594
1558
|
? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
|
|
1595
1559
|
: undefined,
|
|
1596
|
-
subnetIds: output.subnetIds
|
|
1597
|
-
? deserializeAws_restJson1SubnetIds(output.subnetIds, context)
|
|
1598
|
-
: undefined,
|
|
1560
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
|
|
1599
1561
|
};
|
|
1600
1562
|
};
|
|
1601
1563
|
const deserializeAws_restJson1S3MonitoringConfiguration = (output, context) => {
|
|
@@ -1629,7 +1591,7 @@ const deserializeAws_restJson1SensitivePropertiesMap = (output, context) => {
|
|
|
1629
1591
|
const deserializeAws_restJson1SparkSubmit = (output, context) => {
|
|
1630
1592
|
return {
|
|
1631
1593
|
entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
|
|
1632
|
-
entryPointArguments: output.entryPointArguments
|
|
1594
|
+
entryPointArguments: output.entryPointArguments != null
|
|
1633
1595
|
? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
|
|
1634
1596
|
: undefined,
|
|
1635
1597
|
sparkSubmitParameters: (0, smithy_client_1.expectString)(output.sparkSubmitParameters),
|
|
@@ -1720,5 +1682,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1720
1682
|
if (data["__type"] !== undefined) {
|
|
1721
1683
|
return sanitizeErrorCode(data["__type"]);
|
|
1722
1684
|
}
|
|
1723
|
-
return "";
|
|
1724
1685
|
};
|