@aws-sdk/client-mgn 3.141.0 → 3.150.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 +492 -829
- package/dist-es/protocols/Aws_restJson1.js +595 -828
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { MgnServiceException as __BaseException } from "../models/MgnServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -351,7 +351,10 @@ export var serializeAws_restJson1DescribeVcenterClientsCommand = function (input
|
|
|
351
351
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
352
352
|
headers = {};
|
|
353
353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeVcenterClients";
|
|
354
|
-
query =
|
|
354
|
+
query = map({
|
|
355
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
356
|
+
nextToken: [, input.nextToken],
|
|
357
|
+
});
|
|
355
358
|
return [2, new __HttpRequest({
|
|
356
359
|
protocol: protocol,
|
|
357
360
|
hostname: hostname,
|
|
@@ -486,7 +489,7 @@ export var serializeAws_restJson1InitializeServiceCommand = function (input, con
|
|
|
486
489
|
});
|
|
487
490
|
}); };
|
|
488
491
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
489
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
492
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
490
493
|
return __generator(this, function (_c) {
|
|
491
494
|
switch (_c.label) {
|
|
492
495
|
case 0: return [4, context.endpoint()];
|
|
@@ -494,16 +497,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
494
497
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
495
498
|
headers = {};
|
|
496
499
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
497
|
-
|
|
498
|
-
labelValue = input.resourceArn;
|
|
499
|
-
if (labelValue.length <= 0) {
|
|
500
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
501
|
-
}
|
|
502
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
506
|
-
}
|
|
500
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
507
501
|
return [2, new __HttpRequest({
|
|
508
502
|
protocol: protocol,
|
|
509
503
|
hostname: hostname,
|
|
@@ -641,7 +635,7 @@ export var serializeAws_restJson1StartTestCommand = function (input, context) {
|
|
|
641
635
|
});
|
|
642
636
|
}); };
|
|
643
637
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
644
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
638
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
645
639
|
return __generator(this, function (_c) {
|
|
646
640
|
switch (_c.label) {
|
|
647
641
|
case 0: return [4, context.endpoint()];
|
|
@@ -651,16 +645,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
651
645
|
"content-type": "application/json",
|
|
652
646
|
};
|
|
653
647
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
654
|
-
|
|
655
|
-
labelValue = input.resourceArn;
|
|
656
|
-
if (labelValue.length <= 0) {
|
|
657
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
658
|
-
}
|
|
659
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
660
|
-
}
|
|
661
|
-
else {
|
|
662
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
663
|
-
}
|
|
648
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
664
649
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
665
650
|
return [2, new __HttpRequest({
|
|
666
651
|
protocol: protocol,
|
|
@@ -701,7 +686,7 @@ export var serializeAws_restJson1TerminateTargetInstancesCommand = function (inp
|
|
|
701
686
|
});
|
|
702
687
|
}); };
|
|
703
688
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
689
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
705
690
|
return __generator(this, function (_c) {
|
|
706
691
|
switch (_c.label) {
|
|
707
692
|
case 0: return [4, context.endpoint()];
|
|
@@ -709,17 +694,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
709
694
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
710
695
|
headers = {};
|
|
711
696
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
717
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
718
|
-
}
|
|
719
|
-
else {
|
|
720
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
721
|
-
}
|
|
722
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
697
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
698
|
+
query = map({
|
|
699
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
700
|
+
});
|
|
723
701
|
return [2, new __HttpRequest({
|
|
724
702
|
protocol: protocol,
|
|
725
703
|
hostname: hostname,
|
|
@@ -897,60 +875,50 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
|
|
|
897
875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
898
876
|
return [2, deserializeAws_restJson1ChangeServerLifeCycleStateCommandError(output, context)];
|
|
899
877
|
}
|
|
900
|
-
contents = {
|
|
878
|
+
contents = map({
|
|
901
879
|
$metadata: deserializeMetadata(output),
|
|
902
|
-
|
|
903
|
-
dataReplicationInfo: undefined,
|
|
904
|
-
isArchived: undefined,
|
|
905
|
-
launchedInstance: undefined,
|
|
906
|
-
lifeCycle: undefined,
|
|
907
|
-
replicationType: undefined,
|
|
908
|
-
sourceProperties: undefined,
|
|
909
|
-
sourceServerID: undefined,
|
|
910
|
-
tags: undefined,
|
|
911
|
-
vcenterClientID: undefined,
|
|
912
|
-
};
|
|
880
|
+
});
|
|
913
881
|
_a = __expectNonNull;
|
|
914
882
|
_b = __expectObject;
|
|
915
883
|
return [4, parseBody(output.body, context)];
|
|
916
884
|
case 1:
|
|
917
885
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
918
|
-
if (data.arn
|
|
886
|
+
if (data.arn != null) {
|
|
919
887
|
contents.arn = __expectString(data.arn);
|
|
920
888
|
}
|
|
921
|
-
if (data.dataReplicationInfo
|
|
889
|
+
if (data.dataReplicationInfo != null) {
|
|
922
890
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
923
891
|
}
|
|
924
|
-
if (data.isArchived
|
|
892
|
+
if (data.isArchived != null) {
|
|
925
893
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
926
894
|
}
|
|
927
|
-
if (data.launchedInstance
|
|
895
|
+
if (data.launchedInstance != null) {
|
|
928
896
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
929
897
|
}
|
|
930
|
-
if (data.lifeCycle
|
|
898
|
+
if (data.lifeCycle != null) {
|
|
931
899
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
932
900
|
}
|
|
933
|
-
if (data.replicationType
|
|
901
|
+
if (data.replicationType != null) {
|
|
934
902
|
contents.replicationType = __expectString(data.replicationType);
|
|
935
903
|
}
|
|
936
|
-
if (data.sourceProperties
|
|
904
|
+
if (data.sourceProperties != null) {
|
|
937
905
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
938
906
|
}
|
|
939
|
-
if (data.sourceServerID
|
|
907
|
+
if (data.sourceServerID != null) {
|
|
940
908
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
941
909
|
}
|
|
942
|
-
if (data.tags
|
|
910
|
+
if (data.tags != null) {
|
|
943
911
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
944
912
|
}
|
|
945
|
-
if (data.vcenterClientID
|
|
913
|
+
if (data.vcenterClientID != null) {
|
|
946
914
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
947
915
|
}
|
|
948
|
-
return [2,
|
|
916
|
+
return [2, contents];
|
|
949
917
|
}
|
|
950
918
|
});
|
|
951
919
|
}); };
|
|
952
920
|
var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
953
|
-
var parsedOutput, _a,
|
|
921
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
954
922
|
var _c;
|
|
955
923
|
return __generator(this, function (_d) {
|
|
956
924
|
switch (_d.label) {
|
|
@@ -983,14 +951,14 @@ var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (o
|
|
|
983
951
|
case 9: throw _d.sent();
|
|
984
952
|
case 10:
|
|
985
953
|
parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
$metadata: $metadata,
|
|
954
|
+
throwDefaultError({
|
|
955
|
+
output: output,
|
|
956
|
+
parsedBody: parsedBody,
|
|
957
|
+
exceptionCtor: __BaseException,
|
|
958
|
+
errorCode: errorCode,
|
|
992
959
|
});
|
|
993
|
-
|
|
960
|
+
_d.label = 11;
|
|
961
|
+
case 11: return [2];
|
|
994
962
|
}
|
|
995
963
|
});
|
|
996
964
|
}); };
|
|
@@ -1002,36 +970,32 @@ export var deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = fu
|
|
|
1002
970
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1003
971
|
return [2, deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError(output, context)];
|
|
1004
972
|
}
|
|
1005
|
-
contents = {
|
|
973
|
+
contents = map({
|
|
1006
974
|
$metadata: deserializeMetadata(output),
|
|
1007
|
-
|
|
1008
|
-
launchConfigurationTemplateID: undefined,
|
|
1009
|
-
postLaunchActions: undefined,
|
|
1010
|
-
tags: undefined,
|
|
1011
|
-
};
|
|
975
|
+
});
|
|
1012
976
|
_a = __expectNonNull;
|
|
1013
977
|
_b = __expectObject;
|
|
1014
978
|
return [4, parseBody(output.body, context)];
|
|
1015
979
|
case 1:
|
|
1016
980
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1017
|
-
if (data.arn
|
|
981
|
+
if (data.arn != null) {
|
|
1018
982
|
contents.arn = __expectString(data.arn);
|
|
1019
983
|
}
|
|
1020
|
-
if (data.launchConfigurationTemplateID
|
|
984
|
+
if (data.launchConfigurationTemplateID != null) {
|
|
1021
985
|
contents.launchConfigurationTemplateID = __expectString(data.launchConfigurationTemplateID);
|
|
1022
986
|
}
|
|
1023
|
-
if (data.postLaunchActions
|
|
987
|
+
if (data.postLaunchActions != null) {
|
|
1024
988
|
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
1025
989
|
}
|
|
1026
|
-
if (data.tags
|
|
990
|
+
if (data.tags != null) {
|
|
1027
991
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1028
992
|
}
|
|
1029
|
-
return [2,
|
|
993
|
+
return [2, contents];
|
|
1030
994
|
}
|
|
1031
995
|
});
|
|
1032
996
|
}); };
|
|
1033
997
|
var deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1034
|
-
var parsedOutput, _a,
|
|
998
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1035
999
|
var _c;
|
|
1036
1000
|
return __generator(this, function (_d) {
|
|
1037
1001
|
switch (_d.label) {
|
|
@@ -1060,14 +1024,14 @@ var deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = func
|
|
|
1060
1024
|
case 7: throw _d.sent();
|
|
1061
1025
|
case 8:
|
|
1062
1026
|
parsedBody = parsedOutput.body;
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
$metadata: $metadata,
|
|
1027
|
+
throwDefaultError({
|
|
1028
|
+
output: output,
|
|
1029
|
+
parsedBody: parsedBody,
|
|
1030
|
+
exceptionCtor: __BaseException,
|
|
1031
|
+
errorCode: errorCode,
|
|
1069
1032
|
});
|
|
1070
|
-
|
|
1033
|
+
_d.label = 9;
|
|
1034
|
+
case 9: return [2];
|
|
1071
1035
|
}
|
|
1072
1036
|
});
|
|
1073
1037
|
}); };
|
|
@@ -1079,80 +1043,65 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
|
|
|
1079
1043
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1080
1044
|
return [2, deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError(output, context)];
|
|
1081
1045
|
}
|
|
1082
|
-
contents = {
|
|
1046
|
+
contents = map({
|
|
1083
1047
|
$metadata: deserializeMetadata(output),
|
|
1084
|
-
|
|
1085
|
-
associateDefaultSecurityGroup: undefined,
|
|
1086
|
-
bandwidthThrottling: undefined,
|
|
1087
|
-
createPublicIP: undefined,
|
|
1088
|
-
dataPlaneRouting: undefined,
|
|
1089
|
-
defaultLargeStagingDiskType: undefined,
|
|
1090
|
-
ebsEncryption: undefined,
|
|
1091
|
-
ebsEncryptionKeyArn: undefined,
|
|
1092
|
-
replicationConfigurationTemplateID: undefined,
|
|
1093
|
-
replicationServerInstanceType: undefined,
|
|
1094
|
-
replicationServersSecurityGroupsIDs: undefined,
|
|
1095
|
-
stagingAreaSubnetId: undefined,
|
|
1096
|
-
stagingAreaTags: undefined,
|
|
1097
|
-
tags: undefined,
|
|
1098
|
-
useDedicatedReplicationServer: undefined,
|
|
1099
|
-
};
|
|
1048
|
+
});
|
|
1100
1049
|
_a = __expectNonNull;
|
|
1101
1050
|
_b = __expectObject;
|
|
1102
1051
|
return [4, parseBody(output.body, context)];
|
|
1103
1052
|
case 1:
|
|
1104
1053
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1105
|
-
if (data.arn
|
|
1054
|
+
if (data.arn != null) {
|
|
1106
1055
|
contents.arn = __expectString(data.arn);
|
|
1107
1056
|
}
|
|
1108
|
-
if (data.associateDefaultSecurityGroup
|
|
1057
|
+
if (data.associateDefaultSecurityGroup != null) {
|
|
1109
1058
|
contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
|
|
1110
1059
|
}
|
|
1111
|
-
if (data.bandwidthThrottling
|
|
1060
|
+
if (data.bandwidthThrottling != null) {
|
|
1112
1061
|
contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
|
|
1113
1062
|
}
|
|
1114
|
-
if (data.createPublicIP
|
|
1063
|
+
if (data.createPublicIP != null) {
|
|
1115
1064
|
contents.createPublicIP = __expectBoolean(data.createPublicIP);
|
|
1116
1065
|
}
|
|
1117
|
-
if (data.dataPlaneRouting
|
|
1066
|
+
if (data.dataPlaneRouting != null) {
|
|
1118
1067
|
contents.dataPlaneRouting = __expectString(data.dataPlaneRouting);
|
|
1119
1068
|
}
|
|
1120
|
-
if (data.defaultLargeStagingDiskType
|
|
1069
|
+
if (data.defaultLargeStagingDiskType != null) {
|
|
1121
1070
|
contents.defaultLargeStagingDiskType = __expectString(data.defaultLargeStagingDiskType);
|
|
1122
1071
|
}
|
|
1123
|
-
if (data.ebsEncryption
|
|
1072
|
+
if (data.ebsEncryption != null) {
|
|
1124
1073
|
contents.ebsEncryption = __expectString(data.ebsEncryption);
|
|
1125
1074
|
}
|
|
1126
|
-
if (data.ebsEncryptionKeyArn
|
|
1075
|
+
if (data.ebsEncryptionKeyArn != null) {
|
|
1127
1076
|
contents.ebsEncryptionKeyArn = __expectString(data.ebsEncryptionKeyArn);
|
|
1128
1077
|
}
|
|
1129
|
-
if (data.replicationConfigurationTemplateID
|
|
1078
|
+
if (data.replicationConfigurationTemplateID != null) {
|
|
1130
1079
|
contents.replicationConfigurationTemplateID = __expectString(data.replicationConfigurationTemplateID);
|
|
1131
1080
|
}
|
|
1132
|
-
if (data.replicationServerInstanceType
|
|
1081
|
+
if (data.replicationServerInstanceType != null) {
|
|
1133
1082
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
1134
1083
|
}
|
|
1135
|
-
if (data.replicationServersSecurityGroupsIDs
|
|
1084
|
+
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
1136
1085
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
1137
1086
|
}
|
|
1138
|
-
if (data.stagingAreaSubnetId
|
|
1087
|
+
if (data.stagingAreaSubnetId != null) {
|
|
1139
1088
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
1140
1089
|
}
|
|
1141
|
-
if (data.stagingAreaTags
|
|
1090
|
+
if (data.stagingAreaTags != null) {
|
|
1142
1091
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
1143
1092
|
}
|
|
1144
|
-
if (data.tags
|
|
1093
|
+
if (data.tags != null) {
|
|
1145
1094
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1146
1095
|
}
|
|
1147
|
-
if (data.useDedicatedReplicationServer
|
|
1096
|
+
if (data.useDedicatedReplicationServer != null) {
|
|
1148
1097
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
1149
1098
|
}
|
|
1150
|
-
return [2,
|
|
1099
|
+
return [2, contents];
|
|
1151
1100
|
}
|
|
1152
1101
|
});
|
|
1153
1102
|
}); };
|
|
1154
1103
|
var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1155
|
-
var parsedOutput, _a,
|
|
1104
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1156
1105
|
var _c;
|
|
1157
1106
|
return __generator(this, function (_d) {
|
|
1158
1107
|
switch (_d.label) {
|
|
@@ -1181,14 +1130,14 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
|
|
|
1181
1130
|
case 7: throw _d.sent();
|
|
1182
1131
|
case 8:
|
|
1183
1132
|
parsedBody = parsedOutput.body;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
$metadata: $metadata,
|
|
1133
|
+
throwDefaultError({
|
|
1134
|
+
output: output,
|
|
1135
|
+
parsedBody: parsedBody,
|
|
1136
|
+
exceptionCtor: __BaseException,
|
|
1137
|
+
errorCode: errorCode,
|
|
1190
1138
|
});
|
|
1191
|
-
|
|
1139
|
+
_d.label = 9;
|
|
1140
|
+
case 9: return [2];
|
|
1192
1141
|
}
|
|
1193
1142
|
});
|
|
1194
1143
|
}); };
|
|
@@ -1200,18 +1149,18 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
1200
1149
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1201
1150
|
return [2, deserializeAws_restJson1DeleteJobCommandError(output, context)];
|
|
1202
1151
|
}
|
|
1203
|
-
contents = {
|
|
1152
|
+
contents = map({
|
|
1204
1153
|
$metadata: deserializeMetadata(output),
|
|
1205
|
-
};
|
|
1154
|
+
});
|
|
1206
1155
|
return [4, collectBody(output.body, context)];
|
|
1207
1156
|
case 1:
|
|
1208
1157
|
_a.sent();
|
|
1209
|
-
return [2,
|
|
1158
|
+
return [2, contents];
|
|
1210
1159
|
}
|
|
1211
1160
|
});
|
|
1212
1161
|
}); };
|
|
1213
1162
|
var deserializeAws_restJson1DeleteJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1214
|
-
var parsedOutput, _a,
|
|
1163
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1215
1164
|
var _c;
|
|
1216
1165
|
return __generator(this, function (_d) {
|
|
1217
1166
|
switch (_d.label) {
|
|
@@ -1240,14 +1189,14 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1240
1189
|
case 7: throw _d.sent();
|
|
1241
1190
|
case 8:
|
|
1242
1191
|
parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
$metadata: $metadata,
|
|
1192
|
+
throwDefaultError({
|
|
1193
|
+
output: output,
|
|
1194
|
+
parsedBody: parsedBody,
|
|
1195
|
+
exceptionCtor: __BaseException,
|
|
1196
|
+
errorCode: errorCode,
|
|
1249
1197
|
});
|
|
1250
|
-
|
|
1198
|
+
_d.label = 9;
|
|
1199
|
+
case 9: return [2];
|
|
1251
1200
|
}
|
|
1252
1201
|
});
|
|
1253
1202
|
}); };
|
|
@@ -1259,18 +1208,18 @@ export var deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = fu
|
|
|
1259
1208
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1260
1209
|
return [2, deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError(output, context)];
|
|
1261
1210
|
}
|
|
1262
|
-
contents = {
|
|
1211
|
+
contents = map({
|
|
1263
1212
|
$metadata: deserializeMetadata(output),
|
|
1264
|
-
};
|
|
1213
|
+
});
|
|
1265
1214
|
return [4, collectBody(output.body, context)];
|
|
1266
1215
|
case 1:
|
|
1267
1216
|
_a.sent();
|
|
1268
|
-
return [2,
|
|
1217
|
+
return [2, contents];
|
|
1269
1218
|
}
|
|
1270
1219
|
});
|
|
1271
1220
|
}); };
|
|
1272
1221
|
var deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1273
|
-
var parsedOutput, _a,
|
|
1222
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1274
1223
|
var _c;
|
|
1275
1224
|
return __generator(this, function (_d) {
|
|
1276
1225
|
switch (_d.label) {
|
|
@@ -1299,14 +1248,14 @@ var deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = func
|
|
|
1299
1248
|
case 7: throw _d.sent();
|
|
1300
1249
|
case 8:
|
|
1301
1250
|
parsedBody = parsedOutput.body;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
$metadata: $metadata,
|
|
1251
|
+
throwDefaultError({
|
|
1252
|
+
output: output,
|
|
1253
|
+
parsedBody: parsedBody,
|
|
1254
|
+
exceptionCtor: __BaseException,
|
|
1255
|
+
errorCode: errorCode,
|
|
1308
1256
|
});
|
|
1309
|
-
|
|
1257
|
+
_d.label = 9;
|
|
1258
|
+
case 9: return [2];
|
|
1310
1259
|
}
|
|
1311
1260
|
});
|
|
1312
1261
|
}); };
|
|
@@ -1318,18 +1267,18 @@ export var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand
|
|
|
1318
1267
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1319
1268
|
return [2, deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError(output, context)];
|
|
1320
1269
|
}
|
|
1321
|
-
contents = {
|
|
1270
|
+
contents = map({
|
|
1322
1271
|
$metadata: deserializeMetadata(output),
|
|
1323
|
-
};
|
|
1272
|
+
});
|
|
1324
1273
|
return [4, collectBody(output.body, context)];
|
|
1325
1274
|
case 1:
|
|
1326
1275
|
_a.sent();
|
|
1327
|
-
return [2,
|
|
1276
|
+
return [2, contents];
|
|
1328
1277
|
}
|
|
1329
1278
|
});
|
|
1330
1279
|
}); };
|
|
1331
1280
|
var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1332
|
-
var parsedOutput, _a,
|
|
1281
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1333
1282
|
var _c;
|
|
1334
1283
|
return __generator(this, function (_d) {
|
|
1335
1284
|
switch (_d.label) {
|
|
@@ -1358,14 +1307,14 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
|
|
|
1358
1307
|
case 7: throw _d.sent();
|
|
1359
1308
|
case 8:
|
|
1360
1309
|
parsedBody = parsedOutput.body;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
$metadata: $metadata,
|
|
1310
|
+
throwDefaultError({
|
|
1311
|
+
output: output,
|
|
1312
|
+
parsedBody: parsedBody,
|
|
1313
|
+
exceptionCtor: __BaseException,
|
|
1314
|
+
errorCode: errorCode,
|
|
1367
1315
|
});
|
|
1368
|
-
|
|
1316
|
+
_d.label = 9;
|
|
1317
|
+
case 9: return [2];
|
|
1369
1318
|
}
|
|
1370
1319
|
});
|
|
1371
1320
|
}); };
|
|
@@ -1377,18 +1326,18 @@ export var deserializeAws_restJson1DeleteSourceServerCommand = function (output,
|
|
|
1377
1326
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1378
1327
|
return [2, deserializeAws_restJson1DeleteSourceServerCommandError(output, context)];
|
|
1379
1328
|
}
|
|
1380
|
-
contents = {
|
|
1329
|
+
contents = map({
|
|
1381
1330
|
$metadata: deserializeMetadata(output),
|
|
1382
|
-
};
|
|
1331
|
+
});
|
|
1383
1332
|
return [4, collectBody(output.body, context)];
|
|
1384
1333
|
case 1:
|
|
1385
1334
|
_a.sent();
|
|
1386
|
-
return [2,
|
|
1335
|
+
return [2, contents];
|
|
1387
1336
|
}
|
|
1388
1337
|
});
|
|
1389
1338
|
}); };
|
|
1390
1339
|
var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1391
|
-
var parsedOutput, _a,
|
|
1340
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1392
1341
|
var _c;
|
|
1393
1342
|
return __generator(this, function (_d) {
|
|
1394
1343
|
switch (_d.label) {
|
|
@@ -1417,14 +1366,14 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
|
|
|
1417
1366
|
case 7: throw _d.sent();
|
|
1418
1367
|
case 8:
|
|
1419
1368
|
parsedBody = parsedOutput.body;
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
$metadata: $metadata,
|
|
1369
|
+
throwDefaultError({
|
|
1370
|
+
output: output,
|
|
1371
|
+
parsedBody: parsedBody,
|
|
1372
|
+
exceptionCtor: __BaseException,
|
|
1373
|
+
errorCode: errorCode,
|
|
1426
1374
|
});
|
|
1427
|
-
|
|
1375
|
+
_d.label = 9;
|
|
1376
|
+
case 9: return [2];
|
|
1428
1377
|
}
|
|
1429
1378
|
});
|
|
1430
1379
|
}); };
|
|
@@ -1436,18 +1385,18 @@ export var deserializeAws_restJson1DeleteVcenterClientCommand = function (output
|
|
|
1436
1385
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1437
1386
|
return [2, deserializeAws_restJson1DeleteVcenterClientCommandError(output, context)];
|
|
1438
1387
|
}
|
|
1439
|
-
contents = {
|
|
1388
|
+
contents = map({
|
|
1440
1389
|
$metadata: deserializeMetadata(output),
|
|
1441
|
-
};
|
|
1390
|
+
});
|
|
1442
1391
|
return [4, collectBody(output.body, context)];
|
|
1443
1392
|
case 1:
|
|
1444
1393
|
_a.sent();
|
|
1445
|
-
return [2,
|
|
1394
|
+
return [2, contents];
|
|
1446
1395
|
}
|
|
1447
1396
|
});
|
|
1448
1397
|
}); };
|
|
1449
1398
|
var deserializeAws_restJson1DeleteVcenterClientCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1450
|
-
var parsedOutput, _a,
|
|
1399
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1451
1400
|
var _c;
|
|
1452
1401
|
return __generator(this, function (_d) {
|
|
1453
1402
|
switch (_d.label) {
|
|
@@ -1476,14 +1425,14 @@ var deserializeAws_restJson1DeleteVcenterClientCommandError = function (output,
|
|
|
1476
1425
|
case 7: throw _d.sent();
|
|
1477
1426
|
case 8:
|
|
1478
1427
|
parsedBody = parsedOutput.body;
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
$metadata: $metadata,
|
|
1428
|
+
throwDefaultError({
|
|
1429
|
+
output: output,
|
|
1430
|
+
parsedBody: parsedBody,
|
|
1431
|
+
exceptionCtor: __BaseException,
|
|
1432
|
+
errorCode: errorCode,
|
|
1485
1433
|
});
|
|
1486
|
-
|
|
1434
|
+
_d.label = 9;
|
|
1435
|
+
case 9: return [2];
|
|
1487
1436
|
}
|
|
1488
1437
|
});
|
|
1489
1438
|
}); };
|
|
@@ -1495,28 +1444,26 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
|
|
|
1495
1444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
1445
|
return [2, deserializeAws_restJson1DescribeJobLogItemsCommandError(output, context)];
|
|
1497
1446
|
}
|
|
1498
|
-
contents = {
|
|
1447
|
+
contents = map({
|
|
1499
1448
|
$metadata: deserializeMetadata(output),
|
|
1500
|
-
|
|
1501
|
-
nextToken: undefined,
|
|
1502
|
-
};
|
|
1449
|
+
});
|
|
1503
1450
|
_a = __expectNonNull;
|
|
1504
1451
|
_b = __expectObject;
|
|
1505
1452
|
return [4, parseBody(output.body, context)];
|
|
1506
1453
|
case 1:
|
|
1507
1454
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1508
|
-
if (data.items
|
|
1455
|
+
if (data.items != null) {
|
|
1509
1456
|
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
1510
1457
|
}
|
|
1511
|
-
if (data.nextToken
|
|
1458
|
+
if (data.nextToken != null) {
|
|
1512
1459
|
contents.nextToken = __expectString(data.nextToken);
|
|
1513
1460
|
}
|
|
1514
|
-
return [2,
|
|
1461
|
+
return [2, contents];
|
|
1515
1462
|
}
|
|
1516
1463
|
});
|
|
1517
1464
|
}); };
|
|
1518
1465
|
var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1519
|
-
var parsedOutput, _a,
|
|
1466
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1520
1467
|
var _c;
|
|
1521
1468
|
return __generator(this, function (_d) {
|
|
1522
1469
|
switch (_d.label) {
|
|
@@ -1541,14 +1488,14 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
|
|
|
1541
1488
|
case 5: throw _d.sent();
|
|
1542
1489
|
case 6:
|
|
1543
1490
|
parsedBody = parsedOutput.body;
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
$metadata: $metadata,
|
|
1491
|
+
throwDefaultError({
|
|
1492
|
+
output: output,
|
|
1493
|
+
parsedBody: parsedBody,
|
|
1494
|
+
exceptionCtor: __BaseException,
|
|
1495
|
+
errorCode: errorCode,
|
|
1550
1496
|
});
|
|
1551
|
-
|
|
1497
|
+
_d.label = 7;
|
|
1498
|
+
case 7: return [2];
|
|
1552
1499
|
}
|
|
1553
1500
|
});
|
|
1554
1501
|
}); };
|
|
@@ -1560,28 +1507,26 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1560
1507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
1508
|
return [2, deserializeAws_restJson1DescribeJobsCommandError(output, context)];
|
|
1562
1509
|
}
|
|
1563
|
-
contents = {
|
|
1510
|
+
contents = map({
|
|
1564
1511
|
$metadata: deserializeMetadata(output),
|
|
1565
|
-
|
|
1566
|
-
nextToken: undefined,
|
|
1567
|
-
};
|
|
1512
|
+
});
|
|
1568
1513
|
_a = __expectNonNull;
|
|
1569
1514
|
_b = __expectObject;
|
|
1570
1515
|
return [4, parseBody(output.body, context)];
|
|
1571
1516
|
case 1:
|
|
1572
1517
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1573
|
-
if (data.items
|
|
1518
|
+
if (data.items != null) {
|
|
1574
1519
|
contents.items = deserializeAws_restJson1JobsList(data.items, context);
|
|
1575
1520
|
}
|
|
1576
|
-
if (data.nextToken
|
|
1521
|
+
if (data.nextToken != null) {
|
|
1577
1522
|
contents.nextToken = __expectString(data.nextToken);
|
|
1578
1523
|
}
|
|
1579
|
-
return [2,
|
|
1524
|
+
return [2, contents];
|
|
1580
1525
|
}
|
|
1581
1526
|
});
|
|
1582
1527
|
}); };
|
|
1583
1528
|
var deserializeAws_restJson1DescribeJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1584
|
-
var parsedOutput, _a,
|
|
1529
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1585
1530
|
var _c;
|
|
1586
1531
|
return __generator(this, function (_d) {
|
|
1587
1532
|
switch (_d.label) {
|
|
@@ -1606,14 +1551,14 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1606
1551
|
case 5: throw _d.sent();
|
|
1607
1552
|
case 6:
|
|
1608
1553
|
parsedBody = parsedOutput.body;
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
$metadata: $metadata,
|
|
1554
|
+
throwDefaultError({
|
|
1555
|
+
output: output,
|
|
1556
|
+
parsedBody: parsedBody,
|
|
1557
|
+
exceptionCtor: __BaseException,
|
|
1558
|
+
errorCode: errorCode,
|
|
1615
1559
|
});
|
|
1616
|
-
|
|
1560
|
+
_d.label = 7;
|
|
1561
|
+
case 7: return [2];
|
|
1617
1562
|
}
|
|
1618
1563
|
});
|
|
1619
1564
|
}); };
|
|
@@ -1625,28 +1570,26 @@ export var deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand =
|
|
|
1625
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
1571
|
return [2, deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError(output, context)];
|
|
1627
1572
|
}
|
|
1628
|
-
contents = {
|
|
1573
|
+
contents = map({
|
|
1629
1574
|
$metadata: deserializeMetadata(output),
|
|
1630
|
-
|
|
1631
|
-
nextToken: undefined,
|
|
1632
|
-
};
|
|
1575
|
+
});
|
|
1633
1576
|
_a = __expectNonNull;
|
|
1634
1577
|
_b = __expectObject;
|
|
1635
1578
|
return [4, parseBody(output.body, context)];
|
|
1636
1579
|
case 1:
|
|
1637
1580
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1638
|
-
if (data.items
|
|
1581
|
+
if (data.items != null) {
|
|
1639
1582
|
contents.items = deserializeAws_restJson1LaunchConfigurationTemplates(data.items, context);
|
|
1640
1583
|
}
|
|
1641
|
-
if (data.nextToken
|
|
1584
|
+
if (data.nextToken != null) {
|
|
1642
1585
|
contents.nextToken = __expectString(data.nextToken);
|
|
1643
1586
|
}
|
|
1644
|
-
return [2,
|
|
1587
|
+
return [2, contents];
|
|
1645
1588
|
}
|
|
1646
1589
|
});
|
|
1647
1590
|
}); };
|
|
1648
1591
|
var deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
|
-
var parsedOutput, _a,
|
|
1592
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1650
1593
|
var _c;
|
|
1651
1594
|
return __generator(this, function (_d) {
|
|
1652
1595
|
switch (_d.label) {
|
|
@@ -1675,14 +1618,14 @@ var deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError = f
|
|
|
1675
1618
|
case 7: throw _d.sent();
|
|
1676
1619
|
case 8:
|
|
1677
1620
|
parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
$metadata: $metadata,
|
|
1621
|
+
throwDefaultError({
|
|
1622
|
+
output: output,
|
|
1623
|
+
parsedBody: parsedBody,
|
|
1624
|
+
exceptionCtor: __BaseException,
|
|
1625
|
+
errorCode: errorCode,
|
|
1684
1626
|
});
|
|
1685
|
-
|
|
1627
|
+
_d.label = 9;
|
|
1628
|
+
case 9: return [2];
|
|
1686
1629
|
}
|
|
1687
1630
|
});
|
|
1688
1631
|
}); };
|
|
@@ -1694,28 +1637,26 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
|
|
|
1694
1637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1695
1638
|
return [2, deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError(output, context)];
|
|
1696
1639
|
}
|
|
1697
|
-
contents = {
|
|
1640
|
+
contents = map({
|
|
1698
1641
|
$metadata: deserializeMetadata(output),
|
|
1699
|
-
|
|
1700
|
-
nextToken: undefined,
|
|
1701
|
-
};
|
|
1642
|
+
});
|
|
1702
1643
|
_a = __expectNonNull;
|
|
1703
1644
|
_b = __expectObject;
|
|
1704
1645
|
return [4, parseBody(output.body, context)];
|
|
1705
1646
|
case 1:
|
|
1706
1647
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1707
|
-
if (data.items
|
|
1648
|
+
if (data.items != null) {
|
|
1708
1649
|
contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
|
|
1709
1650
|
}
|
|
1710
|
-
if (data.nextToken
|
|
1651
|
+
if (data.nextToken != null) {
|
|
1711
1652
|
contents.nextToken = __expectString(data.nextToken);
|
|
1712
1653
|
}
|
|
1713
|
-
return [2,
|
|
1654
|
+
return [2, contents];
|
|
1714
1655
|
}
|
|
1715
1656
|
});
|
|
1716
1657
|
}); };
|
|
1717
1658
|
var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1718
|
-
var parsedOutput, _a,
|
|
1659
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1719
1660
|
var _c;
|
|
1720
1661
|
return __generator(this, function (_d) {
|
|
1721
1662
|
switch (_d.label) {
|
|
@@ -1744,14 +1685,14 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
|
|
|
1744
1685
|
case 7: throw _d.sent();
|
|
1745
1686
|
case 8:
|
|
1746
1687
|
parsedBody = parsedOutput.body;
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
$metadata: $metadata,
|
|
1688
|
+
throwDefaultError({
|
|
1689
|
+
output: output,
|
|
1690
|
+
parsedBody: parsedBody,
|
|
1691
|
+
exceptionCtor: __BaseException,
|
|
1692
|
+
errorCode: errorCode,
|
|
1753
1693
|
});
|
|
1754
|
-
|
|
1694
|
+
_d.label = 9;
|
|
1695
|
+
case 9: return [2];
|
|
1755
1696
|
}
|
|
1756
1697
|
});
|
|
1757
1698
|
}); };
|
|
@@ -1763,28 +1704,26 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
|
|
|
1763
1704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1764
1705
|
return [2, deserializeAws_restJson1DescribeSourceServersCommandError(output, context)];
|
|
1765
1706
|
}
|
|
1766
|
-
contents = {
|
|
1707
|
+
contents = map({
|
|
1767
1708
|
$metadata: deserializeMetadata(output),
|
|
1768
|
-
|
|
1769
|
-
nextToken: undefined,
|
|
1770
|
-
};
|
|
1709
|
+
});
|
|
1771
1710
|
_a = __expectNonNull;
|
|
1772
1711
|
_b = __expectObject;
|
|
1773
1712
|
return [4, parseBody(output.body, context)];
|
|
1774
1713
|
case 1:
|
|
1775
1714
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1776
|
-
if (data.items
|
|
1715
|
+
if (data.items != null) {
|
|
1777
1716
|
contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
|
|
1778
1717
|
}
|
|
1779
|
-
if (data.nextToken
|
|
1718
|
+
if (data.nextToken != null) {
|
|
1780
1719
|
contents.nextToken = __expectString(data.nextToken);
|
|
1781
1720
|
}
|
|
1782
|
-
return [2,
|
|
1721
|
+
return [2, contents];
|
|
1783
1722
|
}
|
|
1784
1723
|
});
|
|
1785
1724
|
}); };
|
|
1786
1725
|
var deserializeAws_restJson1DescribeSourceServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1787
|
-
var parsedOutput, _a,
|
|
1726
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1788
1727
|
var _c;
|
|
1789
1728
|
return __generator(this, function (_d) {
|
|
1790
1729
|
switch (_d.label) {
|
|
@@ -1809,14 +1748,14 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
|
|
|
1809
1748
|
case 5: throw _d.sent();
|
|
1810
1749
|
case 6:
|
|
1811
1750
|
parsedBody = parsedOutput.body;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
$metadata: $metadata,
|
|
1751
|
+
throwDefaultError({
|
|
1752
|
+
output: output,
|
|
1753
|
+
parsedBody: parsedBody,
|
|
1754
|
+
exceptionCtor: __BaseException,
|
|
1755
|
+
errorCode: errorCode,
|
|
1818
1756
|
});
|
|
1819
|
-
|
|
1757
|
+
_d.label = 7;
|
|
1758
|
+
case 7: return [2];
|
|
1820
1759
|
}
|
|
1821
1760
|
});
|
|
1822
1761
|
}); };
|
|
@@ -1828,28 +1767,26 @@ export var deserializeAws_restJson1DescribeVcenterClientsCommand = function (out
|
|
|
1828
1767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1829
1768
|
return [2, deserializeAws_restJson1DescribeVcenterClientsCommandError(output, context)];
|
|
1830
1769
|
}
|
|
1831
|
-
contents = {
|
|
1770
|
+
contents = map({
|
|
1832
1771
|
$metadata: deserializeMetadata(output),
|
|
1833
|
-
|
|
1834
|
-
nextToken: undefined,
|
|
1835
|
-
};
|
|
1772
|
+
});
|
|
1836
1773
|
_a = __expectNonNull;
|
|
1837
1774
|
_b = __expectObject;
|
|
1838
1775
|
return [4, parseBody(output.body, context)];
|
|
1839
1776
|
case 1:
|
|
1840
1777
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1841
|
-
if (data.items
|
|
1778
|
+
if (data.items != null) {
|
|
1842
1779
|
contents.items = deserializeAws_restJson1VcenterClientList(data.items, context);
|
|
1843
1780
|
}
|
|
1844
|
-
if (data.nextToken
|
|
1781
|
+
if (data.nextToken != null) {
|
|
1845
1782
|
contents.nextToken = __expectString(data.nextToken);
|
|
1846
1783
|
}
|
|
1847
|
-
return [2,
|
|
1784
|
+
return [2, contents];
|
|
1848
1785
|
}
|
|
1849
1786
|
});
|
|
1850
1787
|
}); };
|
|
1851
1788
|
var deserializeAws_restJson1DescribeVcenterClientsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1852
|
-
var parsedOutput, _a,
|
|
1789
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1853
1790
|
var _c;
|
|
1854
1791
|
return __generator(this, function (_d) {
|
|
1855
1792
|
switch (_d.label) {
|
|
@@ -1878,14 +1815,14 @@ var deserializeAws_restJson1DescribeVcenterClientsCommandError = function (outpu
|
|
|
1878
1815
|
case 7: throw _d.sent();
|
|
1879
1816
|
case 8:
|
|
1880
1817
|
parsedBody = parsedOutput.body;
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
$metadata: $metadata,
|
|
1818
|
+
throwDefaultError({
|
|
1819
|
+
output: output,
|
|
1820
|
+
parsedBody: parsedBody,
|
|
1821
|
+
exceptionCtor: __BaseException,
|
|
1822
|
+
errorCode: errorCode,
|
|
1887
1823
|
});
|
|
1888
|
-
|
|
1824
|
+
_d.label = 9;
|
|
1825
|
+
case 9: return [2];
|
|
1889
1826
|
}
|
|
1890
1827
|
});
|
|
1891
1828
|
}); };
|
|
@@ -1897,60 +1834,50 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
|
|
|
1897
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1898
1835
|
return [2, deserializeAws_restJson1DisconnectFromServiceCommandError(output, context)];
|
|
1899
1836
|
}
|
|
1900
|
-
contents = {
|
|
1837
|
+
contents = map({
|
|
1901
1838
|
$metadata: deserializeMetadata(output),
|
|
1902
|
-
|
|
1903
|
-
dataReplicationInfo: undefined,
|
|
1904
|
-
isArchived: undefined,
|
|
1905
|
-
launchedInstance: undefined,
|
|
1906
|
-
lifeCycle: undefined,
|
|
1907
|
-
replicationType: undefined,
|
|
1908
|
-
sourceProperties: undefined,
|
|
1909
|
-
sourceServerID: undefined,
|
|
1910
|
-
tags: undefined,
|
|
1911
|
-
vcenterClientID: undefined,
|
|
1912
|
-
};
|
|
1839
|
+
});
|
|
1913
1840
|
_a = __expectNonNull;
|
|
1914
1841
|
_b = __expectObject;
|
|
1915
1842
|
return [4, parseBody(output.body, context)];
|
|
1916
1843
|
case 1:
|
|
1917
1844
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1918
|
-
if (data.arn
|
|
1845
|
+
if (data.arn != null) {
|
|
1919
1846
|
contents.arn = __expectString(data.arn);
|
|
1920
1847
|
}
|
|
1921
|
-
if (data.dataReplicationInfo
|
|
1848
|
+
if (data.dataReplicationInfo != null) {
|
|
1922
1849
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1923
1850
|
}
|
|
1924
|
-
if (data.isArchived
|
|
1851
|
+
if (data.isArchived != null) {
|
|
1925
1852
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
1926
1853
|
}
|
|
1927
|
-
if (data.launchedInstance
|
|
1854
|
+
if (data.launchedInstance != null) {
|
|
1928
1855
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
1929
1856
|
}
|
|
1930
|
-
if (data.lifeCycle
|
|
1857
|
+
if (data.lifeCycle != null) {
|
|
1931
1858
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1932
1859
|
}
|
|
1933
|
-
if (data.replicationType
|
|
1860
|
+
if (data.replicationType != null) {
|
|
1934
1861
|
contents.replicationType = __expectString(data.replicationType);
|
|
1935
1862
|
}
|
|
1936
|
-
if (data.sourceProperties
|
|
1863
|
+
if (data.sourceProperties != null) {
|
|
1937
1864
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1938
1865
|
}
|
|
1939
|
-
if (data.sourceServerID
|
|
1866
|
+
if (data.sourceServerID != null) {
|
|
1940
1867
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
1941
1868
|
}
|
|
1942
|
-
if (data.tags
|
|
1869
|
+
if (data.tags != null) {
|
|
1943
1870
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1944
1871
|
}
|
|
1945
|
-
if (data.vcenterClientID
|
|
1872
|
+
if (data.vcenterClientID != null) {
|
|
1946
1873
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
1947
1874
|
}
|
|
1948
|
-
return [2,
|
|
1875
|
+
return [2, contents];
|
|
1949
1876
|
}
|
|
1950
1877
|
});
|
|
1951
1878
|
}); };
|
|
1952
1879
|
var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1953
|
-
var parsedOutput, _a,
|
|
1880
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1954
1881
|
var _c;
|
|
1955
1882
|
return __generator(this, function (_d) {
|
|
1956
1883
|
switch (_d.label) {
|
|
@@ -1979,14 +1906,14 @@ var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output
|
|
|
1979
1906
|
case 7: throw _d.sent();
|
|
1980
1907
|
case 8:
|
|
1981
1908
|
parsedBody = parsedOutput.body;
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
$metadata: $metadata,
|
|
1909
|
+
throwDefaultError({
|
|
1910
|
+
output: output,
|
|
1911
|
+
parsedBody: parsedBody,
|
|
1912
|
+
exceptionCtor: __BaseException,
|
|
1913
|
+
errorCode: errorCode,
|
|
1988
1914
|
});
|
|
1989
|
-
|
|
1915
|
+
_d.label = 9;
|
|
1916
|
+
case 9: return [2];
|
|
1990
1917
|
}
|
|
1991
1918
|
});
|
|
1992
1919
|
}); };
|
|
@@ -1998,60 +1925,50 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
|
|
|
1998
1925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1999
1926
|
return [2, deserializeAws_restJson1FinalizeCutoverCommandError(output, context)];
|
|
2000
1927
|
}
|
|
2001
|
-
contents = {
|
|
1928
|
+
contents = map({
|
|
2002
1929
|
$metadata: deserializeMetadata(output),
|
|
2003
|
-
|
|
2004
|
-
dataReplicationInfo: undefined,
|
|
2005
|
-
isArchived: undefined,
|
|
2006
|
-
launchedInstance: undefined,
|
|
2007
|
-
lifeCycle: undefined,
|
|
2008
|
-
replicationType: undefined,
|
|
2009
|
-
sourceProperties: undefined,
|
|
2010
|
-
sourceServerID: undefined,
|
|
2011
|
-
tags: undefined,
|
|
2012
|
-
vcenterClientID: undefined,
|
|
2013
|
-
};
|
|
1930
|
+
});
|
|
2014
1931
|
_a = __expectNonNull;
|
|
2015
1932
|
_b = __expectObject;
|
|
2016
1933
|
return [4, parseBody(output.body, context)];
|
|
2017
1934
|
case 1:
|
|
2018
1935
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2019
|
-
if (data.arn
|
|
1936
|
+
if (data.arn != null) {
|
|
2020
1937
|
contents.arn = __expectString(data.arn);
|
|
2021
1938
|
}
|
|
2022
|
-
if (data.dataReplicationInfo
|
|
1939
|
+
if (data.dataReplicationInfo != null) {
|
|
2023
1940
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2024
1941
|
}
|
|
2025
|
-
if (data.isArchived
|
|
1942
|
+
if (data.isArchived != null) {
|
|
2026
1943
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
2027
1944
|
}
|
|
2028
|
-
if (data.launchedInstance
|
|
1945
|
+
if (data.launchedInstance != null) {
|
|
2029
1946
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
2030
1947
|
}
|
|
2031
|
-
if (data.lifeCycle
|
|
1948
|
+
if (data.lifeCycle != null) {
|
|
2032
1949
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2033
1950
|
}
|
|
2034
|
-
if (data.replicationType
|
|
1951
|
+
if (data.replicationType != null) {
|
|
2035
1952
|
contents.replicationType = __expectString(data.replicationType);
|
|
2036
1953
|
}
|
|
2037
|
-
if (data.sourceProperties
|
|
1954
|
+
if (data.sourceProperties != null) {
|
|
2038
1955
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2039
1956
|
}
|
|
2040
|
-
if (data.sourceServerID
|
|
1957
|
+
if (data.sourceServerID != null) {
|
|
2041
1958
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2042
1959
|
}
|
|
2043
|
-
if (data.tags
|
|
1960
|
+
if (data.tags != null) {
|
|
2044
1961
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2045
1962
|
}
|
|
2046
|
-
if (data.vcenterClientID
|
|
1963
|
+
if (data.vcenterClientID != null) {
|
|
2047
1964
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
2048
1965
|
}
|
|
2049
|
-
return [2,
|
|
1966
|
+
return [2, contents];
|
|
2050
1967
|
}
|
|
2051
1968
|
});
|
|
2052
1969
|
}); };
|
|
2053
1970
|
var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2054
|
-
var parsedOutput, _a,
|
|
1971
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2055
1972
|
var _c;
|
|
2056
1973
|
return __generator(this, function (_d) {
|
|
2057
1974
|
switch (_d.label) {
|
|
@@ -2084,14 +2001,14 @@ var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, cont
|
|
|
2084
2001
|
case 9: throw _d.sent();
|
|
2085
2002
|
case 10:
|
|
2086
2003
|
parsedBody = parsedOutput.body;
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
$metadata: $metadata,
|
|
2004
|
+
throwDefaultError({
|
|
2005
|
+
output: output,
|
|
2006
|
+
parsedBody: parsedBody,
|
|
2007
|
+
exceptionCtor: __BaseException,
|
|
2008
|
+
errorCode: errorCode,
|
|
2093
2009
|
});
|
|
2094
|
-
|
|
2010
|
+
_d.label = 11;
|
|
2011
|
+
case 11: return [2];
|
|
2095
2012
|
}
|
|
2096
2013
|
});
|
|
2097
2014
|
}); };
|
|
@@ -2103,60 +2020,50 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
2103
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
2021
|
return [2, deserializeAws_restJson1GetLaunchConfigurationCommandError(output, context)];
|
|
2105
2022
|
}
|
|
2106
|
-
contents = {
|
|
2023
|
+
contents = map({
|
|
2107
2024
|
$metadata: deserializeMetadata(output),
|
|
2108
|
-
|
|
2109
|
-
copyPrivateIp: undefined,
|
|
2110
|
-
copyTags: undefined,
|
|
2111
|
-
ec2LaunchTemplateID: undefined,
|
|
2112
|
-
launchDisposition: undefined,
|
|
2113
|
-
licensing: undefined,
|
|
2114
|
-
name: undefined,
|
|
2115
|
-
postLaunchActions: undefined,
|
|
2116
|
-
sourceServerID: undefined,
|
|
2117
|
-
targetInstanceTypeRightSizingMethod: undefined,
|
|
2118
|
-
};
|
|
2025
|
+
});
|
|
2119
2026
|
_a = __expectNonNull;
|
|
2120
2027
|
_b = __expectObject;
|
|
2121
2028
|
return [4, parseBody(output.body, context)];
|
|
2122
2029
|
case 1:
|
|
2123
2030
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2124
|
-
if (data.bootMode
|
|
2031
|
+
if (data.bootMode != null) {
|
|
2125
2032
|
contents.bootMode = __expectString(data.bootMode);
|
|
2126
2033
|
}
|
|
2127
|
-
if (data.copyPrivateIp
|
|
2034
|
+
if (data.copyPrivateIp != null) {
|
|
2128
2035
|
contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
|
|
2129
2036
|
}
|
|
2130
|
-
if (data.copyTags
|
|
2037
|
+
if (data.copyTags != null) {
|
|
2131
2038
|
contents.copyTags = __expectBoolean(data.copyTags);
|
|
2132
2039
|
}
|
|
2133
|
-
if (data.ec2LaunchTemplateID
|
|
2040
|
+
if (data.ec2LaunchTemplateID != null) {
|
|
2134
2041
|
contents.ec2LaunchTemplateID = __expectString(data.ec2LaunchTemplateID);
|
|
2135
2042
|
}
|
|
2136
|
-
if (data.launchDisposition
|
|
2043
|
+
if (data.launchDisposition != null) {
|
|
2137
2044
|
contents.launchDisposition = __expectString(data.launchDisposition);
|
|
2138
2045
|
}
|
|
2139
|
-
if (data.licensing
|
|
2046
|
+
if (data.licensing != null) {
|
|
2140
2047
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
2141
2048
|
}
|
|
2142
|
-
if (data.name
|
|
2049
|
+
if (data.name != null) {
|
|
2143
2050
|
contents.name = __expectString(data.name);
|
|
2144
2051
|
}
|
|
2145
|
-
if (data.postLaunchActions
|
|
2052
|
+
if (data.postLaunchActions != null) {
|
|
2146
2053
|
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
2147
2054
|
}
|
|
2148
|
-
if (data.sourceServerID
|
|
2055
|
+
if (data.sourceServerID != null) {
|
|
2149
2056
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2150
2057
|
}
|
|
2151
|
-
if (data.targetInstanceTypeRightSizingMethod
|
|
2058
|
+
if (data.targetInstanceTypeRightSizingMethod != null) {
|
|
2152
2059
|
contents.targetInstanceTypeRightSizingMethod = __expectString(data.targetInstanceTypeRightSizingMethod);
|
|
2153
2060
|
}
|
|
2154
|
-
return [2,
|
|
2061
|
+
return [2, contents];
|
|
2155
2062
|
}
|
|
2156
2063
|
});
|
|
2157
2064
|
}); };
|
|
2158
2065
|
var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2159
|
-
var parsedOutput, _a,
|
|
2066
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2160
2067
|
var _c;
|
|
2161
2068
|
return __generator(this, function (_d) {
|
|
2162
2069
|
switch (_d.label) {
|
|
@@ -2181,14 +2088,14 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
|
|
|
2181
2088
|
case 5: throw _d.sent();
|
|
2182
2089
|
case 6:
|
|
2183
2090
|
parsedBody = parsedOutput.body;
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
$metadata: $metadata,
|
|
2091
|
+
throwDefaultError({
|
|
2092
|
+
output: output,
|
|
2093
|
+
parsedBody: parsedBody,
|
|
2094
|
+
exceptionCtor: __BaseException,
|
|
2095
|
+
errorCode: errorCode,
|
|
2190
2096
|
});
|
|
2191
|
-
|
|
2097
|
+
_d.label = 7;
|
|
2098
|
+
case 7: return [2];
|
|
2192
2099
|
}
|
|
2193
2100
|
});
|
|
2194
2101
|
}); };
|
|
@@ -2200,80 +2107,65 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
|
|
|
2200
2107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2201
2108
|
return [2, deserializeAws_restJson1GetReplicationConfigurationCommandError(output, context)];
|
|
2202
2109
|
}
|
|
2203
|
-
contents = {
|
|
2110
|
+
contents = map({
|
|
2204
2111
|
$metadata: deserializeMetadata(output),
|
|
2205
|
-
|
|
2206
|
-
bandwidthThrottling: undefined,
|
|
2207
|
-
createPublicIP: undefined,
|
|
2208
|
-
dataPlaneRouting: undefined,
|
|
2209
|
-
defaultLargeStagingDiskType: undefined,
|
|
2210
|
-
ebsEncryption: undefined,
|
|
2211
|
-
ebsEncryptionKeyArn: undefined,
|
|
2212
|
-
name: undefined,
|
|
2213
|
-
replicatedDisks: undefined,
|
|
2214
|
-
replicationServerInstanceType: undefined,
|
|
2215
|
-
replicationServersSecurityGroupsIDs: undefined,
|
|
2216
|
-
sourceServerID: undefined,
|
|
2217
|
-
stagingAreaSubnetId: undefined,
|
|
2218
|
-
stagingAreaTags: undefined,
|
|
2219
|
-
useDedicatedReplicationServer: undefined,
|
|
2220
|
-
};
|
|
2112
|
+
});
|
|
2221
2113
|
_a = __expectNonNull;
|
|
2222
2114
|
_b = __expectObject;
|
|
2223
2115
|
return [4, parseBody(output.body, context)];
|
|
2224
2116
|
case 1:
|
|
2225
2117
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2226
|
-
if (data.associateDefaultSecurityGroup
|
|
2118
|
+
if (data.associateDefaultSecurityGroup != null) {
|
|
2227
2119
|
contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
|
|
2228
2120
|
}
|
|
2229
|
-
if (data.bandwidthThrottling
|
|
2121
|
+
if (data.bandwidthThrottling != null) {
|
|
2230
2122
|
contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
|
|
2231
2123
|
}
|
|
2232
|
-
if (data.createPublicIP
|
|
2124
|
+
if (data.createPublicIP != null) {
|
|
2233
2125
|
contents.createPublicIP = __expectBoolean(data.createPublicIP);
|
|
2234
2126
|
}
|
|
2235
|
-
if (data.dataPlaneRouting
|
|
2127
|
+
if (data.dataPlaneRouting != null) {
|
|
2236
2128
|
contents.dataPlaneRouting = __expectString(data.dataPlaneRouting);
|
|
2237
2129
|
}
|
|
2238
|
-
if (data.defaultLargeStagingDiskType
|
|
2130
|
+
if (data.defaultLargeStagingDiskType != null) {
|
|
2239
2131
|
contents.defaultLargeStagingDiskType = __expectString(data.defaultLargeStagingDiskType);
|
|
2240
2132
|
}
|
|
2241
|
-
if (data.ebsEncryption
|
|
2133
|
+
if (data.ebsEncryption != null) {
|
|
2242
2134
|
contents.ebsEncryption = __expectString(data.ebsEncryption);
|
|
2243
2135
|
}
|
|
2244
|
-
if (data.ebsEncryptionKeyArn
|
|
2136
|
+
if (data.ebsEncryptionKeyArn != null) {
|
|
2245
2137
|
contents.ebsEncryptionKeyArn = __expectString(data.ebsEncryptionKeyArn);
|
|
2246
2138
|
}
|
|
2247
|
-
if (data.name
|
|
2139
|
+
if (data.name != null) {
|
|
2248
2140
|
contents.name = __expectString(data.name);
|
|
2249
2141
|
}
|
|
2250
|
-
if (data.replicatedDisks
|
|
2142
|
+
if (data.replicatedDisks != null) {
|
|
2251
2143
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
2252
2144
|
}
|
|
2253
|
-
if (data.replicationServerInstanceType
|
|
2145
|
+
if (data.replicationServerInstanceType != null) {
|
|
2254
2146
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
2255
2147
|
}
|
|
2256
|
-
if (data.replicationServersSecurityGroupsIDs
|
|
2148
|
+
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
2257
2149
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2258
2150
|
}
|
|
2259
|
-
if (data.sourceServerID
|
|
2151
|
+
if (data.sourceServerID != null) {
|
|
2260
2152
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2261
2153
|
}
|
|
2262
|
-
if (data.stagingAreaSubnetId
|
|
2154
|
+
if (data.stagingAreaSubnetId != null) {
|
|
2263
2155
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
2264
2156
|
}
|
|
2265
|
-
if (data.stagingAreaTags
|
|
2157
|
+
if (data.stagingAreaTags != null) {
|
|
2266
2158
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
2267
2159
|
}
|
|
2268
|
-
if (data.useDedicatedReplicationServer
|
|
2160
|
+
if (data.useDedicatedReplicationServer != null) {
|
|
2269
2161
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
2270
2162
|
}
|
|
2271
|
-
return [2,
|
|
2163
|
+
return [2, contents];
|
|
2272
2164
|
}
|
|
2273
2165
|
});
|
|
2274
2166
|
}); };
|
|
2275
2167
|
var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2276
|
-
var parsedOutput, _a,
|
|
2168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2277
2169
|
var _c;
|
|
2278
2170
|
return __generator(this, function (_d) {
|
|
2279
2171
|
switch (_d.label) {
|
|
@@ -2298,14 +2190,14 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
|
|
|
2298
2190
|
case 5: throw _d.sent();
|
|
2299
2191
|
case 6:
|
|
2300
2192
|
parsedBody = parsedOutput.body;
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
$metadata: $metadata,
|
|
2193
|
+
throwDefaultError({
|
|
2194
|
+
output: output,
|
|
2195
|
+
parsedBody: parsedBody,
|
|
2196
|
+
exceptionCtor: __BaseException,
|
|
2197
|
+
errorCode: errorCode,
|
|
2307
2198
|
});
|
|
2308
|
-
|
|
2199
|
+
_d.label = 7;
|
|
2200
|
+
case 7: return [2];
|
|
2309
2201
|
}
|
|
2310
2202
|
});
|
|
2311
2203
|
}); };
|
|
@@ -2317,18 +2209,18 @@ export var deserializeAws_restJson1InitializeServiceCommand = function (output,
|
|
|
2317
2209
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2318
2210
|
return [2, deserializeAws_restJson1InitializeServiceCommandError(output, context)];
|
|
2319
2211
|
}
|
|
2320
|
-
contents = {
|
|
2212
|
+
contents = map({
|
|
2321
2213
|
$metadata: deserializeMetadata(output),
|
|
2322
|
-
};
|
|
2214
|
+
});
|
|
2323
2215
|
return [4, collectBody(output.body, context)];
|
|
2324
2216
|
case 1:
|
|
2325
2217
|
_a.sent();
|
|
2326
|
-
return [2,
|
|
2218
|
+
return [2, contents];
|
|
2327
2219
|
}
|
|
2328
2220
|
});
|
|
2329
2221
|
}); };
|
|
2330
2222
|
var deserializeAws_restJson1InitializeServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2331
|
-
var parsedOutput, _a,
|
|
2223
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2332
2224
|
var _c;
|
|
2333
2225
|
return __generator(this, function (_d) {
|
|
2334
2226
|
switch (_d.label) {
|
|
@@ -2353,14 +2245,14 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
|
|
|
2353
2245
|
case 5: throw _d.sent();
|
|
2354
2246
|
case 6:
|
|
2355
2247
|
parsedBody = parsedOutput.body;
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
$metadata: $metadata,
|
|
2248
|
+
throwDefaultError({
|
|
2249
|
+
output: output,
|
|
2250
|
+
parsedBody: parsedBody,
|
|
2251
|
+
exceptionCtor: __BaseException,
|
|
2252
|
+
errorCode: errorCode,
|
|
2362
2253
|
});
|
|
2363
|
-
|
|
2254
|
+
_d.label = 7;
|
|
2255
|
+
case 7: return [2];
|
|
2364
2256
|
}
|
|
2365
2257
|
});
|
|
2366
2258
|
}); };
|
|
@@ -2372,24 +2264,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2372
2264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2373
2265
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2374
2266
|
}
|
|
2375
|
-
contents = {
|
|
2267
|
+
contents = map({
|
|
2376
2268
|
$metadata: deserializeMetadata(output),
|
|
2377
|
-
|
|
2378
|
-
};
|
|
2269
|
+
});
|
|
2379
2270
|
_a = __expectNonNull;
|
|
2380
2271
|
_b = __expectObject;
|
|
2381
2272
|
return [4, parseBody(output.body, context)];
|
|
2382
2273
|
case 1:
|
|
2383
2274
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2384
|
-
if (data.tags
|
|
2275
|
+
if (data.tags != null) {
|
|
2385
2276
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2386
2277
|
}
|
|
2387
|
-
return [2,
|
|
2278
|
+
return [2, contents];
|
|
2388
2279
|
}
|
|
2389
2280
|
});
|
|
2390
2281
|
}); };
|
|
2391
2282
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2392
|
-
var parsedOutput, _a,
|
|
2283
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2393
2284
|
var _c;
|
|
2394
2285
|
return __generator(this, function (_d) {
|
|
2395
2286
|
switch (_d.label) {
|
|
@@ -2426,14 +2317,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2426
2317
|
case 11: throw _d.sent();
|
|
2427
2318
|
case 12:
|
|
2428
2319
|
parsedBody = parsedOutput.body;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
$metadata: $metadata,
|
|
2320
|
+
throwDefaultError({
|
|
2321
|
+
output: output,
|
|
2322
|
+
parsedBody: parsedBody,
|
|
2323
|
+
exceptionCtor: __BaseException,
|
|
2324
|
+
errorCode: errorCode,
|
|
2435
2325
|
});
|
|
2436
|
-
|
|
2326
|
+
_d.label = 13;
|
|
2327
|
+
case 13: return [2];
|
|
2437
2328
|
}
|
|
2438
2329
|
});
|
|
2439
2330
|
}); };
|
|
@@ -2445,60 +2336,50 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
|
|
|
2445
2336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2446
2337
|
return [2, deserializeAws_restJson1MarkAsArchivedCommandError(output, context)];
|
|
2447
2338
|
}
|
|
2448
|
-
contents = {
|
|
2339
|
+
contents = map({
|
|
2449
2340
|
$metadata: deserializeMetadata(output),
|
|
2450
|
-
|
|
2451
|
-
dataReplicationInfo: undefined,
|
|
2452
|
-
isArchived: undefined,
|
|
2453
|
-
launchedInstance: undefined,
|
|
2454
|
-
lifeCycle: undefined,
|
|
2455
|
-
replicationType: undefined,
|
|
2456
|
-
sourceProperties: undefined,
|
|
2457
|
-
sourceServerID: undefined,
|
|
2458
|
-
tags: undefined,
|
|
2459
|
-
vcenterClientID: undefined,
|
|
2460
|
-
};
|
|
2341
|
+
});
|
|
2461
2342
|
_a = __expectNonNull;
|
|
2462
2343
|
_b = __expectObject;
|
|
2463
2344
|
return [4, parseBody(output.body, context)];
|
|
2464
2345
|
case 1:
|
|
2465
2346
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2466
|
-
if (data.arn
|
|
2347
|
+
if (data.arn != null) {
|
|
2467
2348
|
contents.arn = __expectString(data.arn);
|
|
2468
2349
|
}
|
|
2469
|
-
if (data.dataReplicationInfo
|
|
2350
|
+
if (data.dataReplicationInfo != null) {
|
|
2470
2351
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2471
2352
|
}
|
|
2472
|
-
if (data.isArchived
|
|
2353
|
+
if (data.isArchived != null) {
|
|
2473
2354
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
2474
2355
|
}
|
|
2475
|
-
if (data.launchedInstance
|
|
2356
|
+
if (data.launchedInstance != null) {
|
|
2476
2357
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
2477
2358
|
}
|
|
2478
|
-
if (data.lifeCycle
|
|
2359
|
+
if (data.lifeCycle != null) {
|
|
2479
2360
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2480
2361
|
}
|
|
2481
|
-
if (data.replicationType
|
|
2362
|
+
if (data.replicationType != null) {
|
|
2482
2363
|
contents.replicationType = __expectString(data.replicationType);
|
|
2483
2364
|
}
|
|
2484
|
-
if (data.sourceProperties
|
|
2365
|
+
if (data.sourceProperties != null) {
|
|
2485
2366
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2486
2367
|
}
|
|
2487
|
-
if (data.sourceServerID
|
|
2368
|
+
if (data.sourceServerID != null) {
|
|
2488
2369
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2489
2370
|
}
|
|
2490
|
-
if (data.tags
|
|
2371
|
+
if (data.tags != null) {
|
|
2491
2372
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2492
2373
|
}
|
|
2493
|
-
if (data.vcenterClientID
|
|
2374
|
+
if (data.vcenterClientID != null) {
|
|
2494
2375
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
2495
2376
|
}
|
|
2496
|
-
return [2,
|
|
2377
|
+
return [2, contents];
|
|
2497
2378
|
}
|
|
2498
2379
|
});
|
|
2499
2380
|
}); };
|
|
2500
2381
|
var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2501
|
-
var parsedOutput, _a,
|
|
2382
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2502
2383
|
var _c;
|
|
2503
2384
|
return __generator(this, function (_d) {
|
|
2504
2385
|
switch (_d.label) {
|
|
@@ -2527,14 +2408,14 @@ var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, conte
|
|
|
2527
2408
|
case 7: throw _d.sent();
|
|
2528
2409
|
case 8:
|
|
2529
2410
|
parsedBody = parsedOutput.body;
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
$metadata: $metadata,
|
|
2411
|
+
throwDefaultError({
|
|
2412
|
+
output: output,
|
|
2413
|
+
parsedBody: parsedBody,
|
|
2414
|
+
exceptionCtor: __BaseException,
|
|
2415
|
+
errorCode: errorCode,
|
|
2536
2416
|
});
|
|
2537
|
-
|
|
2417
|
+
_d.label = 9;
|
|
2418
|
+
case 9: return [2];
|
|
2538
2419
|
}
|
|
2539
2420
|
});
|
|
2540
2421
|
}); };
|
|
@@ -2546,60 +2427,50 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
|
|
|
2546
2427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2547
2428
|
return [2, deserializeAws_restJson1RetryDataReplicationCommandError(output, context)];
|
|
2548
2429
|
}
|
|
2549
|
-
contents = {
|
|
2430
|
+
contents = map({
|
|
2550
2431
|
$metadata: deserializeMetadata(output),
|
|
2551
|
-
|
|
2552
|
-
dataReplicationInfo: undefined,
|
|
2553
|
-
isArchived: undefined,
|
|
2554
|
-
launchedInstance: undefined,
|
|
2555
|
-
lifeCycle: undefined,
|
|
2556
|
-
replicationType: undefined,
|
|
2557
|
-
sourceProperties: undefined,
|
|
2558
|
-
sourceServerID: undefined,
|
|
2559
|
-
tags: undefined,
|
|
2560
|
-
vcenterClientID: undefined,
|
|
2561
|
-
};
|
|
2432
|
+
});
|
|
2562
2433
|
_a = __expectNonNull;
|
|
2563
2434
|
_b = __expectObject;
|
|
2564
2435
|
return [4, parseBody(output.body, context)];
|
|
2565
2436
|
case 1:
|
|
2566
2437
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2567
|
-
if (data.arn
|
|
2438
|
+
if (data.arn != null) {
|
|
2568
2439
|
contents.arn = __expectString(data.arn);
|
|
2569
2440
|
}
|
|
2570
|
-
if (data.dataReplicationInfo
|
|
2441
|
+
if (data.dataReplicationInfo != null) {
|
|
2571
2442
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2572
2443
|
}
|
|
2573
|
-
if (data.isArchived
|
|
2444
|
+
if (data.isArchived != null) {
|
|
2574
2445
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
2575
2446
|
}
|
|
2576
|
-
if (data.launchedInstance
|
|
2447
|
+
if (data.launchedInstance != null) {
|
|
2577
2448
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
2578
2449
|
}
|
|
2579
|
-
if (data.lifeCycle
|
|
2450
|
+
if (data.lifeCycle != null) {
|
|
2580
2451
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2581
2452
|
}
|
|
2582
|
-
if (data.replicationType
|
|
2453
|
+
if (data.replicationType != null) {
|
|
2583
2454
|
contents.replicationType = __expectString(data.replicationType);
|
|
2584
2455
|
}
|
|
2585
|
-
if (data.sourceProperties
|
|
2456
|
+
if (data.sourceProperties != null) {
|
|
2586
2457
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2587
2458
|
}
|
|
2588
|
-
if (data.sourceServerID
|
|
2459
|
+
if (data.sourceServerID != null) {
|
|
2589
2460
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2590
2461
|
}
|
|
2591
|
-
if (data.tags
|
|
2462
|
+
if (data.tags != null) {
|
|
2592
2463
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2593
2464
|
}
|
|
2594
|
-
if (data.vcenterClientID
|
|
2465
|
+
if (data.vcenterClientID != null) {
|
|
2595
2466
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
2596
2467
|
}
|
|
2597
|
-
return [2,
|
|
2468
|
+
return [2, contents];
|
|
2598
2469
|
}
|
|
2599
2470
|
});
|
|
2600
2471
|
}); };
|
|
2601
2472
|
var deserializeAws_restJson1RetryDataReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2602
|
-
var parsedOutput, _a,
|
|
2473
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2603
2474
|
var _c;
|
|
2604
2475
|
return __generator(this, function (_d) {
|
|
2605
2476
|
switch (_d.label) {
|
|
@@ -2628,14 +2499,14 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
|
|
|
2628
2499
|
case 7: throw _d.sent();
|
|
2629
2500
|
case 8:
|
|
2630
2501
|
parsedBody = parsedOutput.body;
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
$metadata: $metadata,
|
|
2502
|
+
throwDefaultError({
|
|
2503
|
+
output: output,
|
|
2504
|
+
parsedBody: parsedBody,
|
|
2505
|
+
exceptionCtor: __BaseException,
|
|
2506
|
+
errorCode: errorCode,
|
|
2637
2507
|
});
|
|
2638
|
-
|
|
2508
|
+
_d.label = 9;
|
|
2509
|
+
case 9: return [2];
|
|
2639
2510
|
}
|
|
2640
2511
|
});
|
|
2641
2512
|
}); };
|
|
@@ -2647,24 +2518,23 @@ export var deserializeAws_restJson1StartCutoverCommand = function (output, conte
|
|
|
2647
2518
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2648
2519
|
return [2, deserializeAws_restJson1StartCutoverCommandError(output, context)];
|
|
2649
2520
|
}
|
|
2650
|
-
contents = {
|
|
2521
|
+
contents = map({
|
|
2651
2522
|
$metadata: deserializeMetadata(output),
|
|
2652
|
-
|
|
2653
|
-
};
|
|
2523
|
+
});
|
|
2654
2524
|
_a = __expectNonNull;
|
|
2655
2525
|
_b = __expectObject;
|
|
2656
2526
|
return [4, parseBody(output.body, context)];
|
|
2657
2527
|
case 1:
|
|
2658
2528
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2659
|
-
if (data.job
|
|
2529
|
+
if (data.job != null) {
|
|
2660
2530
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2661
2531
|
}
|
|
2662
|
-
return [2,
|
|
2532
|
+
return [2, contents];
|
|
2663
2533
|
}
|
|
2664
2534
|
});
|
|
2665
2535
|
}); };
|
|
2666
2536
|
var deserializeAws_restJson1StartCutoverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2667
|
-
var parsedOutput, _a,
|
|
2537
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2668
2538
|
var _c;
|
|
2669
2539
|
return __generator(this, function (_d) {
|
|
2670
2540
|
switch (_d.label) {
|
|
@@ -2693,14 +2563,14 @@ var deserializeAws_restJson1StartCutoverCommandError = function (output, context
|
|
|
2693
2563
|
case 7: throw _d.sent();
|
|
2694
2564
|
case 8:
|
|
2695
2565
|
parsedBody = parsedOutput.body;
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
$metadata: $metadata,
|
|
2566
|
+
throwDefaultError({
|
|
2567
|
+
output: output,
|
|
2568
|
+
parsedBody: parsedBody,
|
|
2569
|
+
exceptionCtor: __BaseException,
|
|
2570
|
+
errorCode: errorCode,
|
|
2702
2571
|
});
|
|
2703
|
-
|
|
2572
|
+
_d.label = 9;
|
|
2573
|
+
case 9: return [2];
|
|
2704
2574
|
}
|
|
2705
2575
|
});
|
|
2706
2576
|
}); };
|
|
@@ -2712,60 +2582,50 @@ export var deserializeAws_restJson1StartReplicationCommand = function (output, c
|
|
|
2712
2582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2713
2583
|
return [2, deserializeAws_restJson1StartReplicationCommandError(output, context)];
|
|
2714
2584
|
}
|
|
2715
|
-
contents = {
|
|
2585
|
+
contents = map({
|
|
2716
2586
|
$metadata: deserializeMetadata(output),
|
|
2717
|
-
|
|
2718
|
-
dataReplicationInfo: undefined,
|
|
2719
|
-
isArchived: undefined,
|
|
2720
|
-
launchedInstance: undefined,
|
|
2721
|
-
lifeCycle: undefined,
|
|
2722
|
-
replicationType: undefined,
|
|
2723
|
-
sourceProperties: undefined,
|
|
2724
|
-
sourceServerID: undefined,
|
|
2725
|
-
tags: undefined,
|
|
2726
|
-
vcenterClientID: undefined,
|
|
2727
|
-
};
|
|
2587
|
+
});
|
|
2728
2588
|
_a = __expectNonNull;
|
|
2729
2589
|
_b = __expectObject;
|
|
2730
2590
|
return [4, parseBody(output.body, context)];
|
|
2731
2591
|
case 1:
|
|
2732
2592
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2733
|
-
if (data.arn
|
|
2593
|
+
if (data.arn != null) {
|
|
2734
2594
|
contents.arn = __expectString(data.arn);
|
|
2735
2595
|
}
|
|
2736
|
-
if (data.dataReplicationInfo
|
|
2596
|
+
if (data.dataReplicationInfo != null) {
|
|
2737
2597
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2738
2598
|
}
|
|
2739
|
-
if (data.isArchived
|
|
2599
|
+
if (data.isArchived != null) {
|
|
2740
2600
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
2741
2601
|
}
|
|
2742
|
-
if (data.launchedInstance
|
|
2602
|
+
if (data.launchedInstance != null) {
|
|
2743
2603
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
2744
2604
|
}
|
|
2745
|
-
if (data.lifeCycle
|
|
2605
|
+
if (data.lifeCycle != null) {
|
|
2746
2606
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2747
2607
|
}
|
|
2748
|
-
if (data.replicationType
|
|
2608
|
+
if (data.replicationType != null) {
|
|
2749
2609
|
contents.replicationType = __expectString(data.replicationType);
|
|
2750
2610
|
}
|
|
2751
|
-
if (data.sourceProperties
|
|
2611
|
+
if (data.sourceProperties != null) {
|
|
2752
2612
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2753
2613
|
}
|
|
2754
|
-
if (data.sourceServerID
|
|
2614
|
+
if (data.sourceServerID != null) {
|
|
2755
2615
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2756
2616
|
}
|
|
2757
|
-
if (data.tags
|
|
2617
|
+
if (data.tags != null) {
|
|
2758
2618
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2759
2619
|
}
|
|
2760
|
-
if (data.vcenterClientID
|
|
2620
|
+
if (data.vcenterClientID != null) {
|
|
2761
2621
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
2762
2622
|
}
|
|
2763
|
-
return [2,
|
|
2623
|
+
return [2, contents];
|
|
2764
2624
|
}
|
|
2765
2625
|
});
|
|
2766
2626
|
}); };
|
|
2767
2627
|
var deserializeAws_restJson1StartReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2768
|
-
var parsedOutput, _a,
|
|
2628
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2769
2629
|
var _c;
|
|
2770
2630
|
return __generator(this, function (_d) {
|
|
2771
2631
|
switch (_d.label) {
|
|
@@ -2802,14 +2662,14 @@ var deserializeAws_restJson1StartReplicationCommandError = function (output, con
|
|
|
2802
2662
|
case 11: throw _d.sent();
|
|
2803
2663
|
case 12:
|
|
2804
2664
|
parsedBody = parsedOutput.body;
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
$metadata: $metadata,
|
|
2665
|
+
throwDefaultError({
|
|
2666
|
+
output: output,
|
|
2667
|
+
parsedBody: parsedBody,
|
|
2668
|
+
exceptionCtor: __BaseException,
|
|
2669
|
+
errorCode: errorCode,
|
|
2811
2670
|
});
|
|
2812
|
-
|
|
2671
|
+
_d.label = 13;
|
|
2672
|
+
case 13: return [2];
|
|
2813
2673
|
}
|
|
2814
2674
|
});
|
|
2815
2675
|
}); };
|
|
@@ -2821,24 +2681,23 @@ export var deserializeAws_restJson1StartTestCommand = function (output, context)
|
|
|
2821
2681
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2822
2682
|
return [2, deserializeAws_restJson1StartTestCommandError(output, context)];
|
|
2823
2683
|
}
|
|
2824
|
-
contents = {
|
|
2684
|
+
contents = map({
|
|
2825
2685
|
$metadata: deserializeMetadata(output),
|
|
2826
|
-
|
|
2827
|
-
};
|
|
2686
|
+
});
|
|
2828
2687
|
_a = __expectNonNull;
|
|
2829
2688
|
_b = __expectObject;
|
|
2830
2689
|
return [4, parseBody(output.body, context)];
|
|
2831
2690
|
case 1:
|
|
2832
2691
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2833
|
-
if (data.job
|
|
2692
|
+
if (data.job != null) {
|
|
2834
2693
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2835
2694
|
}
|
|
2836
|
-
return [2,
|
|
2695
|
+
return [2, contents];
|
|
2837
2696
|
}
|
|
2838
2697
|
});
|
|
2839
2698
|
}); };
|
|
2840
2699
|
var deserializeAws_restJson1StartTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2841
|
-
var parsedOutput, _a,
|
|
2700
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2842
2701
|
var _c;
|
|
2843
2702
|
return __generator(this, function (_d) {
|
|
2844
2703
|
switch (_d.label) {
|
|
@@ -2867,14 +2726,14 @@ var deserializeAws_restJson1StartTestCommandError = function (output, context) {
|
|
|
2867
2726
|
case 7: throw _d.sent();
|
|
2868
2727
|
case 8:
|
|
2869
2728
|
parsedBody = parsedOutput.body;
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
$metadata: $metadata,
|
|
2729
|
+
throwDefaultError({
|
|
2730
|
+
output: output,
|
|
2731
|
+
parsedBody: parsedBody,
|
|
2732
|
+
exceptionCtor: __BaseException,
|
|
2733
|
+
errorCode: errorCode,
|
|
2876
2734
|
});
|
|
2877
|
-
|
|
2735
|
+
_d.label = 9;
|
|
2736
|
+
case 9: return [2];
|
|
2878
2737
|
}
|
|
2879
2738
|
});
|
|
2880
2739
|
}); };
|
|
@@ -2886,18 +2745,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2886
2745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2887
2746
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2888
2747
|
}
|
|
2889
|
-
contents = {
|
|
2748
|
+
contents = map({
|
|
2890
2749
|
$metadata: deserializeMetadata(output),
|
|
2891
|
-
};
|
|
2750
|
+
});
|
|
2892
2751
|
return [4, collectBody(output.body, context)];
|
|
2893
2752
|
case 1:
|
|
2894
2753
|
_a.sent();
|
|
2895
|
-
return [2,
|
|
2754
|
+
return [2, contents];
|
|
2896
2755
|
}
|
|
2897
2756
|
});
|
|
2898
2757
|
}); };
|
|
2899
2758
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2900
|
-
var parsedOutput, _a,
|
|
2759
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2901
2760
|
var _c;
|
|
2902
2761
|
return __generator(this, function (_d) {
|
|
2903
2762
|
switch (_d.label) {
|
|
@@ -2934,14 +2793,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2934
2793
|
case 11: throw _d.sent();
|
|
2935
2794
|
case 12:
|
|
2936
2795
|
parsedBody = parsedOutput.body;
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
$metadata: $metadata,
|
|
2796
|
+
throwDefaultError({
|
|
2797
|
+
output: output,
|
|
2798
|
+
parsedBody: parsedBody,
|
|
2799
|
+
exceptionCtor: __BaseException,
|
|
2800
|
+
errorCode: errorCode,
|
|
2943
2801
|
});
|
|
2944
|
-
|
|
2802
|
+
_d.label = 13;
|
|
2803
|
+
case 13: return [2];
|
|
2945
2804
|
}
|
|
2946
2805
|
});
|
|
2947
2806
|
}); };
|
|
@@ -2953,24 +2812,23 @@ export var deserializeAws_restJson1TerminateTargetInstancesCommand = function (o
|
|
|
2953
2812
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2954
2813
|
return [2, deserializeAws_restJson1TerminateTargetInstancesCommandError(output, context)];
|
|
2955
2814
|
}
|
|
2956
|
-
contents = {
|
|
2815
|
+
contents = map({
|
|
2957
2816
|
$metadata: deserializeMetadata(output),
|
|
2958
|
-
|
|
2959
|
-
};
|
|
2817
|
+
});
|
|
2960
2818
|
_a = __expectNonNull;
|
|
2961
2819
|
_b = __expectObject;
|
|
2962
2820
|
return [4, parseBody(output.body, context)];
|
|
2963
2821
|
case 1:
|
|
2964
2822
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2965
|
-
if (data.job
|
|
2823
|
+
if (data.job != null) {
|
|
2966
2824
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2967
2825
|
}
|
|
2968
|
-
return [2,
|
|
2826
|
+
return [2, contents];
|
|
2969
2827
|
}
|
|
2970
2828
|
});
|
|
2971
2829
|
}); };
|
|
2972
2830
|
var deserializeAws_restJson1TerminateTargetInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2973
|
-
var parsedOutput, _a,
|
|
2831
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2974
2832
|
var _c;
|
|
2975
2833
|
return __generator(this, function (_d) {
|
|
2976
2834
|
switch (_d.label) {
|
|
@@ -2999,14 +2857,14 @@ var deserializeAws_restJson1TerminateTargetInstancesCommandError = function (out
|
|
|
2999
2857
|
case 7: throw _d.sent();
|
|
3000
2858
|
case 8:
|
|
3001
2859
|
parsedBody = parsedOutput.body;
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
$metadata: $metadata,
|
|
2860
|
+
throwDefaultError({
|
|
2861
|
+
output: output,
|
|
2862
|
+
parsedBody: parsedBody,
|
|
2863
|
+
exceptionCtor: __BaseException,
|
|
2864
|
+
errorCode: errorCode,
|
|
3008
2865
|
});
|
|
3009
|
-
|
|
2866
|
+
_d.label = 9;
|
|
2867
|
+
case 9: return [2];
|
|
3010
2868
|
}
|
|
3011
2869
|
});
|
|
3012
2870
|
}); };
|
|
@@ -3018,18 +2876,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3018
2876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3019
2877
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3020
2878
|
}
|
|
3021
|
-
contents = {
|
|
2879
|
+
contents = map({
|
|
3022
2880
|
$metadata: deserializeMetadata(output),
|
|
3023
|
-
};
|
|
2881
|
+
});
|
|
3024
2882
|
return [4, collectBody(output.body, context)];
|
|
3025
2883
|
case 1:
|
|
3026
2884
|
_a.sent();
|
|
3027
|
-
return [2,
|
|
2885
|
+
return [2, contents];
|
|
3028
2886
|
}
|
|
3029
2887
|
});
|
|
3030
2888
|
}); };
|
|
3031
2889
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3032
|
-
var parsedOutput, _a,
|
|
2890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3033
2891
|
var _c;
|
|
3034
2892
|
return __generator(this, function (_d) {
|
|
3035
2893
|
switch (_d.label) {
|
|
@@ -3066,14 +2924,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3066
2924
|
case 11: throw _d.sent();
|
|
3067
2925
|
case 12:
|
|
3068
2926
|
parsedBody = parsedOutput.body;
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
$metadata: $metadata,
|
|
2927
|
+
throwDefaultError({
|
|
2928
|
+
output: output,
|
|
2929
|
+
parsedBody: parsedBody,
|
|
2930
|
+
exceptionCtor: __BaseException,
|
|
2931
|
+
errorCode: errorCode,
|
|
3075
2932
|
});
|
|
3076
|
-
|
|
2933
|
+
_d.label = 13;
|
|
2934
|
+
case 13: return [2];
|
|
3077
2935
|
}
|
|
3078
2936
|
});
|
|
3079
2937
|
}); };
|
|
@@ -3085,60 +2943,50 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
3085
2943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3086
2944
|
return [2, deserializeAws_restJson1UpdateLaunchConfigurationCommandError(output, context)];
|
|
3087
2945
|
}
|
|
3088
|
-
contents = {
|
|
2946
|
+
contents = map({
|
|
3089
2947
|
$metadata: deserializeMetadata(output),
|
|
3090
|
-
|
|
3091
|
-
copyPrivateIp: undefined,
|
|
3092
|
-
copyTags: undefined,
|
|
3093
|
-
ec2LaunchTemplateID: undefined,
|
|
3094
|
-
launchDisposition: undefined,
|
|
3095
|
-
licensing: undefined,
|
|
3096
|
-
name: undefined,
|
|
3097
|
-
postLaunchActions: undefined,
|
|
3098
|
-
sourceServerID: undefined,
|
|
3099
|
-
targetInstanceTypeRightSizingMethod: undefined,
|
|
3100
|
-
};
|
|
2948
|
+
});
|
|
3101
2949
|
_a = __expectNonNull;
|
|
3102
2950
|
_b = __expectObject;
|
|
3103
2951
|
return [4, parseBody(output.body, context)];
|
|
3104
2952
|
case 1:
|
|
3105
2953
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3106
|
-
if (data.bootMode
|
|
2954
|
+
if (data.bootMode != null) {
|
|
3107
2955
|
contents.bootMode = __expectString(data.bootMode);
|
|
3108
2956
|
}
|
|
3109
|
-
if (data.copyPrivateIp
|
|
2957
|
+
if (data.copyPrivateIp != null) {
|
|
3110
2958
|
contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
|
|
3111
2959
|
}
|
|
3112
|
-
if (data.copyTags
|
|
2960
|
+
if (data.copyTags != null) {
|
|
3113
2961
|
contents.copyTags = __expectBoolean(data.copyTags);
|
|
3114
2962
|
}
|
|
3115
|
-
if (data.ec2LaunchTemplateID
|
|
2963
|
+
if (data.ec2LaunchTemplateID != null) {
|
|
3116
2964
|
contents.ec2LaunchTemplateID = __expectString(data.ec2LaunchTemplateID);
|
|
3117
2965
|
}
|
|
3118
|
-
if (data.launchDisposition
|
|
2966
|
+
if (data.launchDisposition != null) {
|
|
3119
2967
|
contents.launchDisposition = __expectString(data.launchDisposition);
|
|
3120
2968
|
}
|
|
3121
|
-
if (data.licensing
|
|
2969
|
+
if (data.licensing != null) {
|
|
3122
2970
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
3123
2971
|
}
|
|
3124
|
-
if (data.name
|
|
2972
|
+
if (data.name != null) {
|
|
3125
2973
|
contents.name = __expectString(data.name);
|
|
3126
2974
|
}
|
|
3127
|
-
if (data.postLaunchActions
|
|
2975
|
+
if (data.postLaunchActions != null) {
|
|
3128
2976
|
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
3129
2977
|
}
|
|
3130
|
-
if (data.sourceServerID
|
|
2978
|
+
if (data.sourceServerID != null) {
|
|
3131
2979
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
3132
2980
|
}
|
|
3133
|
-
if (data.targetInstanceTypeRightSizingMethod
|
|
2981
|
+
if (data.targetInstanceTypeRightSizingMethod != null) {
|
|
3134
2982
|
contents.targetInstanceTypeRightSizingMethod = __expectString(data.targetInstanceTypeRightSizingMethod);
|
|
3135
2983
|
}
|
|
3136
|
-
return [2,
|
|
2984
|
+
return [2, contents];
|
|
3137
2985
|
}
|
|
3138
2986
|
});
|
|
3139
2987
|
}); };
|
|
3140
2988
|
var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3141
|
-
var parsedOutput, _a,
|
|
2989
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3142
2990
|
var _c;
|
|
3143
2991
|
return __generator(this, function (_d) {
|
|
3144
2992
|
switch (_d.label) {
|
|
@@ -3171,14 +3019,14 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
|
|
|
3171
3019
|
case 9: throw _d.sent();
|
|
3172
3020
|
case 10:
|
|
3173
3021
|
parsedBody = parsedOutput.body;
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
$metadata: $metadata,
|
|
3022
|
+
throwDefaultError({
|
|
3023
|
+
output: output,
|
|
3024
|
+
parsedBody: parsedBody,
|
|
3025
|
+
exceptionCtor: __BaseException,
|
|
3026
|
+
errorCode: errorCode,
|
|
3180
3027
|
});
|
|
3181
|
-
|
|
3028
|
+
_d.label = 11;
|
|
3029
|
+
case 11: return [2];
|
|
3182
3030
|
}
|
|
3183
3031
|
});
|
|
3184
3032
|
}); };
|
|
@@ -3190,36 +3038,32 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = fu
|
|
|
3190
3038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3191
3039
|
return [2, deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError(output, context)];
|
|
3192
3040
|
}
|
|
3193
|
-
contents = {
|
|
3041
|
+
contents = map({
|
|
3194
3042
|
$metadata: deserializeMetadata(output),
|
|
3195
|
-
|
|
3196
|
-
launchConfigurationTemplateID: undefined,
|
|
3197
|
-
postLaunchActions: undefined,
|
|
3198
|
-
tags: undefined,
|
|
3199
|
-
};
|
|
3043
|
+
});
|
|
3200
3044
|
_a = __expectNonNull;
|
|
3201
3045
|
_b = __expectObject;
|
|
3202
3046
|
return [4, parseBody(output.body, context)];
|
|
3203
3047
|
case 1:
|
|
3204
3048
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3205
|
-
if (data.arn
|
|
3049
|
+
if (data.arn != null) {
|
|
3206
3050
|
contents.arn = __expectString(data.arn);
|
|
3207
3051
|
}
|
|
3208
|
-
if (data.launchConfigurationTemplateID
|
|
3052
|
+
if (data.launchConfigurationTemplateID != null) {
|
|
3209
3053
|
contents.launchConfigurationTemplateID = __expectString(data.launchConfigurationTemplateID);
|
|
3210
3054
|
}
|
|
3211
|
-
if (data.postLaunchActions
|
|
3055
|
+
if (data.postLaunchActions != null) {
|
|
3212
3056
|
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
3213
3057
|
}
|
|
3214
|
-
if (data.tags
|
|
3058
|
+
if (data.tags != null) {
|
|
3215
3059
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3216
3060
|
}
|
|
3217
|
-
return [2,
|
|
3061
|
+
return [2, contents];
|
|
3218
3062
|
}
|
|
3219
3063
|
});
|
|
3220
3064
|
}); };
|
|
3221
3065
|
var deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3222
|
-
var parsedOutput, _a,
|
|
3066
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3223
3067
|
var _c;
|
|
3224
3068
|
return __generator(this, function (_d) {
|
|
3225
3069
|
switch (_d.label) {
|
|
@@ -3252,14 +3096,14 @@ var deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError = func
|
|
|
3252
3096
|
case 9: throw _d.sent();
|
|
3253
3097
|
case 10:
|
|
3254
3098
|
parsedBody = parsedOutput.body;
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
$metadata: $metadata,
|
|
3099
|
+
throwDefaultError({
|
|
3100
|
+
output: output,
|
|
3101
|
+
parsedBody: parsedBody,
|
|
3102
|
+
exceptionCtor: __BaseException,
|
|
3103
|
+
errorCode: errorCode,
|
|
3261
3104
|
});
|
|
3262
|
-
|
|
3105
|
+
_d.label = 11;
|
|
3106
|
+
case 11: return [2];
|
|
3263
3107
|
}
|
|
3264
3108
|
});
|
|
3265
3109
|
}); };
|
|
@@ -3271,80 +3115,65 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
|
|
|
3271
3115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3272
3116
|
return [2, deserializeAws_restJson1UpdateReplicationConfigurationCommandError(output, context)];
|
|
3273
3117
|
}
|
|
3274
|
-
contents = {
|
|
3118
|
+
contents = map({
|
|
3275
3119
|
$metadata: deserializeMetadata(output),
|
|
3276
|
-
|
|
3277
|
-
bandwidthThrottling: undefined,
|
|
3278
|
-
createPublicIP: undefined,
|
|
3279
|
-
dataPlaneRouting: undefined,
|
|
3280
|
-
defaultLargeStagingDiskType: undefined,
|
|
3281
|
-
ebsEncryption: undefined,
|
|
3282
|
-
ebsEncryptionKeyArn: undefined,
|
|
3283
|
-
name: undefined,
|
|
3284
|
-
replicatedDisks: undefined,
|
|
3285
|
-
replicationServerInstanceType: undefined,
|
|
3286
|
-
replicationServersSecurityGroupsIDs: undefined,
|
|
3287
|
-
sourceServerID: undefined,
|
|
3288
|
-
stagingAreaSubnetId: undefined,
|
|
3289
|
-
stagingAreaTags: undefined,
|
|
3290
|
-
useDedicatedReplicationServer: undefined,
|
|
3291
|
-
};
|
|
3120
|
+
});
|
|
3292
3121
|
_a = __expectNonNull;
|
|
3293
3122
|
_b = __expectObject;
|
|
3294
3123
|
return [4, parseBody(output.body, context)];
|
|
3295
3124
|
case 1:
|
|
3296
3125
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3297
|
-
if (data.associateDefaultSecurityGroup
|
|
3126
|
+
if (data.associateDefaultSecurityGroup != null) {
|
|
3298
3127
|
contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
|
|
3299
3128
|
}
|
|
3300
|
-
if (data.bandwidthThrottling
|
|
3129
|
+
if (data.bandwidthThrottling != null) {
|
|
3301
3130
|
contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
|
|
3302
3131
|
}
|
|
3303
|
-
if (data.createPublicIP
|
|
3132
|
+
if (data.createPublicIP != null) {
|
|
3304
3133
|
contents.createPublicIP = __expectBoolean(data.createPublicIP);
|
|
3305
3134
|
}
|
|
3306
|
-
if (data.dataPlaneRouting
|
|
3135
|
+
if (data.dataPlaneRouting != null) {
|
|
3307
3136
|
contents.dataPlaneRouting = __expectString(data.dataPlaneRouting);
|
|
3308
3137
|
}
|
|
3309
|
-
if (data.defaultLargeStagingDiskType
|
|
3138
|
+
if (data.defaultLargeStagingDiskType != null) {
|
|
3310
3139
|
contents.defaultLargeStagingDiskType = __expectString(data.defaultLargeStagingDiskType);
|
|
3311
3140
|
}
|
|
3312
|
-
if (data.ebsEncryption
|
|
3141
|
+
if (data.ebsEncryption != null) {
|
|
3313
3142
|
contents.ebsEncryption = __expectString(data.ebsEncryption);
|
|
3314
3143
|
}
|
|
3315
|
-
if (data.ebsEncryptionKeyArn
|
|
3144
|
+
if (data.ebsEncryptionKeyArn != null) {
|
|
3316
3145
|
contents.ebsEncryptionKeyArn = __expectString(data.ebsEncryptionKeyArn);
|
|
3317
3146
|
}
|
|
3318
|
-
if (data.name
|
|
3147
|
+
if (data.name != null) {
|
|
3319
3148
|
contents.name = __expectString(data.name);
|
|
3320
3149
|
}
|
|
3321
|
-
if (data.replicatedDisks
|
|
3150
|
+
if (data.replicatedDisks != null) {
|
|
3322
3151
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
3323
3152
|
}
|
|
3324
|
-
if (data.replicationServerInstanceType
|
|
3153
|
+
if (data.replicationServerInstanceType != null) {
|
|
3325
3154
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
3326
3155
|
}
|
|
3327
|
-
if (data.replicationServersSecurityGroupsIDs
|
|
3156
|
+
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
3328
3157
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
3329
3158
|
}
|
|
3330
|
-
if (data.sourceServerID
|
|
3159
|
+
if (data.sourceServerID != null) {
|
|
3331
3160
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
3332
3161
|
}
|
|
3333
|
-
if (data.stagingAreaSubnetId
|
|
3162
|
+
if (data.stagingAreaSubnetId != null) {
|
|
3334
3163
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
3335
3164
|
}
|
|
3336
|
-
if (data.stagingAreaTags
|
|
3165
|
+
if (data.stagingAreaTags != null) {
|
|
3337
3166
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
3338
3167
|
}
|
|
3339
|
-
if (data.useDedicatedReplicationServer
|
|
3168
|
+
if (data.useDedicatedReplicationServer != null) {
|
|
3340
3169
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
3341
3170
|
}
|
|
3342
|
-
return [2,
|
|
3171
|
+
return [2, contents];
|
|
3343
3172
|
}
|
|
3344
3173
|
});
|
|
3345
3174
|
}); };
|
|
3346
3175
|
var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3347
|
-
var parsedOutput, _a,
|
|
3176
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3348
3177
|
var _c;
|
|
3349
3178
|
return __generator(this, function (_d) {
|
|
3350
3179
|
switch (_d.label) {
|
|
@@ -3381,14 +3210,14 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
|
|
|
3381
3210
|
case 11: throw _d.sent();
|
|
3382
3211
|
case 12:
|
|
3383
3212
|
parsedBody = parsedOutput.body;
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
$metadata: $metadata,
|
|
3213
|
+
throwDefaultError({
|
|
3214
|
+
output: output,
|
|
3215
|
+
parsedBody: parsedBody,
|
|
3216
|
+
exceptionCtor: __BaseException,
|
|
3217
|
+
errorCode: errorCode,
|
|
3390
3218
|
});
|
|
3391
|
-
|
|
3219
|
+
_d.label = 13;
|
|
3220
|
+
case 13: return [2];
|
|
3392
3221
|
}
|
|
3393
3222
|
});
|
|
3394
3223
|
}); };
|
|
@@ -3400,80 +3229,65 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
3400
3229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3401
3230
|
return [2, deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError(output, context)];
|
|
3402
3231
|
}
|
|
3403
|
-
contents = {
|
|
3232
|
+
contents = map({
|
|
3404
3233
|
$metadata: deserializeMetadata(output),
|
|
3405
|
-
|
|
3406
|
-
associateDefaultSecurityGroup: undefined,
|
|
3407
|
-
bandwidthThrottling: undefined,
|
|
3408
|
-
createPublicIP: undefined,
|
|
3409
|
-
dataPlaneRouting: undefined,
|
|
3410
|
-
defaultLargeStagingDiskType: undefined,
|
|
3411
|
-
ebsEncryption: undefined,
|
|
3412
|
-
ebsEncryptionKeyArn: undefined,
|
|
3413
|
-
replicationConfigurationTemplateID: undefined,
|
|
3414
|
-
replicationServerInstanceType: undefined,
|
|
3415
|
-
replicationServersSecurityGroupsIDs: undefined,
|
|
3416
|
-
stagingAreaSubnetId: undefined,
|
|
3417
|
-
stagingAreaTags: undefined,
|
|
3418
|
-
tags: undefined,
|
|
3419
|
-
useDedicatedReplicationServer: undefined,
|
|
3420
|
-
};
|
|
3234
|
+
});
|
|
3421
3235
|
_a = __expectNonNull;
|
|
3422
3236
|
_b = __expectObject;
|
|
3423
3237
|
return [4, parseBody(output.body, context)];
|
|
3424
3238
|
case 1:
|
|
3425
3239
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3426
|
-
if (data.arn
|
|
3240
|
+
if (data.arn != null) {
|
|
3427
3241
|
contents.arn = __expectString(data.arn);
|
|
3428
3242
|
}
|
|
3429
|
-
if (data.associateDefaultSecurityGroup
|
|
3243
|
+
if (data.associateDefaultSecurityGroup != null) {
|
|
3430
3244
|
contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
|
|
3431
3245
|
}
|
|
3432
|
-
if (data.bandwidthThrottling
|
|
3246
|
+
if (data.bandwidthThrottling != null) {
|
|
3433
3247
|
contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
|
|
3434
3248
|
}
|
|
3435
|
-
if (data.createPublicIP
|
|
3249
|
+
if (data.createPublicIP != null) {
|
|
3436
3250
|
contents.createPublicIP = __expectBoolean(data.createPublicIP);
|
|
3437
3251
|
}
|
|
3438
|
-
if (data.dataPlaneRouting
|
|
3252
|
+
if (data.dataPlaneRouting != null) {
|
|
3439
3253
|
contents.dataPlaneRouting = __expectString(data.dataPlaneRouting);
|
|
3440
3254
|
}
|
|
3441
|
-
if (data.defaultLargeStagingDiskType
|
|
3255
|
+
if (data.defaultLargeStagingDiskType != null) {
|
|
3442
3256
|
contents.defaultLargeStagingDiskType = __expectString(data.defaultLargeStagingDiskType);
|
|
3443
3257
|
}
|
|
3444
|
-
if (data.ebsEncryption
|
|
3258
|
+
if (data.ebsEncryption != null) {
|
|
3445
3259
|
contents.ebsEncryption = __expectString(data.ebsEncryption);
|
|
3446
3260
|
}
|
|
3447
|
-
if (data.ebsEncryptionKeyArn
|
|
3261
|
+
if (data.ebsEncryptionKeyArn != null) {
|
|
3448
3262
|
contents.ebsEncryptionKeyArn = __expectString(data.ebsEncryptionKeyArn);
|
|
3449
3263
|
}
|
|
3450
|
-
if (data.replicationConfigurationTemplateID
|
|
3264
|
+
if (data.replicationConfigurationTemplateID != null) {
|
|
3451
3265
|
contents.replicationConfigurationTemplateID = __expectString(data.replicationConfigurationTemplateID);
|
|
3452
3266
|
}
|
|
3453
|
-
if (data.replicationServerInstanceType
|
|
3267
|
+
if (data.replicationServerInstanceType != null) {
|
|
3454
3268
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
3455
3269
|
}
|
|
3456
|
-
if (data.replicationServersSecurityGroupsIDs
|
|
3270
|
+
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
3457
3271
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
3458
3272
|
}
|
|
3459
|
-
if (data.stagingAreaSubnetId
|
|
3273
|
+
if (data.stagingAreaSubnetId != null) {
|
|
3460
3274
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
3461
3275
|
}
|
|
3462
|
-
if (data.stagingAreaTags
|
|
3276
|
+
if (data.stagingAreaTags != null) {
|
|
3463
3277
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
3464
3278
|
}
|
|
3465
|
-
if (data.tags
|
|
3279
|
+
if (data.tags != null) {
|
|
3466
3280
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3467
3281
|
}
|
|
3468
|
-
if (data.useDedicatedReplicationServer
|
|
3282
|
+
if (data.useDedicatedReplicationServer != null) {
|
|
3469
3283
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
3470
3284
|
}
|
|
3471
|
-
return [2,
|
|
3285
|
+
return [2, contents];
|
|
3472
3286
|
}
|
|
3473
3287
|
});
|
|
3474
3288
|
}); };
|
|
3475
3289
|
var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3476
|
-
var parsedOutput, _a,
|
|
3290
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3477
3291
|
var _c;
|
|
3478
3292
|
return __generator(this, function (_d) {
|
|
3479
3293
|
switch (_d.label) {
|
|
@@ -3506,14 +3320,14 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
|
|
|
3506
3320
|
case 9: throw _d.sent();
|
|
3507
3321
|
case 10:
|
|
3508
3322
|
parsedBody = parsedOutput.body;
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
$metadata: $metadata,
|
|
3323
|
+
throwDefaultError({
|
|
3324
|
+
output: output,
|
|
3325
|
+
parsedBody: parsedBody,
|
|
3326
|
+
exceptionCtor: __BaseException,
|
|
3327
|
+
errorCode: errorCode,
|
|
3515
3328
|
});
|
|
3516
|
-
|
|
3329
|
+
_d.label = 11;
|
|
3330
|
+
case 11: return [2];
|
|
3517
3331
|
}
|
|
3518
3332
|
});
|
|
3519
3333
|
}); };
|
|
@@ -3525,60 +3339,50 @@ export var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = fu
|
|
|
3525
3339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3526
3340
|
return [2, deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError(output, context)];
|
|
3527
3341
|
}
|
|
3528
|
-
contents = {
|
|
3342
|
+
contents = map({
|
|
3529
3343
|
$metadata: deserializeMetadata(output),
|
|
3530
|
-
|
|
3531
|
-
dataReplicationInfo: undefined,
|
|
3532
|
-
isArchived: undefined,
|
|
3533
|
-
launchedInstance: undefined,
|
|
3534
|
-
lifeCycle: undefined,
|
|
3535
|
-
replicationType: undefined,
|
|
3536
|
-
sourceProperties: undefined,
|
|
3537
|
-
sourceServerID: undefined,
|
|
3538
|
-
tags: undefined,
|
|
3539
|
-
vcenterClientID: undefined,
|
|
3540
|
-
};
|
|
3344
|
+
});
|
|
3541
3345
|
_a = __expectNonNull;
|
|
3542
3346
|
_b = __expectObject;
|
|
3543
3347
|
return [4, parseBody(output.body, context)];
|
|
3544
3348
|
case 1:
|
|
3545
3349
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3546
|
-
if (data.arn
|
|
3350
|
+
if (data.arn != null) {
|
|
3547
3351
|
contents.arn = __expectString(data.arn);
|
|
3548
3352
|
}
|
|
3549
|
-
if (data.dataReplicationInfo
|
|
3353
|
+
if (data.dataReplicationInfo != null) {
|
|
3550
3354
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
3551
3355
|
}
|
|
3552
|
-
if (data.isArchived
|
|
3356
|
+
if (data.isArchived != null) {
|
|
3553
3357
|
contents.isArchived = __expectBoolean(data.isArchived);
|
|
3554
3358
|
}
|
|
3555
|
-
if (data.launchedInstance
|
|
3359
|
+
if (data.launchedInstance != null) {
|
|
3556
3360
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
3557
3361
|
}
|
|
3558
|
-
if (data.lifeCycle
|
|
3362
|
+
if (data.lifeCycle != null) {
|
|
3559
3363
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
3560
3364
|
}
|
|
3561
|
-
if (data.replicationType
|
|
3365
|
+
if (data.replicationType != null) {
|
|
3562
3366
|
contents.replicationType = __expectString(data.replicationType);
|
|
3563
3367
|
}
|
|
3564
|
-
if (data.sourceProperties
|
|
3368
|
+
if (data.sourceProperties != null) {
|
|
3565
3369
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
3566
3370
|
}
|
|
3567
|
-
if (data.sourceServerID
|
|
3371
|
+
if (data.sourceServerID != null) {
|
|
3568
3372
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
3569
3373
|
}
|
|
3570
|
-
if (data.tags
|
|
3374
|
+
if (data.tags != null) {
|
|
3571
3375
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3572
3376
|
}
|
|
3573
|
-
if (data.vcenterClientID
|
|
3377
|
+
if (data.vcenterClientID != null) {
|
|
3574
3378
|
contents.vcenterClientID = __expectString(data.vcenterClientID);
|
|
3575
3379
|
}
|
|
3576
|
-
return [2,
|
|
3380
|
+
return [2, contents];
|
|
3577
3381
|
}
|
|
3578
3382
|
});
|
|
3579
3383
|
}); };
|
|
3580
3384
|
var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3581
|
-
var parsedOutput, _a,
|
|
3385
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3582
3386
|
var _c;
|
|
3583
3387
|
return __generator(this, function (_d) {
|
|
3584
3388
|
switch (_d.label) {
|
|
@@ -3611,26 +3415,27 @@ var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = func
|
|
|
3611
3415
|
case 9: throw _d.sent();
|
|
3612
3416
|
case 10:
|
|
3613
3417
|
parsedBody = parsedOutput.body;
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
$metadata: $metadata,
|
|
3418
|
+
throwDefaultError({
|
|
3419
|
+
output: output,
|
|
3420
|
+
parsedBody: parsedBody,
|
|
3421
|
+
exceptionCtor: __BaseException,
|
|
3422
|
+
errorCode: errorCode,
|
|
3620
3423
|
});
|
|
3621
|
-
|
|
3424
|
+
_d.label = 11;
|
|
3425
|
+
case 11: return [2];
|
|
3622
3426
|
}
|
|
3623
3427
|
});
|
|
3624
3428
|
}); };
|
|
3429
|
+
var map = __map;
|
|
3625
3430
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3626
3431
|
var contents, data, exception;
|
|
3627
3432
|
return __generator(this, function (_a) {
|
|
3628
|
-
contents = {};
|
|
3433
|
+
contents = map({});
|
|
3629
3434
|
data = parsedOutput.body;
|
|
3630
|
-
if (data.code
|
|
3435
|
+
if (data.code != null) {
|
|
3631
3436
|
contents.code = __expectString(data.code);
|
|
3632
3437
|
}
|
|
3633
|
-
if (data.message
|
|
3438
|
+
if (data.message != null) {
|
|
3634
3439
|
contents.message = __expectString(data.message);
|
|
3635
3440
|
}
|
|
3636
3441
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3640,21 +3445,21 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3640
3445
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3641
3446
|
var contents, data, exception;
|
|
3642
3447
|
return __generator(this, function (_a) {
|
|
3643
|
-
contents = {};
|
|
3448
|
+
contents = map({});
|
|
3644
3449
|
data = parsedOutput.body;
|
|
3645
|
-
if (data.code
|
|
3450
|
+
if (data.code != null) {
|
|
3646
3451
|
contents.code = __expectString(data.code);
|
|
3647
3452
|
}
|
|
3648
|
-
if (data.errors
|
|
3453
|
+
if (data.errors != null) {
|
|
3649
3454
|
contents.errors = deserializeAws_restJson1ConflictExceptionErrors(data.errors, context);
|
|
3650
3455
|
}
|
|
3651
|
-
if (data.message
|
|
3456
|
+
if (data.message != null) {
|
|
3652
3457
|
contents.message = __expectString(data.message);
|
|
3653
3458
|
}
|
|
3654
|
-
if (data.resourceId
|
|
3459
|
+
if (data.resourceId != null) {
|
|
3655
3460
|
contents.resourceId = __expectString(data.resourceId);
|
|
3656
3461
|
}
|
|
3657
|
-
if (data.resourceType
|
|
3462
|
+
if (data.resourceType != null) {
|
|
3658
3463
|
contents.resourceType = __expectString(data.resourceType);
|
|
3659
3464
|
}
|
|
3660
3465
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3664,12 +3469,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3664
3469
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3665
3470
|
var contents, data, exception;
|
|
3666
3471
|
return __generator(this, function (_a) {
|
|
3667
|
-
contents = {
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3472
|
+
contents = map({
|
|
3473
|
+
retryAfterSeconds: [
|
|
3474
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
3475
|
+
function () { return __strictParseLong(parsedOutput.headers["retry-after"]); },
|
|
3476
|
+
],
|
|
3477
|
+
});
|
|
3671
3478
|
data = parsedOutput.body;
|
|
3672
|
-
if (data.message
|
|
3479
|
+
if (data.message != null) {
|
|
3673
3480
|
contents.message = __expectString(data.message);
|
|
3674
3481
|
}
|
|
3675
3482
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3679,18 +3486,18 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3679
3486
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3680
3487
|
var contents, data, exception;
|
|
3681
3488
|
return __generator(this, function (_a) {
|
|
3682
|
-
contents = {};
|
|
3489
|
+
contents = map({});
|
|
3683
3490
|
data = parsedOutput.body;
|
|
3684
|
-
if (data.code
|
|
3491
|
+
if (data.code != null) {
|
|
3685
3492
|
contents.code = __expectString(data.code);
|
|
3686
3493
|
}
|
|
3687
|
-
if (data.message
|
|
3494
|
+
if (data.message != null) {
|
|
3688
3495
|
contents.message = __expectString(data.message);
|
|
3689
3496
|
}
|
|
3690
|
-
if (data.resourceId
|
|
3497
|
+
if (data.resourceId != null) {
|
|
3691
3498
|
contents.resourceId = __expectString(data.resourceId);
|
|
3692
3499
|
}
|
|
3693
|
-
if (data.resourceType
|
|
3500
|
+
if (data.resourceType != null) {
|
|
3694
3501
|
contents.resourceType = __expectString(data.resourceType);
|
|
3695
3502
|
}
|
|
3696
3503
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3700,27 +3507,27 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3700
3507
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3701
3508
|
var contents, data, exception;
|
|
3702
3509
|
return __generator(this, function (_a) {
|
|
3703
|
-
contents = {};
|
|
3510
|
+
contents = map({});
|
|
3704
3511
|
data = parsedOutput.body;
|
|
3705
|
-
if (data.code
|
|
3512
|
+
if (data.code != null) {
|
|
3706
3513
|
contents.code = __expectString(data.code);
|
|
3707
3514
|
}
|
|
3708
|
-
if (data.message
|
|
3515
|
+
if (data.message != null) {
|
|
3709
3516
|
contents.message = __expectString(data.message);
|
|
3710
3517
|
}
|
|
3711
|
-
if (data.quotaCode
|
|
3518
|
+
if (data.quotaCode != null) {
|
|
3712
3519
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
3713
3520
|
}
|
|
3714
|
-
if (data.quotaValue
|
|
3521
|
+
if (data.quotaValue != null) {
|
|
3715
3522
|
contents.quotaValue = __expectInt32(data.quotaValue);
|
|
3716
3523
|
}
|
|
3717
|
-
if (data.resourceId
|
|
3524
|
+
if (data.resourceId != null) {
|
|
3718
3525
|
contents.resourceId = __expectString(data.resourceId);
|
|
3719
3526
|
}
|
|
3720
|
-
if (data.resourceType
|
|
3527
|
+
if (data.resourceType != null) {
|
|
3721
3528
|
contents.resourceType = __expectString(data.resourceType);
|
|
3722
3529
|
}
|
|
3723
|
-
if (data.serviceCode
|
|
3530
|
+
if (data.serviceCode != null) {
|
|
3724
3531
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
3725
3532
|
}
|
|
3726
3533
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3730,18 +3537,17 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3730
3537
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3731
3538
|
var contents, data, exception;
|
|
3732
3539
|
return __generator(this, function (_a) {
|
|
3733
|
-
contents = {
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
}
|
|
3540
|
+
contents = map({
|
|
3541
|
+
retryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
3542
|
+
});
|
|
3737
3543
|
data = parsedOutput.body;
|
|
3738
|
-
if (data.message
|
|
3544
|
+
if (data.message != null) {
|
|
3739
3545
|
contents.message = __expectString(data.message);
|
|
3740
3546
|
}
|
|
3741
|
-
if (data.quotaCode
|
|
3547
|
+
if (data.quotaCode != null) {
|
|
3742
3548
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
3743
3549
|
}
|
|
3744
|
-
if (data.serviceCode
|
|
3550
|
+
if (data.serviceCode != null) {
|
|
3745
3551
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
3746
3552
|
}
|
|
3747
3553
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3751,12 +3557,12 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3751
3557
|
var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3752
3558
|
var contents, data, exception;
|
|
3753
3559
|
return __generator(this, function (_a) {
|
|
3754
|
-
contents = {};
|
|
3560
|
+
contents = map({});
|
|
3755
3561
|
data = parsedOutput.body;
|
|
3756
|
-
if (data.code
|
|
3562
|
+
if (data.code != null) {
|
|
3757
3563
|
contents.code = __expectString(data.code);
|
|
3758
3564
|
}
|
|
3759
|
-
if (data.message
|
|
3565
|
+
if (data.message != null) {
|
|
3760
3566
|
contents.message = __expectString(data.message);
|
|
3761
3567
|
}
|
|
3762
3568
|
exception = new UninitializedAccountException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3766,18 +3572,18 @@ var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (pa
|
|
|
3766
3572
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3767
3573
|
var contents, data, exception;
|
|
3768
3574
|
return __generator(this, function (_a) {
|
|
3769
|
-
contents = {};
|
|
3575
|
+
contents = map({});
|
|
3770
3576
|
data = parsedOutput.body;
|
|
3771
|
-
if (data.code
|
|
3577
|
+
if (data.code != null) {
|
|
3772
3578
|
contents.code = __expectString(data.code);
|
|
3773
3579
|
}
|
|
3774
|
-
if (data.fieldList
|
|
3580
|
+
if (data.fieldList != null) {
|
|
3775
3581
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
3776
3582
|
}
|
|
3777
|
-
if (data.message
|
|
3583
|
+
if (data.message != null) {
|
|
3778
3584
|
contents.message = __expectString(data.message);
|
|
3779
3585
|
}
|
|
3780
|
-
if (data.reason
|
|
3586
|
+
if (data.reason != null) {
|
|
3781
3587
|
contents.reason = __expectString(data.reason);
|
|
3782
3588
|
}
|
|
3783
3589
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3796,9 +3602,6 @@ var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, co
|
|
|
3796
3602
|
return input
|
|
3797
3603
|
.filter(function (e) { return e != null; })
|
|
3798
3604
|
.map(function (entry) {
|
|
3799
|
-
if (entry === null) {
|
|
3800
|
-
return null;
|
|
3801
|
-
}
|
|
3802
3605
|
return entry;
|
|
3803
3606
|
});
|
|
3804
3607
|
};
|
|
@@ -3815,9 +3618,6 @@ var serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = function (inp
|
|
|
3815
3618
|
return input
|
|
3816
3619
|
.filter(function (e) { return e != null; })
|
|
3817
3620
|
.map(function (entry) {
|
|
3818
|
-
if (entry === null) {
|
|
3819
|
-
return null;
|
|
3820
|
-
}
|
|
3821
3621
|
return entry;
|
|
3822
3622
|
});
|
|
3823
3623
|
};
|
|
@@ -3825,9 +3625,6 @@ var serializeAws_restJson1LaunchConfigurationTemplateIDs = function (input, cont
|
|
|
3825
3625
|
return input
|
|
3826
3626
|
.filter(function (e) { return e != null; })
|
|
3827
3627
|
.map(function (entry) {
|
|
3828
|
-
if (entry === null) {
|
|
3829
|
-
return null;
|
|
3830
|
-
}
|
|
3831
3628
|
return entry;
|
|
3832
3629
|
});
|
|
3833
3630
|
};
|
|
@@ -3838,9 +3635,6 @@ var serializeAws_restJson1LifeCycleStates = function (input, context) {
|
|
|
3838
3635
|
return input
|
|
3839
3636
|
.filter(function (e) { return e != null; })
|
|
3840
3637
|
.map(function (entry) {
|
|
3841
|
-
if (entry === null) {
|
|
3842
|
-
return null;
|
|
3843
|
-
}
|
|
3844
3638
|
return entry;
|
|
3845
3639
|
});
|
|
3846
3640
|
};
|
|
@@ -3856,9 +3650,6 @@ var serializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (in
|
|
|
3856
3650
|
return input
|
|
3857
3651
|
.filter(function (e) { return e != null; })
|
|
3858
3652
|
.map(function (entry) {
|
|
3859
|
-
if (entry === null) {
|
|
3860
|
-
return null;
|
|
3861
|
-
}
|
|
3862
3653
|
return serializeAws_restJson1ReplicationConfigurationReplicatedDisk(entry, context);
|
|
3863
3654
|
});
|
|
3864
3655
|
};
|
|
@@ -3866,9 +3657,6 @@ var serializeAws_restJson1ReplicationConfigurationTemplateIDs = function (input,
|
|
|
3866
3657
|
return input
|
|
3867
3658
|
.filter(function (e) { return e != null; })
|
|
3868
3659
|
.map(function (entry) {
|
|
3869
|
-
if (entry === null) {
|
|
3870
|
-
return null;
|
|
3871
|
-
}
|
|
3872
3660
|
return entry;
|
|
3873
3661
|
});
|
|
3874
3662
|
};
|
|
@@ -3876,9 +3664,6 @@ var serializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (input,
|
|
|
3876
3664
|
return input
|
|
3877
3665
|
.filter(function (e) { return e != null; })
|
|
3878
3666
|
.map(function (entry) {
|
|
3879
|
-
if (entry === null) {
|
|
3880
|
-
return null;
|
|
3881
|
-
}
|
|
3882
3667
|
return entry;
|
|
3883
3668
|
});
|
|
3884
3669
|
};
|
|
@@ -3886,9 +3671,6 @@ var serializeAws_restJson1ReplicationTypes = function (input, context) {
|
|
|
3886
3671
|
return input
|
|
3887
3672
|
.filter(function (e) { return e != null; })
|
|
3888
3673
|
.map(function (entry) {
|
|
3889
|
-
if (entry === null) {
|
|
3890
|
-
return null;
|
|
3891
|
-
}
|
|
3892
3674
|
return entry;
|
|
3893
3675
|
});
|
|
3894
3676
|
};
|
|
@@ -3911,9 +3693,6 @@ var serializeAws_restJson1SsmDocuments = function (input, context) {
|
|
|
3911
3693
|
return input
|
|
3912
3694
|
.filter(function (e) { return e != null; })
|
|
3913
3695
|
.map(function (entry) {
|
|
3914
|
-
if (entry === null) {
|
|
3915
|
-
return null;
|
|
3916
|
-
}
|
|
3917
3696
|
return serializeAws_restJson1SsmDocument(entry, context);
|
|
3918
3697
|
});
|
|
3919
3698
|
};
|
|
@@ -3924,9 +3703,6 @@ var serializeAws_restJson1SsmParameterStoreParameters = function (input, context
|
|
|
3924
3703
|
return input
|
|
3925
3704
|
.filter(function (e) { return e != null; })
|
|
3926
3705
|
.map(function (entry) {
|
|
3927
|
-
if (entry === null) {
|
|
3928
|
-
return null;
|
|
3929
|
-
}
|
|
3930
3706
|
return serializeAws_restJson1SsmParameterStoreParameter(entry, context);
|
|
3931
3707
|
});
|
|
3932
3708
|
};
|
|
@@ -3934,9 +3710,6 @@ var serializeAws_restJson1StartCutoverRequestSourceServerIDs = function (input,
|
|
|
3934
3710
|
return input
|
|
3935
3711
|
.filter(function (e) { return e != null; })
|
|
3936
3712
|
.map(function (entry) {
|
|
3937
|
-
if (entry === null) {
|
|
3938
|
-
return null;
|
|
3939
|
-
}
|
|
3940
3713
|
return entry;
|
|
3941
3714
|
});
|
|
3942
3715
|
};
|
|
@@ -3944,9 +3717,6 @@ var serializeAws_restJson1StartTestRequestSourceServerIDs = function (input, con
|
|
|
3944
3717
|
return input
|
|
3945
3718
|
.filter(function (e) { return e != null; })
|
|
3946
3719
|
.map(function (entry) {
|
|
3947
|
-
if (entry === null) {
|
|
3948
|
-
return null;
|
|
3949
|
-
}
|
|
3950
3720
|
return entry;
|
|
3951
3721
|
});
|
|
3952
3722
|
};
|
|
@@ -3964,9 +3734,6 @@ var serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = funct
|
|
|
3964
3734
|
return input
|
|
3965
3735
|
.filter(function (e) { return e != null; })
|
|
3966
3736
|
.map(function (entry) {
|
|
3967
|
-
if (entry === null) {
|
|
3968
|
-
return null;
|
|
3969
|
-
}
|
|
3970
3737
|
return entry;
|
|
3971
3738
|
});
|
|
3972
3739
|
};
|