@aws-sdk/client-compute-optimizer 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +246 -311
- package/dist-es/protocols/Aws_json1_0.js +190 -255
- package/package.json +26 -26
|
@@ -220,7 +220,7 @@ export var deserializeAws_json1_0DeleteRecommendationPreferencesCommand = functi
|
|
|
220
220
|
});
|
|
221
221
|
}); };
|
|
222
222
|
var deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
223
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
223
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
224
224
|
var _c;
|
|
225
225
|
return __generator(this, function (_d) {
|
|
226
226
|
switch (_d.label) {
|
|
@@ -230,7 +230,6 @@ var deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = function
|
|
|
230
230
|
return [4, parseBody(output.body, context)];
|
|
231
231
|
case 1:
|
|
232
232
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
233
|
-
errorCode = "UnknownError";
|
|
234
233
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
235
234
|
_b = errorCode;
|
|
236
235
|
switch (_b) {
|
|
@@ -270,10 +269,12 @@ var deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = function
|
|
|
270
269
|
case 17: throw _d.sent();
|
|
271
270
|
case 18:
|
|
272
271
|
parsedBody = parsedOutput.body;
|
|
272
|
+
$metadata = deserializeMetadata(output);
|
|
273
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
273
274
|
response = new __BaseException({
|
|
274
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
275
276
|
$fault: "client",
|
|
276
|
-
$metadata:
|
|
277
|
+
$metadata: $metadata,
|
|
277
278
|
});
|
|
278
279
|
throw __decorateServiceException(response, parsedBody);
|
|
279
280
|
}
|
|
@@ -298,7 +299,7 @@ export var deserializeAws_json1_0DescribeRecommendationExportJobsCommand = funct
|
|
|
298
299
|
});
|
|
299
300
|
}); };
|
|
300
301
|
var deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
301
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
302
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
302
303
|
var _c;
|
|
303
304
|
return __generator(this, function (_d) {
|
|
304
305
|
switch (_d.label) {
|
|
@@ -308,7 +309,6 @@ var deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = functio
|
|
|
308
309
|
return [4, parseBody(output.body, context)];
|
|
309
310
|
case 1:
|
|
310
311
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
311
|
-
errorCode = "UnknownError";
|
|
312
312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
313
313
|
_b = errorCode;
|
|
314
314
|
switch (_b) {
|
|
@@ -348,10 +348,12 @@ var deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = functio
|
|
|
348
348
|
case 17: throw _d.sent();
|
|
349
349
|
case 18:
|
|
350
350
|
parsedBody = parsedOutput.body;
|
|
351
|
+
$metadata = deserializeMetadata(output);
|
|
352
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
351
353
|
response = new __BaseException({
|
|
352
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
353
355
|
$fault: "client",
|
|
354
|
-
$metadata:
|
|
356
|
+
$metadata: $metadata,
|
|
355
357
|
});
|
|
356
358
|
throw __decorateServiceException(response, parsedBody);
|
|
357
359
|
}
|
|
@@ -376,7 +378,7 @@ export var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand =
|
|
|
376
378
|
});
|
|
377
379
|
}); };
|
|
378
380
|
var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
379
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
381
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
380
382
|
var _c;
|
|
381
383
|
return __generator(this, function (_d) {
|
|
382
384
|
switch (_d.label) {
|
|
@@ -386,7 +388,6 @@ var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError = fu
|
|
|
386
388
|
return [4, parseBody(output.body, context)];
|
|
387
389
|
case 1:
|
|
388
390
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
389
|
-
errorCode = "UnknownError";
|
|
390
391
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
392
|
_b = errorCode;
|
|
392
393
|
switch (_b) {
|
|
@@ -426,10 +427,12 @@ var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError = fu
|
|
|
426
427
|
case 17: throw _d.sent();
|
|
427
428
|
case 18:
|
|
428
429
|
parsedBody = parsedOutput.body;
|
|
430
|
+
$metadata = deserializeMetadata(output);
|
|
431
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
429
432
|
response = new __BaseException({
|
|
430
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
431
434
|
$fault: "client",
|
|
432
|
-
$metadata:
|
|
435
|
+
$metadata: $metadata,
|
|
433
436
|
});
|
|
434
437
|
throw __decorateServiceException(response, parsedBody);
|
|
435
438
|
}
|
|
@@ -454,7 +457,7 @@ export var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand = functio
|
|
|
454
457
|
});
|
|
455
458
|
}); };
|
|
456
459
|
var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
457
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
460
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
458
461
|
var _c;
|
|
459
462
|
return __generator(this, function (_d) {
|
|
460
463
|
switch (_d.label) {
|
|
@@ -464,7 +467,6 @@ var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = function
|
|
|
464
467
|
return [4, parseBody(output.body, context)];
|
|
465
468
|
case 1:
|
|
466
469
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
467
|
-
errorCode = "UnknownError";
|
|
468
470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
471
|
_b = errorCode;
|
|
470
472
|
switch (_b) {
|
|
@@ -504,10 +506,12 @@ var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = function
|
|
|
504
506
|
case 17: throw _d.sent();
|
|
505
507
|
case 18:
|
|
506
508
|
parsedBody = parsedOutput.body;
|
|
509
|
+
$metadata = deserializeMetadata(output);
|
|
510
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
507
511
|
response = new __BaseException({
|
|
508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
509
513
|
$fault: "client",
|
|
510
|
-
$metadata:
|
|
514
|
+
$metadata: $metadata,
|
|
511
515
|
});
|
|
512
516
|
throw __decorateServiceException(response, parsedBody);
|
|
513
517
|
}
|
|
@@ -532,7 +536,7 @@ export var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand = funct
|
|
|
532
536
|
});
|
|
533
537
|
}); };
|
|
534
538
|
var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
535
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
539
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
536
540
|
var _c;
|
|
537
541
|
return __generator(this, function (_d) {
|
|
538
542
|
switch (_d.label) {
|
|
@@ -542,7 +546,6 @@ var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = functio
|
|
|
542
546
|
return [4, parseBody(output.body, context)];
|
|
543
547
|
case 1:
|
|
544
548
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
545
|
-
errorCode = "UnknownError";
|
|
546
549
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
550
|
_b = errorCode;
|
|
548
551
|
switch (_b) {
|
|
@@ -582,10 +585,12 @@ var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = functio
|
|
|
582
585
|
case 17: throw _d.sent();
|
|
583
586
|
case 18:
|
|
584
587
|
parsedBody = parsedOutput.body;
|
|
588
|
+
$metadata = deserializeMetadata(output);
|
|
589
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
585
590
|
response = new __BaseException({
|
|
586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
587
592
|
$fault: "client",
|
|
588
|
-
$metadata:
|
|
593
|
+
$metadata: $metadata,
|
|
589
594
|
});
|
|
590
595
|
throw __decorateServiceException(response, parsedBody);
|
|
591
596
|
}
|
|
@@ -610,7 +615,7 @@ export var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = fu
|
|
|
610
615
|
});
|
|
611
616
|
}); };
|
|
612
617
|
var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
613
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
618
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
614
619
|
var _c;
|
|
615
620
|
return __generator(this, function (_d) {
|
|
616
621
|
switch (_d.label) {
|
|
@@ -620,7 +625,6 @@ var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = func
|
|
|
620
625
|
return [4, parseBody(output.body, context)];
|
|
621
626
|
case 1:
|
|
622
627
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
623
|
-
errorCode = "UnknownError";
|
|
624
628
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
629
|
_b = errorCode;
|
|
626
630
|
switch (_b) {
|
|
@@ -660,10 +664,12 @@ var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = func
|
|
|
660
664
|
case 17: throw _d.sent();
|
|
661
665
|
case 18:
|
|
662
666
|
parsedBody = parsedOutput.body;
|
|
667
|
+
$metadata = deserializeMetadata(output);
|
|
668
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
663
669
|
response = new __BaseException({
|
|
664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
670
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
665
671
|
$fault: "client",
|
|
666
|
-
$metadata:
|
|
672
|
+
$metadata: $metadata,
|
|
667
673
|
});
|
|
668
674
|
throw __decorateServiceException(response, parsedBody);
|
|
669
675
|
}
|
|
@@ -688,7 +694,7 @@ export var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = fun
|
|
|
688
694
|
});
|
|
689
695
|
}); };
|
|
690
696
|
var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
691
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
697
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
692
698
|
var _c;
|
|
693
699
|
return __generator(this, function (_d) {
|
|
694
700
|
switch (_d.label) {
|
|
@@ -698,7 +704,6 @@ var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = funct
|
|
|
698
704
|
return [4, parseBody(output.body, context)];
|
|
699
705
|
case 1:
|
|
700
706
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
701
|
-
errorCode = "UnknownError";
|
|
702
707
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
708
|
_b = errorCode;
|
|
704
709
|
switch (_b) {
|
|
@@ -738,10 +743,12 @@ var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = funct
|
|
|
738
743
|
case 17: throw _d.sent();
|
|
739
744
|
case 18:
|
|
740
745
|
parsedBody = parsedOutput.body;
|
|
746
|
+
$metadata = deserializeMetadata(output);
|
|
747
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
741
748
|
response = new __BaseException({
|
|
742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
749
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
743
750
|
$fault: "client",
|
|
744
|
-
$metadata:
|
|
751
|
+
$metadata: $metadata,
|
|
745
752
|
});
|
|
746
753
|
throw __decorateServiceException(response, parsedBody);
|
|
747
754
|
}
|
|
@@ -766,7 +773,7 @@ export var deserializeAws_json1_0GetEBSVolumeRecommendationsCommand = function (
|
|
|
766
773
|
});
|
|
767
774
|
}); };
|
|
768
775
|
var deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
769
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
776
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
770
777
|
var _c;
|
|
771
778
|
return __generator(this, function (_d) {
|
|
772
779
|
switch (_d.label) {
|
|
@@ -776,7 +783,6 @@ var deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = function (ou
|
|
|
776
783
|
return [4, parseBody(output.body, context)];
|
|
777
784
|
case 1:
|
|
778
785
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
779
|
-
errorCode = "UnknownError";
|
|
780
786
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
787
|
_b = errorCode;
|
|
782
788
|
switch (_b) {
|
|
@@ -816,10 +822,12 @@ var deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = function (ou
|
|
|
816
822
|
case 17: throw _d.sent();
|
|
817
823
|
case 18:
|
|
818
824
|
parsedBody = parsedOutput.body;
|
|
825
|
+
$metadata = deserializeMetadata(output);
|
|
826
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
819
827
|
response = new __BaseException({
|
|
820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
828
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
821
829
|
$fault: "client",
|
|
822
|
-
$metadata:
|
|
830
|
+
$metadata: $metadata,
|
|
823
831
|
});
|
|
824
832
|
throw __decorateServiceException(response, parsedBody);
|
|
825
833
|
}
|
|
@@ -844,7 +852,7 @@ export var deserializeAws_json1_0GetEC2InstanceRecommendationsCommand = function
|
|
|
844
852
|
});
|
|
845
853
|
}); };
|
|
846
854
|
var deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
847
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
855
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
848
856
|
var _c;
|
|
849
857
|
return __generator(this, function (_d) {
|
|
850
858
|
switch (_d.label) {
|
|
@@ -854,7 +862,6 @@ var deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = function (
|
|
|
854
862
|
return [4, parseBody(output.body, context)];
|
|
855
863
|
case 1:
|
|
856
864
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
857
|
-
errorCode = "UnknownError";
|
|
858
865
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
866
|
_b = errorCode;
|
|
860
867
|
switch (_b) {
|
|
@@ -894,10 +901,12 @@ var deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = function (
|
|
|
894
901
|
case 17: throw _d.sent();
|
|
895
902
|
case 18:
|
|
896
903
|
parsedBody = parsedOutput.body;
|
|
904
|
+
$metadata = deserializeMetadata(output);
|
|
905
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
897
906
|
response = new __BaseException({
|
|
898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
899
908
|
$fault: "client",
|
|
900
|
-
$metadata:
|
|
909
|
+
$metadata: $metadata,
|
|
901
910
|
});
|
|
902
911
|
throw __decorateServiceException(response, parsedBody);
|
|
903
912
|
}
|
|
@@ -922,7 +931,7 @@ export var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = f
|
|
|
922
931
|
});
|
|
923
932
|
}); };
|
|
924
933
|
var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
925
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
934
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
926
935
|
var _c;
|
|
927
936
|
return __generator(this, function (_d) {
|
|
928
937
|
switch (_d.label) {
|
|
@@ -932,7 +941,6 @@ var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = fun
|
|
|
932
941
|
return [4, parseBody(output.body, context)];
|
|
933
942
|
case 1:
|
|
934
943
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
935
|
-
errorCode = "UnknownError";
|
|
936
944
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
945
|
_b = errorCode;
|
|
938
946
|
switch (_b) {
|
|
@@ -972,10 +980,12 @@ var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = fun
|
|
|
972
980
|
case 17: throw _d.sent();
|
|
973
981
|
case 18:
|
|
974
982
|
parsedBody = parsedOutput.body;
|
|
983
|
+
$metadata = deserializeMetadata(output);
|
|
984
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
975
985
|
response = new __BaseException({
|
|
976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
977
987
|
$fault: "client",
|
|
978
|
-
$metadata:
|
|
988
|
+
$metadata: $metadata,
|
|
979
989
|
});
|
|
980
990
|
throw __decorateServiceException(response, parsedBody);
|
|
981
991
|
}
|
|
@@ -1000,7 +1010,7 @@ export var deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand =
|
|
|
1000
1010
|
});
|
|
1001
1011
|
}); };
|
|
1002
1012
|
var deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1003
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1013
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1004
1014
|
var _c;
|
|
1005
1015
|
return __generator(this, function (_d) {
|
|
1006
1016
|
switch (_d.label) {
|
|
@@ -1010,7 +1020,6 @@ var deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError = fu
|
|
|
1010
1020
|
return [4, parseBody(output.body, context)];
|
|
1011
1021
|
case 1:
|
|
1012
1022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1013
|
-
errorCode = "UnknownError";
|
|
1014
1023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1024
|
_b = errorCode;
|
|
1016
1025
|
switch (_b) {
|
|
@@ -1050,10 +1059,12 @@ var deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError = fu
|
|
|
1050
1059
|
case 17: throw _d.sent();
|
|
1051
1060
|
case 18:
|
|
1052
1061
|
parsedBody = parsedOutput.body;
|
|
1062
|
+
$metadata = deserializeMetadata(output);
|
|
1063
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1053
1064
|
response = new __BaseException({
|
|
1054
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1065
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1055
1066
|
$fault: "client",
|
|
1056
|
-
$metadata:
|
|
1067
|
+
$metadata: $metadata,
|
|
1057
1068
|
});
|
|
1058
1069
|
throw __decorateServiceException(response, parsedBody);
|
|
1059
1070
|
}
|
|
@@ -1078,7 +1089,7 @@ export var deserializeAws_json1_0GetEnrollmentStatusCommand = function (output,
|
|
|
1078
1089
|
});
|
|
1079
1090
|
}); };
|
|
1080
1091
|
var deserializeAws_json1_0GetEnrollmentStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1081
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1092
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1082
1093
|
var _c;
|
|
1083
1094
|
return __generator(this, function (_d) {
|
|
1084
1095
|
switch (_d.label) {
|
|
@@ -1088,7 +1099,6 @@ var deserializeAws_json1_0GetEnrollmentStatusCommandError = function (output, co
|
|
|
1088
1099
|
return [4, parseBody(output.body, context)];
|
|
1089
1100
|
case 1:
|
|
1090
1101
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1091
|
-
errorCode = "UnknownError";
|
|
1092
1102
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1103
|
_b = errorCode;
|
|
1094
1104
|
switch (_b) {
|
|
@@ -1120,10 +1130,12 @@ var deserializeAws_json1_0GetEnrollmentStatusCommandError = function (output, co
|
|
|
1120
1130
|
case 13: throw _d.sent();
|
|
1121
1131
|
case 14:
|
|
1122
1132
|
parsedBody = parsedOutput.body;
|
|
1133
|
+
$metadata = deserializeMetadata(output);
|
|
1134
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1123
1135
|
response = new __BaseException({
|
|
1124
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1125
1137
|
$fault: "client",
|
|
1126
|
-
$metadata:
|
|
1138
|
+
$metadata: $metadata,
|
|
1127
1139
|
});
|
|
1128
1140
|
throw __decorateServiceException(response, parsedBody);
|
|
1129
1141
|
}
|
|
@@ -1148,7 +1160,7 @@ export var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = f
|
|
|
1148
1160
|
});
|
|
1149
1161
|
}); };
|
|
1150
1162
|
var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1151
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1163
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1152
1164
|
var _c;
|
|
1153
1165
|
return __generator(this, function (_d) {
|
|
1154
1166
|
switch (_d.label) {
|
|
@@ -1158,7 +1170,6 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = fun
|
|
|
1158
1170
|
return [4, parseBody(output.body, context)];
|
|
1159
1171
|
case 1:
|
|
1160
1172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1161
|
-
errorCode = "UnknownError";
|
|
1162
1173
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
1174
|
_b = errorCode;
|
|
1164
1175
|
switch (_b) {
|
|
@@ -1190,10 +1201,12 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = fun
|
|
|
1190
1201
|
case 13: throw _d.sent();
|
|
1191
1202
|
case 14:
|
|
1192
1203
|
parsedBody = parsedOutput.body;
|
|
1204
|
+
$metadata = deserializeMetadata(output);
|
|
1205
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1193
1206
|
response = new __BaseException({
|
|
1194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1207
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1195
1208
|
$fault: "client",
|
|
1196
|
-
$metadata:
|
|
1209
|
+
$metadata: $metadata,
|
|
1197
1210
|
});
|
|
1198
1211
|
throw __decorateServiceException(response, parsedBody);
|
|
1199
1212
|
}
|
|
@@ -1218,7 +1231,7 @@ export var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand = funct
|
|
|
1218
1231
|
});
|
|
1219
1232
|
}); };
|
|
1220
1233
|
var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1221
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1234
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1222
1235
|
var _c;
|
|
1223
1236
|
return __generator(this, function (_d) {
|
|
1224
1237
|
switch (_d.label) {
|
|
@@ -1228,7 +1241,6 @@ var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = functio
|
|
|
1228
1241
|
return [4, parseBody(output.body, context)];
|
|
1229
1242
|
case 1:
|
|
1230
1243
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1231
|
-
errorCode = "UnknownError";
|
|
1232
1244
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1245
|
_b = errorCode;
|
|
1234
1246
|
switch (_b) {
|
|
@@ -1268,10 +1280,12 @@ var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = functio
|
|
|
1268
1280
|
case 17: throw _d.sent();
|
|
1269
1281
|
case 18:
|
|
1270
1282
|
parsedBody = parsedOutput.body;
|
|
1283
|
+
$metadata = deserializeMetadata(output);
|
|
1284
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1271
1285
|
response = new __BaseException({
|
|
1272
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1286
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1273
1287
|
$fault: "client",
|
|
1274
|
-
$metadata:
|
|
1288
|
+
$metadata: $metadata,
|
|
1275
1289
|
});
|
|
1276
1290
|
throw __decorateServiceException(response, parsedBody);
|
|
1277
1291
|
}
|
|
@@ -1296,7 +1310,7 @@ export var deserializeAws_json1_0GetRecommendationPreferencesCommand = function
|
|
|
1296
1310
|
});
|
|
1297
1311
|
}); };
|
|
1298
1312
|
var deserializeAws_json1_0GetRecommendationPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1299
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1313
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1300
1314
|
var _c;
|
|
1301
1315
|
return __generator(this, function (_d) {
|
|
1302
1316
|
switch (_d.label) {
|
|
@@ -1306,7 +1320,6 @@ var deserializeAws_json1_0GetRecommendationPreferencesCommandError = function (o
|
|
|
1306
1320
|
return [4, parseBody(output.body, context)];
|
|
1307
1321
|
case 1:
|
|
1308
1322
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1309
|
-
errorCode = "UnknownError";
|
|
1310
1323
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
1324
|
_b = errorCode;
|
|
1312
1325
|
switch (_b) {
|
|
@@ -1346,10 +1359,12 @@ var deserializeAws_json1_0GetRecommendationPreferencesCommandError = function (o
|
|
|
1346
1359
|
case 17: throw _d.sent();
|
|
1347
1360
|
case 18:
|
|
1348
1361
|
parsedBody = parsedOutput.body;
|
|
1362
|
+
$metadata = deserializeMetadata(output);
|
|
1363
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1349
1364
|
response = new __BaseException({
|
|
1350
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1351
1366
|
$fault: "client",
|
|
1352
|
-
$metadata:
|
|
1367
|
+
$metadata: $metadata,
|
|
1353
1368
|
});
|
|
1354
1369
|
throw __decorateServiceException(response, parsedBody);
|
|
1355
1370
|
}
|
|
@@ -1374,7 +1389,7 @@ export var deserializeAws_json1_0GetRecommendationSummariesCommand = function (o
|
|
|
1374
1389
|
});
|
|
1375
1390
|
}); };
|
|
1376
1391
|
var deserializeAws_json1_0GetRecommendationSummariesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1377
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1392
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1378
1393
|
var _c;
|
|
1379
1394
|
return __generator(this, function (_d) {
|
|
1380
1395
|
switch (_d.label) {
|
|
@@ -1384,7 +1399,6 @@ var deserializeAws_json1_0GetRecommendationSummariesCommandError = function (out
|
|
|
1384
1399
|
return [4, parseBody(output.body, context)];
|
|
1385
1400
|
case 1:
|
|
1386
1401
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1387
|
-
errorCode = "UnknownError";
|
|
1388
1402
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
1403
|
_b = errorCode;
|
|
1390
1404
|
switch (_b) {
|
|
@@ -1420,10 +1434,12 @@ var deserializeAws_json1_0GetRecommendationSummariesCommandError = function (out
|
|
|
1420
1434
|
case 15: throw _d.sent();
|
|
1421
1435
|
case 16:
|
|
1422
1436
|
parsedBody = parsedOutput.body;
|
|
1437
|
+
$metadata = deserializeMetadata(output);
|
|
1438
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1423
1439
|
response = new __BaseException({
|
|
1424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1425
1441
|
$fault: "client",
|
|
1426
|
-
$metadata:
|
|
1442
|
+
$metadata: $metadata,
|
|
1427
1443
|
});
|
|
1428
1444
|
throw __decorateServiceException(response, parsedBody);
|
|
1429
1445
|
}
|
|
@@ -1448,7 +1464,7 @@ export var deserializeAws_json1_0PutRecommendationPreferencesCommand = function
|
|
|
1448
1464
|
});
|
|
1449
1465
|
}); };
|
|
1450
1466
|
var deserializeAws_json1_0PutRecommendationPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1451
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1467
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1452
1468
|
var _c;
|
|
1453
1469
|
return __generator(this, function (_d) {
|
|
1454
1470
|
switch (_d.label) {
|
|
@@ -1458,7 +1474,6 @@ var deserializeAws_json1_0PutRecommendationPreferencesCommandError = function (o
|
|
|
1458
1474
|
return [4, parseBody(output.body, context)];
|
|
1459
1475
|
case 1:
|
|
1460
1476
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1461
|
-
errorCode = "UnknownError";
|
|
1462
1477
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
1478
|
_b = errorCode;
|
|
1464
1479
|
switch (_b) {
|
|
@@ -1498,10 +1513,12 @@ var deserializeAws_json1_0PutRecommendationPreferencesCommandError = function (o
|
|
|
1498
1513
|
case 17: throw _d.sent();
|
|
1499
1514
|
case 18:
|
|
1500
1515
|
parsedBody = parsedOutput.body;
|
|
1516
|
+
$metadata = deserializeMetadata(output);
|
|
1517
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1501
1518
|
response = new __BaseException({
|
|
1502
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1503
1520
|
$fault: "client",
|
|
1504
|
-
$metadata:
|
|
1521
|
+
$metadata: $metadata,
|
|
1505
1522
|
});
|
|
1506
1523
|
throw __decorateServiceException(response, parsedBody);
|
|
1507
1524
|
}
|
|
@@ -1526,7 +1543,7 @@ export var deserializeAws_json1_0UpdateEnrollmentStatusCommand = function (outpu
|
|
|
1526
1543
|
});
|
|
1527
1544
|
}); };
|
|
1528
1545
|
var deserializeAws_json1_0UpdateEnrollmentStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1529
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1546
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1530
1547
|
var _c;
|
|
1531
1548
|
return __generator(this, function (_d) {
|
|
1532
1549
|
switch (_d.label) {
|
|
@@ -1536,7 +1553,6 @@ var deserializeAws_json1_0UpdateEnrollmentStatusCommandError = function (output,
|
|
|
1536
1553
|
return [4, parseBody(output.body, context)];
|
|
1537
1554
|
case 1:
|
|
1538
1555
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1539
|
-
errorCode = "UnknownError";
|
|
1540
1556
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
1557
|
_b = errorCode;
|
|
1542
1558
|
switch (_b) {
|
|
@@ -1568,10 +1584,12 @@ var deserializeAws_json1_0UpdateEnrollmentStatusCommandError = function (output,
|
|
|
1568
1584
|
case 13: throw _d.sent();
|
|
1569
1585
|
case 14:
|
|
1570
1586
|
parsedBody = parsedOutput.body;
|
|
1587
|
+
$metadata = deserializeMetadata(output);
|
|
1588
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1571
1589
|
response = new __BaseException({
|
|
1572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1573
1591
|
$fault: "client",
|
|
1574
|
-
$metadata:
|
|
1592
|
+
$metadata: $metadata,
|
|
1575
1593
|
});
|
|
1576
1594
|
throw __decorateServiceException(response, parsedBody);
|
|
1577
1595
|
}
|
|
@@ -1689,20 +1707,15 @@ var serializeAws_json1_0CpuVendorArchitectures = function (input, context) {
|
|
|
1689
1707
|
});
|
|
1690
1708
|
};
|
|
1691
1709
|
var serializeAws_json1_0DeleteRecommendationPreferencesRequest = function (input, context) {
|
|
1692
|
-
return __assign(__assign(__assign({}, (input.recommendationPreferenceNames
|
|
1693
|
-
input.recommendationPreferenceNames !== null && {
|
|
1710
|
+
return __assign(__assign(__assign({}, (input.recommendationPreferenceNames != null && {
|
|
1694
1711
|
recommendationPreferenceNames: serializeAws_json1_0RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1695
|
-
})), (input.resourceType
|
|
1696
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1712
|
+
})), (input.resourceType != null && { resourceType: input.resourceType })), (input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1697
1713
|
};
|
|
1698
1714
|
var serializeAws_json1_0DescribeRecommendationExportJobsRequest = function (input, context) {
|
|
1699
|
-
return __assign(__assign(__assign(__assign({}, (input.filters
|
|
1700
|
-
input.filters !== null && { filters: serializeAws_json1_0JobFilters(input.filters, context) })), (input.jobIds !== undefined &&
|
|
1701
|
-
input.jobIds !== null && { jobIds: serializeAws_json1_0JobIds(input.jobIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1715
|
+
return __assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_0JobFilters(input.filters, context) })), (input.jobIds != null && { jobIds: serializeAws_json1_0JobIds(input.jobIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1702
1716
|
};
|
|
1703
1717
|
var serializeAws_json1_0EBSFilter = function (input, context) {
|
|
1704
|
-
return __assign(__assign({}, (input.name
|
|
1705
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1718
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1706
1719
|
};
|
|
1707
1720
|
var serializeAws_json1_0EBSFilters = function (input, context) {
|
|
1708
1721
|
return input
|
|
@@ -1715,8 +1728,7 @@ var serializeAws_json1_0EBSFilters = function (input, context) {
|
|
|
1715
1728
|
});
|
|
1716
1729
|
};
|
|
1717
1730
|
var serializeAws_json1_0EnrollmentFilter = function (input, context) {
|
|
1718
|
-
return __assign(__assign({}, (input.name
|
|
1719
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1731
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1720
1732
|
};
|
|
1721
1733
|
var serializeAws_json1_0EnrollmentFilters = function (input, context) {
|
|
1722
1734
|
return input
|
|
@@ -1769,64 +1781,41 @@ var serializeAws_json1_0ExportableVolumeFields = function (input, context) {
|
|
|
1769
1781
|
});
|
|
1770
1782
|
};
|
|
1771
1783
|
var serializeAws_json1_0ExportAutoScalingGroupRecommendationsRequest = function (input, context) {
|
|
1772
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1773
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1774
|
-
input.fieldsToExport !== null && {
|
|
1784
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1775
1785
|
fieldsToExport: serializeAws_json1_0ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1776
|
-
})), (input.fileFormat
|
|
1777
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts !== undefined &&
|
|
1778
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences !== undefined &&
|
|
1779
|
-
input.recommendationPreferences !== null && {
|
|
1786
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences != null && {
|
|
1780
1787
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1781
|
-
})), (input.s3DestinationConfig
|
|
1782
|
-
input.s3DestinationConfig !== null && {
|
|
1788
|
+
})), (input.s3DestinationConfig != null && {
|
|
1783
1789
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1784
1790
|
}));
|
|
1785
1791
|
};
|
|
1786
1792
|
var serializeAws_json1_0ExportEBSVolumeRecommendationsRequest = function (input, context) {
|
|
1787
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1788
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1789
|
-
input.fieldsToExport !== null && {
|
|
1793
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1790
1794
|
fieldsToExport: serializeAws_json1_0ExportableVolumeFields(input.fieldsToExport, context),
|
|
1791
|
-
})), (input.fileFormat
|
|
1792
|
-
input.filters !== null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.includeMemberAccounts !== undefined &&
|
|
1793
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig !== undefined &&
|
|
1794
|
-
input.s3DestinationConfig !== null && {
|
|
1795
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig != null && {
|
|
1795
1796
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1796
1797
|
}));
|
|
1797
1798
|
};
|
|
1798
1799
|
var serializeAws_json1_0ExportEC2InstanceRecommendationsRequest = function (input, context) {
|
|
1799
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1800
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1801
|
-
input.fieldsToExport !== null && {
|
|
1800
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1802
1801
|
fieldsToExport: serializeAws_json1_0ExportableInstanceFields(input.fieldsToExport, context),
|
|
1803
|
-
})), (input.fileFormat
|
|
1804
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts !== undefined &&
|
|
1805
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences !== undefined &&
|
|
1806
|
-
input.recommendationPreferences !== null && {
|
|
1802
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences != null && {
|
|
1807
1803
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1808
|
-
})), (input.s3DestinationConfig
|
|
1809
|
-
input.s3DestinationConfig !== null && {
|
|
1804
|
+
})), (input.s3DestinationConfig != null && {
|
|
1810
1805
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1811
1806
|
}));
|
|
1812
1807
|
};
|
|
1813
1808
|
var serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest = function (input, context) {
|
|
1814
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1815
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1816
|
-
input.fieldsToExport !== null && {
|
|
1809
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1817
1810
|
fieldsToExport: serializeAws_json1_0ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1818
|
-
})), (input.fileFormat
|
|
1819
|
-
input.filters !== null && {
|
|
1811
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && {
|
|
1820
1812
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1821
|
-
})), (input.includeMemberAccounts
|
|
1822
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig !== undefined &&
|
|
1823
|
-
input.s3DestinationConfig !== null && {
|
|
1813
|
+
})), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig != null && {
|
|
1824
1814
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1825
1815
|
}));
|
|
1826
1816
|
};
|
|
1827
1817
|
var serializeAws_json1_0Filter = function (input, context) {
|
|
1828
|
-
return __assign(__assign({}, (input.name
|
|
1829
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1818
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1830
1819
|
};
|
|
1831
1820
|
var serializeAws_json1_0Filters = function (input, context) {
|
|
1832
1821
|
return input
|
|
@@ -1859,64 +1848,44 @@ var serializeAws_json1_0FunctionArns = function (input, context) {
|
|
|
1859
1848
|
});
|
|
1860
1849
|
};
|
|
1861
1850
|
var serializeAws_json1_0GetAutoScalingGroupRecommendationsRequest = function (input, context) {
|
|
1862
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1863
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.autoScalingGroupArns !== undefined &&
|
|
1864
|
-
input.autoScalingGroupArns !== null && {
|
|
1851
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.autoScalingGroupArns != null && {
|
|
1865
1852
|
autoScalingGroupArns: serializeAws_json1_0AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1866
|
-
})), (input.filters
|
|
1867
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.recommendationPreferences !== undefined &&
|
|
1868
|
-
input.recommendationPreferences !== null && {
|
|
1853
|
+
})), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.recommendationPreferences != null && {
|
|
1869
1854
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1870
1855
|
}));
|
|
1871
1856
|
};
|
|
1872
1857
|
var serializeAws_json1_0GetEBSVolumeRecommendationsRequest = function (input, context) {
|
|
1873
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1874
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters !== undefined &&
|
|
1875
|
-
input.filters !== null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.volumeArns !== undefined &&
|
|
1876
|
-
input.volumeArns !== null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }));
|
|
1858
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.volumeArns != null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }));
|
|
1877
1859
|
};
|
|
1878
1860
|
var serializeAws_json1_0GetEC2InstanceRecommendationsRequest = function (input, context) {
|
|
1879
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1880
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters !== undefined &&
|
|
1881
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.instanceArns !== undefined &&
|
|
1882
|
-
input.instanceArns !== null && { instanceArns: serializeAws_json1_0InstanceArns(input.instanceArns, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.recommendationPreferences !== undefined &&
|
|
1883
|
-
input.recommendationPreferences !== null && {
|
|
1861
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.instanceArns != null && { instanceArns: serializeAws_json1_0InstanceArns(input.instanceArns, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.recommendationPreferences != null && {
|
|
1884
1862
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1885
1863
|
}));
|
|
1886
1864
|
};
|
|
1887
1865
|
var serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest = function (input, context) {
|
|
1888
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime
|
|
1889
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.instanceArn !== undefined && input.instanceArn !== null && { instanceArn: input.instanceArn })), (input.period !== undefined && input.period !== null && { period: input.period })), (input.recommendationPreferences !== undefined &&
|
|
1890
|
-
input.recommendationPreferences !== null && {
|
|
1866
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.instanceArn != null && { instanceArn: input.instanceArn })), (input.period != null && { period: input.period })), (input.recommendationPreferences != null && {
|
|
1891
1867
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1892
|
-
})), (input.startTime
|
|
1893
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.stat !== undefined && input.stat !== null && { stat: input.stat }));
|
|
1868
|
+
})), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.stat != null && { stat: input.stat }));
|
|
1894
1869
|
};
|
|
1895
1870
|
var serializeAws_json1_0GetEffectiveRecommendationPreferencesRequest = function (input, context) {
|
|
1896
|
-
return __assign({}, (input.resourceArn
|
|
1871
|
+
return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
|
|
1897
1872
|
};
|
|
1898
1873
|
var serializeAws_json1_0GetEnrollmentStatusesForOrganizationRequest = function (input, context) {
|
|
1899
|
-
return __assign(__assign(__assign({}, (input.filters
|
|
1900
|
-
input.filters !== null && { filters: serializeAws_json1_0EnrollmentFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1874
|
+
return __assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_0EnrollmentFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1901
1875
|
};
|
|
1902
1876
|
var serializeAws_json1_0GetEnrollmentStatusRequest = function (input, context) {
|
|
1903
1877
|
return {};
|
|
1904
1878
|
};
|
|
1905
1879
|
var serializeAws_json1_0GetLambdaFunctionRecommendationsRequest = function (input, context) {
|
|
1906
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1907
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters !== undefined &&
|
|
1908
|
-
input.filters !== null && {
|
|
1880
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters != null && {
|
|
1909
1881
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1910
|
-
})), (input.functionArns
|
|
1911
|
-
input.functionArns !== null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1882
|
+
})), (input.functionArns != null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1912
1883
|
};
|
|
1913
1884
|
var serializeAws_json1_0GetRecommendationPreferencesRequest = function (input, context) {
|
|
1914
|
-
return __assign(__assign(__assign(__assign({}, (input.maxResults
|
|
1915
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1885
|
+
return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceType != null && { resourceType: input.resourceType })), (input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1916
1886
|
};
|
|
1917
1887
|
var serializeAws_json1_0GetRecommendationSummariesRequest = function (input, context) {
|
|
1918
|
-
return __assign(__assign(__assign({}, (input.accountIds
|
|
1919
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1888
|
+
return __assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1920
1889
|
};
|
|
1921
1890
|
var serializeAws_json1_0InstanceArns = function (input, context) {
|
|
1922
1891
|
return input
|
|
@@ -1929,8 +1898,7 @@ var serializeAws_json1_0InstanceArns = function (input, context) {
|
|
|
1929
1898
|
});
|
|
1930
1899
|
};
|
|
1931
1900
|
var serializeAws_json1_0JobFilter = function (input, context) {
|
|
1932
|
-
return __assign(__assign({}, (input.name
|
|
1933
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1901
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1934
1902
|
};
|
|
1935
1903
|
var serializeAws_json1_0JobFilters = function (input, context) {
|
|
1936
1904
|
return input
|
|
@@ -1953,8 +1921,7 @@ var serializeAws_json1_0JobIds = function (input, context) {
|
|
|
1953
1921
|
});
|
|
1954
1922
|
};
|
|
1955
1923
|
var serializeAws_json1_0LambdaFunctionRecommendationFilter = function (input, context) {
|
|
1956
|
-
return __assign(__assign({}, (input.name
|
|
1957
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1924
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1958
1925
|
};
|
|
1959
1926
|
var serializeAws_json1_0LambdaFunctionRecommendationFilters = function (input, context) {
|
|
1960
1927
|
return input
|
|
@@ -1967,12 +1934,9 @@ var serializeAws_json1_0LambdaFunctionRecommendationFilters = function (input, c
|
|
|
1967
1934
|
});
|
|
1968
1935
|
};
|
|
1969
1936
|
var serializeAws_json1_0PutRecommendationPreferencesRequest = function (input, context) {
|
|
1970
|
-
return __assign(__assign(__assign(__assign({}, (input.enhancedInfrastructureMetrics
|
|
1971
|
-
input.enhancedInfrastructureMetrics !== null && {
|
|
1937
|
+
return __assign(__assign(__assign(__assign({}, (input.enhancedInfrastructureMetrics != null && {
|
|
1972
1938
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1973
|
-
})), (input.inferredWorkloadTypes
|
|
1974
|
-
input.inferredWorkloadTypes !== null && { inferredWorkloadTypes: input.inferredWorkloadTypes })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })), (input.scope !== undefined &&
|
|
1975
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1939
|
+
})), (input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes })), (input.resourceType != null && { resourceType: input.resourceType })), (input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1976
1940
|
};
|
|
1977
1941
|
var serializeAws_json1_0RecommendationPreferenceNames = function (input, context) {
|
|
1978
1942
|
return input
|
|
@@ -1985,20 +1949,18 @@ var serializeAws_json1_0RecommendationPreferenceNames = function (input, context
|
|
|
1985
1949
|
});
|
|
1986
1950
|
};
|
|
1987
1951
|
var serializeAws_json1_0RecommendationPreferences = function (input, context) {
|
|
1988
|
-
return __assign({}, (input.cpuVendorArchitectures
|
|
1989
|
-
input.cpuVendorArchitectures !== null && {
|
|
1952
|
+
return __assign({}, (input.cpuVendorArchitectures != null && {
|
|
1990
1953
|
cpuVendorArchitectures: serializeAws_json1_0CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
1991
1954
|
}));
|
|
1992
1955
|
};
|
|
1993
1956
|
var serializeAws_json1_0S3DestinationConfig = function (input, context) {
|
|
1994
|
-
return __assign(__assign({}, (input.bucket
|
|
1957
|
+
return __assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.keyPrefix != null && { keyPrefix: input.keyPrefix }));
|
|
1995
1958
|
};
|
|
1996
1959
|
var serializeAws_json1_0Scope = function (input, context) {
|
|
1997
|
-
return __assign(__assign({}, (input.name
|
|
1960
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
1998
1961
|
};
|
|
1999
1962
|
var serializeAws_json1_0UpdateEnrollmentStatusRequest = function (input, context) {
|
|
2000
|
-
return __assign(__assign({}, (input.includeMemberAccounts
|
|
2001
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.status !== undefined && input.status !== null && { status: input.status }));
|
|
1963
|
+
return __assign(__assign({}, (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.status != null && { status: input.status }));
|
|
2002
1964
|
};
|
|
2003
1965
|
var serializeAws_json1_0VolumeArns = function (input, context) {
|
|
2004
1966
|
return input
|
|
@@ -2018,7 +1980,7 @@ var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
|
2018
1980
|
var deserializeAws_json1_0AccountEnrollmentStatus = function (output, context) {
|
|
2019
1981
|
return {
|
|
2020
1982
|
accountId: __expectString(output.accountId),
|
|
2021
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
1983
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2022
1984
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2023
1985
|
: undefined,
|
|
2024
1986
|
status: __expectString(output.status),
|
|
@@ -2049,41 +2011,41 @@ var deserializeAws_json1_0AutoScalingGroupRecommendation = function (output, con
|
|
|
2049
2011
|
accountId: __expectString(output.accountId),
|
|
2050
2012
|
autoScalingGroupArn: __expectString(output.autoScalingGroupArn),
|
|
2051
2013
|
autoScalingGroupName: __expectString(output.autoScalingGroupName),
|
|
2052
|
-
currentConfiguration: output.currentConfiguration
|
|
2014
|
+
currentConfiguration: output.currentConfiguration != null
|
|
2053
2015
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.currentConfiguration, context)
|
|
2054
2016
|
: undefined,
|
|
2055
2017
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2056
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
2018
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2057
2019
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2058
2020
|
: undefined,
|
|
2059
2021
|
finding: __expectString(output.finding),
|
|
2060
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
2022
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2061
2023
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2062
2024
|
: undefined,
|
|
2063
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2025
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2064
2026
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2065
2027
|
: undefined,
|
|
2066
2028
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2067
|
-
recommendationOptions: output.recommendationOptions
|
|
2029
|
+
recommendationOptions: output.recommendationOptions != null
|
|
2068
2030
|
? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
2069
2031
|
: undefined,
|
|
2070
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2032
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2071
2033
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2072
2034
|
: undefined,
|
|
2073
2035
|
};
|
|
2074
2036
|
};
|
|
2075
2037
|
var deserializeAws_json1_0AutoScalingGroupRecommendationOption = function (output, context) {
|
|
2076
2038
|
return {
|
|
2077
|
-
configuration: output.configuration
|
|
2039
|
+
configuration: output.configuration != null
|
|
2078
2040
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
2079
2041
|
: undefined,
|
|
2080
2042
|
migrationEffort: __expectString(output.migrationEffort),
|
|
2081
2043
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2082
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2044
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2083
2045
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2084
2046
|
: undefined,
|
|
2085
2047
|
rank: __expectInt32(output.rank),
|
|
2086
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2048
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2087
2049
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2088
2050
|
: undefined,
|
|
2089
2051
|
};
|
|
@@ -2135,7 +2097,7 @@ var deserializeAws_json1_0DeleteRecommendationPreferencesResponse = function (ou
|
|
|
2135
2097
|
var deserializeAws_json1_0DescribeRecommendationExportJobsResponse = function (output, context) {
|
|
2136
2098
|
return {
|
|
2137
2099
|
nextToken: __expectString(output.nextToken),
|
|
2138
|
-
recommendationExportJobs: output.recommendationExportJobs
|
|
2100
|
+
recommendationExportJobs: output.recommendationExportJobs != null
|
|
2139
2101
|
? deserializeAws_json1_0RecommendationExportJobs(output.recommendationExportJobs, context)
|
|
2140
2102
|
: undefined,
|
|
2141
2103
|
};
|
|
@@ -2160,7 +2122,7 @@ var deserializeAws_json1_0EBSUtilizationMetrics = function (output, context) {
|
|
|
2160
2122
|
};
|
|
2161
2123
|
var deserializeAws_json1_0EffectiveRecommendationPreferences = function (output, context) {
|
|
2162
2124
|
return {
|
|
2163
|
-
cpuVendorArchitectures: output.cpuVendorArchitectures
|
|
2125
|
+
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
2164
2126
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2165
2127
|
: undefined,
|
|
2166
2128
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
@@ -2176,70 +2138,54 @@ var deserializeAws_json1_0EstimatedMonthlySavings = function (output, context) {
|
|
|
2176
2138
|
var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsResponse = function (output, context) {
|
|
2177
2139
|
return {
|
|
2178
2140
|
jobId: __expectString(output.jobId),
|
|
2179
|
-
s3Destination: output.s3Destination
|
|
2180
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2181
|
-
: undefined,
|
|
2141
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2182
2142
|
};
|
|
2183
2143
|
};
|
|
2184
2144
|
var deserializeAws_json1_0ExportDestination = function (output, context) {
|
|
2185
2145
|
return {
|
|
2186
|
-
s3: output.s3
|
|
2187
|
-
? deserializeAws_json1_0S3Destination(output.s3, context)
|
|
2188
|
-
: undefined,
|
|
2146
|
+
s3: output.s3 != null ? deserializeAws_json1_0S3Destination(output.s3, context) : undefined,
|
|
2189
2147
|
};
|
|
2190
2148
|
};
|
|
2191
2149
|
var deserializeAws_json1_0ExportEBSVolumeRecommendationsResponse = function (output, context) {
|
|
2192
2150
|
return {
|
|
2193
2151
|
jobId: __expectString(output.jobId),
|
|
2194
|
-
s3Destination: output.s3Destination
|
|
2195
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2196
|
-
: undefined,
|
|
2152
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2197
2153
|
};
|
|
2198
2154
|
};
|
|
2199
2155
|
var deserializeAws_json1_0ExportEC2InstanceRecommendationsResponse = function (output, context) {
|
|
2200
2156
|
return {
|
|
2201
2157
|
jobId: __expectString(output.jobId),
|
|
2202
|
-
s3Destination: output.s3Destination
|
|
2203
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2204
|
-
: undefined,
|
|
2158
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2205
2159
|
};
|
|
2206
2160
|
};
|
|
2207
2161
|
var deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse = function (output, context) {
|
|
2208
2162
|
return {
|
|
2209
2163
|
jobId: __expectString(output.jobId),
|
|
2210
|
-
s3Destination: output.s3Destination
|
|
2211
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2212
|
-
: undefined,
|
|
2164
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2213
2165
|
};
|
|
2214
2166
|
};
|
|
2215
2167
|
var deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse = function (output, context) {
|
|
2216
2168
|
return {
|
|
2217
|
-
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations
|
|
2169
|
+
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
2218
2170
|
? deserializeAws_json1_0AutoScalingGroupRecommendations(output.autoScalingGroupRecommendations, context)
|
|
2219
2171
|
: undefined,
|
|
2220
|
-
errors: output.errors
|
|
2221
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
2222
|
-
: undefined,
|
|
2172
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
2223
2173
|
nextToken: __expectString(output.nextToken),
|
|
2224
2174
|
};
|
|
2225
2175
|
};
|
|
2226
2176
|
var deserializeAws_json1_0GetEBSVolumeRecommendationsResponse = function (output, context) {
|
|
2227
2177
|
return {
|
|
2228
|
-
errors: output.errors
|
|
2229
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
2230
|
-
: undefined,
|
|
2178
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
2231
2179
|
nextToken: __expectString(output.nextToken),
|
|
2232
|
-
volumeRecommendations: output.volumeRecommendations
|
|
2180
|
+
volumeRecommendations: output.volumeRecommendations != null
|
|
2233
2181
|
? deserializeAws_json1_0VolumeRecommendations(output.volumeRecommendations, context)
|
|
2234
2182
|
: undefined,
|
|
2235
2183
|
};
|
|
2236
2184
|
};
|
|
2237
2185
|
var deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = function (output, context) {
|
|
2238
2186
|
return {
|
|
2239
|
-
errors: output.errors
|
|
2240
|
-
|
|
2241
|
-
: undefined,
|
|
2242
|
-
instanceRecommendations: output.instanceRecommendations !== undefined && output.instanceRecommendations !== null
|
|
2187
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
2188
|
+
instanceRecommendations: output.instanceRecommendations != null
|
|
2243
2189
|
? deserializeAws_json1_0InstanceRecommendations(output.instanceRecommendations, context)
|
|
2244
2190
|
: undefined,
|
|
2245
2191
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2247,7 +2193,7 @@ var deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = function (outp
|
|
|
2247
2193
|
};
|
|
2248
2194
|
var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse = function (output, context) {
|
|
2249
2195
|
return {
|
|
2250
|
-
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics
|
|
2196
|
+
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2251
2197
|
? deserializeAws_json1_0RecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2252
2198
|
: undefined,
|
|
2253
2199
|
};
|
|
@@ -2259,7 +2205,7 @@ var deserializeAws_json1_0GetEffectiveRecommendationPreferencesResponse = functi
|
|
|
2259
2205
|
};
|
|
2260
2206
|
var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = function (output, context) {
|
|
2261
2207
|
return {
|
|
2262
|
-
accountEnrollmentStatuses: output.accountEnrollmentStatuses
|
|
2208
|
+
accountEnrollmentStatuses: output.accountEnrollmentStatuses != null
|
|
2263
2209
|
? deserializeAws_json1_0AccountEnrollmentStatuses(output.accountEnrollmentStatuses, context)
|
|
2264
2210
|
: undefined,
|
|
2265
2211
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2267,7 +2213,7 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = functio
|
|
|
2267
2213
|
};
|
|
2268
2214
|
var deserializeAws_json1_0GetEnrollmentStatusResponse = function (output, context) {
|
|
2269
2215
|
return {
|
|
2270
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
2216
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2271
2217
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2272
2218
|
: undefined,
|
|
2273
2219
|
memberAccountsEnrolled: __expectBoolean(output.memberAccountsEnrolled),
|
|
@@ -2278,7 +2224,7 @@ var deserializeAws_json1_0GetEnrollmentStatusResponse = function (output, contex
|
|
|
2278
2224
|
};
|
|
2279
2225
|
var deserializeAws_json1_0GetLambdaFunctionRecommendationsResponse = function (output, context) {
|
|
2280
2226
|
return {
|
|
2281
|
-
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations
|
|
2227
|
+
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations != null
|
|
2282
2228
|
? deserializeAws_json1_0LambdaFunctionRecommendations(output.lambdaFunctionRecommendations, context)
|
|
2283
2229
|
: undefined,
|
|
2284
2230
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2305,7 +2251,7 @@ var deserializeAws_json1_0GetRecommendationErrors = function (output, context) {
|
|
|
2305
2251
|
var deserializeAws_json1_0GetRecommendationPreferencesResponse = function (output, context) {
|
|
2306
2252
|
return {
|
|
2307
2253
|
nextToken: __expectString(output.nextToken),
|
|
2308
|
-
recommendationPreferencesDetails: output.recommendationPreferencesDetails
|
|
2254
|
+
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2309
2255
|
? deserializeAws_json1_0RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2310
2256
|
: undefined,
|
|
2311
2257
|
};
|
|
@@ -2313,7 +2259,7 @@ var deserializeAws_json1_0GetRecommendationPreferencesResponse = function (outpu
|
|
|
2313
2259
|
var deserializeAws_json1_0GetRecommendationSummariesResponse = function (output, context) {
|
|
2314
2260
|
return {
|
|
2315
2261
|
nextToken: __expectString(output.nextToken),
|
|
2316
|
-
recommendationSummaries: output.recommendationSummaries
|
|
2262
|
+
recommendationSummaries: output.recommendationSummaries != null
|
|
2317
2263
|
? deserializeAws_json1_0RecommendationSummaries(output.recommendationSummaries, context)
|
|
2318
2264
|
: undefined,
|
|
2319
2265
|
};
|
|
@@ -2334,29 +2280,29 @@ var deserializeAws_json1_0InstanceRecommendation = function (output, context) {
|
|
|
2334
2280
|
accountId: __expectString(output.accountId),
|
|
2335
2281
|
currentInstanceType: __expectString(output.currentInstanceType),
|
|
2336
2282
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2337
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
2283
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2338
2284
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2339
2285
|
: undefined,
|
|
2340
2286
|
finding: __expectString(output.finding),
|
|
2341
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2287
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2342
2288
|
? deserializeAws_json1_0InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2343
2289
|
: undefined,
|
|
2344
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
2290
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2345
2291
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2346
2292
|
: undefined,
|
|
2347
2293
|
instanceArn: __expectString(output.instanceArn),
|
|
2348
2294
|
instanceName: __expectString(output.instanceName),
|
|
2349
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2295
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2350
2296
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2351
2297
|
: undefined,
|
|
2352
2298
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2353
|
-
recommendationOptions: output.recommendationOptions
|
|
2299
|
+
recommendationOptions: output.recommendationOptions != null
|
|
2354
2300
|
? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context)
|
|
2355
2301
|
: undefined,
|
|
2356
|
-
recommendationSources: output.recommendationSources
|
|
2302
|
+
recommendationSources: output.recommendationSources != null
|
|
2357
2303
|
? deserializeAws_json1_0RecommendationSources(output.recommendationSources, context)
|
|
2358
2304
|
: undefined,
|
|
2359
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2305
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2360
2306
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2361
2307
|
: undefined,
|
|
2362
2308
|
};
|
|
@@ -2377,14 +2323,14 @@ var deserializeAws_json1_0InstanceRecommendationOption = function (output, conte
|
|
|
2377
2323
|
instanceType: __expectString(output.instanceType),
|
|
2378
2324
|
migrationEffort: __expectString(output.migrationEffort),
|
|
2379
2325
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2380
|
-
platformDifferences: output.platformDifferences
|
|
2326
|
+
platformDifferences: output.platformDifferences != null
|
|
2381
2327
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2382
2328
|
: undefined,
|
|
2383
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2329
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2384
2330
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2385
2331
|
: undefined,
|
|
2386
2332
|
rank: __expectInt32(output.rank),
|
|
2387
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2333
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2388
2334
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2389
2335
|
: undefined,
|
|
2390
2336
|
};
|
|
@@ -2431,11 +2377,11 @@ var deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = function (outpu
|
|
|
2431
2377
|
var deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = function (output, context) {
|
|
2432
2378
|
return {
|
|
2433
2379
|
memorySize: __expectInt32(output.memorySize),
|
|
2434
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2380
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2435
2381
|
? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2436
2382
|
: undefined,
|
|
2437
2383
|
rank: __expectInt32(output.rank),
|
|
2438
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2384
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2439
2385
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2440
2386
|
: undefined,
|
|
2441
2387
|
};
|
|
@@ -2457,20 +2403,20 @@ var deserializeAws_json1_0LambdaFunctionRecommendation = function (output, conte
|
|
|
2457
2403
|
currentMemorySize: __expectInt32(output.currentMemorySize),
|
|
2458
2404
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2459
2405
|
finding: __expectString(output.finding),
|
|
2460
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2406
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2461
2407
|
? deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2462
2408
|
: undefined,
|
|
2463
2409
|
functionArn: __expectString(output.functionArn),
|
|
2464
2410
|
functionVersion: __expectString(output.functionVersion),
|
|
2465
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2411
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2466
2412
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2467
2413
|
: undefined,
|
|
2468
2414
|
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2469
|
-
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions
|
|
2415
|
+
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2470
2416
|
? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2471
2417
|
: undefined,
|
|
2472
2418
|
numberOfInvocations: __expectLong(output.numberOfInvocations),
|
|
2473
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2419
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2474
2420
|
? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2475
2421
|
: undefined,
|
|
2476
2422
|
};
|
|
@@ -2555,12 +2501,8 @@ var deserializeAws_json1_0PlatformDifferences = function (output, context) {
|
|
|
2555
2501
|
var deserializeAws_json1_0ProjectedMetric = function (output, context) {
|
|
2556
2502
|
return {
|
|
2557
2503
|
name: __expectString(output.name),
|
|
2558
|
-
timestamps: output.timestamps
|
|
2559
|
-
|
|
2560
|
-
: undefined,
|
|
2561
|
-
values: output.values !== undefined && output.values !== null
|
|
2562
|
-
? deserializeAws_json1_0MetricValues(output.values, context)
|
|
2563
|
-
: undefined,
|
|
2504
|
+
timestamps: output.timestamps != null ? deserializeAws_json1_0Timestamps(output.timestamps, context) : undefined,
|
|
2505
|
+
values: output.values != null ? deserializeAws_json1_0MetricValues(output.values, context) : undefined,
|
|
2564
2506
|
};
|
|
2565
2507
|
};
|
|
2566
2508
|
var deserializeAws_json1_0ProjectedMetrics = function (output, context) {
|
|
@@ -2607,15 +2549,13 @@ var deserializeAws_json1_0ReasonCodeSummary = function (output, context) {
|
|
|
2607
2549
|
};
|
|
2608
2550
|
var deserializeAws_json1_0RecommendationExportJob = function (output, context) {
|
|
2609
2551
|
return {
|
|
2610
|
-
creationTimestamp: output.creationTimestamp
|
|
2552
|
+
creationTimestamp: output.creationTimestamp != null
|
|
2611
2553
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
2612
2554
|
: undefined,
|
|
2613
|
-
destination: output.destination
|
|
2614
|
-
? deserializeAws_json1_0ExportDestination(output.destination, context)
|
|
2615
|
-
: undefined,
|
|
2555
|
+
destination: output.destination != null ? deserializeAws_json1_0ExportDestination(output.destination, context) : undefined,
|
|
2616
2556
|
failureReason: __expectString(output.failureReason),
|
|
2617
2557
|
jobId: __expectString(output.jobId),
|
|
2618
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
2558
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2619
2559
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2620
2560
|
: undefined,
|
|
2621
2561
|
resourceType: __expectString(output.resourceType),
|
|
@@ -2649,9 +2589,7 @@ var deserializeAws_json1_0RecommendationPreferencesDetail = function (output, co
|
|
|
2649
2589
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2650
2590
|
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2651
2591
|
resourceType: __expectString(output.resourceType),
|
|
2652
|
-
scope: output.scope
|
|
2653
|
-
? deserializeAws_json1_0Scope(output.scope, context)
|
|
2654
|
-
: undefined,
|
|
2592
|
+
scope: output.scope != null ? deserializeAws_json1_0Scope(output.scope, context) : undefined,
|
|
2655
2593
|
};
|
|
2656
2594
|
};
|
|
2657
2595
|
var deserializeAws_json1_0RecommendationPreferencesDetails = function (output, context) {
|
|
@@ -2696,21 +2634,19 @@ var deserializeAws_json1_0RecommendationSummaries = function (output, context) {
|
|
|
2696
2634
|
var deserializeAws_json1_0RecommendationSummary = function (output, context) {
|
|
2697
2635
|
return {
|
|
2698
2636
|
accountId: __expectString(output.accountId),
|
|
2699
|
-
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings
|
|
2637
|
+
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings != null
|
|
2700
2638
|
? deserializeAws_json1_0CurrentPerformanceRiskRatings(output.currentPerformanceRiskRatings, context)
|
|
2701
2639
|
: undefined,
|
|
2702
2640
|
recommendationResourceType: __expectString(output.recommendationResourceType),
|
|
2703
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2641
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2704
2642
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2705
2643
|
: undefined,
|
|
2706
|
-
summaries: output.summaries
|
|
2707
|
-
? deserializeAws_json1_0Summaries(output.summaries, context)
|
|
2708
|
-
: undefined,
|
|
2644
|
+
summaries: output.summaries != null ? deserializeAws_json1_0Summaries(output.summaries, context) : undefined,
|
|
2709
2645
|
};
|
|
2710
2646
|
};
|
|
2711
2647
|
var deserializeAws_json1_0RecommendedOptionProjectedMetric = function (output, context) {
|
|
2712
2648
|
return {
|
|
2713
|
-
projectedMetrics: output.projectedMetrics
|
|
2649
|
+
projectedMetrics: output.projectedMetrics != null
|
|
2714
2650
|
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2715
2651
|
: undefined,
|
|
2716
2652
|
rank: __expectInt32(output.rank),
|
|
@@ -2742,7 +2678,7 @@ var deserializeAws_json1_0S3Destination = function (output, context) {
|
|
|
2742
2678
|
};
|
|
2743
2679
|
var deserializeAws_json1_0SavingsOpportunity = function (output, context) {
|
|
2744
2680
|
return {
|
|
2745
|
-
estimatedMonthlySavings: output.estimatedMonthlySavings
|
|
2681
|
+
estimatedMonthlySavings: output.estimatedMonthlySavings != null
|
|
2746
2682
|
? deserializeAws_json1_0EstimatedMonthlySavings(output.estimatedMonthlySavings, context)
|
|
2747
2683
|
: undefined,
|
|
2748
2684
|
savingsOpportunityPercentage: __limitedParseDouble(output.savingsOpportunityPercentage),
|
|
@@ -2773,7 +2709,7 @@ var deserializeAws_json1_0Summaries = function (output, context) {
|
|
|
2773
2709
|
var deserializeAws_json1_0Summary = function (output, context) {
|
|
2774
2710
|
return {
|
|
2775
2711
|
name: __expectString(output.name),
|
|
2776
|
-
reasonCodeSummaries: output.reasonCodeSummaries
|
|
2712
|
+
reasonCodeSummaries: output.reasonCodeSummaries != null
|
|
2777
2713
|
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2778
2714
|
: undefined,
|
|
2779
2715
|
value: __limitedParseDouble(output.value),
|
|
@@ -2832,32 +2768,32 @@ var deserializeAws_json1_0VolumeConfiguration = function (output, context) {
|
|
|
2832
2768
|
var deserializeAws_json1_0VolumeRecommendation = function (output, context) {
|
|
2833
2769
|
return {
|
|
2834
2770
|
accountId: __expectString(output.accountId),
|
|
2835
|
-
currentConfiguration: output.currentConfiguration
|
|
2771
|
+
currentConfiguration: output.currentConfiguration != null
|
|
2836
2772
|
? deserializeAws_json1_0VolumeConfiguration(output.currentConfiguration, context)
|
|
2837
2773
|
: undefined,
|
|
2838
2774
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2839
2775
|
finding: __expectString(output.finding),
|
|
2840
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2776
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2841
2777
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2842
2778
|
: undefined,
|
|
2843
2779
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2844
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2780
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2845
2781
|
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2846
2782
|
: undefined,
|
|
2847
2783
|
volumeArn: __expectString(output.volumeArn),
|
|
2848
|
-
volumeRecommendationOptions: output.volumeRecommendationOptions
|
|
2784
|
+
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2849
2785
|
? deserializeAws_json1_0VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2850
2786
|
: undefined,
|
|
2851
2787
|
};
|
|
2852
2788
|
};
|
|
2853
2789
|
var deserializeAws_json1_0VolumeRecommendationOption = function (output, context) {
|
|
2854
2790
|
return {
|
|
2855
|
-
configuration: output.configuration
|
|
2791
|
+
configuration: output.configuration != null
|
|
2856
2792
|
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2857
2793
|
: undefined,
|
|
2858
2794
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2859
2795
|
rank: __expectInt32(output.rank),
|
|
2860
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2796
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2861
2797
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2862
2798
|
: undefined,
|
|
2863
2799
|
};
|
|
@@ -2958,5 +2894,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2958
2894
|
if (data["__type"] !== undefined) {
|
|
2959
2895
|
return sanitizeErrorCode(data["__type"]);
|
|
2960
2896
|
}
|
|
2961
|
-
return "";
|
|
2962
2897
|
};
|