@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.
@@ -14,11 +14,9 @@ export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (i
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ChangeServerLifeCycleState";
17
- body = JSON.stringify(__assign(__assign({}, (input.lifeCycle !== undefined &&
18
- input.lifeCycle !== null && {
17
+ body = JSON.stringify(__assign(__assign({}, (input.lifeCycle != null && {
19
18
  lifeCycle: serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle(input.lifeCycle, context),
20
- })), (input.sourceServerID !== undefined &&
21
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
19
+ })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
22
20
  return [2, new __HttpRequest({
23
21
  protocol: protocol,
24
22
  hostname: hostname,
@@ -42,11 +40,9 @@ export var serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = func
42
40
  "content-type": "application/json",
43
41
  };
44
42
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateLaunchConfigurationTemplate";
45
- body = JSON.stringify(__assign(__assign({}, (input.postLaunchActions !== undefined &&
46
- input.postLaunchActions !== null && {
43
+ body = JSON.stringify(__assign(__assign({}, (input.postLaunchActions != null && {
47
44
  postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
48
- })), (input.tags !== undefined &&
49
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
45
+ })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
50
46
  return [2, new __HttpRequest({
51
47
  protocol: protocol,
52
48
  hostname: hostname,
@@ -70,27 +66,17 @@ export var serializeAws_restJson1CreateReplicationConfigurationTemplateCommand =
70
66
  "content-type": "application/json",
71
67
  };
72
68
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateReplicationConfigurationTemplate";
73
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup !== undefined &&
74
- input.associateDefaultSecurityGroup !== null && {
69
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup != null && {
75
70
  associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
76
- })), (input.bandwidthThrottling !== undefined &&
77
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP !== undefined &&
78
- input.createPublicIP !== null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting !== undefined &&
79
- input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType !== undefined &&
80
- input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType })), (input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn !== undefined &&
81
- input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.replicationServerInstanceType !== undefined &&
82
- input.replicationServerInstanceType !== null && {
71
+ })), (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP != null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType != null && {
72
+ defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
73
+ })), (input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.replicationServerInstanceType != null && {
83
74
  replicationServerInstanceType: input.replicationServerInstanceType,
84
- })), (input.replicationServersSecurityGroupsIDs !== undefined &&
85
- input.replicationServersSecurityGroupsIDs !== null && {
75
+ })), (input.replicationServersSecurityGroupsIDs != null && {
86
76
  replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
87
- })), (input.stagingAreaSubnetId !== undefined &&
88
- input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags !== undefined &&
89
- input.stagingAreaTags !== null && {
77
+ })), (input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags != null && {
90
78
  stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
91
- })), (input.tags !== undefined &&
92
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.useDedicatedReplicationServer !== undefined &&
93
- input.useDedicatedReplicationServer !== null && {
79
+ })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.useDedicatedReplicationServer != null && {
94
80
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
95
81
  })));
96
82
  return [2, new __HttpRequest({
@@ -116,7 +102,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
116
102
  "content-type": "application/json",
117
103
  };
118
104
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteJob";
119
- body = JSON.stringify(__assign({}, (input.jobID !== undefined && input.jobID !== null && { jobID: input.jobID })));
105
+ body = JSON.stringify(__assign({}, (input.jobID != null && { jobID: input.jobID })));
120
106
  return [2, new __HttpRequest({
121
107
  protocol: protocol,
122
108
  hostname: hostname,
@@ -140,8 +126,7 @@ export var serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = func
140
126
  "content-type": "application/json",
141
127
  };
142
128
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteLaunchConfigurationTemplate";
143
- body = JSON.stringify(__assign({}, (input.launchConfigurationTemplateID !== undefined &&
144
- input.launchConfigurationTemplateID !== null && {
129
+ body = JSON.stringify(__assign({}, (input.launchConfigurationTemplateID != null && {
145
130
  launchConfigurationTemplateID: input.launchConfigurationTemplateID,
146
131
  })));
147
132
  return [2, new __HttpRequest({
@@ -167,8 +152,7 @@ export var serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand =
167
152
  "content-type": "application/json",
168
153
  };
169
154
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteReplicationConfigurationTemplate";
170
- body = JSON.stringify(__assign({}, (input.replicationConfigurationTemplateID !== undefined &&
171
- input.replicationConfigurationTemplateID !== null && {
155
+ body = JSON.stringify(__assign({}, (input.replicationConfigurationTemplateID != null && {
172
156
  replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
173
157
  })));
174
158
  return [2, new __HttpRequest({
@@ -194,8 +178,7 @@ export var serializeAws_restJson1DeleteSourceServerCommand = function (input, co
194
178
  "content-type": "application/json",
195
179
  };
196
180
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteSourceServer";
197
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
198
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
181
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
199
182
  return [2, new __HttpRequest({
200
183
  protocol: protocol,
201
184
  hostname: hostname,
@@ -219,8 +202,7 @@ export var serializeAws_restJson1DeleteVcenterClientCommand = function (input, c
219
202
  "content-type": "application/json",
220
203
  };
221
204
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteVcenterClient";
222
- body = JSON.stringify(__assign({}, (input.vcenterClientID !== undefined &&
223
- input.vcenterClientID !== null && { vcenterClientID: input.vcenterClientID })));
205
+ body = JSON.stringify(__assign({}, (input.vcenterClientID != null && { vcenterClientID: input.vcenterClientID })));
224
206
  return [2, new __HttpRequest({
225
207
  protocol: protocol,
226
208
  hostname: hostname,
@@ -244,7 +226,7 @@ export var serializeAws_restJson1DescribeJobLogItemsCommand = function (input, c
244
226
  "content-type": "application/json",
245
227
  };
246
228
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeJobLogItems";
247
- body = JSON.stringify(__assign(__assign(__assign({}, (input.jobID !== undefined && input.jobID !== null && { jobID: input.jobID })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
229
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.jobID != null && { jobID: input.jobID })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
248
230
  return [2, new __HttpRequest({
249
231
  protocol: protocol,
250
232
  hostname: hostname,
@@ -268,8 +250,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
268
250
  "content-type": "application/json",
269
251
  };
270
252
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeJobs";
271
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
272
- input.filters !== null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
253
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
273
254
  return [2, new __HttpRequest({
274
255
  protocol: protocol,
275
256
  hostname: hostname,
@@ -293,10 +274,9 @@ export var serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = f
293
274
  "content-type": "application/json",
294
275
  };
295
276
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeLaunchConfigurationTemplates";
296
- body = JSON.stringify(__assign(__assign(__assign({}, (input.launchConfigurationTemplateIDs !== undefined &&
297
- input.launchConfigurationTemplateIDs !== null && {
277
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.launchConfigurationTemplateIDs != null && {
298
278
  launchConfigurationTemplateIDs: serializeAws_restJson1LaunchConfigurationTemplateIDs(input.launchConfigurationTemplateIDs, context),
299
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
279
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
300
280
  return [2, new __HttpRequest({
301
281
  protocol: protocol,
302
282
  hostname: hostname,
@@ -321,8 +301,7 @@ export var serializeAws_restJson1DescribeReplicationConfigurationTemplatesComman
321
301
  };
322
302
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
323
303
  "/DescribeReplicationConfigurationTemplates";
324
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.replicationConfigurationTemplateIDs !== undefined &&
325
- input.replicationConfigurationTemplateIDs !== null && {
304
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.replicationConfigurationTemplateIDs != null && {
326
305
  replicationConfigurationTemplateIDs: serializeAws_restJson1ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
327
306
  })));
328
307
  return [2, new __HttpRequest({
@@ -348,10 +327,9 @@ export var serializeAws_restJson1DescribeSourceServersCommand = function (input,
348
327
  "content-type": "application/json",
349
328
  };
350
329
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeSourceServers";
351
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
352
- input.filters !== null && {
330
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && {
353
331
  filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
354
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
332
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
355
333
  return [2, new __HttpRequest({
356
334
  protocol: protocol,
357
335
  hostname: hostname,
@@ -398,8 +376,7 @@ export var serializeAws_restJson1DisconnectFromServiceCommand = function (input,
398
376
  "content-type": "application/json",
399
377
  };
400
378
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DisconnectFromService";
401
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
402
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
379
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
403
380
  return [2, new __HttpRequest({
404
381
  protocol: protocol,
405
382
  hostname: hostname,
@@ -423,8 +400,7 @@ export var serializeAws_restJson1FinalizeCutoverCommand = function (input, conte
423
400
  "content-type": "application/json",
424
401
  };
425
402
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/FinalizeCutover";
426
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
427
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
403
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
428
404
  return [2, new __HttpRequest({
429
405
  protocol: protocol,
430
406
  hostname: hostname,
@@ -448,8 +424,7 @@ export var serializeAws_restJson1GetLaunchConfigurationCommand = function (input
448
424
  "content-type": "application/json",
449
425
  };
450
426
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetLaunchConfiguration";
451
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
452
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
427
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
453
428
  return [2, new __HttpRequest({
454
429
  protocol: protocol,
455
430
  hostname: hostname,
@@ -473,8 +448,7 @@ export var serializeAws_restJson1GetReplicationConfigurationCommand = function (
473
448
  "content-type": "application/json",
474
449
  };
475
450
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetReplicationConfiguration";
476
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
477
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
451
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
478
452
  return [2, new __HttpRequest({
479
453
  protocol: protocol,
480
454
  hostname: hostname,
@@ -553,8 +527,7 @@ export var serializeAws_restJson1MarkAsArchivedCommand = function (input, contex
553
527
  "content-type": "application/json",
554
528
  };
555
529
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/MarkAsArchived";
556
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
557
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
530
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
558
531
  return [2, new __HttpRequest({
559
532
  protocol: protocol,
560
533
  hostname: hostname,
@@ -578,8 +551,7 @@ export var serializeAws_restJson1RetryDataReplicationCommand = function (input,
578
551
  "content-type": "application/json",
579
552
  };
580
553
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/RetryDataReplication";
581
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
582
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
554
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
583
555
  return [2, new __HttpRequest({
584
556
  protocol: protocol,
585
557
  hostname: hostname,
@@ -603,11 +575,9 @@ export var serializeAws_restJson1StartCutoverCommand = function (input, context)
603
575
  "content-type": "application/json",
604
576
  };
605
577
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartCutover";
606
- body = JSON.stringify(__assign(__assign({}, (input.sourceServerIDs !== undefined &&
607
- input.sourceServerIDs !== null && {
578
+ body = JSON.stringify(__assign(__assign({}, (input.sourceServerIDs != null && {
608
579
  sourceServerIDs: serializeAws_restJson1StartCutoverRequestSourceServerIDs(input.sourceServerIDs, context),
609
- })), (input.tags !== undefined &&
610
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
580
+ })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
611
581
  return [2, new __HttpRequest({
612
582
  protocol: protocol,
613
583
  hostname: hostname,
@@ -631,8 +601,7 @@ export var serializeAws_restJson1StartReplicationCommand = function (input, cont
631
601
  "content-type": "application/json",
632
602
  };
633
603
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartReplication";
634
- body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
635
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
604
+ body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
636
605
  return [2, new __HttpRequest({
637
606
  protocol: protocol,
638
607
  hostname: hostname,
@@ -656,11 +625,9 @@ export var serializeAws_restJson1StartTestCommand = function (input, context) {
656
625
  "content-type": "application/json",
657
626
  };
658
627
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartTest";
659
- body = JSON.stringify(__assign(__assign({}, (input.sourceServerIDs !== undefined &&
660
- input.sourceServerIDs !== null && {
628
+ body = JSON.stringify(__assign(__assign({}, (input.sourceServerIDs != null && {
661
629
  sourceServerIDs: serializeAws_restJson1StartTestRequestSourceServerIDs(input.sourceServerIDs, context),
662
- })), (input.tags !== undefined &&
663
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
630
+ })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
664
631
  return [2, new __HttpRequest({
665
632
  protocol: protocol,
666
633
  hostname: hostname,
@@ -694,8 +661,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
694
661
  else {
695
662
  throw new Error("No value provided for input HTTP label: resourceArn.");
696
663
  }
697
- body = JSON.stringify(__assign({}, (input.tags !== undefined &&
698
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
664
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
699
665
  return [2, new __HttpRequest({
700
666
  protocol: protocol,
701
667
  hostname: hostname,
@@ -719,11 +685,9 @@ export var serializeAws_restJson1TerminateTargetInstancesCommand = function (inp
719
685
  "content-type": "application/json",
720
686
  };
721
687
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/TerminateTargetInstances";
722
- body = JSON.stringify(__assign(__assign({}, (input.sourceServerIDs !== undefined &&
723
- input.sourceServerIDs !== null && {
688
+ body = JSON.stringify(__assign(__assign({}, (input.sourceServerIDs != null && {
724
689
  sourceServerIDs: serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs(input.sourceServerIDs, context),
725
- })), (input.tags !== undefined &&
726
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
690
+ })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
727
691
  return [2, new __HttpRequest({
728
692
  protocol: protocol,
729
693
  hostname: hostname,
@@ -780,14 +744,9 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
780
744
  "content-type": "application/json",
781
745
  };
782
746
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateLaunchConfiguration";
783
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bootMode !== undefined && input.bootMode !== null && { bootMode: input.bootMode })), (input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp })), (input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags })), (input.launchDisposition !== undefined &&
784
- input.launchDisposition !== null && { launchDisposition: input.launchDisposition })), (input.licensing !== undefined &&
785
- input.licensing !== null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.postLaunchActions !== undefined &&
786
- input.postLaunchActions !== null && {
747
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bootMode != null && { bootMode: input.bootMode })), (input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp })), (input.copyTags != null && { copyTags: input.copyTags })), (input.launchDisposition != null && { launchDisposition: input.launchDisposition })), (input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) })), (input.name != null && { name: input.name })), (input.postLaunchActions != null && {
787
748
  postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
788
- })), (input.sourceServerID !== undefined &&
789
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })), (input.targetInstanceTypeRightSizingMethod !== undefined &&
790
- input.targetInstanceTypeRightSizingMethod !== null && {
749
+ })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID })), (input.targetInstanceTypeRightSizingMethod != null && {
791
750
  targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
792
751
  })));
793
752
  return [2, new __HttpRequest({
@@ -813,11 +772,9 @@ export var serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = func
813
772
  "content-type": "application/json",
814
773
  };
815
774
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateLaunchConfigurationTemplate";
816
- body = JSON.stringify(__assign(__assign({}, (input.launchConfigurationTemplateID !== undefined &&
817
- input.launchConfigurationTemplateID !== null && {
775
+ body = JSON.stringify(__assign(__assign({}, (input.launchConfigurationTemplateID != null && {
818
776
  launchConfigurationTemplateID: input.launchConfigurationTemplateID,
819
- })), (input.postLaunchActions !== undefined &&
820
- input.postLaunchActions !== null && {
777
+ })), (input.postLaunchActions != null && {
821
778
  postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
822
779
  })));
823
780
  return [2, new __HttpRequest({
@@ -843,30 +800,19 @@ export var serializeAws_restJson1UpdateReplicationConfigurationCommand = functio
843
800
  "content-type": "application/json",
844
801
  };
845
802
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateReplicationConfiguration";
846
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup !== undefined &&
847
- input.associateDefaultSecurityGroup !== null && {
803
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup != null && {
848
804
  associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
849
- })), (input.bandwidthThrottling !== undefined &&
850
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP !== undefined &&
851
- input.createPublicIP !== null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting !== undefined &&
852
- input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType !== undefined &&
853
- input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType })), (input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn !== undefined &&
854
- input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.replicatedDisks !== undefined &&
855
- input.replicatedDisks !== null && {
805
+ })), (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP != null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType != null && {
806
+ defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
807
+ })), (input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.name != null && { name: input.name })), (input.replicatedDisks != null && {
856
808
  replicatedDisks: serializeAws_restJson1ReplicationConfigurationReplicatedDisks(input.replicatedDisks, context),
857
- })), (input.replicationServerInstanceType !== undefined &&
858
- input.replicationServerInstanceType !== null && {
809
+ })), (input.replicationServerInstanceType != null && {
859
810
  replicationServerInstanceType: input.replicationServerInstanceType,
860
- })), (input.replicationServersSecurityGroupsIDs !== undefined &&
861
- input.replicationServersSecurityGroupsIDs !== null && {
811
+ })), (input.replicationServersSecurityGroupsIDs != null && {
862
812
  replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
863
- })), (input.sourceServerID !== undefined &&
864
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })), (input.stagingAreaSubnetId !== undefined &&
865
- input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags !== undefined &&
866
- input.stagingAreaTags !== null && {
813
+ })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID })), (input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags != null && {
867
814
  stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
868
- })), (input.useDedicatedReplicationServer !== undefined &&
869
- input.useDedicatedReplicationServer !== null && {
815
+ })), (input.useDedicatedReplicationServer != null && {
870
816
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
871
817
  })));
872
818
  return [2, new __HttpRequest({
@@ -892,29 +838,19 @@ export var serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
892
838
  "content-type": "application/json",
893
839
  };
894
840
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateReplicationConfigurationTemplate";
895
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.associateDefaultSecurityGroup !== undefined &&
896
- input.associateDefaultSecurityGroup !== null && {
841
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.associateDefaultSecurityGroup != null && {
897
842
  associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
898
- })), (input.bandwidthThrottling !== undefined &&
899
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP !== undefined &&
900
- input.createPublicIP !== null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting !== undefined &&
901
- input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType !== undefined &&
902
- input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType })), (input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn !== undefined &&
903
- input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.replicationConfigurationTemplateID !== undefined &&
904
- input.replicationConfigurationTemplateID !== null && {
843
+ })), (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP != null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType != null && {
844
+ defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
845
+ })), (input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.replicationConfigurationTemplateID != null && {
905
846
  replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
906
- })), (input.replicationServerInstanceType !== undefined &&
907
- input.replicationServerInstanceType !== null && {
847
+ })), (input.replicationServerInstanceType != null && {
908
848
  replicationServerInstanceType: input.replicationServerInstanceType,
909
- })), (input.replicationServersSecurityGroupsIDs !== undefined &&
910
- input.replicationServersSecurityGroupsIDs !== null && {
849
+ })), (input.replicationServersSecurityGroupsIDs != null && {
911
850
  replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
912
- })), (input.stagingAreaSubnetId !== undefined &&
913
- input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags !== undefined &&
914
- input.stagingAreaTags !== null && {
851
+ })), (input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags != null && {
915
852
  stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
916
- })), (input.useDedicatedReplicationServer !== undefined &&
917
- input.useDedicatedReplicationServer !== null && {
853
+ })), (input.useDedicatedReplicationServer != null && {
918
854
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
919
855
  })));
920
856
  return [2, new __HttpRequest({
@@ -940,9 +876,7 @@ export var serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = func
940
876
  "content-type": "application/json",
941
877
  };
942
878
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateSourceServerReplicationType";
943
- body = JSON.stringify(__assign(__assign({}, (input.replicationType !== undefined &&
944
- input.replicationType !== null && { replicationType: input.replicationType })), (input.sourceServerID !== undefined &&
945
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
879
+ body = JSON.stringify(__assign(__assign({}, (input.replicationType != null && { replicationType: input.replicationType })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
946
880
  return [2, new __HttpRequest({
947
881
  protocol: protocol,
948
882
  hostname: hostname,
@@ -3851,13 +3785,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
3851
3785
  });
3852
3786
  }); };
3853
3787
  var serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = function (input, context) {
3854
- return __assign({}, (input.state !== undefined && input.state !== null && { state: input.state }));
3788
+ return __assign({}, (input.state != null && { state: input.state }));
3855
3789
  };
3856
3790
  var serializeAws_restJson1DescribeJobsRequestFilters = function (input, context) {
3857
- return __assign(__assign(__assign({}, (input.fromDate !== undefined && input.fromDate !== null && { fromDate: input.fromDate })), (input.jobIDs !== undefined &&
3858
- input.jobIDs !== null && {
3791
+ return __assign(__assign(__assign({}, (input.fromDate != null && { fromDate: input.fromDate })), (input.jobIDs != null && {
3859
3792
  jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
3860
- })), (input.toDate !== undefined && input.toDate !== null && { toDate: input.toDate }));
3793
+ })), (input.toDate != null && { toDate: input.toDate }));
3861
3794
  };
3862
3795
  var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, context) {
3863
3796
  return input
@@ -3870,14 +3803,11 @@ var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, co
3870
3803
  });
3871
3804
  };
3872
3805
  var serializeAws_restJson1DescribeSourceServersRequestFilters = function (input, context) {
3873
- return __assign(__assign(__assign(__assign({}, (input.isArchived !== undefined && input.isArchived !== null && { isArchived: input.isArchived })), (input.lifeCycleStates !== undefined &&
3874
- input.lifeCycleStates !== null && {
3806
+ return __assign(__assign(__assign(__assign({}, (input.isArchived != null && { isArchived: input.isArchived })), (input.lifeCycleStates != null && {
3875
3807
  lifeCycleStates: serializeAws_restJson1LifeCycleStates(input.lifeCycleStates, context),
3876
- })), (input.replicationTypes !== undefined &&
3877
- input.replicationTypes !== null && {
3808
+ })), (input.replicationTypes != null && {
3878
3809
  replicationTypes: serializeAws_restJson1ReplicationTypes(input.replicationTypes, context),
3879
- })), (input.sourceServerIDs !== undefined &&
3880
- input.sourceServerIDs !== null && {
3810
+ })), (input.sourceServerIDs != null && {
3881
3811
  sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
3882
3812
  }));
3883
3813
  };
@@ -3902,7 +3832,7 @@ var serializeAws_restJson1LaunchConfigurationTemplateIDs = function (input, cont
3902
3832
  });
3903
3833
  };
3904
3834
  var serializeAws_restJson1Licensing = function (input, context) {
3905
- return __assign({}, (input.osByol !== undefined && input.osByol !== null && { osByol: input.osByol }));
3835
+ return __assign({}, (input.osByol != null && { osByol: input.osByol }));
3906
3836
  };
3907
3837
  var serializeAws_restJson1LifeCycleStates = function (input, context) {
3908
3838
  return input
@@ -3915,14 +3845,12 @@ var serializeAws_restJson1LifeCycleStates = function (input, context) {
3915
3845
  });
3916
3846
  };
3917
3847
  var serializeAws_restJson1PostLaunchActions = function (input, context) {
3918
- return __assign(__assign(__assign(__assign(__assign({}, (input.cloudWatchLogGroupName !== undefined &&
3919
- input.cloudWatchLogGroupName !== null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName })), (input.deployment !== undefined && input.deployment !== null && { deployment: input.deployment })), (input.s3LogBucket !== undefined && input.s3LogBucket !== null && { s3LogBucket: input.s3LogBucket })), (input.s3OutputKeyPrefix !== undefined &&
3920
- input.s3OutputKeyPrefix !== null && { s3OutputKeyPrefix: input.s3OutputKeyPrefix })), (input.ssmDocuments !== undefined &&
3921
- input.ssmDocuments !== null && { ssmDocuments: serializeAws_restJson1SsmDocuments(input.ssmDocuments, context) }));
3848
+ return __assign(__assign(__assign(__assign(__assign({}, (input.cloudWatchLogGroupName != null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName })), (input.deployment != null && { deployment: input.deployment })), (input.s3LogBucket != null && { s3LogBucket: input.s3LogBucket })), (input.s3OutputKeyPrefix != null && { s3OutputKeyPrefix: input.s3OutputKeyPrefix })), (input.ssmDocuments != null && {
3849
+ ssmDocuments: serializeAws_restJson1SsmDocuments(input.ssmDocuments, context),
3850
+ }));
3922
3851
  };
3923
3852
  var serializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (input, context) {
3924
- return __assign(__assign(__assign(__assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk })), (input.stagingDiskType !== undefined &&
3925
- input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType })), (input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }));
3853
+ return __assign(__assign(__assign(__assign(__assign({}, (input.deviceName != null && { deviceName: input.deviceName })), (input.iops != null && { iops: input.iops })), (input.isBootDisk != null && { isBootDisk: input.isBootDisk })), (input.stagingDiskType != null && { stagingDiskType: input.stagingDiskType })), (input.throughput != null && { throughput: input.throughput }));
3926
3854
  };
3927
3855
  var serializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (input, context) {
3928
3856
  return input
@@ -3965,13 +3893,9 @@ var serializeAws_restJson1ReplicationTypes = function (input, context) {
3965
3893
  });
3966
3894
  };
3967
3895
  var serializeAws_restJson1SsmDocument = function (input, context) {
3968
- return __assign(__assign(__assign(__assign(__assign({}, (input.actionName !== undefined && input.actionName !== null && { actionName: input.actionName })), (input.mustSucceedForCutover !== undefined &&
3969
- input.mustSucceedForCutover !== null && { mustSucceedForCutover: input.mustSucceedForCutover })), (input.parameters !== undefined &&
3970
- input.parameters !== null && {
3896
+ return __assign(__assign(__assign(__assign(__assign({}, (input.actionName != null && { actionName: input.actionName })), (input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover })), (input.parameters != null && {
3971
3897
  parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
3972
- })), (input.ssmDocumentName !== undefined &&
3973
- input.ssmDocumentName !== null && { ssmDocumentName: input.ssmDocumentName })), (input.timeoutSeconds !== undefined &&
3974
- input.timeoutSeconds !== null && { timeoutSeconds: input.timeoutSeconds }));
3898
+ })), (input.ssmDocumentName != null && { ssmDocumentName: input.ssmDocumentName })), (input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }));
3975
3899
  };
3976
3900
  var serializeAws_restJson1SsmDocumentParameters = function (input, context) {
3977
3901
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3994,7 +3918,7 @@ var serializeAws_restJson1SsmDocuments = function (input, context) {
3994
3918
  });
3995
3919
  };
3996
3920
  var serializeAws_restJson1SsmParameterStoreParameter = function (input, context) {
3997
- return __assign(__assign({}, (input.parameterName !== undefined && input.parameterName !== null && { parameterName: input.parameterName })), (input.parameterType !== undefined && input.parameterType !== null && { parameterType: input.parameterType }));
3921
+ return __assign(__assign({}, (input.parameterName != null && { parameterName: input.parameterName })), (input.parameterType != null && { parameterType: input.parameterType }));
3998
3922
  };
3999
3923
  var serializeAws_restJson1SsmParameterStoreParameters = function (input, context) {
4000
3924
  return input
@@ -4082,17 +4006,17 @@ var deserializeAws_restJson1DataReplicationError = function (output, context) {
4082
4006
  };
4083
4007
  var deserializeAws_restJson1DataReplicationInfo = function (output, context) {
4084
4008
  return {
4085
- dataReplicationError: output.dataReplicationError !== undefined && output.dataReplicationError !== null
4009
+ dataReplicationError: output.dataReplicationError != null
4086
4010
  ? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
4087
4011
  : undefined,
4088
- dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
4012
+ dataReplicationInitiation: output.dataReplicationInitiation != null
4089
4013
  ? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
4090
4014
  : undefined,
4091
4015
  dataReplicationState: __expectString(output.dataReplicationState),
4092
4016
  etaDateTime: __expectString(output.etaDateTime),
4093
4017
  lagDuration: __expectString(output.lagDuration),
4094
4018
  lastSnapshotDateTime: __expectString(output.lastSnapshotDateTime),
4095
- replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
4019
+ replicatedDisks: output.replicatedDisks != null
4096
4020
  ? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
4097
4021
  : undefined,
4098
4022
  };
@@ -4121,9 +4045,7 @@ var deserializeAws_restJson1DataReplicationInitiation = function (output, contex
4121
4045
  return {
4122
4046
  nextAttemptDateTime: __expectString(output.nextAttemptDateTime),
4123
4047
  startDateTime: __expectString(output.startDateTime),
4124
- steps: output.steps !== undefined && output.steps !== null
4125
- ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
4126
- : undefined,
4048
+ steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
4127
4049
  };
4128
4050
  };
4129
4051
  var deserializeAws_restJson1DataReplicationInitiationStep = function (output, context) {
@@ -4195,22 +4117,18 @@ var deserializeAws_restJson1Job = function (output, context) {
4195
4117
  endDateTime: __expectString(output.endDateTime),
4196
4118
  initiatedBy: __expectString(output.initiatedBy),
4197
4119
  jobID: __expectString(output.jobID),
4198
- participatingServers: output.participatingServers !== undefined && output.participatingServers !== null
4120
+ participatingServers: output.participatingServers != null
4199
4121
  ? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
4200
4122
  : undefined,
4201
4123
  status: __expectString(output.status),
4202
- tags: output.tags !== undefined && output.tags !== null
4203
- ? deserializeAws_restJson1TagsMap(output.tags, context)
4204
- : undefined,
4124
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
4205
4125
  type: __expectString(output.type),
4206
4126
  };
4207
4127
  };
4208
4128
  var deserializeAws_restJson1JobLog = function (output, context) {
4209
4129
  return {
4210
4130
  event: __expectString(output.event),
4211
- eventData: output.eventData !== undefined && output.eventData !== null
4212
- ? deserializeAws_restJson1JobLogEventData(output.eventData, context)
4213
- : undefined,
4131
+ eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
4214
4132
  logDateTime: __expectString(output.logDateTime),
4215
4133
  };
4216
4134
  };
@@ -4238,9 +4156,7 @@ var deserializeAws_restJson1JobPostLaunchActionsLaunchStatus = function (output,
4238
4156
  executionID: __expectString(output.executionID),
4239
4157
  executionStatus: __expectString(output.executionStatus),
4240
4158
  failureReason: __expectString(output.failureReason),
4241
- ssmDocument: output.ssmDocument !== undefined && output.ssmDocument !== null
4242
- ? deserializeAws_restJson1SsmDocument(output.ssmDocument, context)
4243
- : undefined,
4159
+ ssmDocument: output.ssmDocument != null ? deserializeAws_restJson1SsmDocument(output.ssmDocument, context) : undefined,
4244
4160
  ssmDocumentType: __expectString(output.ssmDocumentType),
4245
4161
  };
4246
4162
  };
@@ -4259,12 +4175,10 @@ var deserializeAws_restJson1LaunchConfigurationTemplate = function (output, cont
4259
4175
  return {
4260
4176
  arn: __expectString(output.arn),
4261
4177
  launchConfigurationTemplateID: __expectString(output.launchConfigurationTemplateID),
4262
- postLaunchActions: output.postLaunchActions !== undefined && output.postLaunchActions !== null
4178
+ postLaunchActions: output.postLaunchActions != null
4263
4179
  ? deserializeAws_restJson1PostLaunchActions(output.postLaunchActions, context)
4264
4180
  : undefined,
4265
- tags: output.tags !== undefined && output.tags !== null
4266
- ? deserializeAws_restJson1TagsMap(output.tags, context)
4267
- : undefined,
4181
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
4268
4182
  };
4269
4183
  };
4270
4184
  var deserializeAws_restJson1LaunchConfigurationTemplates = function (output, context) {
@@ -4295,25 +4209,23 @@ var deserializeAws_restJson1LifeCycle = function (output, context) {
4295
4209
  addedToServiceDateTime: __expectString(output.addedToServiceDateTime),
4296
4210
  elapsedReplicationDuration: __expectString(output.elapsedReplicationDuration),
4297
4211
  firstByteDateTime: __expectString(output.firstByteDateTime),
4298
- lastCutover: output.lastCutover !== undefined && output.lastCutover !== null
4212
+ lastCutover: output.lastCutover != null
4299
4213
  ? deserializeAws_restJson1LifeCycleLastCutover(output.lastCutover, context)
4300
4214
  : undefined,
4301
4215
  lastSeenByServiceDateTime: __expectString(output.lastSeenByServiceDateTime),
4302
- lastTest: output.lastTest !== undefined && output.lastTest !== null
4303
- ? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context)
4304
- : undefined,
4216
+ lastTest: output.lastTest != null ? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context) : undefined,
4305
4217
  state: __expectString(output.state),
4306
4218
  };
4307
4219
  };
4308
4220
  var deserializeAws_restJson1LifeCycleLastCutover = function (output, context) {
4309
4221
  return {
4310
- finalized: output.finalized !== undefined && output.finalized !== null
4222
+ finalized: output.finalized != null
4311
4223
  ? deserializeAws_restJson1LifeCycleLastCutoverFinalized(output.finalized, context)
4312
4224
  : undefined,
4313
- initiated: output.initiated !== undefined && output.initiated !== null
4225
+ initiated: output.initiated != null
4314
4226
  ? deserializeAws_restJson1LifeCycleLastCutoverInitiated(output.initiated, context)
4315
4227
  : undefined,
4316
- reverted: output.reverted !== undefined && output.reverted !== null
4228
+ reverted: output.reverted != null
4317
4229
  ? deserializeAws_restJson1LifeCycleLastCutoverReverted(output.reverted, context)
4318
4230
  : undefined,
4319
4231
  };
@@ -4336,15 +4248,13 @@ var deserializeAws_restJson1LifeCycleLastCutoverReverted = function (output, con
4336
4248
  };
4337
4249
  var deserializeAws_restJson1LifeCycleLastTest = function (output, context) {
4338
4250
  return {
4339
- finalized: output.finalized !== undefined && output.finalized !== null
4251
+ finalized: output.finalized != null
4340
4252
  ? deserializeAws_restJson1LifeCycleLastTestFinalized(output.finalized, context)
4341
4253
  : undefined,
4342
- initiated: output.initiated !== undefined && output.initiated !== null
4254
+ initiated: output.initiated != null
4343
4255
  ? deserializeAws_restJson1LifeCycleLastTestInitiated(output.initiated, context)
4344
4256
  : undefined,
4345
- reverted: output.reverted !== undefined && output.reverted !== null
4346
- ? deserializeAws_restJson1LifeCycleLastTestReverted(output.reverted, context)
4347
- : undefined,
4257
+ reverted: output.reverted != null ? deserializeAws_restJson1LifeCycleLastTestReverted(output.reverted, context) : undefined,
4348
4258
  };
4349
4259
  };
4350
4260
  var deserializeAws_restJson1LifeCycleLastTestFinalized = function (output, context) {
@@ -4365,9 +4275,7 @@ var deserializeAws_restJson1LifeCycleLastTestReverted = function (output, contex
4365
4275
  };
4366
4276
  var deserializeAws_restJson1NetworkInterface = function (output, context) {
4367
4277
  return {
4368
- ips: output.ips !== undefined && output.ips !== null
4369
- ? deserializeAws_restJson1IPsList(output.ips, context)
4370
- : undefined,
4278
+ ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
4371
4279
  isPrimary: __expectBoolean(output.isPrimary),
4372
4280
  macAddress: __expectString(output.macAddress),
4373
4281
  };
@@ -4392,7 +4300,7 @@ var deserializeAws_restJson1ParticipatingServer = function (output, context) {
4392
4300
  return {
4393
4301
  launchStatus: __expectString(output.launchStatus),
4394
4302
  launchedEc2InstanceID: __expectString(output.launchedEc2InstanceID),
4395
- postLaunchActionsStatus: output.postLaunchActionsStatus !== undefined && output.postLaunchActionsStatus !== null
4303
+ postLaunchActionsStatus: output.postLaunchActionsStatus != null
4396
4304
  ? deserializeAws_restJson1PostLaunchActionsStatus(output.postLaunchActionsStatus, context)
4397
4305
  : undefined,
4398
4306
  sourceServerID: __expectString(output.sourceServerID),
@@ -4415,9 +4323,7 @@ var deserializeAws_restJson1PostLaunchActions = function (output, context) {
4415
4323
  deployment: __expectString(output.deployment),
4416
4324
  s3LogBucket: __expectString(output.s3LogBucket),
4417
4325
  s3OutputKeyPrefix: __expectString(output.s3OutputKeyPrefix),
4418
- ssmDocuments: output.ssmDocuments !== undefined && output.ssmDocuments !== null
4419
- ? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context)
4420
- : undefined,
4326
+ ssmDocuments: output.ssmDocuments != null ? deserializeAws_restJson1SsmDocuments(output.ssmDocuments, context) : undefined,
4421
4327
  };
4422
4328
  };
4423
4329
  var deserializeAws_restJson1PostLaunchActionsLaunchStatusList = function (output, context) {
@@ -4433,7 +4339,7 @@ var deserializeAws_restJson1PostLaunchActionsLaunchStatusList = function (output
4433
4339
  };
4434
4340
  var deserializeAws_restJson1PostLaunchActionsStatus = function (output, context) {
4435
4341
  return {
4436
- postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList !== undefined && output.postLaunchActionsLaunchStatusList !== null
4342
+ postLaunchActionsLaunchStatusList: output.postLaunchActionsLaunchStatusList != null
4437
4343
  ? deserializeAws_restJson1PostLaunchActionsLaunchStatusList(output.postLaunchActionsLaunchStatusList, context)
4438
4344
  : undefined,
4439
4345
  ssmAgentDiscoveryDatetime: __expectString(output.ssmAgentDiscoveryDatetime),
@@ -4471,16 +4377,12 @@ var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output,
4471
4377
  ebsEncryptionKeyArn: __expectString(output.ebsEncryptionKeyArn),
4472
4378
  replicationConfigurationTemplateID: __expectString(output.replicationConfigurationTemplateID),
4473
4379
  replicationServerInstanceType: __expectString(output.replicationServerInstanceType),
4474
- replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs !== undefined && output.replicationServersSecurityGroupsIDs !== null
4380
+ replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
4475
4381
  ? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
4476
4382
  : undefined,
4477
4383
  stagingAreaSubnetId: __expectString(output.stagingAreaSubnetId),
4478
- stagingAreaTags: output.stagingAreaTags !== undefined && output.stagingAreaTags !== null
4479
- ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context)
4480
- : undefined,
4481
- tags: output.tags !== undefined && output.tags !== null
4482
- ? deserializeAws_restJson1TagsMap(output.tags, context)
4483
- : undefined,
4384
+ stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
4385
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
4484
4386
  useDedicatedReplicationServer: __expectBoolean(output.useDedicatedReplicationServer),
4485
4387
  };
4486
4388
  };
@@ -4508,20 +4410,16 @@ var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (outp
4508
4410
  };
4509
4411
  var deserializeAws_restJson1SourceProperties = function (output, context) {
4510
4412
  return {
4511
- cpus: output.cpus !== undefined && output.cpus !== null
4512
- ? deserializeAws_restJson1Cpus(output.cpus, context)
4513
- : undefined,
4514
- disks: output.disks !== undefined && output.disks !== null
4515
- ? deserializeAws_restJson1Disks(output.disks, context)
4516
- : undefined,
4517
- identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
4413
+ cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
4414
+ disks: output.disks != null ? deserializeAws_restJson1Disks(output.disks, context) : undefined,
4415
+ identificationHints: output.identificationHints != null
4518
4416
  ? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
4519
4417
  : undefined,
4520
4418
  lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
4521
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
4419
+ networkInterfaces: output.networkInterfaces != null
4522
4420
  ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
4523
4421
  : undefined,
4524
- os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
4422
+ os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
4525
4423
  ramBytes: __expectLong(output.ramBytes),
4526
4424
  recommendedInstanceType: __expectString(output.recommendedInstanceType),
4527
4425
  };
@@ -4529,24 +4427,20 @@ var deserializeAws_restJson1SourceProperties = function (output, context) {
4529
4427
  var deserializeAws_restJson1SourceServer = function (output, context) {
4530
4428
  return {
4531
4429
  arn: __expectString(output.arn),
4532
- dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
4430
+ dataReplicationInfo: output.dataReplicationInfo != null
4533
4431
  ? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
4534
4432
  : undefined,
4535
4433
  isArchived: __expectBoolean(output.isArchived),
4536
- launchedInstance: output.launchedInstance !== undefined && output.launchedInstance !== null
4434
+ launchedInstance: output.launchedInstance != null
4537
4435
  ? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
4538
4436
  : undefined,
4539
- lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
4540
- ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
4541
- : undefined,
4437
+ lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
4542
4438
  replicationType: __expectString(output.replicationType),
4543
- sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
4439
+ sourceProperties: output.sourceProperties != null
4544
4440
  ? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
4545
4441
  : undefined,
4546
4442
  sourceServerID: __expectString(output.sourceServerID),
4547
- tags: output.tags !== undefined && output.tags !== null
4548
- ? deserializeAws_restJson1TagsMap(output.tags, context)
4549
- : undefined,
4443
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
4550
4444
  vcenterClientID: __expectString(output.vcenterClientID),
4551
4445
  };
4552
4446
  };
@@ -4565,9 +4459,7 @@ var deserializeAws_restJson1SsmDocument = function (output, context) {
4565
4459
  return {
4566
4460
  actionName: __expectString(output.actionName),
4567
4461
  mustSucceedForCutover: __expectBoolean(output.mustSucceedForCutover),
4568
- parameters: output.parameters !== undefined && output.parameters !== null
4569
- ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context)
4570
- : undefined,
4462
+ parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
4571
4463
  ssmDocumentName: __expectString(output.ssmDocumentName),
4572
4464
  timeoutSeconds: __expectInt32(output.timeoutSeconds),
4573
4465
  };
@@ -4643,12 +4535,8 @@ var deserializeAws_restJson1VcenterClient = function (output, context) {
4643
4535
  datacenterName: __expectString(output.datacenterName),
4644
4536
  hostname: __expectString(output.hostname),
4645
4537
  lastSeenDatetime: __expectString(output.lastSeenDatetime),
4646
- sourceServerTags: output.sourceServerTags !== undefined && output.sourceServerTags !== null
4647
- ? deserializeAws_restJson1TagsMap(output.sourceServerTags, context)
4648
- : undefined,
4649
- tags: output.tags !== undefined && output.tags !== null
4650
- ? deserializeAws_restJson1TagsMap(output.tags, context)
4651
- : undefined,
4538
+ sourceServerTags: output.sourceServerTags != null ? deserializeAws_restJson1TagsMap(output.sourceServerTags, context) : undefined,
4539
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
4652
4540
  vcenterClientID: __expectString(output.vcenterClientID),
4653
4541
  vcenterUUID: __expectString(output.vcenterUUID),
4654
4542
  };
@@ -4702,6 +4590,9 @@ var loadRestJsonErrorCode = function (output, data) {
4702
4590
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4703
4591
  var sanitizeErrorCode = function (rawValue) {
4704
4592
  var cleanValue = rawValue;
4593
+ if (typeof cleanValue === "number") {
4594
+ cleanValue = cleanValue.toString();
4595
+ }
4705
4596
  if (cleanValue.indexOf(":") >= 0) {
4706
4597
  cleanValue = cleanValue.split(":")[0];
4707
4598
  }