@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.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +170 -282
- package/dist-es/protocols/Aws_restJson1.js +106 -218
- package/package.json +26 -26
|
@@ -14,9 +14,7 @@ export var serializeAws_restJson1CreateExtendedSourceServerCommand = 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 || "") + "/CreateExtendedSourceServer";
|
|
17
|
-
body = JSON.stringify(__assign(__assign({}, (input.sourceServerArn
|
|
18
|
-
input.sourceServerArn !== null && { sourceServerArn: input.sourceServerArn })), (input.tags !== undefined &&
|
|
19
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign({}, (input.sourceServerArn != null && { sourceServerArn: input.sourceServerArn })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
20
18
|
return [2, new __HttpRequest({
|
|
21
19
|
protocol: protocol,
|
|
22
20
|
hostname: hostname,
|
|
@@ -40,28 +38,17 @@ export var serializeAws_restJson1CreateReplicationConfigurationTemplateCommand =
|
|
|
40
38
|
"content-type": "application/json",
|
|
41
39
|
};
|
|
42
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateReplicationConfigurationTemplate";
|
|
43
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup
|
|
44
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup != null && {
|
|
45
42
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
46
|
-
})), (input.bandwidthThrottling
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType !== undefined &&
|
|
50
|
-
input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType })), (input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn !== undefined &&
|
|
51
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.pitPolicy !== undefined &&
|
|
52
|
-
input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) })), (input.replicationServerInstanceType !== undefined &&
|
|
53
|
-
input.replicationServerInstanceType !== null && {
|
|
43
|
+
})), (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP != null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType != null && {
|
|
44
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
45
|
+
})), (input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) })), (input.replicationServerInstanceType != null && {
|
|
54
46
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
55
|
-
})), (input.replicationServersSecurityGroupsIDs
|
|
56
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
47
|
+
})), (input.replicationServersSecurityGroupsIDs != null && {
|
|
57
48
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
58
|
-
})), (input.stagingAreaSubnetId
|
|
59
|
-
input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags !== undefined &&
|
|
60
|
-
input.stagingAreaTags !== null && {
|
|
49
|
+
})), (input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags != null && {
|
|
61
50
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
62
|
-
})), (input.tags
|
|
63
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.useDedicatedReplicationServer !== undefined &&
|
|
64
|
-
input.useDedicatedReplicationServer !== null && {
|
|
51
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.useDedicatedReplicationServer != null && {
|
|
65
52
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
66
53
|
})));
|
|
67
54
|
return [2, new __HttpRequest({
|
|
@@ -87,7 +74,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
87
74
|
"content-type": "application/json",
|
|
88
75
|
};
|
|
89
76
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteJob";
|
|
90
|
-
body = JSON.stringify(__assign({}, (input.jobID
|
|
77
|
+
body = JSON.stringify(__assign({}, (input.jobID != null && { jobID: input.jobID })));
|
|
91
78
|
return [2, new __HttpRequest({
|
|
92
79
|
protocol: protocol,
|
|
93
80
|
hostname: hostname,
|
|
@@ -111,8 +98,7 @@ export var serializeAws_restJson1DeleteRecoveryInstanceCommand = function (input
|
|
|
111
98
|
"content-type": "application/json",
|
|
112
99
|
};
|
|
113
100
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteRecoveryInstance";
|
|
114
|
-
body = JSON.stringify(__assign({}, (input.recoveryInstanceID
|
|
115
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
101
|
+
body = JSON.stringify(__assign({}, (input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
116
102
|
return [2, new __HttpRequest({
|
|
117
103
|
protocol: protocol,
|
|
118
104
|
hostname: hostname,
|
|
@@ -136,8 +122,7 @@ export var serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand =
|
|
|
136
122
|
"content-type": "application/json",
|
|
137
123
|
};
|
|
138
124
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteReplicationConfigurationTemplate";
|
|
139
|
-
body = JSON.stringify(__assign({}, (input.replicationConfigurationTemplateID
|
|
140
|
-
input.replicationConfigurationTemplateID !== null && {
|
|
125
|
+
body = JSON.stringify(__assign({}, (input.replicationConfigurationTemplateID != null && {
|
|
141
126
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
142
127
|
})));
|
|
143
128
|
return [2, new __HttpRequest({
|
|
@@ -163,8 +148,7 @@ export var serializeAws_restJson1DeleteSourceServerCommand = function (input, co
|
|
|
163
148
|
"content-type": "application/json",
|
|
164
149
|
};
|
|
165
150
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteSourceServer";
|
|
166
|
-
body = JSON.stringify(__assign({}, (input.sourceServerID
|
|
167
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
|
|
151
|
+
body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
|
|
168
152
|
return [2, new __HttpRequest({
|
|
169
153
|
protocol: protocol,
|
|
170
154
|
hostname: hostname,
|
|
@@ -188,7 +172,7 @@ export var serializeAws_restJson1DescribeJobLogItemsCommand = function (input, c
|
|
|
188
172
|
"content-type": "application/json",
|
|
189
173
|
};
|
|
190
174
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeJobLogItems";
|
|
191
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.jobID
|
|
175
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.jobID != null && { jobID: input.jobID })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
192
176
|
return [2, new __HttpRequest({
|
|
193
177
|
protocol: protocol,
|
|
194
178
|
hostname: hostname,
|
|
@@ -212,8 +196,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
|
|
|
212
196
|
"content-type": "application/json",
|
|
213
197
|
};
|
|
214
198
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeJobs";
|
|
215
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
216
|
-
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 })));
|
|
199
|
+
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 })));
|
|
217
200
|
return [2, new __HttpRequest({
|
|
218
201
|
protocol: protocol,
|
|
219
202
|
hostname: hostname,
|
|
@@ -237,10 +220,9 @@ export var serializeAws_restJson1DescribeRecoveryInstancesCommand = function (in
|
|
|
237
220
|
"content-type": "application/json",
|
|
238
221
|
};
|
|
239
222
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeRecoveryInstances";
|
|
240
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
241
|
-
input.filters !== null && {
|
|
223
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && {
|
|
242
224
|
filters: serializeAws_restJson1DescribeRecoveryInstancesRequestFilters(input.filters, context),
|
|
243
|
-
})), (input.maxResults
|
|
225
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
244
226
|
return [2, new __HttpRequest({
|
|
245
227
|
protocol: protocol,
|
|
246
228
|
hostname: hostname,
|
|
@@ -264,11 +246,9 @@ export var serializeAws_restJson1DescribeRecoverySnapshotsCommand = function (in
|
|
|
264
246
|
"content-type": "application/json",
|
|
265
247
|
};
|
|
266
248
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeRecoverySnapshots";
|
|
267
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.filters
|
|
268
|
-
input.filters !== null && {
|
|
249
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.filters != null && {
|
|
269
250
|
filters: serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters(input.filters, context),
|
|
270
|
-
})), (input.maxResults
|
|
271
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
|
|
251
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.order != null && { order: input.order })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
|
|
272
252
|
return [2, new __HttpRequest({
|
|
273
253
|
protocol: protocol,
|
|
274
254
|
hostname: hostname,
|
|
@@ -293,8 +273,7 @@ export var serializeAws_restJson1DescribeReplicationConfigurationTemplatesComman
|
|
|
293
273
|
};
|
|
294
274
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
295
275
|
"/DescribeReplicationConfigurationTemplates";
|
|
296
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults
|
|
297
|
-
input.replicationConfigurationTemplateIDs !== null && {
|
|
276
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.replicationConfigurationTemplateIDs != null && {
|
|
298
277
|
replicationConfigurationTemplateIDs: serializeAws_restJson1ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
|
|
299
278
|
})));
|
|
300
279
|
return [2, new __HttpRequest({
|
|
@@ -320,10 +299,9 @@ export var serializeAws_restJson1DescribeSourceServersCommand = function (input,
|
|
|
320
299
|
"content-type": "application/json",
|
|
321
300
|
};
|
|
322
301
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeSourceServers";
|
|
323
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
324
|
-
input.filters !== null && {
|
|
302
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && {
|
|
325
303
|
filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
|
|
326
|
-
})), (input.maxResults
|
|
304
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
327
305
|
return [2, new __HttpRequest({
|
|
328
306
|
protocol: protocol,
|
|
329
307
|
hostname: hostname,
|
|
@@ -347,8 +325,7 @@ export var serializeAws_restJson1DisconnectRecoveryInstanceCommand = function (i
|
|
|
347
325
|
"content-type": "application/json",
|
|
348
326
|
};
|
|
349
327
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DisconnectRecoveryInstance";
|
|
350
|
-
body = JSON.stringify(__assign({}, (input.recoveryInstanceID
|
|
351
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
328
|
+
body = JSON.stringify(__assign({}, (input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
352
329
|
return [2, new __HttpRequest({
|
|
353
330
|
protocol: protocol,
|
|
354
331
|
hostname: hostname,
|
|
@@ -372,8 +349,7 @@ export var serializeAws_restJson1DisconnectSourceServerCommand = function (input
|
|
|
372
349
|
"content-type": "application/json",
|
|
373
350
|
};
|
|
374
351
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DisconnectSourceServer";
|
|
375
|
-
body = JSON.stringify(__assign({}, (input.sourceServerID
|
|
376
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
|
|
352
|
+
body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
|
|
377
353
|
return [2, new __HttpRequest({
|
|
378
354
|
protocol: protocol,
|
|
379
355
|
hostname: hostname,
|
|
@@ -397,8 +373,7 @@ export var serializeAws_restJson1GetFailbackReplicationConfigurationCommand = fu
|
|
|
397
373
|
"content-type": "application/json",
|
|
398
374
|
};
|
|
399
375
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetFailbackReplicationConfiguration";
|
|
400
|
-
body = JSON.stringify(__assign({}, (input.recoveryInstanceID
|
|
401
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
376
|
+
body = JSON.stringify(__assign({}, (input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
402
377
|
return [2, new __HttpRequest({
|
|
403
378
|
protocol: protocol,
|
|
404
379
|
hostname: hostname,
|
|
@@ -422,8 +397,7 @@ export var serializeAws_restJson1GetLaunchConfigurationCommand = function (input
|
|
|
422
397
|
"content-type": "application/json",
|
|
423
398
|
};
|
|
424
399
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetLaunchConfiguration";
|
|
425
|
-
body = JSON.stringify(__assign({}, (input.sourceServerID
|
|
426
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
|
|
400
|
+
body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
|
|
427
401
|
return [2, new __HttpRequest({
|
|
428
402
|
protocol: protocol,
|
|
429
403
|
hostname: hostname,
|
|
@@ -447,8 +421,7 @@ export var serializeAws_restJson1GetReplicationConfigurationCommand = function (
|
|
|
447
421
|
"content-type": "application/json",
|
|
448
422
|
};
|
|
449
423
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetReplicationConfiguration";
|
|
450
|
-
body = JSON.stringify(__assign({}, (input.sourceServerID
|
|
451
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
|
|
424
|
+
body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
|
|
452
425
|
return [2, new __HttpRequest({
|
|
453
426
|
protocol: protocol,
|
|
454
427
|
hostname: hostname,
|
|
@@ -496,8 +469,7 @@ export var serializeAws_restJson1ListExtensibleSourceServersCommand = function (
|
|
|
496
469
|
"content-type": "application/json",
|
|
497
470
|
};
|
|
498
471
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListExtensibleSourceServers";
|
|
499
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults
|
|
500
|
-
input.stagingAccountID !== null && { stagingAccountID: input.stagingAccountID })));
|
|
472
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.stagingAccountID != null && { stagingAccountID: input.stagingAccountID })));
|
|
501
473
|
return [2, new __HttpRequest({
|
|
502
474
|
protocol: protocol,
|
|
503
475
|
hostname: hostname,
|
|
@@ -575,8 +547,7 @@ export var serializeAws_restJson1RetryDataReplicationCommand = function (input,
|
|
|
575
547
|
"content-type": "application/json",
|
|
576
548
|
};
|
|
577
549
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/RetryDataReplication";
|
|
578
|
-
body = JSON.stringify(__assign({}, (input.sourceServerID
|
|
579
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
|
|
550
|
+
body = JSON.stringify(__assign({}, (input.sourceServerID != null && { sourceServerID: input.sourceServerID })));
|
|
580
551
|
return [2, new __HttpRequest({
|
|
581
552
|
protocol: protocol,
|
|
582
553
|
hostname: hostname,
|
|
@@ -600,11 +571,9 @@ export var serializeAws_restJson1StartFailbackLaunchCommand = function (input, c
|
|
|
600
571
|
"content-type": "application/json",
|
|
601
572
|
};
|
|
602
573
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartFailbackLaunch";
|
|
603
|
-
body = JSON.stringify(__assign(__assign({}, (input.recoveryInstanceIDs
|
|
604
|
-
input.recoveryInstanceIDs !== null && {
|
|
574
|
+
body = JSON.stringify(__assign(__assign({}, (input.recoveryInstanceIDs != null && {
|
|
605
575
|
recoveryInstanceIDs: serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
606
|
-
})), (input.tags
|
|
607
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
576
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
608
577
|
return [2, new __HttpRequest({
|
|
609
578
|
protocol: protocol,
|
|
610
579
|
hostname: hostname,
|
|
@@ -628,11 +597,9 @@ export var serializeAws_restJson1StartRecoveryCommand = function (input, context
|
|
|
628
597
|
"content-type": "application/json",
|
|
629
598
|
};
|
|
630
599
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartRecovery";
|
|
631
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.isDrill
|
|
632
|
-
input.sourceServers !== null && {
|
|
600
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.isDrill != null && { isDrill: input.isDrill })), (input.sourceServers != null && {
|
|
633
601
|
sourceServers: serializeAws_restJson1StartRecoveryRequestSourceServers(input.sourceServers, context),
|
|
634
|
-
})), (input.tags
|
|
635
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
602
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
636
603
|
return [2, new __HttpRequest({
|
|
637
604
|
protocol: protocol,
|
|
638
605
|
hostname: hostname,
|
|
@@ -656,8 +623,7 @@ export var serializeAws_restJson1StopFailbackCommand = function (input, context)
|
|
|
656
623
|
"content-type": "application/json",
|
|
657
624
|
};
|
|
658
625
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StopFailback";
|
|
659
|
-
body = JSON.stringify(__assign({}, (input.recoveryInstanceID
|
|
660
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
626
|
+
body = JSON.stringify(__assign({}, (input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID })));
|
|
661
627
|
return [2, new __HttpRequest({
|
|
662
628
|
protocol: protocol,
|
|
663
629
|
hostname: hostname,
|
|
@@ -691,8 +657,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
691
657
|
else {
|
|
692
658
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
693
659
|
}
|
|
694
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
695
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
660
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
696
661
|
return [2, new __HttpRequest({
|
|
697
662
|
protocol: protocol,
|
|
698
663
|
hostname: hostname,
|
|
@@ -716,8 +681,7 @@ export var serializeAws_restJson1TerminateRecoveryInstancesCommand = function (i
|
|
|
716
681
|
"content-type": "application/json",
|
|
717
682
|
};
|
|
718
683
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/TerminateRecoveryInstances";
|
|
719
|
-
body = JSON.stringify(__assign({}, (input.recoveryInstanceIDs
|
|
720
|
-
input.recoveryInstanceIDs !== null && {
|
|
684
|
+
body = JSON.stringify(__assign({}, (input.recoveryInstanceIDs != null && {
|
|
721
685
|
recoveryInstanceIDs: serializeAws_restJson1RecoveryInstancesForTerminationRequest(input.recoveryInstanceIDs, context),
|
|
722
686
|
})));
|
|
723
687
|
return [2, new __HttpRequest({
|
|
@@ -776,9 +740,7 @@ export var serializeAws_restJson1UpdateFailbackReplicationConfigurationCommand =
|
|
|
776
740
|
"content-type": "application/json",
|
|
777
741
|
};
|
|
778
742
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateFailbackReplicationConfiguration";
|
|
779
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.bandwidthThrottling
|
|
780
|
-
input.bandwidthThrottling !== null && { bandwidthThrottling: input.bandwidthThrottling })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.recoveryInstanceID !== undefined &&
|
|
781
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID })), (input.usePrivateIP !== undefined && input.usePrivateIP !== null && { usePrivateIP: input.usePrivateIP })));
|
|
743
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.name != null && { name: input.name })), (input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID })), (input.usePrivateIP != null && { usePrivateIP: input.usePrivateIP })));
|
|
782
744
|
return [2, new __HttpRequest({
|
|
783
745
|
protocol: protocol,
|
|
784
746
|
hostname: hostname,
|
|
@@ -802,11 +764,7 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
|
|
|
802
764
|
"content-type": "application/json",
|
|
803
765
|
};
|
|
804
766
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateLaunchConfiguration";
|
|
805
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.copyPrivateIp
|
|
806
|
-
input.launchDisposition !== null && { launchDisposition: input.launchDisposition })), (input.licensing !== undefined &&
|
|
807
|
-
input.licensing !== null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.sourceServerID !== undefined &&
|
|
808
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })), (input.targetInstanceTypeRightSizingMethod !== undefined &&
|
|
809
|
-
input.targetInstanceTypeRightSizingMethod !== null && {
|
|
767
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (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.sourceServerID != null && { sourceServerID: input.sourceServerID })), (input.targetInstanceTypeRightSizingMethod != null && {
|
|
810
768
|
targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
|
|
811
769
|
})));
|
|
812
770
|
return [2, new __HttpRequest({
|
|
@@ -832,31 +790,19 @@ export var serializeAws_restJson1UpdateReplicationConfigurationCommand = functio
|
|
|
832
790
|
"content-type": "application/json",
|
|
833
791
|
};
|
|
834
792
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateReplicationConfiguration";
|
|
835
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup
|
|
836
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
793
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associateDefaultSecurityGroup != null && {
|
|
837
794
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
838
|
-
})), (input.bandwidthThrottling
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType !== undefined &&
|
|
842
|
-
input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType })), (input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn !== undefined &&
|
|
843
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.pitPolicy !== undefined &&
|
|
844
|
-
input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) })), (input.replicatedDisks !== undefined &&
|
|
845
|
-
input.replicatedDisks !== null && {
|
|
795
|
+
})), (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP != null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType != null && {
|
|
796
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
797
|
+
})), (input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.name != null && { name: input.name })), (input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) })), (input.replicatedDisks != null && {
|
|
846
798
|
replicatedDisks: serializeAws_restJson1ReplicationConfigurationReplicatedDisks(input.replicatedDisks, context),
|
|
847
|
-
})), (input.replicationServerInstanceType
|
|
848
|
-
input.replicationServerInstanceType !== null && {
|
|
799
|
+
})), (input.replicationServerInstanceType != null && {
|
|
849
800
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
850
|
-
})), (input.replicationServersSecurityGroupsIDs
|
|
851
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
801
|
+
})), (input.replicationServersSecurityGroupsIDs != null && {
|
|
852
802
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
853
|
-
})), (input.sourceServerID
|
|
854
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID })), (input.stagingAreaSubnetId !== undefined &&
|
|
855
|
-
input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags !== undefined &&
|
|
856
|
-
input.stagingAreaTags !== null && {
|
|
803
|
+
})), (input.sourceServerID != null && { sourceServerID: input.sourceServerID })), (input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags != null && {
|
|
857
804
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
858
|
-
})), (input.useDedicatedReplicationServer
|
|
859
|
-
input.useDedicatedReplicationServer !== null && {
|
|
805
|
+
})), (input.useDedicatedReplicationServer != null && {
|
|
860
806
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
861
807
|
})));
|
|
862
808
|
return [2, new __HttpRequest({
|
|
@@ -882,30 +828,19 @@ export var serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
|
|
|
882
828
|
"content-type": "application/json",
|
|
883
829
|
};
|
|
884
830
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateReplicationConfigurationTemplate";
|
|
885
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn
|
|
886
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
831
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.associateDefaultSecurityGroup != null && {
|
|
887
832
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
888
|
-
})), (input.bandwidthThrottling
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
input.dataPlaneRouting !== null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType !== undefined &&
|
|
892
|
-
input.defaultLargeStagingDiskType !== null && { defaultLargeStagingDiskType: input.defaultLargeStagingDiskType })), (input.ebsEncryption !== undefined && input.ebsEncryption !== null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn !== undefined &&
|
|
893
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.pitPolicy !== undefined &&
|
|
894
|
-
input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) })), (input.replicationConfigurationTemplateID !== undefined &&
|
|
895
|
-
input.replicationConfigurationTemplateID !== null && {
|
|
833
|
+
})), (input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling })), (input.createPublicIP != null && { createPublicIP: input.createPublicIP })), (input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting })), (input.defaultLargeStagingDiskType != null && {
|
|
834
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
835
|
+
})), (input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption })), (input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn })), (input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) })), (input.replicationConfigurationTemplateID != null && {
|
|
896
836
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
897
|
-
})), (input.replicationServerInstanceType
|
|
898
|
-
input.replicationServerInstanceType !== null && {
|
|
837
|
+
})), (input.replicationServerInstanceType != null && {
|
|
899
838
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
900
|
-
})), (input.replicationServersSecurityGroupsIDs
|
|
901
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
839
|
+
})), (input.replicationServersSecurityGroupsIDs != null && {
|
|
902
840
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
903
|
-
})), (input.stagingAreaSubnetId
|
|
904
|
-
input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags !== undefined &&
|
|
905
|
-
input.stagingAreaTags !== null && {
|
|
841
|
+
})), (input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId })), (input.stagingAreaTags != null && {
|
|
906
842
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
907
|
-
})), (input.useDedicatedReplicationServer
|
|
908
|
-
input.useDedicatedReplicationServer !== null && {
|
|
843
|
+
})), (input.useDedicatedReplicationServer != null && {
|
|
909
844
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
910
845
|
})));
|
|
911
846
|
return [2, new __HttpRequest({
|
|
@@ -3771,10 +3706,9 @@ var serializeAws_restJson1AccountIDs = function (input, context) {
|
|
|
3771
3706
|
});
|
|
3772
3707
|
};
|
|
3773
3708
|
var serializeAws_restJson1DescribeJobsRequestFilters = function (input, context) {
|
|
3774
|
-
return __assign(__assign(__assign({}, (input.fromDate
|
|
3775
|
-
input.jobIDs !== null && {
|
|
3709
|
+
return __assign(__assign(__assign({}, (input.fromDate != null && { fromDate: input.fromDate })), (input.jobIDs != null && {
|
|
3776
3710
|
jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
|
|
3777
|
-
})), (input.toDate
|
|
3711
|
+
})), (input.toDate != null && { toDate: input.toDate }));
|
|
3778
3712
|
};
|
|
3779
3713
|
var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, context) {
|
|
3780
3714
|
return input
|
|
@@ -3787,23 +3721,19 @@ var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, co
|
|
|
3787
3721
|
});
|
|
3788
3722
|
};
|
|
3789
3723
|
var serializeAws_restJson1DescribeRecoveryInstancesRequestFilters = function (input, context) {
|
|
3790
|
-
return __assign(__assign({}, (input.recoveryInstanceIDs
|
|
3791
|
-
input.recoveryInstanceIDs !== null && {
|
|
3724
|
+
return __assign(__assign({}, (input.recoveryInstanceIDs != null && {
|
|
3792
3725
|
recoveryInstanceIDs: serializeAws_restJson1RecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
3793
|
-
})), (input.sourceServerIDs
|
|
3794
|
-
input.sourceServerIDs !== null && {
|
|
3726
|
+
})), (input.sourceServerIDs != null && {
|
|
3795
3727
|
sourceServerIDs: serializeAws_restJson1SourceServerIDs(input.sourceServerIDs, context),
|
|
3796
3728
|
}));
|
|
3797
3729
|
};
|
|
3798
3730
|
var serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters = function (input, context) {
|
|
3799
|
-
return __assign(__assign({}, (input.fromDateTime
|
|
3731
|
+
return __assign(__assign({}, (input.fromDateTime != null && { fromDateTime: input.fromDateTime })), (input.toDateTime != null && { toDateTime: input.toDateTime }));
|
|
3800
3732
|
};
|
|
3801
3733
|
var serializeAws_restJson1DescribeSourceServersRequestFilters = function (input, context) {
|
|
3802
|
-
return __assign(__assign(__assign({}, (input.hardwareId
|
|
3803
|
-
input.sourceServerIDs !== null && {
|
|
3734
|
+
return __assign(__assign(__assign({}, (input.hardwareId != null && { hardwareId: input.hardwareId })), (input.sourceServerIDs != null && {
|
|
3804
3735
|
sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
|
|
3805
|
-
})), (input.stagingAccountIDs
|
|
3806
|
-
input.stagingAccountIDs !== null && {
|
|
3736
|
+
})), (input.stagingAccountIDs != null && {
|
|
3807
3737
|
stagingAccountIDs: serializeAws_restJson1AccountIDs(input.stagingAccountIDs, context),
|
|
3808
3738
|
}));
|
|
3809
3739
|
};
|
|
@@ -3818,7 +3748,7 @@ var serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = function (inp
|
|
|
3818
3748
|
});
|
|
3819
3749
|
};
|
|
3820
3750
|
var serializeAws_restJson1Licensing = function (input, context) {
|
|
3821
|
-
return __assign({}, (input.osByol
|
|
3751
|
+
return __assign({}, (input.osByol != null && { osByol: input.osByol }));
|
|
3822
3752
|
};
|
|
3823
3753
|
var serializeAws_restJson1PITPolicy = function (input, context) {
|
|
3824
3754
|
return input
|
|
@@ -3831,8 +3761,7 @@ var serializeAws_restJson1PITPolicy = function (input, context) {
|
|
|
3831
3761
|
});
|
|
3832
3762
|
};
|
|
3833
3763
|
var serializeAws_restJson1PITPolicyRule = function (input, context) {
|
|
3834
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.enabled
|
|
3835
|
-
input.retentionDuration !== null && { retentionDuration: input.retentionDuration })), (input.ruleID !== undefined && input.ruleID !== null && { ruleID: input.ruleID })), (input.units !== undefined && input.units !== null && { units: input.units }));
|
|
3764
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.interval != null && { interval: input.interval })), (input.retentionDuration != null && { retentionDuration: input.retentionDuration })), (input.ruleID != null && { ruleID: input.ruleID })), (input.units != null && { units: input.units }));
|
|
3836
3765
|
};
|
|
3837
3766
|
var serializeAws_restJson1RecoveryInstanceIDs = function (input, context) {
|
|
3838
3767
|
return input
|
|
@@ -3855,8 +3784,7 @@ var serializeAws_restJson1RecoveryInstancesForTerminationRequest = function (inp
|
|
|
3855
3784
|
});
|
|
3856
3785
|
};
|
|
3857
3786
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (input, context) {
|
|
3858
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.deviceName
|
|
3859
|
-
input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType })), (input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }));
|
|
3787
|
+
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 }));
|
|
3860
3788
|
};
|
|
3861
3789
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (input, context) {
|
|
3862
3790
|
return input
|
|
@@ -3909,9 +3837,7 @@ var serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs = function (in
|
|
|
3909
3837
|
});
|
|
3910
3838
|
};
|
|
3911
3839
|
var serializeAws_restJson1StartRecoveryRequestSourceServer = function (input, context) {
|
|
3912
|
-
return __assign(__assign({}, (input.recoverySnapshotID
|
|
3913
|
-
input.recoverySnapshotID !== null && { recoverySnapshotID: input.recoverySnapshotID })), (input.sourceServerID !== undefined &&
|
|
3914
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }));
|
|
3840
|
+
return __assign(__assign({}, (input.recoverySnapshotID != null && { recoverySnapshotID: input.recoverySnapshotID })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID }));
|
|
3915
3841
|
};
|
|
3916
3842
|
var serializeAws_restJson1StartRecoveryRequestSourceServers = function (input, context) {
|
|
3917
3843
|
return input
|
|
@@ -3964,10 +3890,10 @@ var deserializeAws_restJson1ConversionProperties = function (output, context) {
|
|
|
3964
3890
|
dataTimestamp: __expectString(output.dataTimestamp),
|
|
3965
3891
|
forceUefi: __expectBoolean(output.forceUefi),
|
|
3966
3892
|
rootVolumeName: __expectString(output.rootVolumeName),
|
|
3967
|
-
volumeToConversionMap: output.volumeToConversionMap
|
|
3893
|
+
volumeToConversionMap: output.volumeToConversionMap != null
|
|
3968
3894
|
? deserializeAws_restJson1VolumeToConversionMap(output.volumeToConversionMap, context)
|
|
3969
3895
|
: undefined,
|
|
3970
|
-
volumeToVolumeSize: output.volumeToVolumeSize
|
|
3896
|
+
volumeToVolumeSize: output.volumeToVolumeSize != null
|
|
3971
3897
|
? deserializeAws_restJson1VolumeToSizeMap(output.volumeToVolumeSize, context)
|
|
3972
3898
|
: undefined,
|
|
3973
3899
|
};
|
|
@@ -3997,16 +3923,16 @@ var deserializeAws_restJson1DataReplicationError = function (output, context) {
|
|
|
3997
3923
|
};
|
|
3998
3924
|
var deserializeAws_restJson1DataReplicationInfo = function (output, context) {
|
|
3999
3925
|
return {
|
|
4000
|
-
dataReplicationError: output.dataReplicationError
|
|
3926
|
+
dataReplicationError: output.dataReplicationError != null
|
|
4001
3927
|
? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
|
|
4002
3928
|
: undefined,
|
|
4003
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
3929
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
4004
3930
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
4005
3931
|
: undefined,
|
|
4006
3932
|
dataReplicationState: __expectString(output.dataReplicationState),
|
|
4007
3933
|
etaDateTime: __expectString(output.etaDateTime),
|
|
4008
3934
|
lagDuration: __expectString(output.lagDuration),
|
|
4009
|
-
replicatedDisks: output.replicatedDisks
|
|
3935
|
+
replicatedDisks: output.replicatedDisks != null
|
|
4010
3936
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
4011
3937
|
: undefined,
|
|
4012
3938
|
};
|
|
@@ -4035,9 +3961,7 @@ var deserializeAws_restJson1DataReplicationInitiation = function (output, contex
|
|
|
4035
3961
|
return {
|
|
4036
3962
|
nextAttemptDateTime: __expectString(output.nextAttemptDateTime),
|
|
4037
3963
|
startDateTime: __expectString(output.startDateTime),
|
|
4038
|
-
steps: output.steps
|
|
4039
|
-
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
4040
|
-
: undefined,
|
|
3964
|
+
steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
4041
3965
|
};
|
|
4042
3966
|
};
|
|
4043
3967
|
var deserializeAws_restJson1DataReplicationInitiationStep = function (output, context) {
|
|
@@ -4122,28 +4046,24 @@ var deserializeAws_restJson1Job = function (output, context) {
|
|
|
4122
4046
|
endDateTime: __expectString(output.endDateTime),
|
|
4123
4047
|
initiatedBy: __expectString(output.initiatedBy),
|
|
4124
4048
|
jobID: __expectString(output.jobID),
|
|
4125
|
-
participatingServers: output.participatingServers
|
|
4049
|
+
participatingServers: output.participatingServers != null
|
|
4126
4050
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
4127
4051
|
: undefined,
|
|
4128
4052
|
status: __expectString(output.status),
|
|
4129
|
-
tags: output.tags
|
|
4130
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4131
|
-
: undefined,
|
|
4053
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4132
4054
|
type: __expectString(output.type),
|
|
4133
4055
|
};
|
|
4134
4056
|
};
|
|
4135
4057
|
var deserializeAws_restJson1JobLog = function (output, context) {
|
|
4136
4058
|
return {
|
|
4137
4059
|
event: __expectString(output.event),
|
|
4138
|
-
eventData: output.eventData
|
|
4139
|
-
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
4140
|
-
: undefined,
|
|
4060
|
+
eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
|
|
4141
4061
|
logDateTime: __expectString(output.logDateTime),
|
|
4142
4062
|
};
|
|
4143
4063
|
};
|
|
4144
4064
|
var deserializeAws_restJson1JobLogEventData = function (output, context) {
|
|
4145
4065
|
return {
|
|
4146
|
-
conversionProperties: output.conversionProperties
|
|
4066
|
+
conversionProperties: output.conversionProperties != null
|
|
4147
4067
|
? deserializeAws_restJson1ConversionProperties(output.conversionProperties, context)
|
|
4148
4068
|
: undefined,
|
|
4149
4069
|
conversionServerID: __expectString(output.conversionServerID),
|
|
@@ -4184,15 +4104,13 @@ var deserializeAws_restJson1LifeCycle = function (output, context) {
|
|
|
4184
4104
|
addedToServiceDateTime: __expectString(output.addedToServiceDateTime),
|
|
4185
4105
|
elapsedReplicationDuration: __expectString(output.elapsedReplicationDuration),
|
|
4186
4106
|
firstByteDateTime: __expectString(output.firstByteDateTime),
|
|
4187
|
-
lastLaunch: output.lastLaunch
|
|
4188
|
-
? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context)
|
|
4189
|
-
: undefined,
|
|
4107
|
+
lastLaunch: output.lastLaunch != null ? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context) : undefined,
|
|
4190
4108
|
lastSeenByServiceDateTime: __expectString(output.lastSeenByServiceDateTime),
|
|
4191
4109
|
};
|
|
4192
4110
|
};
|
|
4193
4111
|
var deserializeAws_restJson1LifeCycleLastLaunch = function (output, context) {
|
|
4194
4112
|
return {
|
|
4195
|
-
initiated: output.initiated
|
|
4113
|
+
initiated: output.initiated != null
|
|
4196
4114
|
? deserializeAws_restJson1LifeCycleLastLaunchInitiated(output.initiated, context)
|
|
4197
4115
|
: undefined,
|
|
4198
4116
|
};
|
|
@@ -4206,9 +4124,7 @@ var deserializeAws_restJson1LifeCycleLastLaunchInitiated = function (output, con
|
|
|
4206
4124
|
};
|
|
4207
4125
|
var deserializeAws_restJson1NetworkInterface = function (output, context) {
|
|
4208
4126
|
return {
|
|
4209
|
-
ips: output.ips
|
|
4210
|
-
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
4211
|
-
: undefined,
|
|
4127
|
+
ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
|
|
4212
4128
|
isPrimary: __expectBoolean(output.isPrimary),
|
|
4213
4129
|
macAddress: __expectString(output.macAddress),
|
|
4214
4130
|
};
|
|
@@ -4270,25 +4186,21 @@ var deserializeAws_restJson1PITPolicyRule = function (output, context) {
|
|
|
4270
4186
|
var deserializeAws_restJson1RecoveryInstance = function (output, context) {
|
|
4271
4187
|
return {
|
|
4272
4188
|
arn: __expectString(output.arn),
|
|
4273
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
4189
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
4274
4190
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfo(output.dataReplicationInfo, context)
|
|
4275
4191
|
: undefined,
|
|
4276
4192
|
ec2InstanceID: __expectString(output.ec2InstanceID),
|
|
4277
4193
|
ec2InstanceState: __expectString(output.ec2InstanceState),
|
|
4278
|
-
failback: output.failback
|
|
4279
|
-
? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context)
|
|
4280
|
-
: undefined,
|
|
4194
|
+
failback: output.failback != null ? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context) : undefined,
|
|
4281
4195
|
isDrill: __expectBoolean(output.isDrill),
|
|
4282
4196
|
jobID: __expectString(output.jobID),
|
|
4283
4197
|
pointInTimeSnapshotDateTime: __expectString(output.pointInTimeSnapshotDateTime),
|
|
4284
4198
|
recoveryInstanceID: __expectString(output.recoveryInstanceID),
|
|
4285
|
-
recoveryInstanceProperties: output.recoveryInstanceProperties
|
|
4199
|
+
recoveryInstanceProperties: output.recoveryInstanceProperties != null
|
|
4286
4200
|
? deserializeAws_restJson1RecoveryInstanceProperties(output.recoveryInstanceProperties, context)
|
|
4287
4201
|
: undefined,
|
|
4288
4202
|
sourceServerID: __expectString(output.sourceServerID),
|
|
4289
|
-
tags: output.tags
|
|
4290
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4291
|
-
: undefined,
|
|
4203
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4292
4204
|
};
|
|
4293
4205
|
};
|
|
4294
4206
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationError = function (output, context) {
|
|
@@ -4299,16 +4211,16 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationError = function (out
|
|
|
4299
4211
|
};
|
|
4300
4212
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = function (output, context) {
|
|
4301
4213
|
return {
|
|
4302
|
-
dataReplicationError: output.dataReplicationError
|
|
4214
|
+
dataReplicationError: output.dataReplicationError != null
|
|
4303
4215
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationError(output.dataReplicationError, context)
|
|
4304
4216
|
: undefined,
|
|
4305
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
4217
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
4306
4218
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
4307
4219
|
: undefined,
|
|
4308
4220
|
dataReplicationState: __expectString(output.dataReplicationState),
|
|
4309
4221
|
etaDateTime: __expectString(output.etaDateTime),
|
|
4310
4222
|
lagDuration: __expectString(output.lagDuration),
|
|
4311
|
-
replicatedDisks: output.replicatedDisks
|
|
4223
|
+
replicatedDisks: output.replicatedDisks != null
|
|
4312
4224
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
4313
4225
|
: undefined,
|
|
4314
4226
|
};
|
|
@@ -4336,7 +4248,7 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks =
|
|
|
4336
4248
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = function (output, context) {
|
|
4337
4249
|
return {
|
|
4338
4250
|
startDateTime: __expectString(output.startDateTime),
|
|
4339
|
-
steps: output.steps
|
|
4251
|
+
steps: output.steps != null
|
|
4340
4252
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps(output.steps, context)
|
|
4341
4253
|
: undefined,
|
|
4342
4254
|
};
|
|
@@ -4391,28 +4303,22 @@ var deserializeAws_restJson1RecoveryInstanceFailback = function (output, context
|
|
|
4391
4303
|
};
|
|
4392
4304
|
var deserializeAws_restJson1RecoveryInstanceProperties = function (output, context) {
|
|
4393
4305
|
return {
|
|
4394
|
-
cpus: output.cpus
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
4398
|
-
? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context)
|
|
4399
|
-
: undefined,
|
|
4400
|
-
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
4306
|
+
cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
|
|
4307
|
+
disks: output.disks != null ? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context) : undefined,
|
|
4308
|
+
identificationHints: output.identificationHints != null
|
|
4401
4309
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
4402
4310
|
: undefined,
|
|
4403
4311
|
lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
|
|
4404
|
-
networkInterfaces: output.networkInterfaces
|
|
4312
|
+
networkInterfaces: output.networkInterfaces != null
|
|
4405
4313
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
4406
4314
|
: undefined,
|
|
4407
|
-
os: output.os
|
|
4315
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
4408
4316
|
ramBytes: __expectLong(output.ramBytes),
|
|
4409
4317
|
};
|
|
4410
4318
|
};
|
|
4411
4319
|
var deserializeAws_restJson1RecoverySnapshot = function (output, context) {
|
|
4412
4320
|
return {
|
|
4413
|
-
ebsSnapshots: output.ebsSnapshots
|
|
4414
|
-
? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context)
|
|
4415
|
-
: undefined,
|
|
4321
|
+
ebsSnapshots: output.ebsSnapshots != null ? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context) : undefined,
|
|
4416
4322
|
expectedTimestamp: __expectString(output.expectedTimestamp),
|
|
4417
4323
|
snapshotID: __expectString(output.snapshotID),
|
|
4418
4324
|
sourceServerID: __expectString(output.sourceServerID),
|
|
@@ -4460,21 +4366,15 @@ var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output,
|
|
|
4460
4366
|
defaultLargeStagingDiskType: __expectString(output.defaultLargeStagingDiskType),
|
|
4461
4367
|
ebsEncryption: __expectString(output.ebsEncryption),
|
|
4462
4368
|
ebsEncryptionKeyArn: __expectString(output.ebsEncryptionKeyArn),
|
|
4463
|
-
pitPolicy: output.pitPolicy
|
|
4464
|
-
? deserializeAws_restJson1PITPolicy(output.pitPolicy, context)
|
|
4465
|
-
: undefined,
|
|
4369
|
+
pitPolicy: output.pitPolicy != null ? deserializeAws_restJson1PITPolicy(output.pitPolicy, context) : undefined,
|
|
4466
4370
|
replicationConfigurationTemplateID: __expectString(output.replicationConfigurationTemplateID),
|
|
4467
4371
|
replicationServerInstanceType: __expectString(output.replicationServerInstanceType),
|
|
4468
|
-
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs
|
|
4372
|
+
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
|
|
4469
4373
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
4470
4374
|
: undefined,
|
|
4471
4375
|
stagingAreaSubnetId: __expectString(output.stagingAreaSubnetId),
|
|
4472
|
-
stagingAreaTags: output.stagingAreaTags
|
|
4473
|
-
|
|
4474
|
-
: undefined,
|
|
4475
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
4476
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4477
|
-
: undefined,
|
|
4376
|
+
stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
|
|
4377
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4478
4378
|
useDedicatedReplicationServer: __expectBoolean(output.useDedicatedReplicationServer),
|
|
4479
4379
|
};
|
|
4480
4380
|
};
|
|
@@ -4502,20 +4402,16 @@ var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (outp
|
|
|
4502
4402
|
};
|
|
4503
4403
|
var deserializeAws_restJson1SourceProperties = function (output, context) {
|
|
4504
4404
|
return {
|
|
4505
|
-
cpus: output.cpus
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
4509
|
-
? deserializeAws_restJson1Disks(output.disks, context)
|
|
4510
|
-
: undefined,
|
|
4511
|
-
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
4405
|
+
cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
|
|
4406
|
+
disks: output.disks != null ? deserializeAws_restJson1Disks(output.disks, context) : undefined,
|
|
4407
|
+
identificationHints: output.identificationHints != null
|
|
4512
4408
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
4513
4409
|
: undefined,
|
|
4514
4410
|
lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
|
|
4515
|
-
networkInterfaces: output.networkInterfaces
|
|
4411
|
+
networkInterfaces: output.networkInterfaces != null
|
|
4516
4412
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
4517
4413
|
: undefined,
|
|
4518
|
-
os: output.os
|
|
4414
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
4519
4415
|
ramBytes: __expectLong(output.ramBytes),
|
|
4520
4416
|
recommendedInstanceType: __expectString(output.recommendedInstanceType),
|
|
4521
4417
|
};
|
|
@@ -4523,24 +4419,18 @@ var deserializeAws_restJson1SourceProperties = function (output, context) {
|
|
|
4523
4419
|
var deserializeAws_restJson1SourceServer = function (output, context) {
|
|
4524
4420
|
return {
|
|
4525
4421
|
arn: __expectString(output.arn),
|
|
4526
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
4422
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
4527
4423
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
4528
4424
|
: undefined,
|
|
4529
4425
|
lastLaunchResult: __expectString(output.lastLaunchResult),
|
|
4530
|
-
lifeCycle: output.lifeCycle
|
|
4531
|
-
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
4532
|
-
: undefined,
|
|
4426
|
+
lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
|
|
4533
4427
|
recoveryInstanceId: __expectString(output.recoveryInstanceId),
|
|
4534
|
-
sourceProperties: output.sourceProperties
|
|
4428
|
+
sourceProperties: output.sourceProperties != null
|
|
4535
4429
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
4536
4430
|
: undefined,
|
|
4537
4431
|
sourceServerID: __expectString(output.sourceServerID),
|
|
4538
|
-
stagingArea: output.stagingArea
|
|
4539
|
-
|
|
4540
|
-
: undefined,
|
|
4541
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
4542
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4543
|
-
: undefined,
|
|
4432
|
+
stagingArea: output.stagingArea != null ? deserializeAws_restJson1StagingArea(output.stagingArea, context) : undefined,
|
|
4433
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4544
4434
|
};
|
|
4545
4435
|
};
|
|
4546
4436
|
var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
@@ -4566,9 +4456,7 @@ var deserializeAws_restJson1StagingSourceServer = function (output, context) {
|
|
|
4566
4456
|
return {
|
|
4567
4457
|
arn: __expectString(output.arn),
|
|
4568
4458
|
hostname: __expectString(output.hostname),
|
|
4569
|
-
tags: output.tags
|
|
4570
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4571
|
-
: undefined,
|
|
4459
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4572
4460
|
};
|
|
4573
4461
|
};
|
|
4574
4462
|
var deserializeAws_restJson1StagingSourceServersList = function (output, context) {
|