@aws-sdk/client-mgn 3.110.0 → 3.118.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/Mgn.js +60 -0
- package/dist-cjs/commands/CreateLaunchConfigurationTemplateCommand.js +36 -0
- package/dist-cjs/commands/DeleteLaunchConfigurationTemplateCommand.js +36 -0
- package/dist-cjs/commands/DescribeLaunchConfigurationTemplatesCommand.js +36 -0
- package/dist-cjs/commands/UpdateLaunchConfigurationTemplateCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +105 -3
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +531 -2
- package/dist-es/Mgn.js +60 -0
- package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +39 -0
- package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +39 -0
- package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +39 -0
- package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +73 -0
- package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +604 -2
- package/dist-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +6 -2
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +307 -1
- package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Mgn.d.ts +20 -0
- package/dist-types/ts3.4/MgnClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateLaunchConfigurationTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +185 -1
- package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -4
|
@@ -31,6 +31,34 @@ export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (i
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}); };
|
|
34
|
+
export var serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
|
+
return __generator(this, function (_c) {
|
|
37
|
+
switch (_c.label) {
|
|
38
|
+
case 0: return [4, context.endpoint()];
|
|
39
|
+
case 1:
|
|
40
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
41
|
+
headers = {
|
|
42
|
+
"content-type": "application/json",
|
|
43
|
+
};
|
|
44
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateLaunchConfigurationTemplate";
|
|
45
|
+
body = JSON.stringify(__assign(__assign({}, (input.postLaunchActions !== undefined &&
|
|
46
|
+
input.postLaunchActions !== null && {
|
|
47
|
+
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
48
|
+
})), (input.tags !== undefined &&
|
|
49
|
+
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
50
|
+
return [2, new __HttpRequest({
|
|
51
|
+
protocol: protocol,
|
|
52
|
+
hostname: hostname,
|
|
53
|
+
port: port,
|
|
54
|
+
method: "POST",
|
|
55
|
+
headers: headers,
|
|
56
|
+
path: resolvedPath,
|
|
57
|
+
body: body,
|
|
58
|
+
})];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}); };
|
|
34
62
|
export var serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
63
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
64
|
return __generator(this, function (_c) {
|
|
@@ -101,6 +129,33 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
101
129
|
}
|
|
102
130
|
});
|
|
103
131
|
}); };
|
|
132
|
+
export var serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
133
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
134
|
+
return __generator(this, function (_c) {
|
|
135
|
+
switch (_c.label) {
|
|
136
|
+
case 0: return [4, context.endpoint()];
|
|
137
|
+
case 1:
|
|
138
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
139
|
+
headers = {
|
|
140
|
+
"content-type": "application/json",
|
|
141
|
+
};
|
|
142
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteLaunchConfigurationTemplate";
|
|
143
|
+
body = JSON.stringify(__assign({}, (input.launchConfigurationTemplateID !== undefined &&
|
|
144
|
+
input.launchConfigurationTemplateID !== null && {
|
|
145
|
+
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
146
|
+
})));
|
|
147
|
+
return [2, new __HttpRequest({
|
|
148
|
+
protocol: protocol,
|
|
149
|
+
hostname: hostname,
|
|
150
|
+
port: port,
|
|
151
|
+
method: "POST",
|
|
152
|
+
headers: headers,
|
|
153
|
+
path: resolvedPath,
|
|
154
|
+
body: body,
|
|
155
|
+
})];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}); };
|
|
104
159
|
export var serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
160
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
106
161
|
return __generator(this, function (_c) {
|
|
@@ -227,6 +282,33 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
|
|
|
227
282
|
}
|
|
228
283
|
});
|
|
229
284
|
}); };
|
|
285
|
+
export var serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
286
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
287
|
+
return __generator(this, function (_c) {
|
|
288
|
+
switch (_c.label) {
|
|
289
|
+
case 0: return [4, context.endpoint()];
|
|
290
|
+
case 1:
|
|
291
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
292
|
+
headers = {
|
|
293
|
+
"content-type": "application/json",
|
|
294
|
+
};
|
|
295
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeLaunchConfigurationTemplates";
|
|
296
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.launchConfigurationTemplateIDs !== undefined &&
|
|
297
|
+
input.launchConfigurationTemplateIDs !== null && {
|
|
298
|
+
launchConfigurationTemplateIDs: serializeAws_restJson1LaunchConfigurationTemplateIDs(input.launchConfigurationTemplateIDs, context),
|
|
299
|
+
})), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
300
|
+
return [2, new __HttpRequest({
|
|
301
|
+
protocol: protocol,
|
|
302
|
+
hostname: hostname,
|
|
303
|
+
port: port,
|
|
304
|
+
method: "POST",
|
|
305
|
+
headers: headers,
|
|
306
|
+
path: resolvedPath,
|
|
307
|
+
body: body,
|
|
308
|
+
})];
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}); };
|
|
230
312
|
export var serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
231
313
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
232
314
|
return __generator(this, function (_c) {
|
|
@@ -698,9 +780,12 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
|
|
|
698
780
|
"content-type": "application/json",
|
|
699
781
|
};
|
|
700
782
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateLaunchConfiguration";
|
|
701
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bootMode !== undefined && input.bootMode !== null && { bootMode: input.bootMode })), (input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp })), (input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags })), (input.launchDisposition !== undefined &&
|
|
783
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bootMode !== undefined && input.bootMode !== null && { bootMode: input.bootMode })), (input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp })), (input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags })), (input.launchDisposition !== undefined &&
|
|
702
784
|
input.launchDisposition !== null && { launchDisposition: input.launchDisposition })), (input.licensing !== undefined &&
|
|
703
|
-
input.licensing !== null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.
|
|
785
|
+
input.licensing !== null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.postLaunchActions !== undefined &&
|
|
786
|
+
input.postLaunchActions !== null && {
|
|
787
|
+
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
788
|
+
})), (input.sourceServerID !== undefined &&
|
|
704
789
|
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })), (input.targetInstanceTypeRightSizingMethod !== undefined &&
|
|
705
790
|
input.targetInstanceTypeRightSizingMethod !== null && {
|
|
706
791
|
targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
|
|
@@ -717,6 +802,36 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
|
|
|
717
802
|
}
|
|
718
803
|
});
|
|
719
804
|
}); };
|
|
805
|
+
export var serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
807
|
+
return __generator(this, function (_c) {
|
|
808
|
+
switch (_c.label) {
|
|
809
|
+
case 0: return [4, context.endpoint()];
|
|
810
|
+
case 1:
|
|
811
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
812
|
+
headers = {
|
|
813
|
+
"content-type": "application/json",
|
|
814
|
+
};
|
|
815
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateLaunchConfigurationTemplate";
|
|
816
|
+
body = JSON.stringify(__assign(__assign({}, (input.launchConfigurationTemplateID !== undefined &&
|
|
817
|
+
input.launchConfigurationTemplateID !== null && {
|
|
818
|
+
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
819
|
+
})), (input.postLaunchActions !== undefined &&
|
|
820
|
+
input.postLaunchActions !== null && {
|
|
821
|
+
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
822
|
+
})));
|
|
823
|
+
return [2, new __HttpRequest({
|
|
824
|
+
protocol: protocol,
|
|
825
|
+
hostname: hostname,
|
|
826
|
+
port: port,
|
|
827
|
+
method: "POST",
|
|
828
|
+
headers: headers,
|
|
829
|
+
path: resolvedPath,
|
|
830
|
+
body: body,
|
|
831
|
+
})];
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
}); };
|
|
720
835
|
export var serializeAws_restJson1UpdateReplicationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
721
836
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
722
837
|
return __generator(this, function (_c) {
|
|
@@ -944,6 +1059,82 @@ var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (o
|
|
|
944
1059
|
}
|
|
945
1060
|
});
|
|
946
1061
|
}); };
|
|
1062
|
+
export var deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1063
|
+
var contents, data, _a, _b;
|
|
1064
|
+
return __generator(this, function (_c) {
|
|
1065
|
+
switch (_c.label) {
|
|
1066
|
+
case 0:
|
|
1067
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1068
|
+
return [2, deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError(output, context)];
|
|
1069
|
+
}
|
|
1070
|
+
contents = {
|
|
1071
|
+
$metadata: deserializeMetadata(output),
|
|
1072
|
+
arn: undefined,
|
|
1073
|
+
launchConfigurationTemplateID: undefined,
|
|
1074
|
+
postLaunchActions: undefined,
|
|
1075
|
+
tags: undefined,
|
|
1076
|
+
};
|
|
1077
|
+
_a = __expectNonNull;
|
|
1078
|
+
_b = __expectObject;
|
|
1079
|
+
return [4, parseBody(output.body, context)];
|
|
1080
|
+
case 1:
|
|
1081
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1082
|
+
if (data.arn !== undefined && data.arn !== null) {
|
|
1083
|
+
contents.arn = __expectString(data.arn);
|
|
1084
|
+
}
|
|
1085
|
+
if (data.launchConfigurationTemplateID !== undefined && data.launchConfigurationTemplateID !== null) {
|
|
1086
|
+
contents.launchConfigurationTemplateID = __expectString(data.launchConfigurationTemplateID);
|
|
1087
|
+
}
|
|
1088
|
+
if (data.postLaunchActions !== undefined && data.postLaunchActions !== null) {
|
|
1089
|
+
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
1090
|
+
}
|
|
1091
|
+
if (data.tags !== undefined && data.tags !== null) {
|
|
1092
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1093
|
+
}
|
|
1094
|
+
return [2, Promise.resolve(contents)];
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
}); };
|
|
1098
|
+
var deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1099
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1100
|
+
var _c;
|
|
1101
|
+
return __generator(this, function (_d) {
|
|
1102
|
+
switch (_d.label) {
|
|
1103
|
+
case 0:
|
|
1104
|
+
_a = [__assign({}, output)];
|
|
1105
|
+
_c = {};
|
|
1106
|
+
return [4, parseBody(output.body, context)];
|
|
1107
|
+
case 1:
|
|
1108
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1109
|
+
errorCode = "UnknownError";
|
|
1110
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
+
_b = errorCode;
|
|
1112
|
+
switch (_b) {
|
|
1113
|
+
case "AccessDeniedException": return [3, 2];
|
|
1114
|
+
case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
|
|
1115
|
+
case "UninitializedAccountException": return [3, 4];
|
|
1116
|
+
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
|
|
1117
|
+
case "ValidationException": return [3, 6];
|
|
1118
|
+
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
1119
|
+
}
|
|
1120
|
+
return [3, 8];
|
|
1121
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1122
|
+
case 3: throw _d.sent();
|
|
1123
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1124
|
+
case 5: throw _d.sent();
|
|
1125
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1126
|
+
case 7: throw _d.sent();
|
|
1127
|
+
case 8:
|
|
1128
|
+
parsedBody = parsedOutput.body;
|
|
1129
|
+
response = new __BaseException({
|
|
1130
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1131
|
+
$fault: "client",
|
|
1132
|
+
$metadata: deserializeMetadata(output),
|
|
1133
|
+
});
|
|
1134
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}); };
|
|
947
1138
|
export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
948
1139
|
var contents, data, _a, _b;
|
|
949
1140
|
return __generator(this, function (_c) {
|
|
@@ -1122,6 +1313,64 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1122
1313
|
}
|
|
1123
1314
|
});
|
|
1124
1315
|
}); };
|
|
1316
|
+
export var deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1317
|
+
var contents;
|
|
1318
|
+
return __generator(this, function (_a) {
|
|
1319
|
+
switch (_a.label) {
|
|
1320
|
+
case 0:
|
|
1321
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1322
|
+
return [2, deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError(output, context)];
|
|
1323
|
+
}
|
|
1324
|
+
contents = {
|
|
1325
|
+
$metadata: deserializeMetadata(output),
|
|
1326
|
+
};
|
|
1327
|
+
return [4, collectBody(output.body, context)];
|
|
1328
|
+
case 1:
|
|
1329
|
+
_a.sent();
|
|
1330
|
+
return [2, Promise.resolve(contents)];
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1333
|
+
}); };
|
|
1334
|
+
var deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1335
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1336
|
+
var _c;
|
|
1337
|
+
return __generator(this, function (_d) {
|
|
1338
|
+
switch (_d.label) {
|
|
1339
|
+
case 0:
|
|
1340
|
+
_a = [__assign({}, output)];
|
|
1341
|
+
_c = {};
|
|
1342
|
+
return [4, parseBody(output.body, context)];
|
|
1343
|
+
case 1:
|
|
1344
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1345
|
+
errorCode = "UnknownError";
|
|
1346
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
+
_b = errorCode;
|
|
1348
|
+
switch (_b) {
|
|
1349
|
+
case "ConflictException": return [3, 2];
|
|
1350
|
+
case "com.amazonaws.mgn#ConflictException": return [3, 2];
|
|
1351
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1352
|
+
case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
|
|
1353
|
+
case "UninitializedAccountException": return [3, 6];
|
|
1354
|
+
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
1355
|
+
}
|
|
1356
|
+
return [3, 8];
|
|
1357
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1358
|
+
case 3: throw _d.sent();
|
|
1359
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1360
|
+
case 5: throw _d.sent();
|
|
1361
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1362
|
+
case 7: throw _d.sent();
|
|
1363
|
+
case 8:
|
|
1364
|
+
parsedBody = parsedOutput.body;
|
|
1365
|
+
response = new __BaseException({
|
|
1366
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1367
|
+
$fault: "client",
|
|
1368
|
+
$metadata: deserializeMetadata(output),
|
|
1369
|
+
});
|
|
1370
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
}); };
|
|
1125
1374
|
export var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1126
1375
|
var contents;
|
|
1127
1376
|
return __generator(this, function (_a) {
|
|
@@ -1424,6 +1673,74 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1424
1673
|
}
|
|
1425
1674
|
});
|
|
1426
1675
|
}); };
|
|
1676
|
+
export var deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
+
var contents, data, _a, _b;
|
|
1678
|
+
return __generator(this, function (_c) {
|
|
1679
|
+
switch (_c.label) {
|
|
1680
|
+
case 0:
|
|
1681
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1682
|
+
return [2, deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError(output, context)];
|
|
1683
|
+
}
|
|
1684
|
+
contents = {
|
|
1685
|
+
$metadata: deserializeMetadata(output),
|
|
1686
|
+
items: undefined,
|
|
1687
|
+
nextToken: undefined,
|
|
1688
|
+
};
|
|
1689
|
+
_a = __expectNonNull;
|
|
1690
|
+
_b = __expectObject;
|
|
1691
|
+
return [4, parseBody(output.body, context)];
|
|
1692
|
+
case 1:
|
|
1693
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1694
|
+
if (data.items !== undefined && data.items !== null) {
|
|
1695
|
+
contents.items = deserializeAws_restJson1LaunchConfigurationTemplates(data.items, context);
|
|
1696
|
+
}
|
|
1697
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1698
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1699
|
+
}
|
|
1700
|
+
return [2, Promise.resolve(contents)];
|
|
1701
|
+
}
|
|
1702
|
+
});
|
|
1703
|
+
}); };
|
|
1704
|
+
var deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1705
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1706
|
+
var _c;
|
|
1707
|
+
return __generator(this, function (_d) {
|
|
1708
|
+
switch (_d.label) {
|
|
1709
|
+
case 0:
|
|
1710
|
+
_a = [__assign({}, output)];
|
|
1711
|
+
_c = {};
|
|
1712
|
+
return [4, parseBody(output.body, context)];
|
|
1713
|
+
case 1:
|
|
1714
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1715
|
+
errorCode = "UnknownError";
|
|
1716
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
+
_b = errorCode;
|
|
1718
|
+
switch (_b) {
|
|
1719
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1720
|
+
case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
|
|
1721
|
+
case "UninitializedAccountException": return [3, 4];
|
|
1722
|
+
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
|
|
1723
|
+
case "ValidationException": return [3, 6];
|
|
1724
|
+
case "com.amazonaws.mgn#ValidationException": return [3, 6];
|
|
1725
|
+
}
|
|
1726
|
+
return [3, 8];
|
|
1727
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1728
|
+
case 3: throw _d.sent();
|
|
1729
|
+
case 4: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
1730
|
+
case 5: throw _d.sent();
|
|
1731
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1732
|
+
case 7: throw _d.sent();
|
|
1733
|
+
case 8:
|
|
1734
|
+
parsedBody = parsedOutput.body;
|
|
1735
|
+
response = new __BaseException({
|
|
1736
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1737
|
+
$fault: "client",
|
|
1738
|
+
$metadata: deserializeMetadata(output),
|
|
1739
|
+
});
|
|
1740
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
}); };
|
|
1427
1744
|
export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1428
1745
|
var contents, data, _a, _b;
|
|
1429
1746
|
return __generator(this, function (_c) {
|
|
@@ -1845,6 +2162,7 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
1845
2162
|
launchDisposition: undefined,
|
|
1846
2163
|
licensing: undefined,
|
|
1847
2164
|
name: undefined,
|
|
2165
|
+
postLaunchActions: undefined,
|
|
1848
2166
|
sourceServerID: undefined,
|
|
1849
2167
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
1850
2168
|
};
|
|
@@ -1874,6 +2192,9 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
1874
2192
|
if (data.name !== undefined && data.name !== null) {
|
|
1875
2193
|
contents.name = __expectString(data.name);
|
|
1876
2194
|
}
|
|
2195
|
+
if (data.postLaunchActions !== undefined && data.postLaunchActions !== null) {
|
|
2196
|
+
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
2197
|
+
}
|
|
1877
2198
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1878
2199
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
1879
2200
|
}
|
|
@@ -2811,6 +3132,7 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
2811
3132
|
launchDisposition: undefined,
|
|
2812
3133
|
licensing: undefined,
|
|
2813
3134
|
name: undefined,
|
|
3135
|
+
postLaunchActions: undefined,
|
|
2814
3136
|
sourceServerID: undefined,
|
|
2815
3137
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
2816
3138
|
};
|
|
@@ -2840,6 +3162,9 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
2840
3162
|
if (data.name !== undefined && data.name !== null) {
|
|
2841
3163
|
contents.name = __expectString(data.name);
|
|
2842
3164
|
}
|
|
3165
|
+
if (data.postLaunchActions !== undefined && data.postLaunchActions !== null) {
|
|
3166
|
+
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
3167
|
+
}
|
|
2843
3168
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2844
3169
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
2845
3170
|
}
|
|
@@ -2894,6 +3219,86 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
|
|
|
2894
3219
|
}
|
|
2895
3220
|
});
|
|
2896
3221
|
}); };
|
|
3222
|
+
export var deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3223
|
+
var contents, data, _a, _b;
|
|
3224
|
+
return __generator(this, function (_c) {
|
|
3225
|
+
switch (_c.label) {
|
|
3226
|
+
case 0:
|
|
3227
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3228
|
+
return [2, deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError(output, context)];
|
|
3229
|
+
}
|
|
3230
|
+
contents = {
|
|
3231
|
+
$metadata: deserializeMetadata(output),
|
|
3232
|
+
arn: undefined,
|
|
3233
|
+
launchConfigurationTemplateID: undefined,
|
|
3234
|
+
postLaunchActions: undefined,
|
|
3235
|
+
tags: undefined,
|
|
3236
|
+
};
|
|
3237
|
+
_a = __expectNonNull;
|
|
3238
|
+
_b = __expectObject;
|
|
3239
|
+
return [4, parseBody(output.body, context)];
|
|
3240
|
+
case 1:
|
|
3241
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3242
|
+
if (data.arn !== undefined && data.arn !== null) {
|
|
3243
|
+
contents.arn = __expectString(data.arn);
|
|
3244
|
+
}
|
|
3245
|
+
if (data.launchConfigurationTemplateID !== undefined && data.launchConfigurationTemplateID !== null) {
|
|
3246
|
+
contents.launchConfigurationTemplateID = __expectString(data.launchConfigurationTemplateID);
|
|
3247
|
+
}
|
|
3248
|
+
if (data.postLaunchActions !== undefined && data.postLaunchActions !== null) {
|
|
3249
|
+
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
3250
|
+
}
|
|
3251
|
+
if (data.tags !== undefined && data.tags !== null) {
|
|
3252
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3253
|
+
}
|
|
3254
|
+
return [2, Promise.resolve(contents)];
|
|
3255
|
+
}
|
|
3256
|
+
});
|
|
3257
|
+
}); };
|
|
3258
|
+
var deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3259
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3260
|
+
var _c;
|
|
3261
|
+
return __generator(this, function (_d) {
|
|
3262
|
+
switch (_d.label) {
|
|
3263
|
+
case 0:
|
|
3264
|
+
_a = [__assign({}, output)];
|
|
3265
|
+
_c = {};
|
|
3266
|
+
return [4, parseBody(output.body, context)];
|
|
3267
|
+
case 1:
|
|
3268
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3269
|
+
errorCode = "UnknownError";
|
|
3270
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3271
|
+
_b = errorCode;
|
|
3272
|
+
switch (_b) {
|
|
3273
|
+
case "AccessDeniedException": return [3, 2];
|
|
3274
|
+
case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
|
|
3275
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3276
|
+
case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
|
|
3277
|
+
case "UninitializedAccountException": return [3, 6];
|
|
3278
|
+
case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
|
|
3279
|
+
case "ValidationException": return [3, 8];
|
|
3280
|
+
case "com.amazonaws.mgn#ValidationException": return [3, 8];
|
|
3281
|
+
}
|
|
3282
|
+
return [3, 10];
|
|
3283
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3284
|
+
case 3: throw _d.sent();
|
|
3285
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3286
|
+
case 5: throw _d.sent();
|
|
3287
|
+
case 6: return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
|
|
3288
|
+
case 7: throw _d.sent();
|
|
3289
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3290
|
+
case 9: throw _d.sent();
|
|
3291
|
+
case 10:
|
|
3292
|
+
parsedBody = parsedOutput.body;
|
|
3293
|
+
response = new __BaseException({
|
|
3294
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3295
|
+
$fault: "client",
|
|
3296
|
+
$metadata: deserializeMetadata(output),
|
|
3297
|
+
});
|
|
3298
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3299
|
+
}
|
|
3300
|
+
});
|
|
3301
|
+
}); };
|
|
2897
3302
|
export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2898
3303
|
var contents, data, _a, _b;
|
|
2899
3304
|
return __generator(this, function (_c) {
|
|
@@ -3273,6 +3678,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3273
3678
|
if (data.code !== undefined && data.code !== null) {
|
|
3274
3679
|
contents.code = __expectString(data.code);
|
|
3275
3680
|
}
|
|
3681
|
+
if (data.errors !== undefined && data.errors !== null) {
|
|
3682
|
+
contents.errors = deserializeAws_restJson1ConflictExceptionErrors(data.errors, context);
|
|
3683
|
+
}
|
|
3276
3684
|
if (data.message !== undefined && data.message !== null) {
|
|
3277
3685
|
contents.message = __expectString(data.message);
|
|
3278
3686
|
}
|
|
@@ -3450,6 +3858,16 @@ var serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = function (inp
|
|
|
3450
3858
|
return entry;
|
|
3451
3859
|
});
|
|
3452
3860
|
};
|
|
3861
|
+
var serializeAws_restJson1LaunchConfigurationTemplateIDs = function (input, context) {
|
|
3862
|
+
return input
|
|
3863
|
+
.filter(function (e) { return e != null; })
|
|
3864
|
+
.map(function (entry) {
|
|
3865
|
+
if (entry === null) {
|
|
3866
|
+
return null;
|
|
3867
|
+
}
|
|
3868
|
+
return entry;
|
|
3869
|
+
});
|
|
3870
|
+
};
|
|
3453
3871
|
var serializeAws_restJson1Licensing = function (input, context) {
|
|
3454
3872
|
return __assign({}, (input.osByol !== undefined && input.osByol !== null && { osByol: input.osByol }));
|
|
3455
3873
|
};
|
|
@@ -3463,6 +3881,12 @@ var serializeAws_restJson1LifeCycleStates = function (input, context) {
|
|
|
3463
3881
|
return entry;
|
|
3464
3882
|
});
|
|
3465
3883
|
};
|
|
3884
|
+
var serializeAws_restJson1PostLaunchActions = function (input, context) {
|
|
3885
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.cloudWatchLogGroupName !== undefined &&
|
|
3886
|
+
input.cloudWatchLogGroupName !== null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName })), (input.deployment !== undefined && input.deployment !== null && { deployment: input.deployment })), (input.s3LogBucket !== undefined && input.s3LogBucket !== null && { s3LogBucket: input.s3LogBucket })), (input.s3OutputKeyPrefix !== undefined &&
|
|
3887
|
+
input.s3OutputKeyPrefix !== null && { s3OutputKeyPrefix: input.s3OutputKeyPrefix })), (input.ssmDocuments !== undefined &&
|
|
3888
|
+
input.ssmDocuments !== null && { ssmDocuments: serializeAws_restJson1SsmDocuments(input.ssmDocuments, context) }));
|
|
3889
|
+
};
|
|
3466
3890
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (input, context) {
|
|
3467
3891
|
return __assign(__assign(__assign(__assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk })), (input.stagingDiskType !== undefined &&
|
|
3468
3892
|
input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType })), (input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }));
|
|
@@ -3507,6 +3931,48 @@ var serializeAws_restJson1ReplicationTypes = function (input, context) {
|
|
|
3507
3931
|
return entry;
|
|
3508
3932
|
});
|
|
3509
3933
|
};
|
|
3934
|
+
var serializeAws_restJson1SsmDocument = function (input, context) {
|
|
3935
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.actionName !== undefined && input.actionName !== null && { actionName: input.actionName })), (input.mustSucceedForCutover !== undefined &&
|
|
3936
|
+
input.mustSucceedForCutover !== null && { mustSucceedForCutover: input.mustSucceedForCutover })), (input.parameters !== undefined &&
|
|
3937
|
+
input.parameters !== null && {
|
|
3938
|
+
parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
|
|
3939
|
+
})), (input.ssmDocumentName !== undefined &&
|
|
3940
|
+
input.ssmDocumentName !== null && { ssmDocumentName: input.ssmDocumentName })), (input.timeoutSeconds !== undefined &&
|
|
3941
|
+
input.timeoutSeconds !== null && { timeoutSeconds: input.timeoutSeconds }));
|
|
3942
|
+
};
|
|
3943
|
+
var serializeAws_restJson1SsmDocumentParameters = function (input, context) {
|
|
3944
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3945
|
+
var _b;
|
|
3946
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3947
|
+
if (value === null) {
|
|
3948
|
+
return acc;
|
|
3949
|
+
}
|
|
3950
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1SsmParameterStoreParameters(value, context), _b));
|
|
3951
|
+
}, {});
|
|
3952
|
+
};
|
|
3953
|
+
var serializeAws_restJson1SsmDocuments = function (input, context) {
|
|
3954
|
+
return input
|
|
3955
|
+
.filter(function (e) { return e != null; })
|
|
3956
|
+
.map(function (entry) {
|
|
3957
|
+
if (entry === null) {
|
|
3958
|
+
return null;
|
|
3959
|
+
}
|
|
3960
|
+
return serializeAws_restJson1SsmDocument(entry, context);
|
|
3961
|
+
});
|
|
3962
|
+
};
|
|
3963
|
+
var serializeAws_restJson1SsmParameterStoreParameter = function (input, context) {
|
|
3964
|
+
return __assign(__assign({}, (input.parameterName !== undefined && input.parameterName !== null && { parameterName: input.parameterName })), (input.parameterType !== undefined && input.parameterType !== null && { parameterType: input.parameterType }));
|
|
3965
|
+
};
|
|
3966
|
+
var serializeAws_restJson1SsmParameterStoreParameters = function (input, context) {
|
|
3967
|
+
return input
|
|
3968
|
+
.filter(function (e) { return e != null; })
|
|
3969
|
+
.map(function (entry) {
|
|
3970
|
+
if (entry === null) {
|
|
3971
|
+
return null;
|
|
3972
|
+
}
|
|
3973
|
+
return serializeAws_restJson1SsmParameterStoreParameter(entry, context);
|
|
3974
|
+
});
|
|
3975
|
+
};
|
|
3510
3976
|
var serializeAws_restJson1StartCutoverRequestSourceServerIDs = function (input, context) {
|
|
3511
3977
|
return input
|
|
3512
3978
|
.filter(function (e) { return e != null; })
|
|
@@ -3547,6 +4013,17 @@ var serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = funct
|
|
|
3547
4013
|
return entry;
|
|
3548
4014
|
});
|
|
3549
4015
|
};
|
|
4016
|
+
var deserializeAws_restJson1ConflictExceptionErrors = function (output, context) {
|
|
4017
|
+
var retVal = (output || [])
|
|
4018
|
+
.filter(function (e) { return e != null; })
|
|
4019
|
+
.map(function (entry) {
|
|
4020
|
+
if (entry === null) {
|
|
4021
|
+
return null;
|
|
4022
|
+
}
|
|
4023
|
+
return deserializeAws_restJson1ErrorDetails(entry, context);
|
|
4024
|
+
});
|
|
4025
|
+
return retVal;
|
|
4026
|
+
};
|
|
3550
4027
|
var deserializeAws_restJson1CPU = function (output, context) {
|
|
3551
4028
|
return {
|
|
3552
4029
|
cores: __expectLong(output.cores),
|
|
@@ -3650,6 +4127,14 @@ var deserializeAws_restJson1Disks = function (output, context) {
|
|
|
3650
4127
|
});
|
|
3651
4128
|
return retVal;
|
|
3652
4129
|
};
|
|
4130
|
+
var deserializeAws_restJson1ErrorDetails = function (output, context) {
|
|
4131
|
+
return {
|
|
4132
|
+
code: __expectString(output.code),
|
|
4133
|
+
message: __expectString(output.message),
|
|
4134
|
+
resourceId: __expectString(output.resourceId),
|
|
4135
|
+
resourceType: __expectString(output.resourceType),
|
|
4136
|
+
};
|
|
4137
|
+
};
|
|
3653
4138
|
var deserializeAws_restJson1IdentificationHints = function (output, context) {
|
|
3654
4139
|
return {
|
|
3655
4140
|
awsInstanceID: __expectString(output.awsInstanceID),
|
|
@@ -3715,6 +4200,17 @@ var deserializeAws_restJson1JobLogs = function (output, context) {
|
|
|
3715
4200
|
});
|
|
3716
4201
|
return retVal;
|
|
3717
4202
|
};
|
|
4203
|
+
var deserializeAws_restJson1JobPostLaunchActionsLaunchStatus = function (output, context) {
|
|
4204
|
+
return {
|
|
4205
|
+
executionID: __expectString(output.executionID),
|
|
4206
|
+
executionStatus: __expectString(output.executionStatus),
|
|
4207
|
+
failureReason: __expectString(output.failureReason),
|
|
4208
|
+
ssmDocument: output.ssmDocument !== undefined && output.ssmDocument !== null
|
|
4209
|
+
? deserializeAws_restJson1SsmDocument(output.ssmDocument, context)
|
|
4210
|
+
: undefined,
|
|
4211
|
+
ssmDocumentType: __expectString(output.ssmDocumentType),
|
|
4212
|
+
};
|
|
4213
|
+
};
|
|
3718
4214
|
var deserializeAws_restJson1JobsList = function (output, context) {
|
|
3719
4215
|
var retVal = (output || [])
|
|
3720
4216
|
.filter(function (e) { return e != null; })
|
|
@@ -3726,6 +4222,29 @@ var deserializeAws_restJson1JobsList = function (output, context) {
|
|
|
3726
4222
|
});
|
|
3727
4223
|
return retVal;
|
|
3728
4224
|
};
|
|
4225
|
+
var deserializeAws_restJson1LaunchConfigurationTemplate = function (output, context) {
|
|
4226
|
+
return {
|
|
4227
|
+
arn: __expectString(output.arn),
|
|
4228
|
+
launchConfigurationTemplateID: __expectString(output.launchConfigurationTemplateID),
|
|
4229
|
+
postLaunchActions: output.postLaunchActions !== undefined && output.postLaunchActions !== null
|
|
4230
|
+
? deserializeAws_restJson1PostLaunchActions(output.postLaunchActions, context)
|
|
4231
|
+
: undefined,
|
|
4232
|
+
tags: output.tags !== undefined && output.tags !== null
|
|
4233
|
+
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4234
|
+
: undefined,
|
|
4235
|
+
};
|
|
4236
|
+
};
|
|
4237
|
+
var deserializeAws_restJson1LaunchConfigurationTemplates = function (output, context) {
|
|
4238
|
+
var retVal = (output || [])
|
|
4239
|
+
.filter(function (e) { return e != null; })
|
|
4240
|
+
.map(function (entry) {
|
|
4241
|
+
if (entry === null) {
|
|
4242
|
+
return null;
|
|
4243
|
+
}
|
|
4244
|
+
return deserializeAws_restJson1LaunchConfigurationTemplate(entry, context);
|
|
4245
|
+
});
|
|
4246
|
+
return retVal;
|
|
4247
|
+
};
|
|
3729
4248
|
var deserializeAws_restJson1LaunchedInstance = function (output, context) {
|
|
3730
4249
|
return {
|
|
3731
4250
|
ec2InstanceID: __expectString(output.ec2InstanceID),
|
|
@@ -3839,6 +4358,10 @@ var deserializeAws_restJson1OS = function (output, context) {
|
|
|
3839
4358
|
var deserializeAws_restJson1ParticipatingServer = function (output, context) {
|
|
3840
4359
|
return {
|
|
3841
4360
|
launchStatus: __expectString(output.launchStatus),
|
|
4361
|
+
launchedEc2InstanceID: __expectString(output.launchedEc2InstanceID),
|
|
4362
|
+
postLaunchActionsStatus: output.postLaunchActionsStatus !== undefined && output.postLaunchActionsStatus !== null
|
|
4363
|
+
? deserializeAws_restJson1PostLaunchActionsStatus(output.postLaunchActionsStatus, context)
|
|
4364
|
+
: undefined,
|
|
3842
4365
|
sourceServerID: __expectString(output.sourceServerID),
|
|
3843
4366
|
};
|
|
3844
4367
|
};
|
|
@@ -3853,6 +4376,36 @@ var deserializeAws_restJson1ParticipatingServers = function (output, context) {
|
|
|
3853
4376
|
});
|
|
3854
4377
|
return retVal;
|
|
3855
4378
|
};
|
|
4379
|
+
var deserializeAws_restJson1PostLaunchActions = function (output, context) {
|
|
4380
|
+
return {
|
|
4381
|
+
cloudWatchLogGroupName: __expectString(output.cloudWatchLogGroupName),
|
|
4382
|
+
deployment: __expectString(output.deployment),
|
|
4383
|
+
s3LogBucket: __expectString(output.s3LogBucket),
|
|
4384
|
+
s3OutputKeyPrefix: __expectString(output.s3OutputKeyPrefix),
|
|
4385
|
+
ssmDocuments: output.ssmDocuments !== undefined && output.ssmDocuments !== null
|
|
4386
|
+
? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context)
|
|
4387
|
+
: undefined,
|
|
4388
|
+
};
|
|
4389
|
+
};
|
|
4390
|
+
var deserializeAws_restJson1PostLaunchActionsLaunchStatusList = function (output, context) {
|
|
4391
|
+
var retVal = (output || [])
|
|
4392
|
+
.filter(function (e) { return e != null; })
|
|
4393
|
+
.map(function (entry) {
|
|
4394
|
+
if (entry === null) {
|
|
4395
|
+
return null;
|
|
4396
|
+
}
|
|
4397
|
+
return deserializeAws_restJson1JobPostLaunchActionsLaunchStatus(entry, context);
|
|
4398
|
+
});
|
|
4399
|
+
return retVal;
|
|
4400
|
+
};
|
|
4401
|
+
var deserializeAws_restJson1PostLaunchActionsStatus = function (output, context) {
|
|
4402
|
+
return {
|
|
4403
|
+
postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList !== undefined && output.postLaunchActionsLaunchStatusList !== null
|
|
4404
|
+
? deserializeAws_restJson1PostLaunchActionsLaunchStatusList(output.postLaunchActionsLaunchStatusList, context)
|
|
4405
|
+
: undefined,
|
|
4406
|
+
ssmAgentDiscoveryDatetime: __expectString(output.ssmAgentDiscoveryDatetime),
|
|
4407
|
+
};
|
|
4408
|
+
};
|
|
3856
4409
|
var deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (output, context) {
|
|
3857
4410
|
return {
|
|
3858
4411
|
deviceName: __expectString(output.deviceName),
|
|
@@ -3975,6 +4528,55 @@ var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
|
3975
4528
|
});
|
|
3976
4529
|
return retVal;
|
|
3977
4530
|
};
|
|
4531
|
+
var deserializeAws_restJson1SsmDocument = function (output, context) {
|
|
4532
|
+
return {
|
|
4533
|
+
actionName: __expectString(output.actionName),
|
|
4534
|
+
mustSucceedForCutover: __expectBoolean(output.mustSucceedForCutover),
|
|
4535
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
4536
|
+
? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context)
|
|
4537
|
+
: undefined,
|
|
4538
|
+
ssmDocumentName: __expectString(output.ssmDocumentName),
|
|
4539
|
+
timeoutSeconds: __expectInt32(output.timeoutSeconds),
|
|
4540
|
+
};
|
|
4541
|
+
};
|
|
4542
|
+
var deserializeAws_restJson1SsmDocumentParameters = function (output, context) {
|
|
4543
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
4544
|
+
var _b;
|
|
4545
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
4546
|
+
if (value === null) {
|
|
4547
|
+
return acc;
|
|
4548
|
+
}
|
|
4549
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1SsmParameterStoreParameters(value, context), _b));
|
|
4550
|
+
}, {});
|
|
4551
|
+
};
|
|
4552
|
+
var deserializeAws_restJson1SsmDocuments = function (output, context) {
|
|
4553
|
+
var retVal = (output || [])
|
|
4554
|
+
.filter(function (e) { return e != null; })
|
|
4555
|
+
.map(function (entry) {
|
|
4556
|
+
if (entry === null) {
|
|
4557
|
+
return null;
|
|
4558
|
+
}
|
|
4559
|
+
return deserializeAws_restJson1SsmDocument(entry, context);
|
|
4560
|
+
});
|
|
4561
|
+
return retVal;
|
|
4562
|
+
};
|
|
4563
|
+
var deserializeAws_restJson1SsmParameterStoreParameter = function (output, context) {
|
|
4564
|
+
return {
|
|
4565
|
+
parameterName: __expectString(output.parameterName),
|
|
4566
|
+
parameterType: __expectString(output.parameterType),
|
|
4567
|
+
};
|
|
4568
|
+
};
|
|
4569
|
+
var deserializeAws_restJson1SsmParameterStoreParameters = function (output, context) {
|
|
4570
|
+
var retVal = (output || [])
|
|
4571
|
+
.filter(function (e) { return e != null; })
|
|
4572
|
+
.map(function (entry) {
|
|
4573
|
+
if (entry === null) {
|
|
4574
|
+
return null;
|
|
4575
|
+
}
|
|
4576
|
+
return deserializeAws_restJson1SsmParameterStoreParameter(entry, context);
|
|
4577
|
+
});
|
|
4578
|
+
return retVal;
|
|
4579
|
+
};
|
|
3978
4580
|
var deserializeAws_restJson1TagsMap = function (output, context) {
|
|
3979
4581
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
3980
4582
|
var _b;
|