@aws-sdk/client-drs 3.121.0 → 3.127.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,10 +14,8 @@ const serializeAws_restJson1CreateExtendedSourceServerCommand = async (input, co
14
14
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateExtendedSourceServer";
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.sourceServerArn !== undefined &&
18
- input.sourceServerArn !== null && { sourceServerArn: input.sourceServerArn }),
19
- ...(input.tags !== undefined &&
20
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
17
+ ...(input.sourceServerArn != null && { sourceServerArn: input.sourceServerArn }),
18
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
21
19
  });
22
20
  return new protocol_http_1.HttpRequest({
23
21
  protocol,
@@ -38,41 +36,30 @@ const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = asyn
38
36
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate";
39
37
  let body;
40
38
  body = JSON.stringify({
41
- ...(input.associateDefaultSecurityGroup !== undefined &&
42
- input.associateDefaultSecurityGroup !== null && {
39
+ ...(input.associateDefaultSecurityGroup != null && {
43
40
  associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
44
41
  }),
45
- ...(input.bandwidthThrottling !== undefined &&
46
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling }),
47
- ...(input.createPublicIP !== undefined &&
48
- input.createPublicIP !== null && { createPublicIP: input.createPublicIP }),
49
- ...(input.dataPlaneRouting !== undefined &&
50
- input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting }),
51
- ...(input.defaultLargeStagingDiskType !== undefined &&
52
- input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType }),
53
- ...(input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption }),
54
- ...(input.ebsEncryptionKeyArn !== undefined &&
55
- input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
56
- ...(input.pitPolicy !== undefined &&
57
- input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
58
- ...(input.replicationServerInstanceType !== undefined &&
59
- input.replicationServerInstanceType !== null && {
42
+ ...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
43
+ ...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
44
+ ...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
45
+ ...(input.defaultLargeStagingDiskType != null && {
46
+ defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
47
+ }),
48
+ ...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
49
+ ...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
50
+ ...(input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
51
+ ...(input.replicationServerInstanceType != null && {
60
52
  replicationServerInstanceType: input.replicationServerInstanceType,
61
53
  }),
62
- ...(input.replicationServersSecurityGroupsIDs !== undefined &&
63
- input.replicationServersSecurityGroupsIDs !== null && {
54
+ ...(input.replicationServersSecurityGroupsIDs != null && {
64
55
  replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
65
56
  }),
66
- ...(input.stagingAreaSubnetId !== undefined &&
67
- input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
68
- ...(input.stagingAreaTags !== undefined &&
69
- input.stagingAreaTags !== null && {
57
+ ...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
58
+ ...(input.stagingAreaTags != null && {
70
59
  stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
71
60
  }),
72
- ...(input.tags !== undefined &&
73
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
74
- ...(input.useDedicatedReplicationServer !== undefined &&
75
- input.useDedicatedReplicationServer !== null && {
61
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
62
+ ...(input.useDedicatedReplicationServer != null && {
76
63
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
77
64
  }),
78
65
  });
@@ -95,7 +82,7 @@ const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
95
82
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob";
96
83
  let body;
97
84
  body = JSON.stringify({
98
- ...(input.jobID !== undefined && input.jobID !== null && { jobID: input.jobID }),
85
+ ...(input.jobID != null && { jobID: input.jobID }),
99
86
  });
100
87
  return new protocol_http_1.HttpRequest({
101
88
  protocol,
@@ -116,8 +103,7 @@ const serializeAws_restJson1DeleteRecoveryInstanceCommand = async (input, contex
116
103
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecoveryInstance";
117
104
  let body;
118
105
  body = JSON.stringify({
119
- ...(input.recoveryInstanceID !== undefined &&
120
- input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
106
+ ...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
121
107
  });
122
108
  return new protocol_http_1.HttpRequest({
123
109
  protocol,
@@ -138,8 +124,7 @@ const serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = asyn
138
124
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate";
139
125
  let body;
140
126
  body = JSON.stringify({
141
- ...(input.replicationConfigurationTemplateID !== undefined &&
142
- input.replicationConfigurationTemplateID !== null && {
127
+ ...(input.replicationConfigurationTemplateID != null && {
143
128
  replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
144
129
  }),
145
130
  });
@@ -162,8 +147,7 @@ const serializeAws_restJson1DeleteSourceServerCommand = async (input, context) =
162
147
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer";
163
148
  let body;
164
149
  body = JSON.stringify({
165
- ...(input.sourceServerID !== undefined &&
166
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
150
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
167
151
  });
168
152
  return new protocol_http_1.HttpRequest({
169
153
  protocol,
@@ -184,9 +168,9 @@ const serializeAws_restJson1DescribeJobLogItemsCommand = async (input, context)
184
168
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems";
185
169
  let body;
186
170
  body = JSON.stringify({
187
- ...(input.jobID !== undefined && input.jobID !== null && { jobID: input.jobID }),
188
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
189
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
171
+ ...(input.jobID != null && { jobID: input.jobID }),
172
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
173
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
190
174
  });
191
175
  return new protocol_http_1.HttpRequest({
192
176
  protocol,
@@ -207,10 +191,9 @@ const serializeAws_restJson1DescribeJobsCommand = async (input, context) => {
207
191
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
208
192
  let body;
209
193
  body = JSON.stringify({
210
- ...(input.filters !== undefined &&
211
- input.filters !== null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) }),
212
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
213
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
194
+ ...(input.filters != null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) }),
195
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
196
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
214
197
  });
215
198
  return new protocol_http_1.HttpRequest({
216
199
  protocol,
@@ -231,12 +214,11 @@ const serializeAws_restJson1DescribeRecoveryInstancesCommand = async (input, con
231
214
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoveryInstances";
232
215
  let body;
233
216
  body = JSON.stringify({
234
- ...(input.filters !== undefined &&
235
- input.filters !== null && {
217
+ ...(input.filters != null && {
236
218
  filters: serializeAws_restJson1DescribeRecoveryInstancesRequestFilters(input.filters, context),
237
219
  }),
238
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
239
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
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,15 +239,13 @@ const serializeAws_restJson1DescribeRecoverySnapshotsCommand = async (input, con
257
239
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoverySnapshots";
258
240
  let body;
259
241
  body = JSON.stringify({
260
- ...(input.filters !== undefined &&
261
- input.filters !== null && {
242
+ ...(input.filters != null && {
262
243
  filters: serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters(input.filters, context),
263
244
  }),
264
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
265
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
266
- ...(input.order !== undefined && input.order !== null && { order: input.order }),
267
- ...(input.sourceServerID !== undefined &&
268
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
245
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
246
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
247
+ ...(input.order != null && { order: input.order }),
248
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
269
249
  });
270
250
  return new protocol_http_1.HttpRequest({
271
251
  protocol,
@@ -287,10 +267,9 @@ const serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = a
287
267
  "/DescribeReplicationConfigurationTemplates";
288
268
  let body;
289
269
  body = JSON.stringify({
290
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
291
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
292
- ...(input.replicationConfigurationTemplateIDs !== undefined &&
293
- input.replicationConfigurationTemplateIDs !== null && {
270
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
271
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
272
+ ...(input.replicationConfigurationTemplateIDs != null && {
294
273
  replicationConfigurationTemplateIDs: serializeAws_restJson1ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
295
274
  }),
296
275
  });
@@ -313,12 +292,11 @@ const serializeAws_restJson1DescribeSourceServersCommand = async (input, context
313
292
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
314
293
  let body;
315
294
  body = JSON.stringify({
316
- ...(input.filters !== undefined &&
317
- input.filters !== null && {
295
+ ...(input.filters != null && {
318
296
  filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
319
297
  }),
320
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
321
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
298
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
299
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
322
300
  });
323
301
  return new protocol_http_1.HttpRequest({
324
302
  protocol,
@@ -339,8 +317,7 @@ const serializeAws_restJson1DisconnectRecoveryInstanceCommand = async (input, co
339
317
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectRecoveryInstance";
340
318
  let body;
341
319
  body = JSON.stringify({
342
- ...(input.recoveryInstanceID !== undefined &&
343
- input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
320
+ ...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
344
321
  });
345
322
  return new protocol_http_1.HttpRequest({
346
323
  protocol,
@@ -361,8 +338,7 @@ const serializeAws_restJson1DisconnectSourceServerCommand = async (input, contex
361
338
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectSourceServer";
362
339
  let body;
363
340
  body = JSON.stringify({
364
- ...(input.sourceServerID !== undefined &&
365
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
341
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
366
342
  });
367
343
  return new protocol_http_1.HttpRequest({
368
344
  protocol,
@@ -383,8 +359,7 @@ const serializeAws_restJson1GetFailbackReplicationConfigurationCommand = async (
383
359
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetFailbackReplicationConfiguration";
384
360
  let body;
385
361
  body = JSON.stringify({
386
- ...(input.recoveryInstanceID !== undefined &&
387
- input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
362
+ ...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
388
363
  });
389
364
  return new protocol_http_1.HttpRequest({
390
365
  protocol,
@@ -405,8 +380,7 @@ const serializeAws_restJson1GetLaunchConfigurationCommand = async (input, contex
405
380
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration";
406
381
  let body;
407
382
  body = JSON.stringify({
408
- ...(input.sourceServerID !== undefined &&
409
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
383
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
410
384
  });
411
385
  return new protocol_http_1.HttpRequest({
412
386
  protocol,
@@ -427,8 +401,7 @@ const serializeAws_restJson1GetReplicationConfigurationCommand = async (input, c
427
401
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration";
428
402
  let body;
429
403
  body = JSON.stringify({
430
- ...(input.sourceServerID !== undefined &&
431
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
404
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
432
405
  });
433
406
  return new protocol_http_1.HttpRequest({
434
407
  protocol,
@@ -468,10 +441,9 @@ const serializeAws_restJson1ListExtensibleSourceServersCommand = async (input, c
468
441
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListExtensibleSourceServers";
469
442
  let body;
470
443
  body = JSON.stringify({
471
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
472
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
473
- ...(input.stagingAccountID !== undefined &&
474
- input.stagingAccountID !== null && { stagingAccountID: input.stagingAccountID }),
444
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
445
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
446
+ ...(input.stagingAccountID != null && { stagingAccountID: input.stagingAccountID }),
475
447
  });
476
448
  return new protocol_http_1.HttpRequest({
477
449
  protocol,
@@ -539,8 +511,7 @@ const serializeAws_restJson1RetryDataReplicationCommand = async (input, context)
539
511
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
540
512
  let body;
541
513
  body = JSON.stringify({
542
- ...(input.sourceServerID !== undefined &&
543
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
514
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
544
515
  });
545
516
  return new protocol_http_1.HttpRequest({
546
517
  protocol,
@@ -561,12 +532,10 @@ const serializeAws_restJson1StartFailbackLaunchCommand = async (input, context)
561
532
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartFailbackLaunch";
562
533
  let body;
563
534
  body = JSON.stringify({
564
- ...(input.recoveryInstanceIDs !== undefined &&
565
- input.recoveryInstanceIDs !== null && {
535
+ ...(input.recoveryInstanceIDs != null && {
566
536
  recoveryInstanceIDs: serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs(input.recoveryInstanceIDs, context),
567
537
  }),
568
- ...(input.tags !== undefined &&
569
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
538
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
570
539
  });
571
540
  return new protocol_http_1.HttpRequest({
572
541
  protocol,
@@ -587,13 +556,11 @@ const serializeAws_restJson1StartRecoveryCommand = async (input, context) => {
587
556
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartRecovery";
588
557
  let body;
589
558
  body = JSON.stringify({
590
- ...(input.isDrill !== undefined && input.isDrill !== null && { isDrill: input.isDrill }),
591
- ...(input.sourceServers !== undefined &&
592
- input.sourceServers !== null && {
559
+ ...(input.isDrill != null && { isDrill: input.isDrill }),
560
+ ...(input.sourceServers != null && {
593
561
  sourceServers: serializeAws_restJson1StartRecoveryRequestSourceServers(input.sourceServers, context),
594
562
  }),
595
- ...(input.tags !== undefined &&
596
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
563
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
597
564
  });
598
565
  return new protocol_http_1.HttpRequest({
599
566
  protocol,
@@ -614,8 +581,7 @@ const serializeAws_restJson1StopFailbackCommand = async (input, context) => {
614
581
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StopFailback";
615
582
  let body;
616
583
  body = JSON.stringify({
617
- ...(input.recoveryInstanceID !== undefined &&
618
- input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
584
+ ...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
619
585
  });
620
586
  return new protocol_http_1.HttpRequest({
621
587
  protocol,
@@ -646,8 +612,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
646
612
  }
647
613
  let body;
648
614
  body = JSON.stringify({
649
- ...(input.tags !== undefined &&
650
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
615
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
651
616
  });
652
617
  return new protocol_http_1.HttpRequest({
653
618
  protocol,
@@ -668,8 +633,7 @@ const serializeAws_restJson1TerminateRecoveryInstancesCommand = async (input, co
668
633
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateRecoveryInstances";
669
634
  let body;
670
635
  body = JSON.stringify({
671
- ...(input.recoveryInstanceIDs !== undefined &&
672
- input.recoveryInstanceIDs !== null && {
636
+ ...(input.recoveryInstanceIDs != null && {
673
637
  recoveryInstanceIDs: serializeAws_restJson1RecoveryInstancesForTerminationRequest(input.recoveryInstanceIDs, context),
674
638
  }),
675
639
  });
@@ -722,12 +686,10 @@ const serializeAws_restJson1UpdateFailbackReplicationConfigurationCommand = asyn
722
686
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateFailbackReplicationConfiguration";
723
687
  let body;
724
688
  body = JSON.stringify({
725
- ...(input.bandwidthThrottling !== undefined &&
726
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling }),
727
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
728
- ...(input.recoveryInstanceID !== undefined &&
729
- input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
730
- ...(input.usePrivateIP !== undefined && input.usePrivateIP !== null && { usePrivateIP: input.usePrivateIP }),
689
+ ...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
690
+ ...(input.name != null && { name: input.name }),
691
+ ...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
692
+ ...(input.usePrivateIP != null && { usePrivateIP: input.usePrivateIP }),
731
693
  });
732
694
  return new protocol_http_1.HttpRequest({
733
695
  protocol,
@@ -748,17 +710,13 @@ const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (input, con
748
710
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
749
711
  let body;
750
712
  body = JSON.stringify({
751
- ...(input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp }),
752
- ...(input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags }),
753
- ...(input.launchDisposition !== undefined &&
754
- input.launchDisposition !== null && { launchDisposition: input.launchDisposition }),
755
- ...(input.licensing !== undefined &&
756
- input.licensing !== null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
757
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
758
- ...(input.sourceServerID !== undefined &&
759
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
760
- ...(input.targetInstanceTypeRightSizingMethod !== undefined &&
761
- input.targetInstanceTypeRightSizingMethod !== null && {
713
+ ...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
714
+ ...(input.copyTags != null && { copyTags: input.copyTags }),
715
+ ...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
716
+ ...(input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
717
+ ...(input.name != null && { name: input.name }),
718
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
719
+ ...(input.targetInstanceTypeRightSizingMethod != null && {
762
720
  targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
763
721
  }),
764
722
  });
@@ -781,46 +739,34 @@ const serializeAws_restJson1UpdateReplicationConfigurationCommand = async (input
781
739
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration";
782
740
  let body;
783
741
  body = JSON.stringify({
784
- ...(input.associateDefaultSecurityGroup !== undefined &&
785
- input.associateDefaultSecurityGroup !== null && {
742
+ ...(input.associateDefaultSecurityGroup != null && {
786
743
  associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
787
744
  }),
788
- ...(input.bandwidthThrottling !== undefined &&
789
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling }),
790
- ...(input.createPublicIP !== undefined &&
791
- input.createPublicIP !== null && { createPublicIP: input.createPublicIP }),
792
- ...(input.dataPlaneRouting !== undefined &&
793
- input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting }),
794
- ...(input.defaultLargeStagingDiskType !== undefined &&
795
- input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType }),
796
- ...(input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption }),
797
- ...(input.ebsEncryptionKeyArn !== undefined &&
798
- input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
799
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
800
- ...(input.pitPolicy !== undefined &&
801
- input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
802
- ...(input.replicatedDisks !== undefined &&
803
- input.replicatedDisks !== null && {
745
+ ...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
746
+ ...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
747
+ ...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
748
+ ...(input.defaultLargeStagingDiskType != null && {
749
+ defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
750
+ }),
751
+ ...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
752
+ ...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
753
+ ...(input.name != null && { name: input.name }),
754
+ ...(input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
755
+ ...(input.replicatedDisks != null && {
804
756
  replicatedDisks: serializeAws_restJson1ReplicationConfigurationReplicatedDisks(input.replicatedDisks, context),
805
757
  }),
806
- ...(input.replicationServerInstanceType !== undefined &&
807
- input.replicationServerInstanceType !== null && {
758
+ ...(input.replicationServerInstanceType != null && {
808
759
  replicationServerInstanceType: input.replicationServerInstanceType,
809
760
  }),
810
- ...(input.replicationServersSecurityGroupsIDs !== undefined &&
811
- input.replicationServersSecurityGroupsIDs !== null && {
761
+ ...(input.replicationServersSecurityGroupsIDs != null && {
812
762
  replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
813
763
  }),
814
- ...(input.sourceServerID !== undefined &&
815
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
816
- ...(input.stagingAreaSubnetId !== undefined &&
817
- input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
818
- ...(input.stagingAreaTags !== undefined &&
819
- input.stagingAreaTags !== null && {
764
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
765
+ ...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
766
+ ...(input.stagingAreaTags != null && {
820
767
  stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
821
768
  }),
822
- ...(input.useDedicatedReplicationServer !== undefined &&
823
- input.useDedicatedReplicationServer !== null && {
769
+ ...(input.useDedicatedReplicationServer != null && {
824
770
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
825
771
  }),
826
772
  });
@@ -843,44 +789,33 @@ const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = asyn
843
789
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate";
844
790
  let body;
845
791
  body = JSON.stringify({
846
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
847
- ...(input.associateDefaultSecurityGroup !== undefined &&
848
- input.associateDefaultSecurityGroup !== null && {
792
+ ...(input.arn != null && { arn: input.arn }),
793
+ ...(input.associateDefaultSecurityGroup != null && {
849
794
  associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
850
795
  }),
851
- ...(input.bandwidthThrottling !== undefined &&
852
- input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling }),
853
- ...(input.createPublicIP !== undefined &&
854
- input.createPublicIP !== null && { createPublicIP: input.createPublicIP }),
855
- ...(input.dataPlaneRouting !== undefined &&
856
- input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting }),
857
- ...(input.defaultLargeStagingDiskType !== undefined &&
858
- input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType }),
859
- ...(input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption }),
860
- ...(input.ebsEncryptionKeyArn !== undefined &&
861
- input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
862
- ...(input.pitPolicy !== undefined &&
863
- input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
864
- ...(input.replicationConfigurationTemplateID !== undefined &&
865
- input.replicationConfigurationTemplateID !== null && {
796
+ ...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
797
+ ...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
798
+ ...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
799
+ ...(input.defaultLargeStagingDiskType != null && {
800
+ defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
801
+ }),
802
+ ...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
803
+ ...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
804
+ ...(input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
805
+ ...(input.replicationConfigurationTemplateID != null && {
866
806
  replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
867
807
  }),
868
- ...(input.replicationServerInstanceType !== undefined &&
869
- input.replicationServerInstanceType !== null && {
808
+ ...(input.replicationServerInstanceType != null && {
870
809
  replicationServerInstanceType: input.replicationServerInstanceType,
871
810
  }),
872
- ...(input.replicationServersSecurityGroupsIDs !== undefined &&
873
- input.replicationServersSecurityGroupsIDs !== null && {
811
+ ...(input.replicationServersSecurityGroupsIDs != null && {
874
812
  replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
875
813
  }),
876
- ...(input.stagingAreaSubnetId !== undefined &&
877
- input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
878
- ...(input.stagingAreaTags !== undefined &&
879
- input.stagingAreaTags !== null && {
814
+ ...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
815
+ ...(input.stagingAreaTags != null && {
880
816
  stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
881
817
  }),
882
- ...(input.useDedicatedReplicationServer !== undefined &&
883
- input.useDedicatedReplicationServer !== null && {
818
+ ...(input.useDedicatedReplicationServer != null && {
884
819
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
885
820
  }),
886
821
  });
@@ -3030,12 +2965,11 @@ const serializeAws_restJson1AccountIDs = (input, context) => {
3030
2965
  };
3031
2966
  const serializeAws_restJson1DescribeJobsRequestFilters = (input, context) => {
3032
2967
  return {
3033
- ...(input.fromDate !== undefined && input.fromDate !== null && { fromDate: input.fromDate }),
3034
- ...(input.jobIDs !== undefined &&
3035
- input.jobIDs !== null && {
2968
+ ...(input.fromDate != null && { fromDate: input.fromDate }),
2969
+ ...(input.jobIDs != null && {
3036
2970
  jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
3037
2971
  }),
3038
- ...(input.toDate !== undefined && input.toDate !== null && { toDate: input.toDate }),
2972
+ ...(input.toDate != null && { toDate: input.toDate }),
3039
2973
  };
3040
2974
  };
3041
2975
  const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context) => {
@@ -3050,31 +2984,27 @@ const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context)
3050
2984
  };
3051
2985
  const serializeAws_restJson1DescribeRecoveryInstancesRequestFilters = (input, context) => {
3052
2986
  return {
3053
- ...(input.recoveryInstanceIDs !== undefined &&
3054
- input.recoveryInstanceIDs !== null && {
2987
+ ...(input.recoveryInstanceIDs != null && {
3055
2988
  recoveryInstanceIDs: serializeAws_restJson1RecoveryInstanceIDs(input.recoveryInstanceIDs, context),
3056
2989
  }),
3057
- ...(input.sourceServerIDs !== undefined &&
3058
- input.sourceServerIDs !== null && {
2990
+ ...(input.sourceServerIDs != null && {
3059
2991
  sourceServerIDs: serializeAws_restJson1SourceServerIDs(input.sourceServerIDs, context),
3060
2992
  }),
3061
2993
  };
3062
2994
  };
3063
2995
  const serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters = (input, context) => {
3064
2996
  return {
3065
- ...(input.fromDateTime !== undefined && input.fromDateTime !== null && { fromDateTime: input.fromDateTime }),
3066
- ...(input.toDateTime !== undefined && input.toDateTime !== null && { toDateTime: input.toDateTime }),
2997
+ ...(input.fromDateTime != null && { fromDateTime: input.fromDateTime }),
2998
+ ...(input.toDateTime != null && { toDateTime: input.toDateTime }),
3067
2999
  };
3068
3000
  };
3069
3001
  const serializeAws_restJson1DescribeSourceServersRequestFilters = (input, context) => {
3070
3002
  return {
3071
- ...(input.hardwareId !== undefined && input.hardwareId !== null && { hardwareId: input.hardwareId }),
3072
- ...(input.sourceServerIDs !== undefined &&
3073
- input.sourceServerIDs !== null && {
3003
+ ...(input.hardwareId != null && { hardwareId: input.hardwareId }),
3004
+ ...(input.sourceServerIDs != null && {
3074
3005
  sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
3075
3006
  }),
3076
- ...(input.stagingAccountIDs !== undefined &&
3077
- input.stagingAccountIDs !== null && {
3007
+ ...(input.stagingAccountIDs != null && {
3078
3008
  stagingAccountIDs: serializeAws_restJson1AccountIDs(input.stagingAccountIDs, context),
3079
3009
  }),
3080
3010
  };
@@ -3091,7 +3021,7 @@ const serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = (input, con
3091
3021
  };
3092
3022
  const serializeAws_restJson1Licensing = (input, context) => {
3093
3023
  return {
3094
- ...(input.osByol !== undefined && input.osByol !== null && { osByol: input.osByol }),
3024
+ ...(input.osByol != null && { osByol: input.osByol }),
3095
3025
  };
3096
3026
  };
3097
3027
  const serializeAws_restJson1PITPolicy = (input, context) => {
@@ -3106,12 +3036,11 @@ const serializeAws_restJson1PITPolicy = (input, context) => {
3106
3036
  };
3107
3037
  const serializeAws_restJson1PITPolicyRule = (input, context) => {
3108
3038
  return {
3109
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
3110
- ...(input.interval !== undefined && input.interval !== null && { interval: input.interval }),
3111
- ...(input.retentionDuration !== undefined &&
3112
- input.retentionDuration !== null && { retentionDuration: input.retentionDuration }),
3113
- ...(input.ruleID !== undefined && input.ruleID !== null && { ruleID: input.ruleID }),
3114
- ...(input.units !== undefined && input.units !== null && { units: input.units }),
3039
+ ...(input.enabled != null && { enabled: input.enabled }),
3040
+ ...(input.interval != null && { interval: input.interval }),
3041
+ ...(input.retentionDuration != null && { retentionDuration: input.retentionDuration }),
3042
+ ...(input.ruleID != null && { ruleID: input.ruleID }),
3043
+ ...(input.units != null && { units: input.units }),
3115
3044
  };
3116
3045
  };
3117
3046
  const serializeAws_restJson1RecoveryInstanceIDs = (input, context) => {
@@ -3136,12 +3065,11 @@ const serializeAws_restJson1RecoveryInstancesForTerminationRequest = (input, con
3136
3065
  };
3137
3066
  const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, context) => {
3138
3067
  return {
3139
- ...(input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName }),
3140
- ...(input.iops !== undefined && input.iops !== null && { iops: input.iops }),
3141
- ...(input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk }),
3142
- ...(input.stagingDiskType !== undefined &&
3143
- input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType }),
3144
- ...(input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }),
3068
+ ...(input.deviceName != null && { deviceName: input.deviceName }),
3069
+ ...(input.iops != null && { iops: input.iops }),
3070
+ ...(input.isBootDisk != null && { isBootDisk: input.isBootDisk }),
3071
+ ...(input.stagingDiskType != null && { stagingDiskType: input.stagingDiskType }),
3072
+ ...(input.throughput != null && { throughput: input.throughput }),
3145
3073
  };
3146
3074
  };
3147
3075
  const serializeAws_restJson1ReplicationConfigurationReplicatedDisks = (input, context) => {
@@ -3196,10 +3124,8 @@ const serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs = (input, co
3196
3124
  };
3197
3125
  const serializeAws_restJson1StartRecoveryRequestSourceServer = (input, context) => {
3198
3126
  return {
3199
- ...(input.recoverySnapshotID !== undefined &&
3200
- input.recoverySnapshotID !== null && { recoverySnapshotID: input.recoverySnapshotID }),
3201
- ...(input.sourceServerID !== undefined &&
3202
- input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
3127
+ ...(input.recoverySnapshotID != null && { recoverySnapshotID: input.recoverySnapshotID }),
3128
+ ...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
3203
3129
  };
3204
3130
  };
3205
3131
  const serializeAws_restJson1StartRecoveryRequestSourceServers = (input, context) => {
@@ -3255,10 +3181,10 @@ const deserializeAws_restJson1ConversionProperties = (output, context) => {
3255
3181
  dataTimestamp: (0, smithy_client_1.expectString)(output.dataTimestamp),
3256
3182
  forceUefi: (0, smithy_client_1.expectBoolean)(output.forceUefi),
3257
3183
  rootVolumeName: (0, smithy_client_1.expectString)(output.rootVolumeName),
3258
- volumeToConversionMap: output.volumeToConversionMap !== undefined && output.volumeToConversionMap !== null
3184
+ volumeToConversionMap: output.volumeToConversionMap != null
3259
3185
  ? deserializeAws_restJson1VolumeToConversionMap(output.volumeToConversionMap, context)
3260
3186
  : undefined,
3261
- volumeToVolumeSize: output.volumeToVolumeSize !== undefined && output.volumeToVolumeSize !== null
3187
+ volumeToVolumeSize: output.volumeToVolumeSize != null
3262
3188
  ? deserializeAws_restJson1VolumeToSizeMap(output.volumeToVolumeSize, context)
3263
3189
  : undefined,
3264
3190
  };
@@ -3288,16 +3214,16 @@ const deserializeAws_restJson1DataReplicationError = (output, context) => {
3288
3214
  };
3289
3215
  const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
3290
3216
  return {
3291
- dataReplicationError: output.dataReplicationError !== undefined && output.dataReplicationError !== null
3217
+ dataReplicationError: output.dataReplicationError != null
3292
3218
  ? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
3293
3219
  : undefined,
3294
- dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
3220
+ dataReplicationInitiation: output.dataReplicationInitiation != null
3295
3221
  ? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
3296
3222
  : undefined,
3297
3223
  dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
3298
3224
  etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
3299
3225
  lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
3300
- replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
3226
+ replicatedDisks: output.replicatedDisks != null
3301
3227
  ? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
3302
3228
  : undefined,
3303
3229
  };
@@ -3326,9 +3252,7 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
3326
3252
  return {
3327
3253
  nextAttemptDateTime: (0, smithy_client_1.expectString)(output.nextAttemptDateTime),
3328
3254
  startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
3329
- steps: output.steps !== undefined && output.steps !== null
3330
- ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
3331
- : undefined,
3255
+ steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
3332
3256
  };
3333
3257
  };
3334
3258
  const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
@@ -3413,28 +3337,24 @@ const deserializeAws_restJson1Job = (output, context) => {
3413
3337
  endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
3414
3338
  initiatedBy: (0, smithy_client_1.expectString)(output.initiatedBy),
3415
3339
  jobID: (0, smithy_client_1.expectString)(output.jobID),
3416
- participatingServers: output.participatingServers !== undefined && output.participatingServers !== null
3340
+ participatingServers: output.participatingServers != null
3417
3341
  ? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
3418
3342
  : undefined,
3419
3343
  status: (0, smithy_client_1.expectString)(output.status),
3420
- tags: output.tags !== undefined && output.tags !== null
3421
- ? deserializeAws_restJson1TagsMap(output.tags, context)
3422
- : undefined,
3344
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
3423
3345
  type: (0, smithy_client_1.expectString)(output.type),
3424
3346
  };
3425
3347
  };
3426
3348
  const deserializeAws_restJson1JobLog = (output, context) => {
3427
3349
  return {
3428
3350
  event: (0, smithy_client_1.expectString)(output.event),
3429
- eventData: output.eventData !== undefined && output.eventData !== null
3430
- ? deserializeAws_restJson1JobLogEventData(output.eventData, context)
3431
- : undefined,
3351
+ eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
3432
3352
  logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
3433
3353
  };
3434
3354
  };
3435
3355
  const deserializeAws_restJson1JobLogEventData = (output, context) => {
3436
3356
  return {
3437
- conversionProperties: output.conversionProperties !== undefined && output.conversionProperties !== null
3357
+ conversionProperties: output.conversionProperties != null
3438
3358
  ? deserializeAws_restJson1ConversionProperties(output.conversionProperties, context)
3439
3359
  : undefined,
3440
3360
  conversionServerID: (0, smithy_client_1.expectString)(output.conversionServerID),
@@ -3475,15 +3395,13 @@ const deserializeAws_restJson1LifeCycle = (output, context) => {
3475
3395
  addedToServiceDateTime: (0, smithy_client_1.expectString)(output.addedToServiceDateTime),
3476
3396
  elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
3477
3397
  firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
3478
- lastLaunch: output.lastLaunch !== undefined && output.lastLaunch !== null
3479
- ? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context)
3480
- : undefined,
3398
+ lastLaunch: output.lastLaunch != null ? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context) : undefined,
3481
3399
  lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
3482
3400
  };
3483
3401
  };
3484
3402
  const deserializeAws_restJson1LifeCycleLastLaunch = (output, context) => {
3485
3403
  return {
3486
- initiated: output.initiated !== undefined && output.initiated !== null
3404
+ initiated: output.initiated != null
3487
3405
  ? deserializeAws_restJson1LifeCycleLastLaunchInitiated(output.initiated, context)
3488
3406
  : undefined,
3489
3407
  };
@@ -3497,9 +3415,7 @@ const deserializeAws_restJson1LifeCycleLastLaunchInitiated = (output, context) =
3497
3415
  };
3498
3416
  const deserializeAws_restJson1NetworkInterface = (output, context) => {
3499
3417
  return {
3500
- ips: output.ips !== undefined && output.ips !== null
3501
- ? deserializeAws_restJson1IPsList(output.ips, context)
3502
- : undefined,
3418
+ ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
3503
3419
  isPrimary: (0, smithy_client_1.expectBoolean)(output.isPrimary),
3504
3420
  macAddress: (0, smithy_client_1.expectString)(output.macAddress),
3505
3421
  };
@@ -3561,25 +3477,21 @@ const deserializeAws_restJson1PITPolicyRule = (output, context) => {
3561
3477
  const deserializeAws_restJson1RecoveryInstance = (output, context) => {
3562
3478
  return {
3563
3479
  arn: (0, smithy_client_1.expectString)(output.arn),
3564
- dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
3480
+ dataReplicationInfo: output.dataReplicationInfo != null
3565
3481
  ? deserializeAws_restJson1RecoveryInstanceDataReplicationInfo(output.dataReplicationInfo, context)
3566
3482
  : undefined,
3567
3483
  ec2InstanceID: (0, smithy_client_1.expectString)(output.ec2InstanceID),
3568
3484
  ec2InstanceState: (0, smithy_client_1.expectString)(output.ec2InstanceState),
3569
- failback: output.failback !== undefined && output.failback !== null
3570
- ? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context)
3571
- : undefined,
3485
+ failback: output.failback != null ? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context) : undefined,
3572
3486
  isDrill: (0, smithy_client_1.expectBoolean)(output.isDrill),
3573
3487
  jobID: (0, smithy_client_1.expectString)(output.jobID),
3574
3488
  pointInTimeSnapshotDateTime: (0, smithy_client_1.expectString)(output.pointInTimeSnapshotDateTime),
3575
3489
  recoveryInstanceID: (0, smithy_client_1.expectString)(output.recoveryInstanceID),
3576
- recoveryInstanceProperties: output.recoveryInstanceProperties !== undefined && output.recoveryInstanceProperties !== null
3490
+ recoveryInstanceProperties: output.recoveryInstanceProperties != null
3577
3491
  ? deserializeAws_restJson1RecoveryInstanceProperties(output.recoveryInstanceProperties, context)
3578
3492
  : undefined,
3579
3493
  sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
3580
- tags: output.tags !== undefined && output.tags !== null
3581
- ? deserializeAws_restJson1TagsMap(output.tags, context)
3582
- : undefined,
3494
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
3583
3495
  };
3584
3496
  };
3585
3497
  const deserializeAws_restJson1RecoveryInstanceDataReplicationError = (output, context) => {
@@ -3590,16 +3502,16 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationError = (output, co
3590
3502
  };
3591
3503
  const deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = (output, context) => {
3592
3504
  return {
3593
- dataReplicationError: output.dataReplicationError !== undefined && output.dataReplicationError !== null
3505
+ dataReplicationError: output.dataReplicationError != null
3594
3506
  ? deserializeAws_restJson1RecoveryInstanceDataReplicationError(output.dataReplicationError, context)
3595
3507
  : undefined,
3596
- dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
3508
+ dataReplicationInitiation: output.dataReplicationInitiation != null
3597
3509
  ? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation(output.dataReplicationInitiation, context)
3598
3510
  : undefined,
3599
3511
  dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
3600
3512
  etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
3601
3513
  lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
3602
- replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
3514
+ replicatedDisks: output.replicatedDisks != null
3603
3515
  ? deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
3604
3516
  : undefined,
3605
3517
  };
@@ -3627,7 +3539,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks
3627
3539
  const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = (output, context) => {
3628
3540
  return {
3629
3541
  startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
3630
- steps: output.steps !== undefined && output.steps !== null
3542
+ steps: output.steps != null
3631
3543
  ? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps(output.steps, context)
3632
3544
  : undefined,
3633
3545
  };
@@ -3682,28 +3594,22 @@ const deserializeAws_restJson1RecoveryInstanceFailback = (output, context) => {
3682
3594
  };
3683
3595
  const deserializeAws_restJson1RecoveryInstanceProperties = (output, context) => {
3684
3596
  return {
3685
- cpus: output.cpus !== undefined && output.cpus !== null
3686
- ? deserializeAws_restJson1Cpus(output.cpus, context)
3687
- : undefined,
3688
- disks: output.disks !== undefined && output.disks !== null
3689
- ? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context)
3690
- : undefined,
3691
- identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
3597
+ cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
3598
+ disks: output.disks != null ? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context) : undefined,
3599
+ identificationHints: output.identificationHints != null
3692
3600
  ? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
3693
3601
  : undefined,
3694
3602
  lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
3695
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
3603
+ networkInterfaces: output.networkInterfaces != null
3696
3604
  ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
3697
3605
  : undefined,
3698
- os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
3606
+ os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
3699
3607
  ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
3700
3608
  };
3701
3609
  };
3702
3610
  const deserializeAws_restJson1RecoverySnapshot = (output, context) => {
3703
3611
  return {
3704
- ebsSnapshots: output.ebsSnapshots !== undefined && output.ebsSnapshots !== null
3705
- ? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context)
3706
- : undefined,
3612
+ ebsSnapshots: output.ebsSnapshots != null ? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context) : undefined,
3707
3613
  expectedTimestamp: (0, smithy_client_1.expectString)(output.expectedTimestamp),
3708
3614
  snapshotID: (0, smithy_client_1.expectString)(output.snapshotID),
3709
3615
  sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
@@ -3751,21 +3657,15 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
3751
3657
  defaultLargeStagingDiskType: (0, smithy_client_1.expectString)(output.defaultLargeStagingDiskType),
3752
3658
  ebsEncryption: (0, smithy_client_1.expectString)(output.ebsEncryption),
3753
3659
  ebsEncryptionKeyArn: (0, smithy_client_1.expectString)(output.ebsEncryptionKeyArn),
3754
- pitPolicy: output.pitPolicy !== undefined && output.pitPolicy !== null
3755
- ? deserializeAws_restJson1PITPolicy(output.pitPolicy, context)
3756
- : undefined,
3660
+ pitPolicy: output.pitPolicy != null ? deserializeAws_restJson1PITPolicy(output.pitPolicy, context) : undefined,
3757
3661
  replicationConfigurationTemplateID: (0, smithy_client_1.expectString)(output.replicationConfigurationTemplateID),
3758
3662
  replicationServerInstanceType: (0, smithy_client_1.expectString)(output.replicationServerInstanceType),
3759
- replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs !== undefined && output.replicationServersSecurityGroupsIDs !== null
3663
+ replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
3760
3664
  ? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
3761
3665
  : undefined,
3762
3666
  stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
3763
- stagingAreaTags: output.stagingAreaTags !== undefined && output.stagingAreaTags !== null
3764
- ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context)
3765
- : undefined,
3766
- tags: output.tags !== undefined && output.tags !== null
3767
- ? deserializeAws_restJson1TagsMap(output.tags, context)
3768
- : undefined,
3667
+ stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
3668
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
3769
3669
  useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
3770
3670
  };
3771
3671
  };
@@ -3793,20 +3693,16 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
3793
3693
  };
3794
3694
  const deserializeAws_restJson1SourceProperties = (output, context) => {
3795
3695
  return {
3796
- cpus: output.cpus !== undefined && output.cpus !== null
3797
- ? deserializeAws_restJson1Cpus(output.cpus, context)
3798
- : undefined,
3799
- disks: output.disks !== undefined && output.disks !== null
3800
- ? deserializeAws_restJson1Disks(output.disks, context)
3801
- : undefined,
3802
- identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
3696
+ cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
3697
+ disks: output.disks != null ? deserializeAws_restJson1Disks(output.disks, context) : undefined,
3698
+ identificationHints: output.identificationHints != null
3803
3699
  ? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
3804
3700
  : undefined,
3805
3701
  lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
3806
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
3702
+ networkInterfaces: output.networkInterfaces != null
3807
3703
  ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
3808
3704
  : undefined,
3809
- os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
3705
+ os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
3810
3706
  ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
3811
3707
  recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
3812
3708
  };
@@ -3814,24 +3710,18 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
3814
3710
  const deserializeAws_restJson1SourceServer = (output, context) => {
3815
3711
  return {
3816
3712
  arn: (0, smithy_client_1.expectString)(output.arn),
3817
- dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
3713
+ dataReplicationInfo: output.dataReplicationInfo != null
3818
3714
  ? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
3819
3715
  : undefined,
3820
3716
  lastLaunchResult: (0, smithy_client_1.expectString)(output.lastLaunchResult),
3821
- lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
3822
- ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
3823
- : undefined,
3717
+ lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
3824
3718
  recoveryInstanceId: (0, smithy_client_1.expectString)(output.recoveryInstanceId),
3825
- sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
3719
+ sourceProperties: output.sourceProperties != null
3826
3720
  ? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
3827
3721
  : undefined,
3828
3722
  sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
3829
- stagingArea: output.stagingArea !== undefined && output.stagingArea !== null
3830
- ? deserializeAws_restJson1StagingArea(output.stagingArea, context)
3831
- : undefined,
3832
- tags: output.tags !== undefined && output.tags !== null
3833
- ? deserializeAws_restJson1TagsMap(output.tags, context)
3834
- : undefined,
3723
+ stagingArea: output.stagingArea != null ? deserializeAws_restJson1StagingArea(output.stagingArea, context) : undefined,
3724
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
3835
3725
  };
3836
3726
  };
3837
3727
  const deserializeAws_restJson1SourceServersList = (output, context) => {
@@ -3857,9 +3747,7 @@ const deserializeAws_restJson1StagingSourceServer = (output, context) => {
3857
3747
  return {
3858
3748
  arn: (0, smithy_client_1.expectString)(output.arn),
3859
3749
  hostname: (0, smithy_client_1.expectString)(output.hostname),
3860
- tags: output.tags !== undefined && output.tags !== null
3861
- ? deserializeAws_restJson1TagsMap(output.tags, context)
3862
- : undefined,
3750
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
3863
3751
  };
3864
3752
  };
3865
3753
  const deserializeAws_restJson1StagingSourceServersList = (output, context) => {