@aws-sdk/client-mgn 3.121.0 → 3.130.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 +168 -277
- package/dist-es/protocols/Aws_restJson1.js +113 -222
- 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,
|
|
@@ -3130,17 +3064,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3130
3064
|
};
|
|
3131
3065
|
const serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = (input, context) => {
|
|
3132
3066
|
return {
|
|
3133
|
-
...(input.state
|
|
3067
|
+
...(input.state != null && { state: input.state }),
|
|
3134
3068
|
};
|
|
3135
3069
|
};
|
|
3136
3070
|
const serializeAws_restJson1DescribeJobsRequestFilters = (input, context) => {
|
|
3137
3071
|
return {
|
|
3138
|
-
...(input.fromDate
|
|
3139
|
-
...(input.jobIDs
|
|
3140
|
-
input.jobIDs !== null && {
|
|
3072
|
+
...(input.fromDate != null && { fromDate: input.fromDate }),
|
|
3073
|
+
...(input.jobIDs != null && {
|
|
3141
3074
|
jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
|
|
3142
3075
|
}),
|
|
3143
|
-
...(input.toDate
|
|
3076
|
+
...(input.toDate != null && { toDate: input.toDate }),
|
|
3144
3077
|
};
|
|
3145
3078
|
};
|
|
3146
3079
|
const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context) => {
|
|
@@ -3155,17 +3088,14 @@ const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context)
|
|
|
3155
3088
|
};
|
|
3156
3089
|
const serializeAws_restJson1DescribeSourceServersRequestFilters = (input, context) => {
|
|
3157
3090
|
return {
|
|
3158
|
-
...(input.isArchived
|
|
3159
|
-
...(input.lifeCycleStates
|
|
3160
|
-
input.lifeCycleStates !== null && {
|
|
3091
|
+
...(input.isArchived != null && { isArchived: input.isArchived }),
|
|
3092
|
+
...(input.lifeCycleStates != null && {
|
|
3161
3093
|
lifeCycleStates: serializeAws_restJson1LifeCycleStates(input.lifeCycleStates, context),
|
|
3162
3094
|
}),
|
|
3163
|
-
...(input.replicationTypes
|
|
3164
|
-
input.replicationTypes !== null && {
|
|
3095
|
+
...(input.replicationTypes != null && {
|
|
3165
3096
|
replicationTypes: serializeAws_restJson1ReplicationTypes(input.replicationTypes, context),
|
|
3166
3097
|
}),
|
|
3167
|
-
...(input.sourceServerIDs
|
|
3168
|
-
input.sourceServerIDs !== null && {
|
|
3098
|
+
...(input.sourceServerIDs != null && {
|
|
3169
3099
|
sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
|
|
3170
3100
|
}),
|
|
3171
3101
|
};
|
|
@@ -3192,7 +3122,7 @@ const serializeAws_restJson1LaunchConfigurationTemplateIDs = (input, context) =>
|
|
|
3192
3122
|
};
|
|
3193
3123
|
const serializeAws_restJson1Licensing = (input, context) => {
|
|
3194
3124
|
return {
|
|
3195
|
-
...(input.osByol
|
|
3125
|
+
...(input.osByol != null && { osByol: input.osByol }),
|
|
3196
3126
|
};
|
|
3197
3127
|
};
|
|
3198
3128
|
const serializeAws_restJson1LifeCycleStates = (input, context) => {
|
|
@@ -3207,24 +3137,22 @@ const serializeAws_restJson1LifeCycleStates = (input, context) => {
|
|
|
3207
3137
|
};
|
|
3208
3138
|
const serializeAws_restJson1PostLaunchActions = (input, context) => {
|
|
3209
3139
|
return {
|
|
3210
|
-
...(input.cloudWatchLogGroupName
|
|
3211
|
-
|
|
3212
|
-
...(input.
|
|
3213
|
-
...(input.
|
|
3214
|
-
...(input.
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
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
|
+
}),
|
|
3218
3147
|
};
|
|
3219
3148
|
};
|
|
3220
3149
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, context) => {
|
|
3221
3150
|
return {
|
|
3222
|
-
...(input.deviceName
|
|
3223
|
-
...(input.iops
|
|
3224
|
-
...(input.isBootDisk
|
|
3225
|
-
...(input.stagingDiskType
|
|
3226
|
-
|
|
3227
|
-
...(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 }),
|
|
3228
3156
|
};
|
|
3229
3157
|
};
|
|
3230
3158
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisks = (input, context) => {
|
|
@@ -3269,17 +3197,13 @@ const serializeAws_restJson1ReplicationTypes = (input, context) => {
|
|
|
3269
3197
|
};
|
|
3270
3198
|
const serializeAws_restJson1SsmDocument = (input, context) => {
|
|
3271
3199
|
return {
|
|
3272
|
-
...(input.actionName
|
|
3273
|
-
...(input.mustSucceedForCutover
|
|
3274
|
-
|
|
3275
|
-
...(input.parameters !== undefined &&
|
|
3276
|
-
input.parameters !== null && {
|
|
3200
|
+
...(input.actionName != null && { actionName: input.actionName }),
|
|
3201
|
+
...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
|
|
3202
|
+
...(input.parameters != null && {
|
|
3277
3203
|
parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
|
|
3278
3204
|
}),
|
|
3279
|
-
...(input.ssmDocumentName
|
|
3280
|
-
|
|
3281
|
-
...(input.timeoutSeconds !== undefined &&
|
|
3282
|
-
input.timeoutSeconds !== null && { timeoutSeconds: input.timeoutSeconds }),
|
|
3205
|
+
...(input.ssmDocumentName != null && { ssmDocumentName: input.ssmDocumentName }),
|
|
3206
|
+
...(input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }),
|
|
3283
3207
|
};
|
|
3284
3208
|
};
|
|
3285
3209
|
const serializeAws_restJson1SsmDocumentParameters = (input, context) => {
|
|
@@ -3305,8 +3229,8 @@ const serializeAws_restJson1SsmDocuments = (input, context) => {
|
|
|
3305
3229
|
};
|
|
3306
3230
|
const serializeAws_restJson1SsmParameterStoreParameter = (input, context) => {
|
|
3307
3231
|
return {
|
|
3308
|
-
...(input.parameterName
|
|
3309
|
-
...(input.parameterType
|
|
3232
|
+
...(input.parameterName != null && { parameterName: input.parameterName }),
|
|
3233
|
+
...(input.parameterType != null && { parameterType: input.parameterType }),
|
|
3310
3234
|
};
|
|
3311
3235
|
};
|
|
3312
3236
|
const serializeAws_restJson1SsmParameterStoreParameters = (input, context) => {
|
|
@@ -3396,17 +3320,17 @@ const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
|
3396
3320
|
};
|
|
3397
3321
|
const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
3398
3322
|
return {
|
|
3399
|
-
dataReplicationError: output.dataReplicationError
|
|
3323
|
+
dataReplicationError: output.dataReplicationError != null
|
|
3400
3324
|
? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
|
|
3401
3325
|
: undefined,
|
|
3402
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
3326
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3403
3327
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3404
3328
|
: undefined,
|
|
3405
3329
|
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
3406
3330
|
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
3407
3331
|
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
3408
3332
|
lastSnapshotDateTime: (0, smithy_client_1.expectString)(output.lastSnapshotDateTime),
|
|
3409
|
-
replicatedDisks: output.replicatedDisks
|
|
3333
|
+
replicatedDisks: output.replicatedDisks != null
|
|
3410
3334
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3411
3335
|
: undefined,
|
|
3412
3336
|
};
|
|
@@ -3435,9 +3359,7 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
|
3435
3359
|
return {
|
|
3436
3360
|
nextAttemptDateTime: (0, smithy_client_1.expectString)(output.nextAttemptDateTime),
|
|
3437
3361
|
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
3438
|
-
steps: output.steps
|
|
3439
|
-
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
3440
|
-
: undefined,
|
|
3362
|
+
steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
3441
3363
|
};
|
|
3442
3364
|
};
|
|
3443
3365
|
const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
|
|
@@ -3509,22 +3431,18 @@ const deserializeAws_restJson1Job = (output, context) => {
|
|
|
3509
3431
|
endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
|
|
3510
3432
|
initiatedBy: (0, smithy_client_1.expectString)(output.initiatedBy),
|
|
3511
3433
|
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3512
|
-
participatingServers: output.participatingServers
|
|
3434
|
+
participatingServers: output.participatingServers != null
|
|
3513
3435
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3514
3436
|
: undefined,
|
|
3515
3437
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3516
|
-
tags: output.tags
|
|
3517
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3518
|
-
: undefined,
|
|
3438
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3519
3439
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3520
3440
|
};
|
|
3521
3441
|
};
|
|
3522
3442
|
const deserializeAws_restJson1JobLog = (output, context) => {
|
|
3523
3443
|
return {
|
|
3524
3444
|
event: (0, smithy_client_1.expectString)(output.event),
|
|
3525
|
-
eventData: output.eventData
|
|
3526
|
-
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
3527
|
-
: undefined,
|
|
3445
|
+
eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
|
|
3528
3446
|
logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
|
|
3529
3447
|
};
|
|
3530
3448
|
};
|
|
@@ -3552,9 +3470,7 @@ const deserializeAws_restJson1JobPostLaunchActionsLaunchStatus = (output, contex
|
|
|
3552
3470
|
executionID: (0, smithy_client_1.expectString)(output.executionID),
|
|
3553
3471
|
executionStatus: (0, smithy_client_1.expectString)(output.executionStatus),
|
|
3554
3472
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
3555
|
-
ssmDocument: output.ssmDocument
|
|
3556
|
-
? deserializeAws_restJson1SsmDocument(output.ssmDocument, context)
|
|
3557
|
-
: undefined,
|
|
3473
|
+
ssmDocument: output.ssmDocument != null ? deserializeAws_restJson1SsmDocument(output.ssmDocument, context) : undefined,
|
|
3558
3474
|
ssmDocumentType: (0, smithy_client_1.expectString)(output.ssmDocumentType),
|
|
3559
3475
|
};
|
|
3560
3476
|
};
|
|
@@ -3573,12 +3489,10 @@ const deserializeAws_restJson1LaunchConfigurationTemplate = (output, context) =>
|
|
|
3573
3489
|
return {
|
|
3574
3490
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3575
3491
|
launchConfigurationTemplateID: (0, smithy_client_1.expectString)(output.launchConfigurationTemplateID),
|
|
3576
|
-
postLaunchActions: output.postLaunchActions
|
|
3492
|
+
postLaunchActions: output.postLaunchActions != null
|
|
3577
3493
|
? deserializeAws_restJson1PostLaunchActions(output.postLaunchActions, context)
|
|
3578
3494
|
: undefined,
|
|
3579
|
-
tags: output.tags
|
|
3580
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3581
|
-
: undefined,
|
|
3495
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3582
3496
|
};
|
|
3583
3497
|
};
|
|
3584
3498
|
const deserializeAws_restJson1LaunchConfigurationTemplates = (output, context) => {
|
|
@@ -3609,25 +3523,23 @@ const deserializeAws_restJson1LifeCycle = (output, context) => {
|
|
|
3609
3523
|
addedToServiceDateTime: (0, smithy_client_1.expectString)(output.addedToServiceDateTime),
|
|
3610
3524
|
elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
|
|
3611
3525
|
firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
|
|
3612
|
-
lastCutover: output.lastCutover
|
|
3526
|
+
lastCutover: output.lastCutover != null
|
|
3613
3527
|
? deserializeAws_restJson1LifeCycleLastCutover(output.lastCutover, context)
|
|
3614
3528
|
: undefined,
|
|
3615
3529
|
lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
|
|
3616
|
-
lastTest: output.lastTest
|
|
3617
|
-
? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context)
|
|
3618
|
-
: undefined,
|
|
3530
|
+
lastTest: output.lastTest != null ? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context) : undefined,
|
|
3619
3531
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3620
3532
|
};
|
|
3621
3533
|
};
|
|
3622
3534
|
const deserializeAws_restJson1LifeCycleLastCutover = (output, context) => {
|
|
3623
3535
|
return {
|
|
3624
|
-
finalized: output.finalized
|
|
3536
|
+
finalized: output.finalized != null
|
|
3625
3537
|
? deserializeAws_restJson1LifeCycleLastCutoverFinalized(output.finalized, context)
|
|
3626
3538
|
: undefined,
|
|
3627
|
-
initiated: output.initiated
|
|
3539
|
+
initiated: output.initiated != null
|
|
3628
3540
|
? deserializeAws_restJson1LifeCycleLastCutoverInitiated(output.initiated, context)
|
|
3629
3541
|
: undefined,
|
|
3630
|
-
reverted: output.reverted
|
|
3542
|
+
reverted: output.reverted != null
|
|
3631
3543
|
? deserializeAws_restJson1LifeCycleLastCutoverReverted(output.reverted, context)
|
|
3632
3544
|
: undefined,
|
|
3633
3545
|
};
|
|
@@ -3650,15 +3562,13 @@ const deserializeAws_restJson1LifeCycleLastCutoverReverted = (output, context) =
|
|
|
3650
3562
|
};
|
|
3651
3563
|
const deserializeAws_restJson1LifeCycleLastTest = (output, context) => {
|
|
3652
3564
|
return {
|
|
3653
|
-
finalized: output.finalized
|
|
3565
|
+
finalized: output.finalized != null
|
|
3654
3566
|
? deserializeAws_restJson1LifeCycleLastTestFinalized(output.finalized, context)
|
|
3655
3567
|
: undefined,
|
|
3656
|
-
initiated: output.initiated
|
|
3568
|
+
initiated: output.initiated != null
|
|
3657
3569
|
? deserializeAws_restJson1LifeCycleLastTestInitiated(output.initiated, context)
|
|
3658
3570
|
: undefined,
|
|
3659
|
-
reverted: output.reverted
|
|
3660
|
-
? deserializeAws_restJson1LifeCycleLastTestReverted(output.reverted, context)
|
|
3661
|
-
: undefined,
|
|
3571
|
+
reverted: output.reverted != null ? deserializeAws_restJson1LifeCycleLastTestReverted(output.reverted, context) : undefined,
|
|
3662
3572
|
};
|
|
3663
3573
|
};
|
|
3664
3574
|
const deserializeAws_restJson1LifeCycleLastTestFinalized = (output, context) => {
|
|
@@ -3679,9 +3589,7 @@ const deserializeAws_restJson1LifeCycleLastTestReverted = (output, context) => {
|
|
|
3679
3589
|
};
|
|
3680
3590
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
3681
3591
|
return {
|
|
3682
|
-
ips: output.ips
|
|
3683
|
-
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
3684
|
-
: undefined,
|
|
3592
|
+
ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
|
|
3685
3593
|
isPrimary: (0, smithy_client_1.expectBoolean)(output.isPrimary),
|
|
3686
3594
|
macAddress: (0, smithy_client_1.expectString)(output.macAddress),
|
|
3687
3595
|
};
|
|
@@ -3706,7 +3614,7 @@ const deserializeAws_restJson1ParticipatingServer = (output, context) => {
|
|
|
3706
3614
|
return {
|
|
3707
3615
|
launchStatus: (0, smithy_client_1.expectString)(output.launchStatus),
|
|
3708
3616
|
launchedEc2InstanceID: (0, smithy_client_1.expectString)(output.launchedEc2InstanceID),
|
|
3709
|
-
postLaunchActionsStatus: output.postLaunchActionsStatus
|
|
3617
|
+
postLaunchActionsStatus: output.postLaunchActionsStatus != null
|
|
3710
3618
|
? deserializeAws_restJson1PostLaunchActionsStatus(output.postLaunchActionsStatus, context)
|
|
3711
3619
|
: undefined,
|
|
3712
3620
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
@@ -3729,9 +3637,7 @@ const deserializeAws_restJson1PostLaunchActions = (output, context) => {
|
|
|
3729
3637
|
deployment: (0, smithy_client_1.expectString)(output.deployment),
|
|
3730
3638
|
s3LogBucket: (0, smithy_client_1.expectString)(output.s3LogBucket),
|
|
3731
3639
|
s3OutputKeyPrefix: (0, smithy_client_1.expectString)(output.s3OutputKeyPrefix),
|
|
3732
|
-
ssmDocuments: output.ssmDocuments
|
|
3733
|
-
? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context)
|
|
3734
|
-
: undefined,
|
|
3640
|
+
ssmDocuments: output.ssmDocuments != null ? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context) : undefined,
|
|
3735
3641
|
};
|
|
3736
3642
|
};
|
|
3737
3643
|
const deserializeAws_restJson1PostLaunchActionsLaunchStatusList = (output, context) => {
|
|
@@ -3747,7 +3653,7 @@ const deserializeAws_restJson1PostLaunchActionsLaunchStatusList = (output, conte
|
|
|
3747
3653
|
};
|
|
3748
3654
|
const deserializeAws_restJson1PostLaunchActionsStatus = (output, context) => {
|
|
3749
3655
|
return {
|
|
3750
|
-
postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList
|
|
3656
|
+
postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList != null
|
|
3751
3657
|
? deserializeAws_restJson1PostLaunchActionsLaunchStatusList(output.postLaunchActionsLaunchStatusList, context)
|
|
3752
3658
|
: undefined,
|
|
3753
3659
|
ssmAgentDiscoveryDatetime: (0, smithy_client_1.expectString)(output.ssmAgentDiscoveryDatetime),
|
|
@@ -3785,16 +3691,12 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
|
|
|
3785
3691
|
ebsEncryptionKeyArn: (0, smithy_client_1.expectString)(output.ebsEncryptionKeyArn),
|
|
3786
3692
|
replicationConfigurationTemplateID: (0, smithy_client_1.expectString)(output.replicationConfigurationTemplateID),
|
|
3787
3693
|
replicationServerInstanceType: (0, smithy_client_1.expectString)(output.replicationServerInstanceType),
|
|
3788
|
-
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs
|
|
3694
|
+
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
|
|
3789
3695
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3790
3696
|
: undefined,
|
|
3791
3697
|
stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
|
|
3792
|
-
stagingAreaTags: output.stagingAreaTags
|
|
3793
|
-
|
|
3794
|
-
: undefined,
|
|
3795
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3796
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3797
|
-
: undefined,
|
|
3698
|
+
stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
|
|
3699
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3798
3700
|
useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
|
|
3799
3701
|
};
|
|
3800
3702
|
};
|
|
@@ -3822,20 +3724,16 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3822
3724
|
};
|
|
3823
3725
|
const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
3824
3726
|
return {
|
|
3825
|
-
cpus: output.cpus
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
3829
|
-
? deserializeAws_restJson1Disks(output.disks, context)
|
|
3830
|
-
: undefined,
|
|
3831
|
-
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
|
|
3832
3730
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3833
3731
|
: undefined,
|
|
3834
3732
|
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3835
|
-
networkInterfaces: output.networkInterfaces
|
|
3733
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3836
3734
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3837
3735
|
: undefined,
|
|
3838
|
-
os: output.os
|
|
3736
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3839
3737
|
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3840
3738
|
recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
|
|
3841
3739
|
};
|
|
@@ -3843,24 +3741,20 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3843
3741
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3844
3742
|
return {
|
|
3845
3743
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3846
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
3744
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3847
3745
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3848
3746
|
: undefined,
|
|
3849
3747
|
isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
|
|
3850
|
-
launchedInstance: output.launchedInstance
|
|
3748
|
+
launchedInstance: output.launchedInstance != null
|
|
3851
3749
|
? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
|
|
3852
3750
|
: undefined,
|
|
3853
|
-
lifeCycle: output.lifeCycle
|
|
3854
|
-
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
3855
|
-
: undefined,
|
|
3751
|
+
lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
|
|
3856
3752
|
replicationType: (0, smithy_client_1.expectString)(output.replicationType),
|
|
3857
|
-
sourceProperties: output.sourceProperties
|
|
3753
|
+
sourceProperties: output.sourceProperties != null
|
|
3858
3754
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3859
3755
|
: undefined,
|
|
3860
3756
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3861
|
-
tags: output.tags
|
|
3862
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3863
|
-
: undefined,
|
|
3757
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3864
3758
|
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3865
3759
|
};
|
|
3866
3760
|
};
|
|
@@ -3879,9 +3773,7 @@ const deserializeAws_restJson1SsmDocument = (output, context) => {
|
|
|
3879
3773
|
return {
|
|
3880
3774
|
actionName: (0, smithy_client_1.expectString)(output.actionName),
|
|
3881
3775
|
mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
|
|
3882
|
-
parameters: output.parameters
|
|
3883
|
-
? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context)
|
|
3884
|
-
: undefined,
|
|
3776
|
+
parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
|
|
3885
3777
|
ssmDocumentName: (0, smithy_client_1.expectString)(output.ssmDocumentName),
|
|
3886
3778
|
timeoutSeconds: (0, smithy_client_1.expectInt32)(output.timeoutSeconds),
|
|
3887
3779
|
};
|
|
@@ -3959,12 +3851,8 @@ const deserializeAws_restJson1VcenterClient = (output, context) => {
|
|
|
3959
3851
|
datacenterName: (0, smithy_client_1.expectString)(output.datacenterName),
|
|
3960
3852
|
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3961
3853
|
lastSeenDatetime: (0, smithy_client_1.expectString)(output.lastSeenDatetime),
|
|
3962
|
-
sourceServerTags: output.sourceServerTags
|
|
3963
|
-
|
|
3964
|
-
: undefined,
|
|
3965
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3966
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3967
|
-
: undefined,
|
|
3854
|
+
sourceServerTags: output.sourceServerTags != null ? deserializeAws_restJson1TagsMap(output.sourceServerTags, context) : undefined,
|
|
3855
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3968
3856
|
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3969
3857
|
vcenterUUID: (0, smithy_client_1.expectString)(output.vcenterUUID),
|
|
3970
3858
|
};
|
|
@@ -4011,6 +3899,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4011
3899
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4012
3900
|
const sanitizeErrorCode = (rawValue) => {
|
|
4013
3901
|
let cleanValue = rawValue;
|
|
3902
|
+
if (typeof cleanValue === "number") {
|
|
3903
|
+
cleanValue = cleanValue.toString();
|
|
3904
|
+
}
|
|
4014
3905
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4015
3906
|
cleanValue = cleanValue.split(":")[0];
|
|
4016
3907
|
}
|