@aws-sdk/client-migrationhubstrategy 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_restJson1.js +196 -227
- package/dist-es/protocols/Aws_restJson1.js +169 -200
- package/package.json +26 -26
|
@@ -283,11 +283,9 @@ export var serializeAws_restJson1ListApplicationComponentsCommand = function (in
|
|
|
283
283
|
"content-type": "application/json",
|
|
284
284
|
};
|
|
285
285
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-applicationcomponents";
|
|
286
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentCriteria
|
|
287
|
-
input.applicationComponentCriteria !== null && {
|
|
286
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentCriteria != null && {
|
|
288
287
|
applicationComponentCriteria: input.applicationComponentCriteria,
|
|
289
|
-
})), (input.filterValue
|
|
290
|
-
input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sort !== undefined && input.sort !== null && { sort: input.sort })));
|
|
288
|
+
})), (input.filterValue != null && { filterValue: input.filterValue })), (input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sort != null && { sort: input.sort })));
|
|
291
289
|
return [2, new __HttpRequest({
|
|
292
290
|
protocol: protocol,
|
|
293
291
|
hostname: hostname,
|
|
@@ -357,9 +355,7 @@ export var serializeAws_restJson1ListServersCommand = function (input, context)
|
|
|
357
355
|
"content-type": "application/json",
|
|
358
356
|
};
|
|
359
357
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-servers";
|
|
360
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterValue
|
|
361
|
-
input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serverCriteria !== undefined &&
|
|
362
|
-
input.serverCriteria !== null && { serverCriteria: input.serverCriteria })), (input.sort !== undefined && input.sort !== null && { sort: input.sort })));
|
|
358
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterValue != null && { filterValue: input.filterValue })), (input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.serverCriteria != null && { serverCriteria: input.serverCriteria })), (input.sort != null && { sort: input.sort })));
|
|
363
359
|
return [2, new __HttpRequest({
|
|
364
360
|
protocol: protocol,
|
|
365
361
|
hostname: hostname,
|
|
@@ -383,14 +379,11 @@ export var serializeAws_restJson1PutPortfolioPreferencesCommand = function (inpu
|
|
|
383
379
|
"content-type": "application/json",
|
|
384
380
|
};
|
|
385
381
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/put-portfolio-preferences";
|
|
386
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationPreferences
|
|
387
|
-
input.applicationPreferences !== null && {
|
|
382
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationPreferences != null && {
|
|
388
383
|
applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
|
|
389
|
-
})), (input.databasePreferences
|
|
390
|
-
input.databasePreferences !== null && {
|
|
384
|
+
})), (input.databasePreferences != null && {
|
|
391
385
|
databasePreferences: serializeAws_restJson1DatabasePreferences(input.databasePreferences, context),
|
|
392
|
-
})), (input.prioritizeBusinessGoals
|
|
393
|
-
input.prioritizeBusinessGoals !== null && {
|
|
386
|
+
})), (input.prioritizeBusinessGoals != null && {
|
|
394
387
|
prioritizeBusinessGoals: serializeAws_restJson1PrioritizeBusinessGoals(input.prioritizeBusinessGoals, context),
|
|
395
388
|
})));
|
|
396
389
|
return [2, new __HttpRequest({
|
|
@@ -416,9 +409,7 @@ export var serializeAws_restJson1StartAssessmentCommand = function (input, conte
|
|
|
416
409
|
"content-type": "application/json",
|
|
417
410
|
};
|
|
418
411
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-assessment";
|
|
419
|
-
body = JSON.stringify(__assign(__assign({}, (input.s3bucketForAnalysisData
|
|
420
|
-
input.s3bucketForAnalysisData !== null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData })), (input.s3bucketForReportData !== undefined &&
|
|
421
|
-
input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData })));
|
|
412
|
+
body = JSON.stringify(__assign(__assign({}, (input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData })), (input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData })));
|
|
422
413
|
return [2, new __HttpRequest({
|
|
423
414
|
protocol: protocol,
|
|
424
415
|
hostname: hostname,
|
|
@@ -442,10 +433,7 @@ export var serializeAws_restJson1StartImportFileTaskCommand = function (input, c
|
|
|
442
433
|
"content-type": "application/json",
|
|
443
434
|
};
|
|
444
435
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-import-file-task";
|
|
445
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.S3Bucket
|
|
446
|
-
input.dataSourceType !== null && { dataSourceType: input.dataSourceType })), (input.groupId !== undefined &&
|
|
447
|
-
input.groupId !== null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.s3bucketForReportData !== undefined &&
|
|
448
|
-
input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData })), (input.s3key !== undefined && input.s3key !== null && { s3key: input.s3key })));
|
|
436
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.dataSourceType != null && { dataSourceType: input.dataSourceType })), (input.groupId != null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) })), (input.name != null && { name: input.name })), (input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData })), (input.s3key != null && { s3key: input.s3key })));
|
|
449
437
|
return [2, new __HttpRequest({
|
|
450
438
|
protocol: protocol,
|
|
451
439
|
hostname: hostname,
|
|
@@ -469,8 +457,7 @@ export var serializeAws_restJson1StartRecommendationReportGenerationCommand = fu
|
|
|
469
457
|
"content-type": "application/json",
|
|
470
458
|
};
|
|
471
459
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-recommendation-report-generation";
|
|
472
|
-
body = JSON.stringify(__assign(__assign({}, (input.groupIdFilter
|
|
473
|
-
input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.outputFormat !== undefined && input.outputFormat !== null && { outputFormat: input.outputFormat })));
|
|
460
|
+
body = JSON.stringify(__assign(__assign({}, (input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.outputFormat != null && { outputFormat: input.outputFormat })));
|
|
474
461
|
return [2, new __HttpRequest({
|
|
475
462
|
protocol: protocol,
|
|
476
463
|
hostname: hostname,
|
|
@@ -494,7 +481,7 @@ export var serializeAws_restJson1StopAssessmentCommand = function (input, contex
|
|
|
494
481
|
"content-type": "application/json",
|
|
495
482
|
};
|
|
496
483
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stop-assessment";
|
|
497
|
-
body = JSON.stringify(__assign({}, (input.assessmentId
|
|
484
|
+
body = JSON.stringify(__assign({}, (input.assessmentId != null && { assessmentId: input.assessmentId })));
|
|
498
485
|
return [2, new __HttpRequest({
|
|
499
486
|
protocol: protocol,
|
|
500
487
|
hostname: hostname,
|
|
@@ -518,14 +505,9 @@ export var serializeAws_restJson1UpdateApplicationComponentConfigCommand = funct
|
|
|
518
505
|
"content-type": "application/json",
|
|
519
506
|
};
|
|
520
507
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-applicationcomponent-config";
|
|
521
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentId
|
|
522
|
-
input.applicationComponentId !== null && { applicationComponentId: input.applicationComponentId })), (input.inclusionStatus !== undefined &&
|
|
523
|
-
input.inclusionStatus !== null && { inclusionStatus: input.inclusionStatus })), (input.secretsManagerKey !== undefined &&
|
|
524
|
-
input.secretsManagerKey !== null && { secretsManagerKey: input.secretsManagerKey })), (input.sourceCodeList !== undefined &&
|
|
525
|
-
input.sourceCodeList !== null && {
|
|
508
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId })), (input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus })), (input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey })), (input.sourceCodeList != null && {
|
|
526
509
|
sourceCodeList: serializeAws_restJson1SourceCodeList(input.sourceCodeList, context),
|
|
527
|
-
})), (input.strategyOption
|
|
528
|
-
input.strategyOption !== null && {
|
|
510
|
+
})), (input.strategyOption != null && {
|
|
529
511
|
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|
|
530
512
|
})));
|
|
531
513
|
return [2, new __HttpRequest({
|
|
@@ -551,8 +533,7 @@ export var serializeAws_restJson1UpdateServerConfigCommand = function (input, co
|
|
|
551
533
|
"content-type": "application/json",
|
|
552
534
|
};
|
|
553
535
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-server-config";
|
|
554
|
-
body = JSON.stringify(__assign(__assign({}, (input.serverId
|
|
555
|
-
input.strategyOption !== null && {
|
|
536
|
+
body = JSON.stringify(__assign(__assign({}, (input.serverId != null && { serverId: input.serverId })), (input.strategyOption != null && {
|
|
556
537
|
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|
|
557
538
|
})));
|
|
558
539
|
return [2, new __HttpRequest({
|
|
@@ -604,7 +585,7 @@ export var deserializeAws_restJson1GetApplicationComponentDetailsCommand = funct
|
|
|
604
585
|
});
|
|
605
586
|
}); };
|
|
606
587
|
var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
607
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
588
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
608
589
|
var _c;
|
|
609
590
|
return __generator(this, function (_d) {
|
|
610
591
|
switch (_d.label) {
|
|
@@ -614,7 +595,6 @@ var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = functio
|
|
|
614
595
|
return [4, parseBody(output.body, context)];
|
|
615
596
|
case 1:
|
|
616
597
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
617
|
-
errorCode = "UnknownError";
|
|
618
598
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
619
599
|
_b = errorCode;
|
|
620
600
|
switch (_b) {
|
|
@@ -634,10 +614,12 @@ var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = functio
|
|
|
634
614
|
case 7: throw _d.sent();
|
|
635
615
|
case 8:
|
|
636
616
|
parsedBody = parsedOutput.body;
|
|
617
|
+
$metadata = deserializeMetadata(output);
|
|
618
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
637
619
|
response = new __BaseException({
|
|
638
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
620
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
639
621
|
$fault: "client",
|
|
640
|
-
$metadata:
|
|
622
|
+
$metadata: $metadata,
|
|
641
623
|
});
|
|
642
624
|
throw __decorateServiceException(response, parsedBody);
|
|
643
625
|
}
|
|
@@ -668,7 +650,7 @@ export var deserializeAws_restJson1GetApplicationComponentStrategiesCommand = fu
|
|
|
668
650
|
});
|
|
669
651
|
}); };
|
|
670
652
|
var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
671
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
653
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
672
654
|
var _c;
|
|
673
655
|
return __generator(this, function (_d) {
|
|
674
656
|
switch (_d.label) {
|
|
@@ -678,7 +660,6 @@ var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = func
|
|
|
678
660
|
return [4, parseBody(output.body, context)];
|
|
679
661
|
case 1:
|
|
680
662
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
681
|
-
errorCode = "UnknownError";
|
|
682
663
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
664
|
_b = errorCode;
|
|
684
665
|
switch (_b) {
|
|
@@ -698,10 +679,12 @@ var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = func
|
|
|
698
679
|
case 7: throw _d.sent();
|
|
699
680
|
case 8:
|
|
700
681
|
parsedBody = parsedOutput.body;
|
|
682
|
+
$metadata = deserializeMetadata(output);
|
|
683
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
701
684
|
response = new __BaseException({
|
|
702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
685
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
703
686
|
$fault: "client",
|
|
704
|
-
$metadata:
|
|
687
|
+
$metadata: $metadata,
|
|
705
688
|
});
|
|
706
689
|
throw __decorateServiceException(response, parsedBody);
|
|
707
690
|
}
|
|
@@ -736,7 +719,7 @@ export var deserializeAws_restJson1GetAssessmentCommand = function (output, cont
|
|
|
736
719
|
});
|
|
737
720
|
}); };
|
|
738
721
|
var deserializeAws_restJson1GetAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
739
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
722
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
740
723
|
var _c;
|
|
741
724
|
return __generator(this, function (_d) {
|
|
742
725
|
switch (_d.label) {
|
|
@@ -746,7 +729,6 @@ var deserializeAws_restJson1GetAssessmentCommandError = function (output, contex
|
|
|
746
729
|
return [4, parseBody(output.body, context)];
|
|
747
730
|
case 1:
|
|
748
731
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
749
|
-
errorCode = "UnknownError";
|
|
750
732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
733
|
_b = errorCode;
|
|
752
734
|
switch (_b) {
|
|
@@ -770,10 +752,12 @@ var deserializeAws_restJson1GetAssessmentCommandError = function (output, contex
|
|
|
770
752
|
case 9: throw _d.sent();
|
|
771
753
|
case 10:
|
|
772
754
|
parsedBody = parsedOutput.body;
|
|
755
|
+
$metadata = deserializeMetadata(output);
|
|
756
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
773
757
|
response = new __BaseException({
|
|
774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
775
759
|
$fault: "client",
|
|
776
|
-
$metadata:
|
|
760
|
+
$metadata: $metadata,
|
|
777
761
|
});
|
|
778
762
|
throw __decorateServiceException(response, parsedBody);
|
|
779
763
|
}
|
|
@@ -844,7 +828,7 @@ export var deserializeAws_restJson1GetImportFileTaskCommand = function (output,
|
|
|
844
828
|
});
|
|
845
829
|
}); };
|
|
846
830
|
var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
847
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
831
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
848
832
|
var _c;
|
|
849
833
|
return __generator(this, function (_d) {
|
|
850
834
|
switch (_d.label) {
|
|
@@ -854,7 +838,6 @@ var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, co
|
|
|
854
838
|
return [4, parseBody(output.body, context)];
|
|
855
839
|
case 1:
|
|
856
840
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
857
|
-
errorCode = "UnknownError";
|
|
858
841
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
842
|
_b = errorCode;
|
|
860
843
|
switch (_b) {
|
|
@@ -882,10 +865,12 @@ var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, co
|
|
|
882
865
|
case 11: throw _d.sent();
|
|
883
866
|
case 12:
|
|
884
867
|
parsedBody = parsedOutput.body;
|
|
868
|
+
$metadata = deserializeMetadata(output);
|
|
869
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
885
870
|
response = new __BaseException({
|
|
886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
887
872
|
$fault: "client",
|
|
888
|
-
$metadata:
|
|
873
|
+
$metadata: $metadata,
|
|
889
874
|
});
|
|
890
875
|
throw __decorateServiceException(response, parsedBody);
|
|
891
876
|
}
|
|
@@ -924,7 +909,7 @@ export var deserializeAws_restJson1GetPortfolioPreferencesCommand = function (ou
|
|
|
924
909
|
});
|
|
925
910
|
}); };
|
|
926
911
|
var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
927
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
912
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
928
913
|
var _c;
|
|
929
914
|
return __generator(this, function (_d) {
|
|
930
915
|
switch (_d.label) {
|
|
@@ -934,7 +919,6 @@ var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (outp
|
|
|
934
919
|
return [4, parseBody(output.body, context)];
|
|
935
920
|
case 1:
|
|
936
921
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
937
|
-
errorCode = "UnknownError";
|
|
938
922
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
923
|
_b = errorCode;
|
|
940
924
|
switch (_b) {
|
|
@@ -958,10 +942,12 @@ var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (outp
|
|
|
958
942
|
case 9: throw _d.sent();
|
|
959
943
|
case 10:
|
|
960
944
|
parsedBody = parsedOutput.body;
|
|
945
|
+
$metadata = deserializeMetadata(output);
|
|
946
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
961
947
|
response = new __BaseException({
|
|
962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
963
949
|
$fault: "client",
|
|
964
|
-
$metadata:
|
|
950
|
+
$metadata: $metadata,
|
|
965
951
|
});
|
|
966
952
|
throw __decorateServiceException(response, parsedBody);
|
|
967
953
|
}
|
|
@@ -992,7 +978,7 @@ export var deserializeAws_restJson1GetPortfolioSummaryCommand = function (output
|
|
|
992
978
|
});
|
|
993
979
|
}); };
|
|
994
980
|
var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
995
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
981
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
996
982
|
var _c;
|
|
997
983
|
return __generator(this, function (_d) {
|
|
998
984
|
switch (_d.label) {
|
|
@@ -1002,7 +988,6 @@ var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output,
|
|
|
1002
988
|
return [4, parseBody(output.body, context)];
|
|
1003
989
|
case 1:
|
|
1004
990
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1005
|
-
errorCode = "UnknownError";
|
|
1006
991
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
992
|
_b = errorCode;
|
|
1008
993
|
switch (_b) {
|
|
@@ -1022,10 +1007,12 @@ var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output,
|
|
|
1022
1007
|
case 7: throw _d.sent();
|
|
1023
1008
|
case 8:
|
|
1024
1009
|
parsedBody = parsedOutput.body;
|
|
1010
|
+
$metadata = deserializeMetadata(output);
|
|
1011
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1025
1012
|
response = new __BaseException({
|
|
1026
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1027
1014
|
$fault: "client",
|
|
1028
|
-
$metadata:
|
|
1015
|
+
$metadata: $metadata,
|
|
1029
1016
|
});
|
|
1030
1017
|
throw __decorateServiceException(response, parsedBody);
|
|
1031
1018
|
}
|
|
@@ -1060,7 +1047,7 @@ export var deserializeAws_restJson1GetRecommendationReportDetailsCommand = funct
|
|
|
1060
1047
|
});
|
|
1061
1048
|
}); };
|
|
1062
1049
|
var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1063
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1050
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1064
1051
|
var _c;
|
|
1065
1052
|
return __generator(this, function (_d) {
|
|
1066
1053
|
switch (_d.label) {
|
|
@@ -1070,7 +1057,6 @@ var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = functio
|
|
|
1070
1057
|
return [4, parseBody(output.body, context)];
|
|
1071
1058
|
case 1:
|
|
1072
1059
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1073
|
-
errorCode = "UnknownError";
|
|
1074
1060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1061
|
_b = errorCode;
|
|
1076
1062
|
switch (_b) {
|
|
@@ -1098,10 +1084,12 @@ var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = functio
|
|
|
1098
1084
|
case 11: throw _d.sent();
|
|
1099
1085
|
case 12:
|
|
1100
1086
|
parsedBody = parsedOutput.body;
|
|
1087
|
+
$metadata = deserializeMetadata(output);
|
|
1088
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1101
1089
|
response = new __BaseException({
|
|
1102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1103
1091
|
$fault: "client",
|
|
1104
|
-
$metadata:
|
|
1092
|
+
$metadata: $metadata,
|
|
1105
1093
|
});
|
|
1106
1094
|
throw __decorateServiceException(response, parsedBody);
|
|
1107
1095
|
}
|
|
@@ -1140,7 +1128,7 @@ export var deserializeAws_restJson1GetServerDetailsCommand = function (output, c
|
|
|
1140
1128
|
});
|
|
1141
1129
|
}); };
|
|
1142
1130
|
var deserializeAws_restJson1GetServerDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1143
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1131
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1144
1132
|
var _c;
|
|
1145
1133
|
return __generator(this, function (_d) {
|
|
1146
1134
|
switch (_d.label) {
|
|
@@ -1150,7 +1138,6 @@ var deserializeAws_restJson1GetServerDetailsCommandError = function (output, con
|
|
|
1150
1138
|
return [4, parseBody(output.body, context)];
|
|
1151
1139
|
case 1:
|
|
1152
1140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1153
|
-
errorCode = "UnknownError";
|
|
1154
1141
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
1142
|
_b = errorCode;
|
|
1156
1143
|
switch (_b) {
|
|
@@ -1178,10 +1165,12 @@ var deserializeAws_restJson1GetServerDetailsCommandError = function (output, con
|
|
|
1178
1165
|
case 11: throw _d.sent();
|
|
1179
1166
|
case 12:
|
|
1180
1167
|
parsedBody = parsedOutput.body;
|
|
1168
|
+
$metadata = deserializeMetadata(output);
|
|
1169
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1181
1170
|
response = new __BaseException({
|
|
1182
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1171
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1183
1172
|
$fault: "client",
|
|
1184
|
-
$metadata:
|
|
1173
|
+
$metadata: $metadata,
|
|
1185
1174
|
});
|
|
1186
1175
|
throw __decorateServiceException(response, parsedBody);
|
|
1187
1176
|
}
|
|
@@ -1212,7 +1201,7 @@ export var deserializeAws_restJson1GetServerStrategiesCommand = function (output
|
|
|
1212
1201
|
});
|
|
1213
1202
|
}); };
|
|
1214
1203
|
var deserializeAws_restJson1GetServerStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1215
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1204
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1216
1205
|
var _c;
|
|
1217
1206
|
return __generator(this, function (_d) {
|
|
1218
1207
|
switch (_d.label) {
|
|
@@ -1222,7 +1211,6 @@ var deserializeAws_restJson1GetServerStrategiesCommandError = function (output,
|
|
|
1222
1211
|
return [4, parseBody(output.body, context)];
|
|
1223
1212
|
case 1:
|
|
1224
1213
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1225
|
-
errorCode = "UnknownError";
|
|
1226
1214
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1227
1215
|
_b = errorCode;
|
|
1228
1216
|
switch (_b) {
|
|
@@ -1250,10 +1238,12 @@ var deserializeAws_restJson1GetServerStrategiesCommandError = function (output,
|
|
|
1250
1238
|
case 11: throw _d.sent();
|
|
1251
1239
|
case 12:
|
|
1252
1240
|
parsedBody = parsedOutput.body;
|
|
1241
|
+
$metadata = deserializeMetadata(output);
|
|
1242
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1253
1243
|
response = new __BaseException({
|
|
1254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1255
1245
|
$fault: "client",
|
|
1256
|
-
$metadata:
|
|
1246
|
+
$metadata: $metadata,
|
|
1257
1247
|
});
|
|
1258
1248
|
throw __decorateServiceException(response, parsedBody);
|
|
1259
1249
|
}
|
|
@@ -1288,7 +1278,7 @@ export var deserializeAws_restJson1ListApplicationComponentsCommand = function (
|
|
|
1288
1278
|
});
|
|
1289
1279
|
}); };
|
|
1290
1280
|
var deserializeAws_restJson1ListApplicationComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1291
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1281
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1292
1282
|
var _c;
|
|
1293
1283
|
return __generator(this, function (_d) {
|
|
1294
1284
|
switch (_d.label) {
|
|
@@ -1298,7 +1288,6 @@ var deserializeAws_restJson1ListApplicationComponentsCommandError = function (ou
|
|
|
1298
1288
|
return [4, parseBody(output.body, context)];
|
|
1299
1289
|
case 1:
|
|
1300
1290
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1301
|
-
errorCode = "UnknownError";
|
|
1302
1291
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
1292
|
_b = errorCode;
|
|
1304
1293
|
switch (_b) {
|
|
@@ -1322,10 +1311,12 @@ var deserializeAws_restJson1ListApplicationComponentsCommandError = function (ou
|
|
|
1322
1311
|
case 9: throw _d.sent();
|
|
1323
1312
|
case 10:
|
|
1324
1313
|
parsedBody = parsedOutput.body;
|
|
1314
|
+
$metadata = deserializeMetadata(output);
|
|
1315
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1325
1316
|
response = new __BaseException({
|
|
1326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1327
1318
|
$fault: "client",
|
|
1328
|
-
$metadata:
|
|
1319
|
+
$metadata: $metadata,
|
|
1329
1320
|
});
|
|
1330
1321
|
throw __decorateServiceException(response, parsedBody);
|
|
1331
1322
|
}
|
|
@@ -1360,7 +1351,7 @@ export var deserializeAws_restJson1ListCollectorsCommand = function (output, con
|
|
|
1360
1351
|
});
|
|
1361
1352
|
}); };
|
|
1362
1353
|
var deserializeAws_restJson1ListCollectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1363
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1354
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1364
1355
|
var _c;
|
|
1365
1356
|
return __generator(this, function (_d) {
|
|
1366
1357
|
switch (_d.label) {
|
|
@@ -1370,7 +1361,6 @@ var deserializeAws_restJson1ListCollectorsCommandError = function (output, conte
|
|
|
1370
1361
|
return [4, parseBody(output.body, context)];
|
|
1371
1362
|
case 1:
|
|
1372
1363
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1373
|
-
errorCode = "UnknownError";
|
|
1374
1364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
1365
|
_b = errorCode;
|
|
1376
1366
|
switch (_b) {
|
|
@@ -1394,10 +1384,12 @@ var deserializeAws_restJson1ListCollectorsCommandError = function (output, conte
|
|
|
1394
1384
|
case 9: throw _d.sent();
|
|
1395
1385
|
case 10:
|
|
1396
1386
|
parsedBody = parsedOutput.body;
|
|
1387
|
+
$metadata = deserializeMetadata(output);
|
|
1388
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1397
1389
|
response = new __BaseException({
|
|
1398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1399
1391
|
$fault: "client",
|
|
1400
|
-
$metadata:
|
|
1392
|
+
$metadata: $metadata,
|
|
1401
1393
|
});
|
|
1402
1394
|
throw __decorateServiceException(response, parsedBody);
|
|
1403
1395
|
}
|
|
@@ -1432,7 +1424,7 @@ export var deserializeAws_restJson1ListImportFileTaskCommand = function (output,
|
|
|
1432
1424
|
});
|
|
1433
1425
|
}); };
|
|
1434
1426
|
var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1435
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1436
1428
|
var _c;
|
|
1437
1429
|
return __generator(this, function (_d) {
|
|
1438
1430
|
switch (_d.label) {
|
|
@@ -1442,7 +1434,6 @@ var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, c
|
|
|
1442
1434
|
return [4, parseBody(output.body, context)];
|
|
1443
1435
|
case 1:
|
|
1444
1436
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1445
|
-
errorCode = "UnknownError";
|
|
1446
1437
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
1438
|
_b = errorCode;
|
|
1448
1439
|
switch (_b) {
|
|
@@ -1466,10 +1457,12 @@ var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, c
|
|
|
1466
1457
|
case 9: throw _d.sent();
|
|
1467
1458
|
case 10:
|
|
1468
1459
|
parsedBody = parsedOutput.body;
|
|
1460
|
+
$metadata = deserializeMetadata(output);
|
|
1461
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1469
1462
|
response = new __BaseException({
|
|
1470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1463
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1471
1464
|
$fault: "client",
|
|
1472
|
-
$metadata:
|
|
1465
|
+
$metadata: $metadata,
|
|
1473
1466
|
});
|
|
1474
1467
|
throw __decorateServiceException(response, parsedBody);
|
|
1475
1468
|
}
|
|
@@ -1504,7 +1497,7 @@ export var deserializeAws_restJson1ListServersCommand = function (output, contex
|
|
|
1504
1497
|
});
|
|
1505
1498
|
}); };
|
|
1506
1499
|
var deserializeAws_restJson1ListServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1507
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1500
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1508
1501
|
var _c;
|
|
1509
1502
|
return __generator(this, function (_d) {
|
|
1510
1503
|
switch (_d.label) {
|
|
@@ -1514,7 +1507,6 @@ var deserializeAws_restJson1ListServersCommandError = function (output, context)
|
|
|
1514
1507
|
return [4, parseBody(output.body, context)];
|
|
1515
1508
|
case 1:
|
|
1516
1509
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1517
|
-
errorCode = "UnknownError";
|
|
1518
1510
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
1511
|
_b = errorCode;
|
|
1520
1512
|
switch (_b) {
|
|
@@ -1538,10 +1530,12 @@ var deserializeAws_restJson1ListServersCommandError = function (output, context)
|
|
|
1538
1530
|
case 9: throw _d.sent();
|
|
1539
1531
|
case 10:
|
|
1540
1532
|
parsedBody = parsedOutput.body;
|
|
1533
|
+
$metadata = deserializeMetadata(output);
|
|
1534
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1541
1535
|
response = new __BaseException({
|
|
1542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1536
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1543
1537
|
$fault: "client",
|
|
1544
|
-
$metadata:
|
|
1538
|
+
$metadata: $metadata,
|
|
1545
1539
|
});
|
|
1546
1540
|
throw __decorateServiceException(response, parsedBody);
|
|
1547
1541
|
}
|
|
@@ -1566,7 +1560,7 @@ export var deserializeAws_restJson1PutPortfolioPreferencesCommand = function (ou
|
|
|
1566
1560
|
});
|
|
1567
1561
|
}); };
|
|
1568
1562
|
var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1569
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1563
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1570
1564
|
var _c;
|
|
1571
1565
|
return __generator(this, function (_d) {
|
|
1572
1566
|
switch (_d.label) {
|
|
@@ -1576,7 +1570,6 @@ var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (outp
|
|
|
1576
1570
|
return [4, parseBody(output.body, context)];
|
|
1577
1571
|
case 1:
|
|
1578
1572
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1579
|
-
errorCode = "UnknownError";
|
|
1580
1573
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
1574
|
_b = errorCode;
|
|
1582
1575
|
switch (_b) {
|
|
@@ -1604,10 +1597,12 @@ var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (outp
|
|
|
1604
1597
|
case 11: throw _d.sent();
|
|
1605
1598
|
case 12:
|
|
1606
1599
|
parsedBody = parsedOutput.body;
|
|
1600
|
+
$metadata = deserializeMetadata(output);
|
|
1601
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1607
1602
|
response = new __BaseException({
|
|
1608
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1609
1604
|
$fault: "client",
|
|
1610
|
-
$metadata:
|
|
1605
|
+
$metadata: $metadata,
|
|
1611
1606
|
});
|
|
1612
1607
|
throw __decorateServiceException(response, parsedBody);
|
|
1613
1608
|
}
|
|
@@ -1638,7 +1633,7 @@ export var deserializeAws_restJson1StartAssessmentCommand = function (output, co
|
|
|
1638
1633
|
});
|
|
1639
1634
|
}); };
|
|
1640
1635
|
var deserializeAws_restJson1StartAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1641
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1636
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1642
1637
|
var _c;
|
|
1643
1638
|
return __generator(this, function (_d) {
|
|
1644
1639
|
switch (_d.label) {
|
|
@@ -1648,7 +1643,6 @@ var deserializeAws_restJson1StartAssessmentCommandError = function (output, cont
|
|
|
1648
1643
|
return [4, parseBody(output.body, context)];
|
|
1649
1644
|
case 1:
|
|
1650
1645
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1651
|
-
errorCode = "UnknownError";
|
|
1652
1646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
1647
|
_b = errorCode;
|
|
1654
1648
|
switch (_b) {
|
|
@@ -1672,10 +1666,12 @@ var deserializeAws_restJson1StartAssessmentCommandError = function (output, cont
|
|
|
1672
1666
|
case 9: throw _d.sent();
|
|
1673
1667
|
case 10:
|
|
1674
1668
|
parsedBody = parsedOutput.body;
|
|
1669
|
+
$metadata = deserializeMetadata(output);
|
|
1670
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1675
1671
|
response = new __BaseException({
|
|
1676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1677
1673
|
$fault: "client",
|
|
1678
|
-
$metadata:
|
|
1674
|
+
$metadata: $metadata,
|
|
1679
1675
|
});
|
|
1680
1676
|
throw __decorateServiceException(response, parsedBody);
|
|
1681
1677
|
}
|
|
@@ -1706,7 +1702,7 @@ export var deserializeAws_restJson1StartImportFileTaskCommand = function (output
|
|
|
1706
1702
|
});
|
|
1707
1703
|
}); };
|
|
1708
1704
|
var deserializeAws_restJson1StartImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1709
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1705
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1710
1706
|
var _c;
|
|
1711
1707
|
return __generator(this, function (_d) {
|
|
1712
1708
|
switch (_d.label) {
|
|
@@ -1716,7 +1712,6 @@ var deserializeAws_restJson1StartImportFileTaskCommandError = function (output,
|
|
|
1716
1712
|
return [4, parseBody(output.body, context)];
|
|
1717
1713
|
case 1:
|
|
1718
1714
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1719
|
-
errorCode = "UnknownError";
|
|
1720
1715
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
1716
|
_b = errorCode;
|
|
1722
1717
|
switch (_b) {
|
|
@@ -1744,10 +1739,12 @@ var deserializeAws_restJson1StartImportFileTaskCommandError = function (output,
|
|
|
1744
1739
|
case 11: throw _d.sent();
|
|
1745
1740
|
case 12:
|
|
1746
1741
|
parsedBody = parsedOutput.body;
|
|
1742
|
+
$metadata = deserializeMetadata(output);
|
|
1743
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1747
1744
|
response = new __BaseException({
|
|
1748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1745
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1749
1746
|
$fault: "client",
|
|
1750
|
-
$metadata:
|
|
1747
|
+
$metadata: $metadata,
|
|
1751
1748
|
});
|
|
1752
1749
|
throw __decorateServiceException(response, parsedBody);
|
|
1753
1750
|
}
|
|
@@ -1778,7 +1775,7 @@ export var deserializeAws_restJson1StartRecommendationReportGenerationCommand =
|
|
|
1778
1775
|
});
|
|
1779
1776
|
}); };
|
|
1780
1777
|
var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1781
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1778
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1782
1779
|
var _c;
|
|
1783
1780
|
return __generator(this, function (_d) {
|
|
1784
1781
|
switch (_d.label) {
|
|
@@ -1788,7 +1785,6 @@ var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = fu
|
|
|
1788
1785
|
return [4, parseBody(output.body, context)];
|
|
1789
1786
|
case 1:
|
|
1790
1787
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1791
|
-
errorCode = "UnknownError";
|
|
1792
1788
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1789
|
_b = errorCode;
|
|
1794
1790
|
switch (_b) {
|
|
@@ -1816,10 +1812,12 @@ var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = fu
|
|
|
1816
1812
|
case 11: throw _d.sent();
|
|
1817
1813
|
case 12:
|
|
1818
1814
|
parsedBody = parsedOutput.body;
|
|
1815
|
+
$metadata = deserializeMetadata(output);
|
|
1816
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1819
1817
|
response = new __BaseException({
|
|
1820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1821
1819
|
$fault: "client",
|
|
1822
|
-
$metadata:
|
|
1820
|
+
$metadata: $metadata,
|
|
1823
1821
|
});
|
|
1824
1822
|
throw __decorateServiceException(response, parsedBody);
|
|
1825
1823
|
}
|
|
@@ -1844,7 +1842,7 @@ export var deserializeAws_restJson1StopAssessmentCommand = function (output, con
|
|
|
1844
1842
|
});
|
|
1845
1843
|
}); };
|
|
1846
1844
|
var deserializeAws_restJson1StopAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1847
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1845
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1848
1846
|
var _c;
|
|
1849
1847
|
return __generator(this, function (_d) {
|
|
1850
1848
|
switch (_d.label) {
|
|
@@ -1854,7 +1852,6 @@ var deserializeAws_restJson1StopAssessmentCommandError = function (output, conte
|
|
|
1854
1852
|
return [4, parseBody(output.body, context)];
|
|
1855
1853
|
case 1:
|
|
1856
1854
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1857
|
-
errorCode = "UnknownError";
|
|
1858
1855
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
1856
|
_b = errorCode;
|
|
1860
1857
|
switch (_b) {
|
|
@@ -1878,10 +1875,12 @@ var deserializeAws_restJson1StopAssessmentCommandError = function (output, conte
|
|
|
1878
1875
|
case 9: throw _d.sent();
|
|
1879
1876
|
case 10:
|
|
1880
1877
|
parsedBody = parsedOutput.body;
|
|
1878
|
+
$metadata = deserializeMetadata(output);
|
|
1879
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1881
1880
|
response = new __BaseException({
|
|
1882
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1883
1882
|
$fault: "client",
|
|
1884
|
-
$metadata:
|
|
1883
|
+
$metadata: $metadata,
|
|
1885
1884
|
});
|
|
1886
1885
|
throw __decorateServiceException(response, parsedBody);
|
|
1887
1886
|
}
|
|
@@ -1906,7 +1905,7 @@ export var deserializeAws_restJson1UpdateApplicationComponentConfigCommand = fun
|
|
|
1906
1905
|
});
|
|
1907
1906
|
}); };
|
|
1908
1907
|
var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1909
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1908
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1910
1909
|
var _c;
|
|
1911
1910
|
return __generator(this, function (_d) {
|
|
1912
1911
|
switch (_d.label) {
|
|
@@ -1916,7 +1915,6 @@ var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = funct
|
|
|
1916
1915
|
return [4, parseBody(output.body, context)];
|
|
1917
1916
|
case 1:
|
|
1918
1917
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1919
|
-
errorCode = "UnknownError";
|
|
1920
1918
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
1919
|
_b = errorCode;
|
|
1922
1920
|
switch (_b) {
|
|
@@ -1940,10 +1938,12 @@ var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = funct
|
|
|
1940
1938
|
case 9: throw _d.sent();
|
|
1941
1939
|
case 10:
|
|
1942
1940
|
parsedBody = parsedOutput.body;
|
|
1941
|
+
$metadata = deserializeMetadata(output);
|
|
1942
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1943
1943
|
response = new __BaseException({
|
|
1944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1944
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1945
1945
|
$fault: "client",
|
|
1946
|
-
$metadata:
|
|
1946
|
+
$metadata: $metadata,
|
|
1947
1947
|
});
|
|
1948
1948
|
throw __decorateServiceException(response, parsedBody);
|
|
1949
1949
|
}
|
|
@@ -1968,7 +1968,7 @@ export var deserializeAws_restJson1UpdateServerConfigCommand = function (output,
|
|
|
1968
1968
|
});
|
|
1969
1969
|
}); };
|
|
1970
1970
|
var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1971
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1971
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1972
1972
|
var _c;
|
|
1973
1973
|
return __generator(this, function (_d) {
|
|
1974
1974
|
switch (_d.label) {
|
|
@@ -1978,7 +1978,6 @@ var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, c
|
|
|
1978
1978
|
return [4, parseBody(output.body, context)];
|
|
1979
1979
|
case 1:
|
|
1980
1980
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1981
|
-
errorCode = "UnknownError";
|
|
1982
1981
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
1982
|
_b = errorCode;
|
|
1984
1983
|
switch (_b) {
|
|
@@ -2002,10 +2001,12 @@ var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, c
|
|
|
2002
2001
|
case 9: throw _d.sent();
|
|
2003
2002
|
case 10:
|
|
2004
2003
|
parsedBody = parsedOutput.body;
|
|
2004
|
+
$metadata = deserializeMetadata(output);
|
|
2005
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2005
2006
|
response = new __BaseException({
|
|
2006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2007
2008
|
$fault: "client",
|
|
2008
|
-
$metadata:
|
|
2009
|
+
$metadata: $metadata,
|
|
2009
2010
|
});
|
|
2010
2011
|
throw __decorateServiceException(response, parsedBody);
|
|
2011
2012
|
}
|
|
@@ -2108,14 +2109,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2108
2109
|
});
|
|
2109
2110
|
}); };
|
|
2110
2111
|
var serializeAws_restJson1ApplicationPreferences = function (input, context) {
|
|
2111
|
-
return __assign({}, (input.managementPreference
|
|
2112
|
-
input.managementPreference !== null && {
|
|
2112
|
+
return __assign({}, (input.managementPreference != null && {
|
|
2113
2113
|
managementPreference: serializeAws_restJson1ManagementPreference(input.managementPreference, context),
|
|
2114
2114
|
}));
|
|
2115
2115
|
};
|
|
2116
2116
|
var serializeAws_restJson1AwsManagedResources = function (input, context) {
|
|
2117
|
-
return __assign({}, (input.targetDestination
|
|
2118
|
-
input.targetDestination !== null && {
|
|
2117
|
+
return __assign({}, (input.targetDestination != null && {
|
|
2119
2118
|
targetDestination: serializeAws_restJson1AwsManagedTargetDestinations(input.targetDestination, context),
|
|
2120
2119
|
}));
|
|
2121
2120
|
};
|
|
@@ -2130,15 +2129,11 @@ var serializeAws_restJson1AwsManagedTargetDestinations = function (input, contex
|
|
|
2130
2129
|
});
|
|
2131
2130
|
};
|
|
2132
2131
|
var serializeAws_restJson1BusinessGoals = function (input, context) {
|
|
2133
|
-
return __assign(__assign(__assign(__assign({}, (input.licenseCostReduction
|
|
2134
|
-
input.licenseCostReduction !== null && { licenseCostReduction: input.licenseCostReduction })), (input.modernizeInfrastructureWithCloudNativeTechnologies !== undefined &&
|
|
2135
|
-
input.modernizeInfrastructureWithCloudNativeTechnologies !== null && {
|
|
2132
|
+
return __assign(__assign(__assign(__assign({}, (input.licenseCostReduction != null && { licenseCostReduction: input.licenseCostReduction })), (input.modernizeInfrastructureWithCloudNativeTechnologies != null && {
|
|
2136
2133
|
modernizeInfrastructureWithCloudNativeTechnologies: input.modernizeInfrastructureWithCloudNativeTechnologies,
|
|
2137
|
-
})), (input.reduceOperationalOverheadWithManagedServices
|
|
2138
|
-
input.reduceOperationalOverheadWithManagedServices !== null && {
|
|
2134
|
+
})), (input.reduceOperationalOverheadWithManagedServices != null && {
|
|
2139
2135
|
reduceOperationalOverheadWithManagedServices: input.reduceOperationalOverheadWithManagedServices,
|
|
2140
|
-
})), (input.speedOfMigration
|
|
2141
|
-
input.speedOfMigration !== null && { speedOfMigration: input.speedOfMigration }));
|
|
2136
|
+
})), (input.speedOfMigration != null && { speedOfMigration: input.speedOfMigration }));
|
|
2142
2137
|
};
|
|
2143
2138
|
var serializeAws_restJson1DatabaseMigrationPreference = function (input, context) {
|
|
2144
2139
|
return DatabaseMigrationPreference.visit(input, {
|
|
@@ -2149,16 +2144,14 @@ var serializeAws_restJson1DatabaseMigrationPreference = function (input, context
|
|
|
2149
2144
|
});
|
|
2150
2145
|
};
|
|
2151
2146
|
var serializeAws_restJson1DatabasePreferences = function (input, context) {
|
|
2152
|
-
return __assign(__assign({}, (input.databaseManagementPreference
|
|
2153
|
-
input.databaseManagementPreference !== null && {
|
|
2147
|
+
return __assign(__assign({}, (input.databaseManagementPreference != null && {
|
|
2154
2148
|
databaseManagementPreference: input.databaseManagementPreference,
|
|
2155
|
-
})), (input.databaseMigrationPreference
|
|
2156
|
-
input.databaseMigrationPreference !== null && {
|
|
2149
|
+
})), (input.databaseMigrationPreference != null && {
|
|
2157
2150
|
databaseMigrationPreference: serializeAws_restJson1DatabaseMigrationPreference(input.databaseMigrationPreference, context),
|
|
2158
2151
|
}));
|
|
2159
2152
|
};
|
|
2160
2153
|
var serializeAws_restJson1Group = function (input, context) {
|
|
2161
|
-
return __assign(__assign({}, (input.name
|
|
2154
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
2162
2155
|
};
|
|
2163
2156
|
var serializeAws_restJson1GroupIds = function (input, context) {
|
|
2164
2157
|
return input
|
|
@@ -2171,8 +2164,7 @@ var serializeAws_restJson1GroupIds = function (input, context) {
|
|
|
2171
2164
|
});
|
|
2172
2165
|
};
|
|
2173
2166
|
var serializeAws_restJson1Heterogeneous = function (input, context) {
|
|
2174
|
-
return __assign({}, (input.targetDatabaseEngine
|
|
2175
|
-
input.targetDatabaseEngine !== null && {
|
|
2167
|
+
return __assign({}, (input.targetDatabaseEngine != null && {
|
|
2176
2168
|
targetDatabaseEngine: serializeAws_restJson1HeterogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
|
|
2177
2169
|
}));
|
|
2178
2170
|
};
|
|
@@ -2187,8 +2179,7 @@ var serializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (input,
|
|
|
2187
2179
|
});
|
|
2188
2180
|
};
|
|
2189
2181
|
var serializeAws_restJson1Homogeneous = function (input, context) {
|
|
2190
|
-
return __assign({}, (input.targetDatabaseEngine
|
|
2191
|
-
input.targetDatabaseEngine !== null && {
|
|
2182
|
+
return __assign({}, (input.targetDatabaseEngine != null && {
|
|
2192
2183
|
targetDatabaseEngine: serializeAws_restJson1HomogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
|
|
2193
2184
|
}));
|
|
2194
2185
|
};
|
|
@@ -2215,14 +2206,12 @@ var serializeAws_restJson1ManagementPreference = function (input, context) {
|
|
|
2215
2206
|
});
|
|
2216
2207
|
};
|
|
2217
2208
|
var serializeAws_restJson1NoDatabaseMigrationPreference = function (input, context) {
|
|
2218
|
-
return __assign({}, (input.targetDatabaseEngine
|
|
2219
|
-
input.targetDatabaseEngine !== null && {
|
|
2209
|
+
return __assign({}, (input.targetDatabaseEngine != null && {
|
|
2220
2210
|
targetDatabaseEngine: serializeAws_restJson1TargetDatabaseEngines(input.targetDatabaseEngine, context),
|
|
2221
2211
|
}));
|
|
2222
2212
|
};
|
|
2223
2213
|
var serializeAws_restJson1NoManagementPreference = function (input, context) {
|
|
2224
|
-
return __assign({}, (input.targetDestination
|
|
2225
|
-
input.targetDestination !== null && {
|
|
2214
|
+
return __assign({}, (input.targetDestination != null && {
|
|
2226
2215
|
targetDestination: serializeAws_restJson1NoPreferenceTargetDestinations(input.targetDestination, context),
|
|
2227
2216
|
}));
|
|
2228
2217
|
};
|
|
@@ -2237,14 +2226,12 @@ var serializeAws_restJson1NoPreferenceTargetDestinations = function (input, cont
|
|
|
2237
2226
|
});
|
|
2238
2227
|
};
|
|
2239
2228
|
var serializeAws_restJson1PrioritizeBusinessGoals = function (input, context) {
|
|
2240
|
-
return __assign({}, (input.businessGoals
|
|
2241
|
-
input.businessGoals !== null && {
|
|
2229
|
+
return __assign({}, (input.businessGoals != null && {
|
|
2242
2230
|
businessGoals: serializeAws_restJson1BusinessGoals(input.businessGoals, context),
|
|
2243
2231
|
}));
|
|
2244
2232
|
};
|
|
2245
2233
|
var serializeAws_restJson1SelfManageResources = function (input, context) {
|
|
2246
|
-
return __assign({}, (input.targetDestination
|
|
2247
|
-
input.targetDestination !== null && {
|
|
2234
|
+
return __assign({}, (input.targetDestination != null && {
|
|
2248
2235
|
targetDestination: serializeAws_restJson1SelfManageTargetDestinations(input.targetDestination, context),
|
|
2249
2236
|
}));
|
|
2250
2237
|
};
|
|
@@ -2259,8 +2246,7 @@ var serializeAws_restJson1SelfManageTargetDestinations = function (input, contex
|
|
|
2259
2246
|
});
|
|
2260
2247
|
};
|
|
2261
2248
|
var serializeAws_restJson1SourceCode = function (input, context) {
|
|
2262
|
-
return __assign(__assign(__assign({}, (input.location
|
|
2263
|
-
input.versionControl !== null && { versionControl: input.versionControl }));
|
|
2249
|
+
return __assign(__assign(__assign({}, (input.location != null && { location: input.location })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion })), (input.versionControl != null && { versionControl: input.versionControl }));
|
|
2264
2250
|
};
|
|
2265
2251
|
var serializeAws_restJson1SourceCodeList = function (input, context) {
|
|
2266
2252
|
return input
|
|
@@ -2273,8 +2259,7 @@ var serializeAws_restJson1SourceCodeList = function (input, context) {
|
|
|
2273
2259
|
});
|
|
2274
2260
|
};
|
|
2275
2261
|
var serializeAws_restJson1StrategyOption = function (input, context) {
|
|
2276
|
-
return __assign(__assign(__assign(__assign({}, (input.isPreferred
|
|
2277
|
-
input.targetDestination !== null && { targetDestination: input.targetDestination })), (input.toolName !== undefined && input.toolName !== null && { toolName: input.toolName }));
|
|
2262
|
+
return __assign(__assign(__assign(__assign({}, (input.isPreferred != null && { isPreferred: input.isPreferred })), (input.strategy != null && { strategy: input.strategy })), (input.targetDestination != null && { targetDestination: input.targetDestination })), (input.toolName != null && { toolName: input.toolName }));
|
|
2278
2263
|
};
|
|
2279
2264
|
var serializeAws_restJson1TargetDatabaseEngines = function (input, context) {
|
|
2280
2265
|
return input
|
|
@@ -2295,33 +2280,33 @@ var deserializeAws_restJson1AntipatternSeveritySummary = function (output, conte
|
|
|
2295
2280
|
var deserializeAws_restJson1ApplicationComponentDetail = function (output, context) {
|
|
2296
2281
|
return {
|
|
2297
2282
|
analysisStatus: __expectString(output.analysisStatus),
|
|
2298
|
-
antipatternReportS3Object: output.antipatternReportS3Object
|
|
2283
|
+
antipatternReportS3Object: output.antipatternReportS3Object != null
|
|
2299
2284
|
? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
|
|
2300
2285
|
: undefined,
|
|
2301
2286
|
antipatternReportStatus: __expectString(output.antipatternReportStatus),
|
|
2302
2287
|
antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
|
|
2303
2288
|
appType: __expectString(output.appType),
|
|
2304
2289
|
associatedServerId: __expectString(output.associatedServerId),
|
|
2305
|
-
databaseConfigDetail: output.databaseConfigDetail
|
|
2290
|
+
databaseConfigDetail: output.databaseConfigDetail != null
|
|
2306
2291
|
? deserializeAws_restJson1DatabaseConfigDetail(output.databaseConfigDetail, context)
|
|
2307
2292
|
: undefined,
|
|
2308
2293
|
id: __expectString(output.id),
|
|
2309
2294
|
inclusionStatus: __expectString(output.inclusionStatus),
|
|
2310
|
-
lastAnalyzedTimestamp: output.lastAnalyzedTimestamp
|
|
2295
|
+
lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
|
|
2311
2296
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAnalyzedTimestamp)))
|
|
2312
2297
|
: undefined,
|
|
2313
|
-
listAntipatternSeveritySummary: output.listAntipatternSeveritySummary
|
|
2298
|
+
listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
|
|
2314
2299
|
? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
|
|
2315
2300
|
: undefined,
|
|
2316
2301
|
moreServerAssociationExists: __expectBoolean(output.moreServerAssociationExists),
|
|
2317
2302
|
name: __expectString(output.name),
|
|
2318
2303
|
osDriver: __expectString(output.osDriver),
|
|
2319
2304
|
osVersion: __expectString(output.osVersion),
|
|
2320
|
-
recommendationSet: output.recommendationSet
|
|
2305
|
+
recommendationSet: output.recommendationSet != null
|
|
2321
2306
|
? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
|
|
2322
2307
|
: undefined,
|
|
2323
2308
|
resourceSubType: __expectString(output.resourceSubType),
|
|
2324
|
-
sourceCodeRepositories: output.sourceCodeRepositories
|
|
2309
|
+
sourceCodeRepositories: output.sourceCodeRepositories != null
|
|
2325
2310
|
? deserializeAws_restJson1SourceCodeRepositories(output.sourceCodeRepositories, context)
|
|
2326
2311
|
: undefined,
|
|
2327
2312
|
statusMessage: __expectString(output.statusMessage),
|
|
@@ -2352,7 +2337,7 @@ var deserializeAws_restJson1ApplicationComponentStrategies = function (output, c
|
|
|
2352
2337
|
var deserializeAws_restJson1ApplicationComponentStrategy = function (output, context) {
|
|
2353
2338
|
return {
|
|
2354
2339
|
isPreferred: __expectBoolean(output.isPreferred),
|
|
2355
|
-
recommendation: output.recommendation
|
|
2340
|
+
recommendation: output.recommendation != null
|
|
2356
2341
|
? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
|
|
2357
2342
|
: undefined,
|
|
2358
2343
|
status: __expectString(output.status),
|
|
@@ -2366,35 +2351,34 @@ var deserializeAws_restJson1ApplicationComponentSummary = function (output, cont
|
|
|
2366
2351
|
};
|
|
2367
2352
|
var deserializeAws_restJson1ApplicationPreferences = function (output, context) {
|
|
2368
2353
|
return {
|
|
2369
|
-
managementPreference: output.managementPreference
|
|
2354
|
+
managementPreference: output.managementPreference != null
|
|
2370
2355
|
? deserializeAws_restJson1ManagementPreference(__expectUnion(output.managementPreference), context)
|
|
2371
2356
|
: undefined,
|
|
2372
2357
|
};
|
|
2373
2358
|
};
|
|
2374
2359
|
var deserializeAws_restJson1AssessmentSummary = function (output, context) {
|
|
2375
2360
|
return {
|
|
2376
|
-
antipatternReportS3Object: output.antipatternReportS3Object
|
|
2361
|
+
antipatternReportS3Object: output.antipatternReportS3Object != null
|
|
2377
2362
|
? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
|
|
2378
2363
|
: undefined,
|
|
2379
2364
|
antipatternReportStatus: __expectString(output.antipatternReportStatus),
|
|
2380
2365
|
antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
|
|
2381
|
-
lastAnalyzedTimestamp: output.lastAnalyzedTimestamp
|
|
2366
|
+
lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
|
|
2382
2367
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAnalyzedTimestamp)))
|
|
2383
2368
|
: undefined,
|
|
2384
|
-
listAntipatternSeveritySummary: output.listAntipatternSeveritySummary
|
|
2369
|
+
listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
|
|
2385
2370
|
? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
|
|
2386
2371
|
: undefined,
|
|
2387
|
-
listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary
|
|
2388
|
-
output.listApplicationComponentStrategySummary !== null
|
|
2372
|
+
listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
|
|
2389
2373
|
? deserializeAws_restJson1ListStrategySummary(output.listApplicationComponentStrategySummary, context)
|
|
2390
2374
|
: undefined,
|
|
2391
|
-
listApplicationComponentSummary: output.listApplicationComponentSummary
|
|
2375
|
+
listApplicationComponentSummary: output.listApplicationComponentSummary != null
|
|
2392
2376
|
? deserializeAws_restJson1ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
|
|
2393
2377
|
: undefined,
|
|
2394
|
-
listServerStrategySummary: output.listServerStrategySummary
|
|
2378
|
+
listServerStrategySummary: output.listServerStrategySummary != null
|
|
2395
2379
|
? deserializeAws_restJson1ListStrategySummary(output.listServerStrategySummary, context)
|
|
2396
2380
|
: undefined,
|
|
2397
|
-
listServerSummary: output.listServerSummary
|
|
2381
|
+
listServerSummary: output.listServerSummary != null
|
|
2398
2382
|
? deserializeAws_restJson1ListServerSummary(output.listServerSummary, context)
|
|
2399
2383
|
: undefined,
|
|
2400
2384
|
};
|
|
@@ -2429,7 +2413,7 @@ var deserializeAws_restJson1AssociatedServerIDs = function (output, context) {
|
|
|
2429
2413
|
};
|
|
2430
2414
|
var deserializeAws_restJson1AwsManagedResources = function (output, context) {
|
|
2431
2415
|
return {
|
|
2432
|
-
targetDestination: output.targetDestination
|
|
2416
|
+
targetDestination: output.targetDestination != null
|
|
2433
2417
|
? deserializeAws_restJson1AwsManagedTargetDestinations(output.targetDestination, context)
|
|
2434
2418
|
: undefined,
|
|
2435
2419
|
};
|
|
@@ -2501,29 +2485,27 @@ var deserializeAws_restJson1DatabaseMigrationPreference = function (output, cont
|
|
|
2501
2485
|
var deserializeAws_restJson1DatabasePreferences = function (output, context) {
|
|
2502
2486
|
return {
|
|
2503
2487
|
databaseManagementPreference: __expectString(output.databaseManagementPreference),
|
|
2504
|
-
databaseMigrationPreference: output.databaseMigrationPreference
|
|
2488
|
+
databaseMigrationPreference: output.databaseMigrationPreference != null
|
|
2505
2489
|
? deserializeAws_restJson1DatabaseMigrationPreference(__expectUnion(output.databaseMigrationPreference), context)
|
|
2506
2490
|
: undefined,
|
|
2507
2491
|
};
|
|
2508
2492
|
};
|
|
2509
2493
|
var deserializeAws_restJson1DataCollectionDetails = function (output, context) {
|
|
2510
2494
|
return {
|
|
2511
|
-
completionTime: output.completionTime
|
|
2495
|
+
completionTime: output.completionTime != null
|
|
2512
2496
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
|
|
2513
2497
|
: undefined,
|
|
2514
2498
|
failed: __expectInt32(output.failed),
|
|
2515
2499
|
inProgress: __expectInt32(output.inProgress),
|
|
2516
2500
|
servers: __expectInt32(output.servers),
|
|
2517
|
-
startTime: output.startTime
|
|
2518
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
2519
|
-
: undefined,
|
|
2501
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
2520
2502
|
status: __expectString(output.status),
|
|
2521
2503
|
success: __expectInt32(output.success),
|
|
2522
2504
|
};
|
|
2523
2505
|
};
|
|
2524
2506
|
var deserializeAws_restJson1Heterogeneous = function (output, context) {
|
|
2525
2507
|
return {
|
|
2526
|
-
targetDatabaseEngine: output.targetDatabaseEngine
|
|
2508
|
+
targetDatabaseEngine: output.targetDatabaseEngine != null
|
|
2527
2509
|
? deserializeAws_restJson1HeterogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
|
|
2528
2510
|
: undefined,
|
|
2529
2511
|
};
|
|
@@ -2541,7 +2523,7 @@ var deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (outpu
|
|
|
2541
2523
|
};
|
|
2542
2524
|
var deserializeAws_restJson1Homogeneous = function (output, context) {
|
|
2543
2525
|
return {
|
|
2544
|
-
targetDatabaseEngine: output.targetDatabaseEngine
|
|
2526
|
+
targetDatabaseEngine: output.targetDatabaseEngine != null
|
|
2545
2527
|
? deserializeAws_restJson1HomogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
|
|
2546
2528
|
: undefined,
|
|
2547
2529
|
};
|
|
@@ -2559,7 +2541,7 @@ var deserializeAws_restJson1HomogeneousTargetDatabaseEngines = function (output,
|
|
|
2559
2541
|
};
|
|
2560
2542
|
var deserializeAws_restJson1ImportFileTaskInformation = function (output, context) {
|
|
2561
2543
|
return {
|
|
2562
|
-
completionTime: output.completionTime
|
|
2544
|
+
completionTime: output.completionTime != null
|
|
2563
2545
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
|
|
2564
2546
|
: undefined,
|
|
2565
2547
|
id: __expectString(output.id),
|
|
@@ -2568,9 +2550,7 @@ var deserializeAws_restJson1ImportFileTaskInformation = function (output, contex
|
|
|
2568
2550
|
inputS3Key: __expectString(output.inputS3Key),
|
|
2569
2551
|
numberOfRecordsFailed: __expectInt32(output.numberOfRecordsFailed),
|
|
2570
2552
|
numberOfRecordsSuccess: __expectInt32(output.numberOfRecordsSuccess),
|
|
2571
|
-
startTime: output.startTime
|
|
2572
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
2573
|
-
: undefined,
|
|
2553
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
2574
2554
|
status: __expectString(output.status),
|
|
2575
2555
|
statusReportS3Bucket: __expectString(output.statusReportS3Bucket),
|
|
2576
2556
|
statusReportS3Key: __expectString(output.statusReportS3Key),
|
|
@@ -2670,14 +2650,14 @@ var deserializeAws_restJson1NetworkInfoList = function (output, context) {
|
|
|
2670
2650
|
};
|
|
2671
2651
|
var deserializeAws_restJson1NoDatabaseMigrationPreference = function (output, context) {
|
|
2672
2652
|
return {
|
|
2673
|
-
targetDatabaseEngine: output.targetDatabaseEngine
|
|
2653
|
+
targetDatabaseEngine: output.targetDatabaseEngine != null
|
|
2674
2654
|
? deserializeAws_restJson1TargetDatabaseEngines(output.targetDatabaseEngine, context)
|
|
2675
2655
|
: undefined,
|
|
2676
2656
|
};
|
|
2677
2657
|
};
|
|
2678
2658
|
var deserializeAws_restJson1NoManagementPreference = function (output, context) {
|
|
2679
2659
|
return {
|
|
2680
|
-
targetDestination: output.targetDestination
|
|
2660
|
+
targetDestination: output.targetDestination != null
|
|
2681
2661
|
? deserializeAws_restJson1NoPreferenceTargetDestinations(output.targetDestination, context)
|
|
2682
2662
|
: undefined,
|
|
2683
2663
|
};
|
|
@@ -2701,23 +2681,17 @@ var deserializeAws_restJson1OSInfo = function (output, context) {
|
|
|
2701
2681
|
};
|
|
2702
2682
|
var deserializeAws_restJson1PrioritizeBusinessGoals = function (output, context) {
|
|
2703
2683
|
return {
|
|
2704
|
-
businessGoals: output.businessGoals
|
|
2705
|
-
? deserializeAws_restJson1BusinessGoals(output.businessGoals, context)
|
|
2706
|
-
: undefined,
|
|
2684
|
+
businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
|
|
2707
2685
|
};
|
|
2708
2686
|
};
|
|
2709
2687
|
var deserializeAws_restJson1RecommendationReportDetails = function (output, context) {
|
|
2710
2688
|
return {
|
|
2711
|
-
completionTime: output.completionTime
|
|
2689
|
+
completionTime: output.completionTime != null
|
|
2712
2690
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
|
|
2713
2691
|
: undefined,
|
|
2714
2692
|
s3Bucket: __expectString(output.s3Bucket),
|
|
2715
|
-
s3Keys: output.s3Keys
|
|
2716
|
-
|
|
2717
|
-
: undefined,
|
|
2718
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
2719
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
2720
|
-
: undefined,
|
|
2693
|
+
s3Keys: output.s3Keys != null ? deserializeAws_restJson1S3Keys(output.s3Keys, context) : undefined,
|
|
2694
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
2721
2695
|
status: __expectString(output.status),
|
|
2722
2696
|
statusMessage: __expectString(output.statusMessage),
|
|
2723
2697
|
};
|
|
@@ -2726,7 +2700,7 @@ var deserializeAws_restJson1RecommendationSet = function (output, context) {
|
|
|
2726
2700
|
return {
|
|
2727
2701
|
strategy: __expectString(output.strategy),
|
|
2728
2702
|
targetDestination: __expectString(output.targetDestination),
|
|
2729
|
-
transformationTool: output.transformationTool
|
|
2703
|
+
transformationTool: output.transformationTool != null
|
|
2730
2704
|
? deserializeAws_restJson1TransformationTool(output.transformationTool, context)
|
|
2731
2705
|
: undefined,
|
|
2732
2706
|
};
|
|
@@ -2750,7 +2724,7 @@ var deserializeAws_restJson1S3Object = function (output, context) {
|
|
|
2750
2724
|
};
|
|
2751
2725
|
var deserializeAws_restJson1SelfManageResources = function (output, context) {
|
|
2752
2726
|
return {
|
|
2753
|
-
targetDestination: output.targetDestination
|
|
2727
|
+
targetDestination: output.targetDestination != null
|
|
2754
2728
|
? deserializeAws_restJson1SelfManageTargetDestinations(output.targetDestination, context)
|
|
2755
2729
|
: undefined,
|
|
2756
2730
|
};
|
|
@@ -2768,31 +2742,29 @@ var deserializeAws_restJson1SelfManageTargetDestinations = function (output, con
|
|
|
2768
2742
|
};
|
|
2769
2743
|
var deserializeAws_restJson1ServerDetail = function (output, context) {
|
|
2770
2744
|
return {
|
|
2771
|
-
antipatternReportS3Object: output.antipatternReportS3Object
|
|
2745
|
+
antipatternReportS3Object: output.antipatternReportS3Object != null
|
|
2772
2746
|
? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
|
|
2773
2747
|
: undefined,
|
|
2774
2748
|
antipatternReportStatus: __expectString(output.antipatternReportStatus),
|
|
2775
2749
|
antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
|
|
2776
|
-
applicationComponentStrategySummary: output.applicationComponentStrategySummary
|
|
2750
|
+
applicationComponentStrategySummary: output.applicationComponentStrategySummary != null
|
|
2777
2751
|
? deserializeAws_restJson1ListStrategySummary(output.applicationComponentStrategySummary, context)
|
|
2778
2752
|
: undefined,
|
|
2779
2753
|
dataCollectionStatus: __expectString(output.dataCollectionStatus),
|
|
2780
2754
|
id: __expectString(output.id),
|
|
2781
|
-
lastAnalyzedTimestamp: output.lastAnalyzedTimestamp
|
|
2755
|
+
lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
|
|
2782
2756
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAnalyzedTimestamp)))
|
|
2783
2757
|
: undefined,
|
|
2784
|
-
listAntipatternSeveritySummary: output.listAntipatternSeveritySummary
|
|
2758
|
+
listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
|
|
2785
2759
|
? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
|
|
2786
2760
|
: undefined,
|
|
2787
2761
|
name: __expectString(output.name),
|
|
2788
|
-
recommendationSet: output.recommendationSet
|
|
2762
|
+
recommendationSet: output.recommendationSet != null
|
|
2789
2763
|
? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
|
|
2790
2764
|
: undefined,
|
|
2791
2765
|
serverType: __expectString(output.serverType),
|
|
2792
2766
|
statusMessage: __expectString(output.statusMessage),
|
|
2793
|
-
systemInfo: output.systemInfo
|
|
2794
|
-
? deserializeAws_restJson1SystemInfo(output.systemInfo, context)
|
|
2795
|
-
: undefined,
|
|
2767
|
+
systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
|
|
2796
2768
|
};
|
|
2797
2769
|
};
|
|
2798
2770
|
var deserializeAws_restJson1ServerDetails = function (output, context) {
|
|
@@ -2821,7 +2793,7 @@ var deserializeAws_restJson1ServerStrategy = function (output, context) {
|
|
|
2821
2793
|
return {
|
|
2822
2794
|
isPreferred: __expectBoolean(output.isPreferred),
|
|
2823
2795
|
numberOfApplicationComponents: __expectInt32(output.numberOfApplicationComponents),
|
|
2824
|
-
recommendation: output.recommendation
|
|
2796
|
+
recommendation: output.recommendation != null
|
|
2825
2797
|
? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
|
|
2826
2798
|
: undefined,
|
|
2827
2799
|
status: __expectString(output.status),
|
|
@@ -2861,12 +2833,10 @@ var deserializeAws_restJson1SystemInfo = function (output, context) {
|
|
|
2861
2833
|
return {
|
|
2862
2834
|
cpuArchitecture: __expectString(output.cpuArchitecture),
|
|
2863
2835
|
fileSystemType: __expectString(output.fileSystemType),
|
|
2864
|
-
networkInfoList: output.networkInfoList
|
|
2836
|
+
networkInfoList: output.networkInfoList != null
|
|
2865
2837
|
? deserializeAws_restJson1NetworkInfoList(output.networkInfoList, context)
|
|
2866
2838
|
: undefined,
|
|
2867
|
-
osInfo: output.osInfo
|
|
2868
|
-
? deserializeAws_restJson1OSInfo(output.osInfo, context)
|
|
2869
|
-
: undefined,
|
|
2839
|
+
osInfo: output.osInfo != null ? deserializeAws_restJson1OSInfo(output.osInfo, context) : undefined,
|
|
2870
2840
|
};
|
|
2871
2841
|
};
|
|
2872
2842
|
var deserializeAws_restJson1TargetDatabaseEngines = function (output, context) {
|
|
@@ -2943,5 +2913,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2943
2913
|
if (data["__type"] !== undefined) {
|
|
2944
2914
|
return sanitizeErrorCode(data["__type"]);
|
|
2945
2915
|
}
|
|
2946
|
-
return "";
|
|
2947
2916
|
};
|