@aws-sdk/client-mgn 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +330 -410
- package/dist-es/protocols/Aws_restJson1.js +275 -355
- package/package.json +26 -26
|
@@ -14,12 +14,10 @@ const serializeAws_restJson1ChangeServerLifeCycleStateCommand = async (input, co
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ChangeServerLifeCycleState";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.lifeCycle
|
|
18
|
-
input.lifeCycle !== null && {
|
|
17
|
+
...(input.lifeCycle != null && {
|
|
19
18
|
lifeCycle: serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle(input.lifeCycle, context),
|
|
20
19
|
}),
|
|
21
|
-
...(input.sourceServerID
|
|
22
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
20
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
23
21
|
});
|
|
24
22
|
return new protocol_http_1.HttpRequest({
|
|
25
23
|
protocol,
|
|
@@ -40,12 +38,10 @@ const serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = async (in
|
|
|
40
38
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLaunchConfigurationTemplate";
|
|
41
39
|
let body;
|
|
42
40
|
body = JSON.stringify({
|
|
43
|
-
...(input.postLaunchActions
|
|
44
|
-
input.postLaunchActions !== null && {
|
|
41
|
+
...(input.postLaunchActions != null && {
|
|
45
42
|
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
46
43
|
}),
|
|
47
|
-
...(input.tags
|
|
48
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
44
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
49
45
|
});
|
|
50
46
|
return new protocol_http_1.HttpRequest({
|
|
51
47
|
protocol,
|
|
@@ -66,39 +62,29 @@ const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = asyn
|
|
|
66
62
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate";
|
|
67
63
|
let body;
|
|
68
64
|
body = JSON.stringify({
|
|
69
|
-
...(input.associateDefaultSecurityGroup
|
|
70
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
65
|
+
...(input.associateDefaultSecurityGroup != null && {
|
|
71
66
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
72
67
|
}),
|
|
73
|
-
...(input.bandwidthThrottling
|
|
74
|
-
|
|
75
|
-
...(input.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
...(input.
|
|
80
|
-
|
|
81
|
-
...(input.
|
|
82
|
-
...(input.ebsEncryptionKeyArn !== undefined &&
|
|
83
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
84
|
-
...(input.replicationServerInstanceType !== undefined &&
|
|
85
|
-
input.replicationServerInstanceType !== null && {
|
|
68
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
69
|
+
...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
|
|
70
|
+
...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
|
|
71
|
+
...(input.defaultLargeStagingDiskType != null && {
|
|
72
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
73
|
+
}),
|
|
74
|
+
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
75
|
+
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
76
|
+
...(input.replicationServerInstanceType != null && {
|
|
86
77
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
87
78
|
}),
|
|
88
|
-
...(input.replicationServersSecurityGroupsIDs
|
|
89
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
79
|
+
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
90
80
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
91
81
|
}),
|
|
92
|
-
...(input.stagingAreaSubnetId
|
|
93
|
-
|
|
94
|
-
...(input.stagingAreaTags !== undefined &&
|
|
95
|
-
input.stagingAreaTags !== null && {
|
|
82
|
+
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
83
|
+
...(input.stagingAreaTags != null && {
|
|
96
84
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
97
85
|
}),
|
|
98
|
-
...(input.tags
|
|
99
|
-
|
|
100
|
-
...(input.useDedicatedReplicationServer !== undefined &&
|
|
101
|
-
input.useDedicatedReplicationServer !== null && {
|
|
86
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
87
|
+
...(input.useDedicatedReplicationServer != null && {
|
|
102
88
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
103
89
|
}),
|
|
104
90
|
});
|
|
@@ -121,7 +107,7 @@ const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
|
|
|
121
107
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob";
|
|
122
108
|
let body;
|
|
123
109
|
body = JSON.stringify({
|
|
124
|
-
...(input.jobID
|
|
110
|
+
...(input.jobID != null && { jobID: input.jobID }),
|
|
125
111
|
});
|
|
126
112
|
return new protocol_http_1.HttpRequest({
|
|
127
113
|
protocol,
|
|
@@ -142,8 +128,7 @@ const serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = async (in
|
|
|
142
128
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchConfigurationTemplate";
|
|
143
129
|
let body;
|
|
144
130
|
body = JSON.stringify({
|
|
145
|
-
...(input.launchConfigurationTemplateID
|
|
146
|
-
input.launchConfigurationTemplateID !== null && {
|
|
131
|
+
...(input.launchConfigurationTemplateID != null && {
|
|
147
132
|
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
148
133
|
}),
|
|
149
134
|
});
|
|
@@ -166,8 +151,7 @@ const serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = asyn
|
|
|
166
151
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate";
|
|
167
152
|
let body;
|
|
168
153
|
body = JSON.stringify({
|
|
169
|
-
...(input.replicationConfigurationTemplateID
|
|
170
|
-
input.replicationConfigurationTemplateID !== null && {
|
|
154
|
+
...(input.replicationConfigurationTemplateID != null && {
|
|
171
155
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
172
156
|
}),
|
|
173
157
|
});
|
|
@@ -190,8 +174,7 @@ const serializeAws_restJson1DeleteSourceServerCommand = async (input, context) =
|
|
|
190
174
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer";
|
|
191
175
|
let body;
|
|
192
176
|
body = JSON.stringify({
|
|
193
|
-
...(input.sourceServerID
|
|
194
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
177
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
195
178
|
});
|
|
196
179
|
return new protocol_http_1.HttpRequest({
|
|
197
180
|
protocol,
|
|
@@ -212,8 +195,7 @@ const serializeAws_restJson1DeleteVcenterClientCommand = async (input, context)
|
|
|
212
195
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteVcenterClient";
|
|
213
196
|
let body;
|
|
214
197
|
body = JSON.stringify({
|
|
215
|
-
...(input.vcenterClientID
|
|
216
|
-
input.vcenterClientID !== null && { vcenterClientID: input.vcenterClientID }),
|
|
198
|
+
...(input.vcenterClientID != null && { vcenterClientID: input.vcenterClientID }),
|
|
217
199
|
});
|
|
218
200
|
return new protocol_http_1.HttpRequest({
|
|
219
201
|
protocol,
|
|
@@ -234,9 +216,9 @@ const serializeAws_restJson1DescribeJobLogItemsCommand = async (input, context)
|
|
|
234
216
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems";
|
|
235
217
|
let body;
|
|
236
218
|
body = JSON.stringify({
|
|
237
|
-
...(input.jobID
|
|
238
|
-
...(input.maxResults
|
|
239
|
-
...(input.nextToken
|
|
219
|
+
...(input.jobID != null && { jobID: input.jobID }),
|
|
220
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
221
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
240
222
|
});
|
|
241
223
|
return new protocol_http_1.HttpRequest({
|
|
242
224
|
protocol,
|
|
@@ -257,10 +239,9 @@ const serializeAws_restJson1DescribeJobsCommand = async (input, context) => {
|
|
|
257
239
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
|
|
258
240
|
let body;
|
|
259
241
|
body = JSON.stringify({
|
|
260
|
-
...(input.filters
|
|
261
|
-
|
|
262
|
-
...(input.
|
|
263
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
242
|
+
...(input.filters != null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) }),
|
|
243
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
244
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
264
245
|
});
|
|
265
246
|
return new protocol_http_1.HttpRequest({
|
|
266
247
|
protocol,
|
|
@@ -281,12 +262,11 @@ const serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = async
|
|
|
281
262
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeLaunchConfigurationTemplates";
|
|
282
263
|
let body;
|
|
283
264
|
body = JSON.stringify({
|
|
284
|
-
...(input.launchConfigurationTemplateIDs
|
|
285
|
-
input.launchConfigurationTemplateIDs !== null && {
|
|
265
|
+
...(input.launchConfigurationTemplateIDs != null && {
|
|
286
266
|
launchConfigurationTemplateIDs: serializeAws_restJson1LaunchConfigurationTemplateIDs(input.launchConfigurationTemplateIDs, context),
|
|
287
267
|
}),
|
|
288
|
-
...(input.maxResults
|
|
289
|
-
...(input.nextToken
|
|
268
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
269
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
290
270
|
});
|
|
291
271
|
return new protocol_http_1.HttpRequest({
|
|
292
272
|
protocol,
|
|
@@ -308,10 +288,9 @@ const serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = a
|
|
|
308
288
|
"/DescribeReplicationConfigurationTemplates";
|
|
309
289
|
let body;
|
|
310
290
|
body = JSON.stringify({
|
|
311
|
-
...(input.maxResults
|
|
312
|
-
...(input.nextToken
|
|
313
|
-
...(input.replicationConfigurationTemplateIDs
|
|
314
|
-
input.replicationConfigurationTemplateIDs !== null && {
|
|
291
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
292
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
293
|
+
...(input.replicationConfigurationTemplateIDs != null && {
|
|
315
294
|
replicationConfigurationTemplateIDs: serializeAws_restJson1ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
|
|
316
295
|
}),
|
|
317
296
|
});
|
|
@@ -334,12 +313,11 @@ const serializeAws_restJson1DescribeSourceServersCommand = async (input, context
|
|
|
334
313
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
|
|
335
314
|
let body;
|
|
336
315
|
body = JSON.stringify({
|
|
337
|
-
...(input.filters
|
|
338
|
-
input.filters !== null && {
|
|
316
|
+
...(input.filters != null && {
|
|
339
317
|
filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
|
|
340
318
|
}),
|
|
341
|
-
...(input.maxResults
|
|
342
|
-
...(input.nextToken
|
|
319
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
320
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
343
321
|
});
|
|
344
322
|
return new protocol_http_1.HttpRequest({
|
|
345
323
|
protocol,
|
|
@@ -381,8 +359,7 @@ const serializeAws_restJson1DisconnectFromServiceCommand = async (input, context
|
|
|
381
359
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectFromService";
|
|
382
360
|
let body;
|
|
383
361
|
body = JSON.stringify({
|
|
384
|
-
...(input.sourceServerID
|
|
385
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
362
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
386
363
|
});
|
|
387
364
|
return new protocol_http_1.HttpRequest({
|
|
388
365
|
protocol,
|
|
@@ -403,8 +380,7 @@ const serializeAws_restJson1FinalizeCutoverCommand = async (input, context) => {
|
|
|
403
380
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/FinalizeCutover";
|
|
404
381
|
let body;
|
|
405
382
|
body = JSON.stringify({
|
|
406
|
-
...(input.sourceServerID
|
|
407
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
383
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
408
384
|
});
|
|
409
385
|
return new protocol_http_1.HttpRequest({
|
|
410
386
|
protocol,
|
|
@@ -425,8 +401,7 @@ const serializeAws_restJson1GetLaunchConfigurationCommand = async (input, contex
|
|
|
425
401
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration";
|
|
426
402
|
let body;
|
|
427
403
|
body = JSON.stringify({
|
|
428
|
-
...(input.sourceServerID
|
|
429
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
404
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
430
405
|
});
|
|
431
406
|
return new protocol_http_1.HttpRequest({
|
|
432
407
|
protocol,
|
|
@@ -447,8 +422,7 @@ const serializeAws_restJson1GetReplicationConfigurationCommand = async (input, c
|
|
|
447
422
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration";
|
|
448
423
|
let body;
|
|
449
424
|
body = JSON.stringify({
|
|
450
|
-
...(input.sourceServerID
|
|
451
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
425
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
452
426
|
});
|
|
453
427
|
return new protocol_http_1.HttpRequest({
|
|
454
428
|
protocol,
|
|
@@ -514,8 +488,7 @@ const serializeAws_restJson1MarkAsArchivedCommand = async (input, context) => {
|
|
|
514
488
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/MarkAsArchived";
|
|
515
489
|
let body;
|
|
516
490
|
body = JSON.stringify({
|
|
517
|
-
...(input.sourceServerID
|
|
518
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
491
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
519
492
|
});
|
|
520
493
|
return new protocol_http_1.HttpRequest({
|
|
521
494
|
protocol,
|
|
@@ -536,8 +509,7 @@ const serializeAws_restJson1RetryDataReplicationCommand = async (input, context)
|
|
|
536
509
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
|
|
537
510
|
let body;
|
|
538
511
|
body = JSON.stringify({
|
|
539
|
-
...(input.sourceServerID
|
|
540
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
512
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
541
513
|
});
|
|
542
514
|
return new protocol_http_1.HttpRequest({
|
|
543
515
|
protocol,
|
|
@@ -558,12 +530,10 @@ const serializeAws_restJson1StartCutoverCommand = async (input, context) => {
|
|
|
558
530
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartCutover";
|
|
559
531
|
let body;
|
|
560
532
|
body = JSON.stringify({
|
|
561
|
-
...(input.sourceServerIDs
|
|
562
|
-
input.sourceServerIDs !== null && {
|
|
533
|
+
...(input.sourceServerIDs != null && {
|
|
563
534
|
sourceServerIDs: serializeAws_restJson1StartCutoverRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
564
535
|
}),
|
|
565
|
-
...(input.tags
|
|
566
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
536
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
567
537
|
});
|
|
568
538
|
return new protocol_http_1.HttpRequest({
|
|
569
539
|
protocol,
|
|
@@ -584,8 +554,7 @@ const serializeAws_restJson1StartReplicationCommand = async (input, context) =>
|
|
|
584
554
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication";
|
|
585
555
|
let body;
|
|
586
556
|
body = JSON.stringify({
|
|
587
|
-
...(input.sourceServerID
|
|
588
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
557
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
589
558
|
});
|
|
590
559
|
return new protocol_http_1.HttpRequest({
|
|
591
560
|
protocol,
|
|
@@ -606,12 +575,10 @@ const serializeAws_restJson1StartTestCommand = async (input, context) => {
|
|
|
606
575
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartTest";
|
|
607
576
|
let body;
|
|
608
577
|
body = JSON.stringify({
|
|
609
|
-
...(input.sourceServerIDs
|
|
610
|
-
input.sourceServerIDs !== null && {
|
|
578
|
+
...(input.sourceServerIDs != null && {
|
|
611
579
|
sourceServerIDs: serializeAws_restJson1StartTestRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
612
580
|
}),
|
|
613
|
-
...(input.tags
|
|
614
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
581
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
615
582
|
});
|
|
616
583
|
return new protocol_http_1.HttpRequest({
|
|
617
584
|
protocol,
|
|
@@ -642,8 +609,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
642
609
|
}
|
|
643
610
|
let body;
|
|
644
611
|
body = JSON.stringify({
|
|
645
|
-
...(input.tags
|
|
646
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
612
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
647
613
|
});
|
|
648
614
|
return new protocol_http_1.HttpRequest({
|
|
649
615
|
protocol,
|
|
@@ -664,12 +630,10 @@ const serializeAws_restJson1TerminateTargetInstancesCommand = async (input, cont
|
|
|
664
630
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateTargetInstances";
|
|
665
631
|
let body;
|
|
666
632
|
body = JSON.stringify({
|
|
667
|
-
...(input.sourceServerIDs
|
|
668
|
-
input.sourceServerIDs !== null && {
|
|
633
|
+
...(input.sourceServerIDs != null && {
|
|
669
634
|
sourceServerIDs: serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
670
635
|
}),
|
|
671
|
-
...(input.tags
|
|
672
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
636
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
673
637
|
});
|
|
674
638
|
return new protocol_http_1.HttpRequest({
|
|
675
639
|
protocol,
|
|
@@ -720,22 +684,17 @@ const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (input, con
|
|
|
720
684
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
|
|
721
685
|
let body;
|
|
722
686
|
body = JSON.stringify({
|
|
723
|
-
...(input.bootMode
|
|
724
|
-
...(input.copyPrivateIp
|
|
725
|
-
...(input.copyTags
|
|
726
|
-
...(input.launchDisposition
|
|
727
|
-
|
|
728
|
-
...(input.
|
|
729
|
-
|
|
730
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
731
|
-
...(input.postLaunchActions !== undefined &&
|
|
732
|
-
input.postLaunchActions !== null && {
|
|
687
|
+
...(input.bootMode != null && { bootMode: input.bootMode }),
|
|
688
|
+
...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
|
|
689
|
+
...(input.copyTags != null && { copyTags: input.copyTags }),
|
|
690
|
+
...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
|
|
691
|
+
...(input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
|
|
692
|
+
...(input.name != null && { name: input.name }),
|
|
693
|
+
...(input.postLaunchActions != null && {
|
|
733
694
|
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
734
695
|
}),
|
|
735
|
-
...(input.sourceServerID
|
|
736
|
-
|
|
737
|
-
...(input.targetInstanceTypeRightSizingMethod !== undefined &&
|
|
738
|
-
input.targetInstanceTypeRightSizingMethod !== null && {
|
|
696
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
697
|
+
...(input.targetInstanceTypeRightSizingMethod != null && {
|
|
739
698
|
targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
|
|
740
699
|
}),
|
|
741
700
|
});
|
|
@@ -758,12 +717,10 @@ const serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = async (in
|
|
|
758
717
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfigurationTemplate";
|
|
759
718
|
let body;
|
|
760
719
|
body = JSON.stringify({
|
|
761
|
-
...(input.launchConfigurationTemplateID
|
|
762
|
-
input.launchConfigurationTemplateID !== null && {
|
|
720
|
+
...(input.launchConfigurationTemplateID != null && {
|
|
763
721
|
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
764
722
|
}),
|
|
765
|
-
...(input.postLaunchActions
|
|
766
|
-
input.postLaunchActions !== null && {
|
|
723
|
+
...(input.postLaunchActions != null && {
|
|
767
724
|
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
768
725
|
}),
|
|
769
726
|
});
|
|
@@ -786,44 +743,33 @@ const serializeAws_restJson1UpdateReplicationConfigurationCommand = async (input
|
|
|
786
743
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration";
|
|
787
744
|
let body;
|
|
788
745
|
body = JSON.stringify({
|
|
789
|
-
...(input.associateDefaultSecurityGroup
|
|
790
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
746
|
+
...(input.associateDefaultSecurityGroup != null && {
|
|
791
747
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
792
748
|
}),
|
|
793
|
-
...(input.bandwidthThrottling
|
|
794
|
-
|
|
795
|
-
...(input.
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
...(input.
|
|
800
|
-
|
|
801
|
-
...(input.
|
|
802
|
-
...(input.
|
|
803
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
804
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
805
|
-
...(input.replicatedDisks !== undefined &&
|
|
806
|
-
input.replicatedDisks !== null && {
|
|
749
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
750
|
+
...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
|
|
751
|
+
...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
|
|
752
|
+
...(input.defaultLargeStagingDiskType != null && {
|
|
753
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
754
|
+
}),
|
|
755
|
+
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
756
|
+
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
757
|
+
...(input.name != null && { name: input.name }),
|
|
758
|
+
...(input.replicatedDisks != null && {
|
|
807
759
|
replicatedDisks: serializeAws_restJson1ReplicationConfigurationReplicatedDisks(input.replicatedDisks, context),
|
|
808
760
|
}),
|
|
809
|
-
...(input.replicationServerInstanceType
|
|
810
|
-
input.replicationServerInstanceType !== null && {
|
|
761
|
+
...(input.replicationServerInstanceType != null && {
|
|
811
762
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
812
763
|
}),
|
|
813
|
-
...(input.replicationServersSecurityGroupsIDs
|
|
814
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
764
|
+
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
815
765
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
816
766
|
}),
|
|
817
|
-
...(input.sourceServerID
|
|
818
|
-
|
|
819
|
-
...(input.
|
|
820
|
-
input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
821
|
-
...(input.stagingAreaTags !== undefined &&
|
|
822
|
-
input.stagingAreaTags !== null && {
|
|
767
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
768
|
+
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
769
|
+
...(input.stagingAreaTags != null && {
|
|
823
770
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
824
771
|
}),
|
|
825
|
-
...(input.useDedicatedReplicationServer
|
|
826
|
-
input.useDedicatedReplicationServer !== null && {
|
|
772
|
+
...(input.useDedicatedReplicationServer != null && {
|
|
827
773
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
828
774
|
}),
|
|
829
775
|
});
|
|
@@ -846,42 +792,32 @@ const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = asyn
|
|
|
846
792
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate";
|
|
847
793
|
let body;
|
|
848
794
|
body = JSON.stringify({
|
|
849
|
-
...(input.arn
|
|
850
|
-
...(input.associateDefaultSecurityGroup
|
|
851
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
795
|
+
...(input.arn != null && { arn: input.arn }),
|
|
796
|
+
...(input.associateDefaultSecurityGroup != null && {
|
|
852
797
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
853
798
|
}),
|
|
854
|
-
...(input.bandwidthThrottling
|
|
855
|
-
|
|
856
|
-
...(input.
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
...(input.
|
|
861
|
-
|
|
862
|
-
...(input.
|
|
863
|
-
...(input.ebsEncryptionKeyArn !== undefined &&
|
|
864
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
865
|
-
...(input.replicationConfigurationTemplateID !== undefined &&
|
|
866
|
-
input.replicationConfigurationTemplateID !== null && {
|
|
799
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
800
|
+
...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
|
|
801
|
+
...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
|
|
802
|
+
...(input.defaultLargeStagingDiskType != null && {
|
|
803
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
804
|
+
}),
|
|
805
|
+
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
806
|
+
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
807
|
+
...(input.replicationConfigurationTemplateID != null && {
|
|
867
808
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
868
809
|
}),
|
|
869
|
-
...(input.replicationServerInstanceType
|
|
870
|
-
input.replicationServerInstanceType !== null && {
|
|
810
|
+
...(input.replicationServerInstanceType != null && {
|
|
871
811
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
872
812
|
}),
|
|
873
|
-
...(input.replicationServersSecurityGroupsIDs
|
|
874
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
813
|
+
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
875
814
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
876
815
|
}),
|
|
877
|
-
...(input.stagingAreaSubnetId
|
|
878
|
-
|
|
879
|
-
...(input.stagingAreaTags !== undefined &&
|
|
880
|
-
input.stagingAreaTags !== null && {
|
|
816
|
+
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
817
|
+
...(input.stagingAreaTags != null && {
|
|
881
818
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
882
819
|
}),
|
|
883
|
-
...(input.useDedicatedReplicationServer
|
|
884
|
-
input.useDedicatedReplicationServer !== null && {
|
|
820
|
+
...(input.useDedicatedReplicationServer != null && {
|
|
885
821
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
886
822
|
}),
|
|
887
823
|
});
|
|
@@ -904,10 +840,8 @@ const serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (in
|
|
|
904
840
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServerReplicationType";
|
|
905
841
|
let body;
|
|
906
842
|
body = JSON.stringify({
|
|
907
|
-
...(input.replicationType
|
|
908
|
-
|
|
909
|
-
...(input.sourceServerID !== undefined &&
|
|
910
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
843
|
+
...(input.replicationType != null && { replicationType: input.replicationType }),
|
|
844
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
911
845
|
});
|
|
912
846
|
return new protocol_http_1.HttpRequest({
|
|
913
847
|
protocol,
|
|
@@ -977,8 +911,7 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (ou
|
|
|
977
911
|
body: await parseBody(output.body, context),
|
|
978
912
|
};
|
|
979
913
|
let response;
|
|
980
|
-
|
|
981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
915
|
switch (errorCode) {
|
|
983
916
|
case "ConflictException":
|
|
984
917
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -994,10 +927,12 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (ou
|
|
|
994
927
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
995
928
|
default:
|
|
996
929
|
const parsedBody = parsedOutput.body;
|
|
930
|
+
const $metadata = deserializeMetadata(output);
|
|
931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
997
932
|
response = new MgnServiceException_1.MgnServiceException({
|
|
998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
933
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
999
934
|
$fault: "client",
|
|
1000
|
-
$metadata
|
|
935
|
+
$metadata,
|
|
1001
936
|
});
|
|
1002
937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1003
938
|
}
|
|
@@ -1035,8 +970,7 @@ const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = as
|
|
|
1035
970
|
body: await parseBody(output.body, context),
|
|
1036
971
|
};
|
|
1037
972
|
let response;
|
|
1038
|
-
|
|
1039
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
974
|
switch (errorCode) {
|
|
1041
975
|
case "AccessDeniedException":
|
|
1042
976
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -1049,10 +983,12 @@ const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = as
|
|
|
1049
983
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1050
984
|
default:
|
|
1051
985
|
const parsedBody = parsedOutput.body;
|
|
986
|
+
const $metadata = deserializeMetadata(output);
|
|
987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1052
988
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1053
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1054
990
|
$fault: "client",
|
|
1055
|
-
$metadata
|
|
991
|
+
$metadata,
|
|
1056
992
|
});
|
|
1057
993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1058
994
|
}
|
|
@@ -1134,8 +1070,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
1134
1070
|
body: await parseBody(output.body, context),
|
|
1135
1071
|
};
|
|
1136
1072
|
let response;
|
|
1137
|
-
|
|
1138
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1074
|
switch (errorCode) {
|
|
1140
1075
|
case "AccessDeniedException":
|
|
1141
1076
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -1148,10 +1083,12 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
1148
1083
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1149
1084
|
default:
|
|
1150
1085
|
const parsedBody = parsedOutput.body;
|
|
1086
|
+
const $metadata = deserializeMetadata(output);
|
|
1087
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1151
1088
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1152
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1089
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1153
1090
|
$fault: "client",
|
|
1154
|
-
$metadata
|
|
1091
|
+
$metadata,
|
|
1155
1092
|
});
|
|
1156
1093
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1157
1094
|
}
|
|
@@ -1173,8 +1110,7 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1173
1110
|
body: await parseBody(output.body, context),
|
|
1174
1111
|
};
|
|
1175
1112
|
let response;
|
|
1176
|
-
|
|
1177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1114
|
switch (errorCode) {
|
|
1179
1115
|
case "ConflictException":
|
|
1180
1116
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -1187,10 +1123,12 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1187
1123
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1188
1124
|
default:
|
|
1189
1125
|
const parsedBody = parsedOutput.body;
|
|
1126
|
+
const $metadata = deserializeMetadata(output);
|
|
1127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1190
1128
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1191
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1192
1130
|
$fault: "client",
|
|
1193
|
-
$metadata
|
|
1131
|
+
$metadata,
|
|
1194
1132
|
});
|
|
1195
1133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1196
1134
|
}
|
|
@@ -1212,8 +1150,7 @@ const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = as
|
|
|
1212
1150
|
body: await parseBody(output.body, context),
|
|
1213
1151
|
};
|
|
1214
1152
|
let response;
|
|
1215
|
-
|
|
1216
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1154
|
switch (errorCode) {
|
|
1218
1155
|
case "ConflictException":
|
|
1219
1156
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -1226,10 +1163,12 @@ const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = as
|
|
|
1226
1163
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1227
1164
|
default:
|
|
1228
1165
|
const parsedBody = parsedOutput.body;
|
|
1166
|
+
const $metadata = deserializeMetadata(output);
|
|
1167
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1229
1168
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1230
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1231
1170
|
$fault: "client",
|
|
1232
|
-
$metadata
|
|
1171
|
+
$metadata,
|
|
1233
1172
|
});
|
|
1234
1173
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1235
1174
|
}
|
|
@@ -1251,8 +1190,7 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1251
1190
|
body: await parseBody(output.body, context),
|
|
1252
1191
|
};
|
|
1253
1192
|
let response;
|
|
1254
|
-
|
|
1255
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1194
|
switch (errorCode) {
|
|
1257
1195
|
case "ConflictException":
|
|
1258
1196
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -1265,10 +1203,12 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1265
1203
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1266
1204
|
default:
|
|
1267
1205
|
const parsedBody = parsedOutput.body;
|
|
1206
|
+
const $metadata = deserializeMetadata(output);
|
|
1207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1268
1208
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1270
1210
|
$fault: "client",
|
|
1271
|
-
$metadata
|
|
1211
|
+
$metadata,
|
|
1272
1212
|
});
|
|
1273
1213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1274
1214
|
}
|
|
@@ -1290,8 +1230,7 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1290
1230
|
body: await parseBody(output.body, context),
|
|
1291
1231
|
};
|
|
1292
1232
|
let response;
|
|
1293
|
-
|
|
1294
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
1234
|
switch (errorCode) {
|
|
1296
1235
|
case "ConflictException":
|
|
1297
1236
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -1304,10 +1243,12 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1304
1243
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1305
1244
|
default:
|
|
1306
1245
|
const parsedBody = parsedOutput.body;
|
|
1246
|
+
const $metadata = deserializeMetadata(output);
|
|
1247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1307
1248
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1308
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1309
1250
|
$fault: "client",
|
|
1310
|
-
$metadata
|
|
1251
|
+
$metadata,
|
|
1311
1252
|
});
|
|
1312
1253
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1313
1254
|
}
|
|
@@ -1329,8 +1270,7 @@ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, c
|
|
|
1329
1270
|
body: await parseBody(output.body, context),
|
|
1330
1271
|
};
|
|
1331
1272
|
let response;
|
|
1332
|
-
|
|
1333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1274
|
switch (errorCode) {
|
|
1335
1275
|
case "ResourceNotFoundException":
|
|
1336
1276
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -1343,10 +1283,12 @@ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, c
|
|
|
1343
1283
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1344
1284
|
default:
|
|
1345
1285
|
const parsedBody = parsedOutput.body;
|
|
1286
|
+
const $metadata = deserializeMetadata(output);
|
|
1287
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1346
1288
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1348
1290
|
$fault: "client",
|
|
1349
|
-
$metadata
|
|
1291
|
+
$metadata,
|
|
1350
1292
|
});
|
|
1351
1293
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1352
1294
|
}
|
|
@@ -1376,8 +1318,7 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1376
1318
|
body: await parseBody(output.body, context),
|
|
1377
1319
|
};
|
|
1378
1320
|
let response;
|
|
1379
|
-
|
|
1380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1322
|
switch (errorCode) {
|
|
1382
1323
|
case "UninitializedAccountException":
|
|
1383
1324
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
@@ -1387,10 +1328,12 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1387
1328
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1388
1329
|
default:
|
|
1389
1330
|
const parsedBody = parsedOutput.body;
|
|
1331
|
+
const $metadata = deserializeMetadata(output);
|
|
1332
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1390
1333
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1334
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1392
1335
|
$fault: "client",
|
|
1393
|
-
$metadata
|
|
1336
|
+
$metadata,
|
|
1394
1337
|
});
|
|
1395
1338
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1396
1339
|
}
|
|
@@ -1420,8 +1363,7 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1420
1363
|
body: await parseBody(output.body, context),
|
|
1421
1364
|
};
|
|
1422
1365
|
let response;
|
|
1423
|
-
|
|
1424
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
1367
|
switch (errorCode) {
|
|
1426
1368
|
case "UninitializedAccountException":
|
|
1427
1369
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
@@ -1431,10 +1373,12 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1431
1373
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1432
1374
|
default:
|
|
1433
1375
|
const parsedBody = parsedOutput.body;
|
|
1376
|
+
const $metadata = deserializeMetadata(output);
|
|
1377
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1434
1378
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1435
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1379
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1436
1380
|
$fault: "client",
|
|
1437
|
-
$metadata
|
|
1381
|
+
$metadata,
|
|
1438
1382
|
});
|
|
1439
1383
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1440
1384
|
}
|
|
@@ -1464,8 +1408,7 @@ const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError =
|
|
|
1464
1408
|
body: await parseBody(output.body, context),
|
|
1465
1409
|
};
|
|
1466
1410
|
let response;
|
|
1467
|
-
|
|
1468
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1412
|
switch (errorCode) {
|
|
1470
1413
|
case "ResourceNotFoundException":
|
|
1471
1414
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -1478,10 +1421,12 @@ const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError =
|
|
|
1478
1421
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1479
1422
|
default:
|
|
1480
1423
|
const parsedBody = parsedOutput.body;
|
|
1424
|
+
const $metadata = deserializeMetadata(output);
|
|
1425
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1481
1426
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1482
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1483
1428
|
$fault: "client",
|
|
1484
|
-
$metadata
|
|
1429
|
+
$metadata,
|
|
1485
1430
|
});
|
|
1486
1431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1487
1432
|
}
|
|
@@ -1511,8 +1456,7 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1511
1456
|
body: await parseBody(output.body, context),
|
|
1512
1457
|
};
|
|
1513
1458
|
let response;
|
|
1514
|
-
|
|
1515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
1460
|
switch (errorCode) {
|
|
1517
1461
|
case "ResourceNotFoundException":
|
|
1518
1462
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -1525,10 +1469,12 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1525
1469
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1526
1470
|
default:
|
|
1527
1471
|
const parsedBody = parsedOutput.body;
|
|
1472
|
+
const $metadata = deserializeMetadata(output);
|
|
1473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1474
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1476
|
$fault: "client",
|
|
1531
|
-
$metadata
|
|
1477
|
+
$metadata,
|
|
1532
1478
|
});
|
|
1533
1479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1534
1480
|
}
|
|
@@ -1558,8 +1504,7 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1558
1504
|
body: await parseBody(output.body, context),
|
|
1559
1505
|
};
|
|
1560
1506
|
let response;
|
|
1561
|
-
|
|
1562
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1508
|
switch (errorCode) {
|
|
1564
1509
|
case "UninitializedAccountException":
|
|
1565
1510
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
@@ -1569,10 +1514,12 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1569
1514
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1570
1515
|
default:
|
|
1571
1516
|
const parsedBody = parsedOutput.body;
|
|
1517
|
+
const $metadata = deserializeMetadata(output);
|
|
1518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1572
1519
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1574
1521
|
$fault: "client",
|
|
1575
|
-
$metadata
|
|
1522
|
+
$metadata,
|
|
1576
1523
|
});
|
|
1577
1524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1578
1525
|
}
|
|
@@ -1602,8 +1549,7 @@ const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output
|
|
|
1602
1549
|
body: await parseBody(output.body, context),
|
|
1603
1550
|
};
|
|
1604
1551
|
let response;
|
|
1605
|
-
|
|
1606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
1553
|
switch (errorCode) {
|
|
1608
1554
|
case "ResourceNotFoundException":
|
|
1609
1555
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -1616,10 +1562,12 @@ const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output
|
|
|
1616
1562
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1617
1563
|
default:
|
|
1618
1564
|
const parsedBody = parsedOutput.body;
|
|
1565
|
+
const $metadata = deserializeMetadata(output);
|
|
1566
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1619
1567
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1568
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1621
1569
|
$fault: "client",
|
|
1622
|
-
$metadata
|
|
1570
|
+
$metadata,
|
|
1623
1571
|
});
|
|
1624
1572
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
1573
|
}
|
|
@@ -1681,8 +1629,7 @@ const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output,
|
|
|
1681
1629
|
body: await parseBody(output.body, context),
|
|
1682
1630
|
};
|
|
1683
1631
|
let response;
|
|
1684
|
-
|
|
1685
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1633
|
switch (errorCode) {
|
|
1687
1634
|
case "ConflictException":
|
|
1688
1635
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -1695,10 +1642,12 @@ const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output,
|
|
|
1695
1642
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1696
1643
|
default:
|
|
1697
1644
|
const parsedBody = parsedOutput.body;
|
|
1645
|
+
const $metadata = deserializeMetadata(output);
|
|
1646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1698
1647
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1699
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1700
1649
|
$fault: "client",
|
|
1701
|
-
$metadata
|
|
1650
|
+
$metadata,
|
|
1702
1651
|
});
|
|
1703
1652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1704
1653
|
}
|
|
@@ -1760,8 +1709,7 @@ const deserializeAws_restJson1FinalizeCutoverCommandError = async (output, conte
|
|
|
1760
1709
|
body: await parseBody(output.body, context),
|
|
1761
1710
|
};
|
|
1762
1711
|
let response;
|
|
1763
|
-
|
|
1764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1712
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1713
|
switch (errorCode) {
|
|
1766
1714
|
case "ConflictException":
|
|
1767
1715
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -1777,10 +1725,12 @@ const deserializeAws_restJson1FinalizeCutoverCommandError = async (output, conte
|
|
|
1777
1725
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1778
1726
|
default:
|
|
1779
1727
|
const parsedBody = parsedOutput.body;
|
|
1728
|
+
const $metadata = deserializeMetadata(output);
|
|
1729
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1780
1730
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1781
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1782
1732
|
$fault: "client",
|
|
1783
|
-
$metadata
|
|
1733
|
+
$metadata,
|
|
1784
1734
|
});
|
|
1785
1735
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1786
1736
|
}
|
|
@@ -1842,8 +1792,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1842
1792
|
body: await parseBody(output.body, context),
|
|
1843
1793
|
};
|
|
1844
1794
|
let response;
|
|
1845
|
-
|
|
1846
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
1796
|
switch (errorCode) {
|
|
1848
1797
|
case "ResourceNotFoundException":
|
|
1849
1798
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -1853,10 +1802,12 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1853
1802
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1854
1803
|
default:
|
|
1855
1804
|
const parsedBody = parsedOutput.body;
|
|
1805
|
+
const $metadata = deserializeMetadata(output);
|
|
1806
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1856
1807
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1858
1809
|
$fault: "client",
|
|
1859
|
-
$metadata
|
|
1810
|
+
$metadata,
|
|
1860
1811
|
});
|
|
1861
1812
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1862
1813
|
}
|
|
@@ -1938,8 +1889,7 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1938
1889
|
body: await parseBody(output.body, context),
|
|
1939
1890
|
};
|
|
1940
1891
|
let response;
|
|
1941
|
-
|
|
1942
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
1893
|
switch (errorCode) {
|
|
1944
1894
|
case "ResourceNotFoundException":
|
|
1945
1895
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -1949,10 +1899,12 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1949
1899
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1950
1900
|
default:
|
|
1951
1901
|
const parsedBody = parsedOutput.body;
|
|
1902
|
+
const $metadata = deserializeMetadata(output);
|
|
1903
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1952
1904
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1905
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1954
1906
|
$fault: "client",
|
|
1955
|
-
$metadata
|
|
1907
|
+
$metadata,
|
|
1956
1908
|
});
|
|
1957
1909
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1958
1910
|
}
|
|
@@ -1974,8 +1926,7 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1974
1926
|
body: await parseBody(output.body, context),
|
|
1975
1927
|
};
|
|
1976
1928
|
let response;
|
|
1977
|
-
|
|
1978
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
1930
|
switch (errorCode) {
|
|
1980
1931
|
case "AccessDeniedException":
|
|
1981
1932
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -1985,10 +1936,12 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1985
1936
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1986
1937
|
default:
|
|
1987
1938
|
const parsedBody = parsedOutput.body;
|
|
1939
|
+
const $metadata = deserializeMetadata(output);
|
|
1940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1988
1941
|
response = new MgnServiceException_1.MgnServiceException({
|
|
1989
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1990
1943
|
$fault: "client",
|
|
1991
|
-
$metadata
|
|
1944
|
+
$metadata,
|
|
1992
1945
|
});
|
|
1993
1946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1994
1947
|
}
|
|
@@ -2014,8 +1967,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2014
1967
|
body: await parseBody(output.body, context),
|
|
2015
1968
|
};
|
|
2016
1969
|
let response;
|
|
2017
|
-
|
|
2018
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
1971
|
switch (errorCode) {
|
|
2020
1972
|
case "AccessDeniedException":
|
|
2021
1973
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -2034,10 +1986,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2034
1986
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2035
1987
|
default:
|
|
2036
1988
|
const parsedBody = parsedOutput.body;
|
|
1989
|
+
const $metadata = deserializeMetadata(output);
|
|
1990
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2037
1991
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2038
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1992
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2039
1993
|
$fault: "client",
|
|
2040
|
-
$metadata
|
|
1994
|
+
$metadata,
|
|
2041
1995
|
});
|
|
2042
1996
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2043
1997
|
}
|
|
@@ -2099,8 +2053,7 @@ const deserializeAws_restJson1MarkAsArchivedCommandError = async (output, contex
|
|
|
2099
2053
|
body: await parseBody(output.body, context),
|
|
2100
2054
|
};
|
|
2101
2055
|
let response;
|
|
2102
|
-
|
|
2103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
2057
|
switch (errorCode) {
|
|
2105
2058
|
case "ConflictException":
|
|
2106
2059
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2113,10 +2066,12 @@ const deserializeAws_restJson1MarkAsArchivedCommandError = async (output, contex
|
|
|
2113
2066
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2114
2067
|
default:
|
|
2115
2068
|
const parsedBody = parsedOutput.body;
|
|
2069
|
+
const $metadata = deserializeMetadata(output);
|
|
2070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2116
2071
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2118
2073
|
$fault: "client",
|
|
2119
|
-
$metadata
|
|
2074
|
+
$metadata,
|
|
2120
2075
|
});
|
|
2121
2076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2122
2077
|
}
|
|
@@ -2178,8 +2133,7 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
2178
2133
|
body: await parseBody(output.body, context),
|
|
2179
2134
|
};
|
|
2180
2135
|
let response;
|
|
2181
|
-
|
|
2182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
2137
|
switch (errorCode) {
|
|
2184
2138
|
case "ResourceNotFoundException":
|
|
2185
2139
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
@@ -2192,10 +2146,12 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
2192
2146
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2193
2147
|
default:
|
|
2194
2148
|
const parsedBody = parsedOutput.body;
|
|
2149
|
+
const $metadata = deserializeMetadata(output);
|
|
2150
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2195
2151
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2196
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2152
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2197
2153
|
$fault: "client",
|
|
2198
|
-
$metadata
|
|
2154
|
+
$metadata,
|
|
2199
2155
|
});
|
|
2200
2156
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2201
2157
|
}
|
|
@@ -2221,8 +2177,7 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
|
|
|
2221
2177
|
body: await parseBody(output.body, context),
|
|
2222
2178
|
};
|
|
2223
2179
|
let response;
|
|
2224
|
-
|
|
2225
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
2181
|
switch (errorCode) {
|
|
2227
2182
|
case "ConflictException":
|
|
2228
2183
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2235,10 +2190,12 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
|
|
|
2235
2190
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2236
2191
|
default:
|
|
2237
2192
|
const parsedBody = parsedOutput.body;
|
|
2193
|
+
const $metadata = deserializeMetadata(output);
|
|
2194
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2238
2195
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2196
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2240
2197
|
$fault: "client",
|
|
2241
|
-
$metadata
|
|
2198
|
+
$metadata,
|
|
2242
2199
|
});
|
|
2243
2200
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2244
2201
|
}
|
|
@@ -2300,8 +2257,7 @@ const deserializeAws_restJson1StartReplicationCommandError = async (output, cont
|
|
|
2300
2257
|
body: await parseBody(output.body, context),
|
|
2301
2258
|
};
|
|
2302
2259
|
let response;
|
|
2303
|
-
|
|
2304
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2305
2261
|
switch (errorCode) {
|
|
2306
2262
|
case "ConflictException":
|
|
2307
2263
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2320,10 +2276,12 @@ const deserializeAws_restJson1StartReplicationCommandError = async (output, cont
|
|
|
2320
2276
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2321
2277
|
default:
|
|
2322
2278
|
const parsedBody = parsedOutput.body;
|
|
2279
|
+
const $metadata = deserializeMetadata(output);
|
|
2280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2323
2281
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2324
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2325
2283
|
$fault: "client",
|
|
2326
|
-
$metadata
|
|
2284
|
+
$metadata,
|
|
2327
2285
|
});
|
|
2328
2286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2329
2287
|
}
|
|
@@ -2349,8 +2307,7 @@ const deserializeAws_restJson1StartTestCommandError = async (output, context) =>
|
|
|
2349
2307
|
body: await parseBody(output.body, context),
|
|
2350
2308
|
};
|
|
2351
2309
|
let response;
|
|
2352
|
-
|
|
2353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2311
|
switch (errorCode) {
|
|
2355
2312
|
case "ConflictException":
|
|
2356
2313
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2363,10 +2320,12 @@ const deserializeAws_restJson1StartTestCommandError = async (output, context) =>
|
|
|
2363
2320
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2364
2321
|
default:
|
|
2365
2322
|
const parsedBody = parsedOutput.body;
|
|
2323
|
+
const $metadata = deserializeMetadata(output);
|
|
2324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2366
2325
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2368
2327
|
$fault: "client",
|
|
2369
|
-
$metadata
|
|
2328
|
+
$metadata,
|
|
2370
2329
|
});
|
|
2371
2330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2372
2331
|
}
|
|
@@ -2388,8 +2347,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2388
2347
|
body: await parseBody(output.body, context),
|
|
2389
2348
|
};
|
|
2390
2349
|
let response;
|
|
2391
|
-
|
|
2392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
2351
|
switch (errorCode) {
|
|
2394
2352
|
case "AccessDeniedException":
|
|
2395
2353
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -2408,10 +2366,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2408
2366
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2409
2367
|
default:
|
|
2410
2368
|
const parsedBody = parsedOutput.body;
|
|
2369
|
+
const $metadata = deserializeMetadata(output);
|
|
2370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2411
2371
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2413
2373
|
$fault: "client",
|
|
2414
|
-
$metadata
|
|
2374
|
+
$metadata,
|
|
2415
2375
|
});
|
|
2416
2376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2417
2377
|
}
|
|
@@ -2437,8 +2397,7 @@ const deserializeAws_restJson1TerminateTargetInstancesCommandError = async (outp
|
|
|
2437
2397
|
body: await parseBody(output.body, context),
|
|
2438
2398
|
};
|
|
2439
2399
|
let response;
|
|
2440
|
-
|
|
2441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
2401
|
switch (errorCode) {
|
|
2443
2402
|
case "ConflictException":
|
|
2444
2403
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2451,10 +2410,12 @@ const deserializeAws_restJson1TerminateTargetInstancesCommandError = async (outp
|
|
|
2451
2410
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2452
2411
|
default:
|
|
2453
2412
|
const parsedBody = parsedOutput.body;
|
|
2413
|
+
const $metadata = deserializeMetadata(output);
|
|
2414
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2454
2415
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2456
2417
|
$fault: "client",
|
|
2457
|
-
$metadata
|
|
2418
|
+
$metadata,
|
|
2458
2419
|
});
|
|
2459
2420
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2460
2421
|
}
|
|
@@ -2476,8 +2437,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2476
2437
|
body: await parseBody(output.body, context),
|
|
2477
2438
|
};
|
|
2478
2439
|
let response;
|
|
2479
|
-
|
|
2480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2481
2441
|
switch (errorCode) {
|
|
2482
2442
|
case "AccessDeniedException":
|
|
2483
2443
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -2496,10 +2456,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2496
2456
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2497
2457
|
default:
|
|
2498
2458
|
const parsedBody = parsedOutput.body;
|
|
2459
|
+
const $metadata = deserializeMetadata(output);
|
|
2460
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2499
2461
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2501
2463
|
$fault: "client",
|
|
2502
|
-
$metadata
|
|
2464
|
+
$metadata,
|
|
2503
2465
|
});
|
|
2504
2466
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2505
2467
|
}
|
|
@@ -2561,8 +2523,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2561
2523
|
body: await parseBody(output.body, context),
|
|
2562
2524
|
};
|
|
2563
2525
|
let response;
|
|
2564
|
-
|
|
2565
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
2527
|
switch (errorCode) {
|
|
2567
2528
|
case "ConflictException":
|
|
2568
2529
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2578,10 +2539,12 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2578
2539
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2579
2540
|
default:
|
|
2580
2541
|
const parsedBody = parsedOutput.body;
|
|
2542
|
+
const $metadata = deserializeMetadata(output);
|
|
2543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2581
2544
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2583
2546
|
$fault: "client",
|
|
2584
|
-
$metadata
|
|
2547
|
+
$metadata,
|
|
2585
2548
|
});
|
|
2586
2549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2587
2550
|
}
|
|
@@ -2619,8 +2582,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError = as
|
|
|
2619
2582
|
body: await parseBody(output.body, context),
|
|
2620
2583
|
};
|
|
2621
2584
|
let response;
|
|
2622
|
-
|
|
2623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
2586
|
switch (errorCode) {
|
|
2625
2587
|
case "AccessDeniedException":
|
|
2626
2588
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -2636,10 +2598,12 @@ const deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError = as
|
|
|
2636
2598
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2637
2599
|
default:
|
|
2638
2600
|
const parsedBody = parsedOutput.body;
|
|
2601
|
+
const $metadata = deserializeMetadata(output);
|
|
2602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2639
2603
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2641
2605
|
$fault: "client",
|
|
2642
|
-
$metadata
|
|
2606
|
+
$metadata,
|
|
2643
2607
|
});
|
|
2644
2608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2645
2609
|
}
|
|
@@ -2721,8 +2685,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2721
2685
|
body: await parseBody(output.body, context),
|
|
2722
2686
|
};
|
|
2723
2687
|
let response;
|
|
2724
|
-
|
|
2725
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
2689
|
switch (errorCode) {
|
|
2727
2690
|
case "AccessDeniedException":
|
|
2728
2691
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -2741,10 +2704,12 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2741
2704
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2742
2705
|
default:
|
|
2743
2706
|
const parsedBody = parsedOutput.body;
|
|
2707
|
+
const $metadata = deserializeMetadata(output);
|
|
2708
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2744
2709
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2710
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2746
2711
|
$fault: "client",
|
|
2747
|
-
$metadata
|
|
2712
|
+
$metadata,
|
|
2748
2713
|
});
|
|
2749
2714
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2750
2715
|
}
|
|
@@ -2826,8 +2791,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2826
2791
|
body: await parseBody(output.body, context),
|
|
2827
2792
|
};
|
|
2828
2793
|
let response;
|
|
2829
|
-
|
|
2830
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
2795
|
switch (errorCode) {
|
|
2832
2796
|
case "AccessDeniedException":
|
|
2833
2797
|
case "com.amazonaws.mgn#AccessDeniedException":
|
|
@@ -2843,10 +2807,12 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2843
2807
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2844
2808
|
default:
|
|
2845
2809
|
const parsedBody = parsedOutput.body;
|
|
2810
|
+
const $metadata = deserializeMetadata(output);
|
|
2811
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2846
2812
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2848
2814
|
$fault: "client",
|
|
2849
|
-
$metadata
|
|
2815
|
+
$metadata,
|
|
2850
2816
|
});
|
|
2851
2817
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2852
2818
|
}
|
|
@@ -2908,8 +2874,7 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = as
|
|
|
2908
2874
|
body: await parseBody(output.body, context),
|
|
2909
2875
|
};
|
|
2910
2876
|
let response;
|
|
2911
|
-
|
|
2912
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
2878
|
switch (errorCode) {
|
|
2914
2879
|
case "ConflictException":
|
|
2915
2880
|
case "com.amazonaws.mgn#ConflictException":
|
|
@@ -2925,10 +2890,12 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = as
|
|
|
2925
2890
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2926
2891
|
default:
|
|
2927
2892
|
const parsedBody = parsedOutput.body;
|
|
2893
|
+
const $metadata = deserializeMetadata(output);
|
|
2894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2928
2895
|
response = new MgnServiceException_1.MgnServiceException({
|
|
2929
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2930
2897
|
$fault: "client",
|
|
2931
|
-
$metadata
|
|
2898
|
+
$metadata,
|
|
2932
2899
|
});
|
|
2933
2900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2934
2901
|
}
|
|
@@ -3097,17 +3064,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3097
3064
|
};
|
|
3098
3065
|
const serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = (input, context) => {
|
|
3099
3066
|
return {
|
|
3100
|
-
...(input.state
|
|
3067
|
+
...(input.state != null && { state: input.state }),
|
|
3101
3068
|
};
|
|
3102
3069
|
};
|
|
3103
3070
|
const serializeAws_restJson1DescribeJobsRequestFilters = (input, context) => {
|
|
3104
3071
|
return {
|
|
3105
|
-
...(input.fromDate
|
|
3106
|
-
...(input.jobIDs
|
|
3107
|
-
input.jobIDs !== null && {
|
|
3072
|
+
...(input.fromDate != null && { fromDate: input.fromDate }),
|
|
3073
|
+
...(input.jobIDs != null && {
|
|
3108
3074
|
jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
|
|
3109
3075
|
}),
|
|
3110
|
-
...(input.toDate
|
|
3076
|
+
...(input.toDate != null && { toDate: input.toDate }),
|
|
3111
3077
|
};
|
|
3112
3078
|
};
|
|
3113
3079
|
const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context) => {
|
|
@@ -3122,17 +3088,14 @@ const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context)
|
|
|
3122
3088
|
};
|
|
3123
3089
|
const serializeAws_restJson1DescribeSourceServersRequestFilters = (input, context) => {
|
|
3124
3090
|
return {
|
|
3125
|
-
...(input.isArchived
|
|
3126
|
-
...(input.lifeCycleStates
|
|
3127
|
-
input.lifeCycleStates !== null && {
|
|
3091
|
+
...(input.isArchived != null && { isArchived: input.isArchived }),
|
|
3092
|
+
...(input.lifeCycleStates != null && {
|
|
3128
3093
|
lifeCycleStates: serializeAws_restJson1LifeCycleStates(input.lifeCycleStates, context),
|
|
3129
3094
|
}),
|
|
3130
|
-
...(input.replicationTypes
|
|
3131
|
-
input.replicationTypes !== null && {
|
|
3095
|
+
...(input.replicationTypes != null && {
|
|
3132
3096
|
replicationTypes: serializeAws_restJson1ReplicationTypes(input.replicationTypes, context),
|
|
3133
3097
|
}),
|
|
3134
|
-
...(input.sourceServerIDs
|
|
3135
|
-
input.sourceServerIDs !== null && {
|
|
3098
|
+
...(input.sourceServerIDs != null && {
|
|
3136
3099
|
sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
|
|
3137
3100
|
}),
|
|
3138
3101
|
};
|
|
@@ -3159,7 +3122,7 @@ const serializeAws_restJson1LaunchConfigurationTemplateIDs = (input, context) =>
|
|
|
3159
3122
|
};
|
|
3160
3123
|
const serializeAws_restJson1Licensing = (input, context) => {
|
|
3161
3124
|
return {
|
|
3162
|
-
...(input.osByol
|
|
3125
|
+
...(input.osByol != null && { osByol: input.osByol }),
|
|
3163
3126
|
};
|
|
3164
3127
|
};
|
|
3165
3128
|
const serializeAws_restJson1LifeCycleStates = (input, context) => {
|
|
@@ -3174,24 +3137,22 @@ const serializeAws_restJson1LifeCycleStates = (input, context) => {
|
|
|
3174
3137
|
};
|
|
3175
3138
|
const serializeAws_restJson1PostLaunchActions = (input, context) => {
|
|
3176
3139
|
return {
|
|
3177
|
-
...(input.cloudWatchLogGroupName
|
|
3178
|
-
|
|
3179
|
-
...(input.
|
|
3180
|
-
...(input.
|
|
3181
|
-
...(input.
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
input.ssmDocuments !== null && { ssmDocuments: serializeAws_restJson1SsmDocuments(input.ssmDocuments, context) }),
|
|
3140
|
+
...(input.cloudWatchLogGroupName != null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName }),
|
|
3141
|
+
...(input.deployment != null && { deployment: input.deployment }),
|
|
3142
|
+
...(input.s3LogBucket != null && { s3LogBucket: input.s3LogBucket }),
|
|
3143
|
+
...(input.s3OutputKeyPrefix != null && { s3OutputKeyPrefix: input.s3OutputKeyPrefix }),
|
|
3144
|
+
...(input.ssmDocuments != null && {
|
|
3145
|
+
ssmDocuments: serializeAws_restJson1SsmDocuments(input.ssmDocuments, context),
|
|
3146
|
+
}),
|
|
3185
3147
|
};
|
|
3186
3148
|
};
|
|
3187
3149
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, context) => {
|
|
3188
3150
|
return {
|
|
3189
|
-
...(input.deviceName
|
|
3190
|
-
...(input.iops
|
|
3191
|
-
...(input.isBootDisk
|
|
3192
|
-
...(input.stagingDiskType
|
|
3193
|
-
|
|
3194
|
-
...(input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }),
|
|
3151
|
+
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
3152
|
+
...(input.iops != null && { iops: input.iops }),
|
|
3153
|
+
...(input.isBootDisk != null && { isBootDisk: input.isBootDisk }),
|
|
3154
|
+
...(input.stagingDiskType != null && { stagingDiskType: input.stagingDiskType }),
|
|
3155
|
+
...(input.throughput != null && { throughput: input.throughput }),
|
|
3195
3156
|
};
|
|
3196
3157
|
};
|
|
3197
3158
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisks = (input, context) => {
|
|
@@ -3236,17 +3197,13 @@ const serializeAws_restJson1ReplicationTypes = (input, context) => {
|
|
|
3236
3197
|
};
|
|
3237
3198
|
const serializeAws_restJson1SsmDocument = (input, context) => {
|
|
3238
3199
|
return {
|
|
3239
|
-
...(input.actionName
|
|
3240
|
-
...(input.mustSucceedForCutover
|
|
3241
|
-
|
|
3242
|
-
...(input.parameters !== undefined &&
|
|
3243
|
-
input.parameters !== null && {
|
|
3200
|
+
...(input.actionName != null && { actionName: input.actionName }),
|
|
3201
|
+
...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
|
|
3202
|
+
...(input.parameters != null && {
|
|
3244
3203
|
parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
|
|
3245
3204
|
}),
|
|
3246
|
-
...(input.ssmDocumentName
|
|
3247
|
-
|
|
3248
|
-
...(input.timeoutSeconds !== undefined &&
|
|
3249
|
-
input.timeoutSeconds !== null && { timeoutSeconds: input.timeoutSeconds }),
|
|
3205
|
+
...(input.ssmDocumentName != null && { ssmDocumentName: input.ssmDocumentName }),
|
|
3206
|
+
...(input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }),
|
|
3250
3207
|
};
|
|
3251
3208
|
};
|
|
3252
3209
|
const serializeAws_restJson1SsmDocumentParameters = (input, context) => {
|
|
@@ -3272,8 +3229,8 @@ const serializeAws_restJson1SsmDocuments = (input, context) => {
|
|
|
3272
3229
|
};
|
|
3273
3230
|
const serializeAws_restJson1SsmParameterStoreParameter = (input, context) => {
|
|
3274
3231
|
return {
|
|
3275
|
-
...(input.parameterName
|
|
3276
|
-
...(input.parameterType
|
|
3232
|
+
...(input.parameterName != null && { parameterName: input.parameterName }),
|
|
3233
|
+
...(input.parameterType != null && { parameterType: input.parameterType }),
|
|
3277
3234
|
};
|
|
3278
3235
|
};
|
|
3279
3236
|
const serializeAws_restJson1SsmParameterStoreParameters = (input, context) => {
|
|
@@ -3363,17 +3320,17 @@ const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
|
3363
3320
|
};
|
|
3364
3321
|
const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
3365
3322
|
return {
|
|
3366
|
-
dataReplicationError: output.dataReplicationError
|
|
3323
|
+
dataReplicationError: output.dataReplicationError != null
|
|
3367
3324
|
? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
|
|
3368
3325
|
: undefined,
|
|
3369
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
3326
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3370
3327
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3371
3328
|
: undefined,
|
|
3372
3329
|
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
3373
3330
|
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
3374
3331
|
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
3375
3332
|
lastSnapshotDateTime: (0, smithy_client_1.expectString)(output.lastSnapshotDateTime),
|
|
3376
|
-
replicatedDisks: output.replicatedDisks
|
|
3333
|
+
replicatedDisks: output.replicatedDisks != null
|
|
3377
3334
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3378
3335
|
: undefined,
|
|
3379
3336
|
};
|
|
@@ -3402,9 +3359,7 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
|
3402
3359
|
return {
|
|
3403
3360
|
nextAttemptDateTime: (0, smithy_client_1.expectString)(output.nextAttemptDateTime),
|
|
3404
3361
|
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
3405
|
-
steps: output.steps
|
|
3406
|
-
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
3407
|
-
: undefined,
|
|
3362
|
+
steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
3408
3363
|
};
|
|
3409
3364
|
};
|
|
3410
3365
|
const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
|
|
@@ -3476,22 +3431,18 @@ const deserializeAws_restJson1Job = (output, context) => {
|
|
|
3476
3431
|
endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
|
|
3477
3432
|
initiatedBy: (0, smithy_client_1.expectString)(output.initiatedBy),
|
|
3478
3433
|
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3479
|
-
participatingServers: output.participatingServers
|
|
3434
|
+
participatingServers: output.participatingServers != null
|
|
3480
3435
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3481
3436
|
: undefined,
|
|
3482
3437
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3483
|
-
tags: output.tags
|
|
3484
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3485
|
-
: undefined,
|
|
3438
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3486
3439
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3487
3440
|
};
|
|
3488
3441
|
};
|
|
3489
3442
|
const deserializeAws_restJson1JobLog = (output, context) => {
|
|
3490
3443
|
return {
|
|
3491
3444
|
event: (0, smithy_client_1.expectString)(output.event),
|
|
3492
|
-
eventData: output.eventData
|
|
3493
|
-
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
3494
|
-
: undefined,
|
|
3445
|
+
eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
|
|
3495
3446
|
logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
|
|
3496
3447
|
};
|
|
3497
3448
|
};
|
|
@@ -3519,9 +3470,7 @@ const deserializeAws_restJson1JobPostLaunchActionsLaunchStatus = (output, contex
|
|
|
3519
3470
|
executionID: (0, smithy_client_1.expectString)(output.executionID),
|
|
3520
3471
|
executionStatus: (0, smithy_client_1.expectString)(output.executionStatus),
|
|
3521
3472
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
3522
|
-
ssmDocument: output.ssmDocument
|
|
3523
|
-
? deserializeAws_restJson1SsmDocument(output.ssmDocument, context)
|
|
3524
|
-
: undefined,
|
|
3473
|
+
ssmDocument: output.ssmDocument != null ? deserializeAws_restJson1SsmDocument(output.ssmDocument, context) : undefined,
|
|
3525
3474
|
ssmDocumentType: (0, smithy_client_1.expectString)(output.ssmDocumentType),
|
|
3526
3475
|
};
|
|
3527
3476
|
};
|
|
@@ -3540,12 +3489,10 @@ const deserializeAws_restJson1LaunchConfigurationTemplate = (output, context) =>
|
|
|
3540
3489
|
return {
|
|
3541
3490
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3542
3491
|
launchConfigurationTemplateID: (0, smithy_client_1.expectString)(output.launchConfigurationTemplateID),
|
|
3543
|
-
postLaunchActions: output.postLaunchActions
|
|
3492
|
+
postLaunchActions: output.postLaunchActions != null
|
|
3544
3493
|
? deserializeAws_restJson1PostLaunchActions(output.postLaunchActions, context)
|
|
3545
3494
|
: undefined,
|
|
3546
|
-
tags: output.tags
|
|
3547
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3548
|
-
: undefined,
|
|
3495
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3549
3496
|
};
|
|
3550
3497
|
};
|
|
3551
3498
|
const deserializeAws_restJson1LaunchConfigurationTemplates = (output, context) => {
|
|
@@ -3576,25 +3523,23 @@ const deserializeAws_restJson1LifeCycle = (output, context) => {
|
|
|
3576
3523
|
addedToServiceDateTime: (0, smithy_client_1.expectString)(output.addedToServiceDateTime),
|
|
3577
3524
|
elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
|
|
3578
3525
|
firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
|
|
3579
|
-
lastCutover: output.lastCutover
|
|
3526
|
+
lastCutover: output.lastCutover != null
|
|
3580
3527
|
? deserializeAws_restJson1LifeCycleLastCutover(output.lastCutover, context)
|
|
3581
3528
|
: undefined,
|
|
3582
3529
|
lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
|
|
3583
|
-
lastTest: output.lastTest
|
|
3584
|
-
? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context)
|
|
3585
|
-
: undefined,
|
|
3530
|
+
lastTest: output.lastTest != null ? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context) : undefined,
|
|
3586
3531
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3587
3532
|
};
|
|
3588
3533
|
};
|
|
3589
3534
|
const deserializeAws_restJson1LifeCycleLastCutover = (output, context) => {
|
|
3590
3535
|
return {
|
|
3591
|
-
finalized: output.finalized
|
|
3536
|
+
finalized: output.finalized != null
|
|
3592
3537
|
? deserializeAws_restJson1LifeCycleLastCutoverFinalized(output.finalized, context)
|
|
3593
3538
|
: undefined,
|
|
3594
|
-
initiated: output.initiated
|
|
3539
|
+
initiated: output.initiated != null
|
|
3595
3540
|
? deserializeAws_restJson1LifeCycleLastCutoverInitiated(output.initiated, context)
|
|
3596
3541
|
: undefined,
|
|
3597
|
-
reverted: output.reverted
|
|
3542
|
+
reverted: output.reverted != null
|
|
3598
3543
|
? deserializeAws_restJson1LifeCycleLastCutoverReverted(output.reverted, context)
|
|
3599
3544
|
: undefined,
|
|
3600
3545
|
};
|
|
@@ -3617,15 +3562,13 @@ const deserializeAws_restJson1LifeCycleLastCutoverReverted = (output, context) =
|
|
|
3617
3562
|
};
|
|
3618
3563
|
const deserializeAws_restJson1LifeCycleLastTest = (output, context) => {
|
|
3619
3564
|
return {
|
|
3620
|
-
finalized: output.finalized
|
|
3565
|
+
finalized: output.finalized != null
|
|
3621
3566
|
? deserializeAws_restJson1LifeCycleLastTestFinalized(output.finalized, context)
|
|
3622
3567
|
: undefined,
|
|
3623
|
-
initiated: output.initiated
|
|
3568
|
+
initiated: output.initiated != null
|
|
3624
3569
|
? deserializeAws_restJson1LifeCycleLastTestInitiated(output.initiated, context)
|
|
3625
3570
|
: undefined,
|
|
3626
|
-
reverted: output.reverted
|
|
3627
|
-
? deserializeAws_restJson1LifeCycleLastTestReverted(output.reverted, context)
|
|
3628
|
-
: undefined,
|
|
3571
|
+
reverted: output.reverted != null ? deserializeAws_restJson1LifeCycleLastTestReverted(output.reverted, context) : undefined,
|
|
3629
3572
|
};
|
|
3630
3573
|
};
|
|
3631
3574
|
const deserializeAws_restJson1LifeCycleLastTestFinalized = (output, context) => {
|
|
@@ -3646,9 +3589,7 @@ const deserializeAws_restJson1LifeCycleLastTestReverted = (output, context) => {
|
|
|
3646
3589
|
};
|
|
3647
3590
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
3648
3591
|
return {
|
|
3649
|
-
ips: output.ips
|
|
3650
|
-
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
3651
|
-
: undefined,
|
|
3592
|
+
ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
|
|
3652
3593
|
isPrimary: (0, smithy_client_1.expectBoolean)(output.isPrimary),
|
|
3653
3594
|
macAddress: (0, smithy_client_1.expectString)(output.macAddress),
|
|
3654
3595
|
};
|
|
@@ -3673,7 +3614,7 @@ const deserializeAws_restJson1ParticipatingServer = (output, context) => {
|
|
|
3673
3614
|
return {
|
|
3674
3615
|
launchStatus: (0, smithy_client_1.expectString)(output.launchStatus),
|
|
3675
3616
|
launchedEc2InstanceID: (0, smithy_client_1.expectString)(output.launchedEc2InstanceID),
|
|
3676
|
-
postLaunchActionsStatus: output.postLaunchActionsStatus
|
|
3617
|
+
postLaunchActionsStatus: output.postLaunchActionsStatus != null
|
|
3677
3618
|
? deserializeAws_restJson1PostLaunchActionsStatus(output.postLaunchActionsStatus, context)
|
|
3678
3619
|
: undefined,
|
|
3679
3620
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
@@ -3696,9 +3637,7 @@ const deserializeAws_restJson1PostLaunchActions = (output, context) => {
|
|
|
3696
3637
|
deployment: (0, smithy_client_1.expectString)(output.deployment),
|
|
3697
3638
|
s3LogBucket: (0, smithy_client_1.expectString)(output.s3LogBucket),
|
|
3698
3639
|
s3OutputKeyPrefix: (0, smithy_client_1.expectString)(output.s3OutputKeyPrefix),
|
|
3699
|
-
ssmDocuments: output.ssmDocuments
|
|
3700
|
-
? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context)
|
|
3701
|
-
: undefined,
|
|
3640
|
+
ssmDocuments: output.ssmDocuments != null ? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context) : undefined,
|
|
3702
3641
|
};
|
|
3703
3642
|
};
|
|
3704
3643
|
const deserializeAws_restJson1PostLaunchActionsLaunchStatusList = (output, context) => {
|
|
@@ -3714,7 +3653,7 @@ const deserializeAws_restJson1PostLaunchActionsLaunchStatusList = (output, conte
|
|
|
3714
3653
|
};
|
|
3715
3654
|
const deserializeAws_restJson1PostLaunchActionsStatus = (output, context) => {
|
|
3716
3655
|
return {
|
|
3717
|
-
postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList
|
|
3656
|
+
postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList != null
|
|
3718
3657
|
? deserializeAws_restJson1PostLaunchActionsLaunchStatusList(output.postLaunchActionsLaunchStatusList, context)
|
|
3719
3658
|
: undefined,
|
|
3720
3659
|
ssmAgentDiscoveryDatetime: (0, smithy_client_1.expectString)(output.ssmAgentDiscoveryDatetime),
|
|
@@ -3752,16 +3691,12 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
|
|
|
3752
3691
|
ebsEncryptionKeyArn: (0, smithy_client_1.expectString)(output.ebsEncryptionKeyArn),
|
|
3753
3692
|
replicationConfigurationTemplateID: (0, smithy_client_1.expectString)(output.replicationConfigurationTemplateID),
|
|
3754
3693
|
replicationServerInstanceType: (0, smithy_client_1.expectString)(output.replicationServerInstanceType),
|
|
3755
|
-
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs
|
|
3694
|
+
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
|
|
3756
3695
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3757
3696
|
: undefined,
|
|
3758
3697
|
stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
|
|
3759
|
-
stagingAreaTags: output.stagingAreaTags
|
|
3760
|
-
|
|
3761
|
-
: undefined,
|
|
3762
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3763
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3764
|
-
: undefined,
|
|
3698
|
+
stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
|
|
3699
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3765
3700
|
useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
|
|
3766
3701
|
};
|
|
3767
3702
|
};
|
|
@@ -3789,20 +3724,16 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3789
3724
|
};
|
|
3790
3725
|
const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
3791
3726
|
return {
|
|
3792
|
-
cpus: output.cpus
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
3796
|
-
? deserializeAws_restJson1Disks(output.disks, context)
|
|
3797
|
-
: undefined,
|
|
3798
|
-
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3727
|
+
cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
|
|
3728
|
+
disks: output.disks != null ? deserializeAws_restJson1Disks(output.disks, context) : undefined,
|
|
3729
|
+
identificationHints: output.identificationHints != null
|
|
3799
3730
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3800
3731
|
: undefined,
|
|
3801
3732
|
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3802
|
-
networkInterfaces: output.networkInterfaces
|
|
3733
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3803
3734
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3804
3735
|
: undefined,
|
|
3805
|
-
os: output.os
|
|
3736
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3806
3737
|
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3807
3738
|
recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
|
|
3808
3739
|
};
|
|
@@ -3810,24 +3741,20 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3810
3741
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3811
3742
|
return {
|
|
3812
3743
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3813
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
3744
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3814
3745
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3815
3746
|
: undefined,
|
|
3816
3747
|
isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
|
|
3817
|
-
launchedInstance: output.launchedInstance
|
|
3748
|
+
launchedInstance: output.launchedInstance != null
|
|
3818
3749
|
? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
|
|
3819
3750
|
: undefined,
|
|
3820
|
-
lifeCycle: output.lifeCycle
|
|
3821
|
-
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
3822
|
-
: undefined,
|
|
3751
|
+
lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
|
|
3823
3752
|
replicationType: (0, smithy_client_1.expectString)(output.replicationType),
|
|
3824
|
-
sourceProperties: output.sourceProperties
|
|
3753
|
+
sourceProperties: output.sourceProperties != null
|
|
3825
3754
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3826
3755
|
: undefined,
|
|
3827
3756
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3828
|
-
tags: output.tags
|
|
3829
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3830
|
-
: undefined,
|
|
3757
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3831
3758
|
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3832
3759
|
};
|
|
3833
3760
|
};
|
|
@@ -3846,9 +3773,7 @@ const deserializeAws_restJson1SsmDocument = (output, context) => {
|
|
|
3846
3773
|
return {
|
|
3847
3774
|
actionName: (0, smithy_client_1.expectString)(output.actionName),
|
|
3848
3775
|
mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
|
|
3849
|
-
parameters: output.parameters
|
|
3850
|
-
? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context)
|
|
3851
|
-
: undefined,
|
|
3776
|
+
parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
|
|
3852
3777
|
ssmDocumentName: (0, smithy_client_1.expectString)(output.ssmDocumentName),
|
|
3853
3778
|
timeoutSeconds: (0, smithy_client_1.expectInt32)(output.timeoutSeconds),
|
|
3854
3779
|
};
|
|
@@ -3926,12 +3851,8 @@ const deserializeAws_restJson1VcenterClient = (output, context) => {
|
|
|
3926
3851
|
datacenterName: (0, smithy_client_1.expectString)(output.datacenterName),
|
|
3927
3852
|
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3928
3853
|
lastSeenDatetime: (0, smithy_client_1.expectString)(output.lastSeenDatetime),
|
|
3929
|
-
sourceServerTags: output.sourceServerTags
|
|
3930
|
-
|
|
3931
|
-
: undefined,
|
|
3932
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3933
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3934
|
-
: undefined,
|
|
3854
|
+
sourceServerTags: output.sourceServerTags != null ? deserializeAws_restJson1TagsMap(output.sourceServerTags, context) : undefined,
|
|
3855
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3935
3856
|
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3936
3857
|
vcenterUUID: (0, smithy_client_1.expectString)(output.vcenterUUID),
|
|
3937
3858
|
};
|
|
@@ -3996,5 +3917,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3996
3917
|
if (data["__type"] !== undefined) {
|
|
3997
3918
|
return sanitizeErrorCode(data["__type"]);
|
|
3998
3919
|
}
|
|
3999
|
-
return "";
|
|
4000
3920
|
};
|