@aws-sdk/client-drs 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +330 -411
- package/dist-es/protocols/Aws_restJson1.js +266 -347
- 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({
|
|
@@ -945,7 +880,7 @@ export var deserializeAws_restJson1CreateExtendedSourceServerCommand = function
|
|
|
945
880
|
});
|
|
946
881
|
}); };
|
|
947
882
|
var deserializeAws_restJson1CreateExtendedSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
948
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
883
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
949
884
|
var _c;
|
|
950
885
|
return __generator(this, function (_d) {
|
|
951
886
|
switch (_d.label) {
|
|
@@ -955,7 +890,6 @@ var deserializeAws_restJson1CreateExtendedSourceServerCommandError = function (o
|
|
|
955
890
|
return [4, parseBody(output.body, context)];
|
|
956
891
|
case 1:
|
|
957
892
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
958
|
-
errorCode = "UnknownError";
|
|
959
893
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
894
|
_b = errorCode;
|
|
961
895
|
switch (_b) {
|
|
@@ -991,10 +925,12 @@ var deserializeAws_restJson1CreateExtendedSourceServerCommandError = function (o
|
|
|
991
925
|
case 15: throw _d.sent();
|
|
992
926
|
case 16:
|
|
993
927
|
parsedBody = parsedOutput.body;
|
|
928
|
+
$metadata = deserializeMetadata(output);
|
|
929
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
994
930
|
response = new __BaseException({
|
|
995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
931
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
996
932
|
$fault: "client",
|
|
997
|
-
$metadata:
|
|
933
|
+
$metadata: $metadata,
|
|
998
934
|
});
|
|
999
935
|
throw __decorateServiceException(response, parsedBody);
|
|
1000
936
|
}
|
|
@@ -1085,7 +1021,7 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
|
|
|
1085
1021
|
});
|
|
1086
1022
|
}); };
|
|
1087
1023
|
var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1088
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1024
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1089
1025
|
var _c;
|
|
1090
1026
|
return __generator(this, function (_d) {
|
|
1091
1027
|
switch (_d.label) {
|
|
@@ -1095,7 +1031,6 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
|
|
|
1095
1031
|
return [4, parseBody(output.body, context)];
|
|
1096
1032
|
case 1:
|
|
1097
1033
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1098
|
-
errorCode = "UnknownError";
|
|
1099
1034
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
1035
|
_b = errorCode;
|
|
1101
1036
|
switch (_b) {
|
|
@@ -1127,10 +1062,12 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
|
|
|
1127
1062
|
case 13: throw _d.sent();
|
|
1128
1063
|
case 14:
|
|
1129
1064
|
parsedBody = parsedOutput.body;
|
|
1065
|
+
$metadata = deserializeMetadata(output);
|
|
1066
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1130
1067
|
response = new __BaseException({
|
|
1131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1132
1069
|
$fault: "client",
|
|
1133
|
-
$metadata:
|
|
1070
|
+
$metadata: $metadata,
|
|
1134
1071
|
});
|
|
1135
1072
|
throw __decorateServiceException(response, parsedBody);
|
|
1136
1073
|
}
|
|
@@ -1155,7 +1092,7 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
1155
1092
|
});
|
|
1156
1093
|
}); };
|
|
1157
1094
|
var deserializeAws_restJson1DeleteJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1158
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1095
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1159
1096
|
var _c;
|
|
1160
1097
|
return __generator(this, function (_d) {
|
|
1161
1098
|
switch (_d.label) {
|
|
@@ -1165,7 +1102,6 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1165
1102
|
return [4, parseBody(output.body, context)];
|
|
1166
1103
|
case 1:
|
|
1167
1104
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1168
|
-
errorCode = "UnknownError";
|
|
1169
1105
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1106
|
_b = errorCode;
|
|
1171
1107
|
switch (_b) {
|
|
@@ -1193,10 +1129,12 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1193
1129
|
case 11: throw _d.sent();
|
|
1194
1130
|
case 12:
|
|
1195
1131
|
parsedBody = parsedOutput.body;
|
|
1132
|
+
$metadata = deserializeMetadata(output);
|
|
1133
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1196
1134
|
response = new __BaseException({
|
|
1197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1198
1136
|
$fault: "client",
|
|
1199
|
-
$metadata:
|
|
1137
|
+
$metadata: $metadata,
|
|
1200
1138
|
});
|
|
1201
1139
|
throw __decorateServiceException(response, parsedBody);
|
|
1202
1140
|
}
|
|
@@ -1221,7 +1159,7 @@ export var deserializeAws_restJson1DeleteRecoveryInstanceCommand = function (out
|
|
|
1221
1159
|
});
|
|
1222
1160
|
}); };
|
|
1223
1161
|
var deserializeAws_restJson1DeleteRecoveryInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1224
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1162
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1225
1163
|
var _c;
|
|
1226
1164
|
return __generator(this, function (_d) {
|
|
1227
1165
|
switch (_d.label) {
|
|
@@ -1231,7 +1169,6 @@ var deserializeAws_restJson1DeleteRecoveryInstanceCommandError = function (outpu
|
|
|
1231
1169
|
return [4, parseBody(output.body, context)];
|
|
1232
1170
|
case 1:
|
|
1233
1171
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1234
|
-
errorCode = "UnknownError";
|
|
1235
1172
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1173
|
_b = errorCode;
|
|
1237
1174
|
switch (_b) {
|
|
@@ -1259,10 +1196,12 @@ var deserializeAws_restJson1DeleteRecoveryInstanceCommandError = function (outpu
|
|
|
1259
1196
|
case 11: throw _d.sent();
|
|
1260
1197
|
case 12:
|
|
1261
1198
|
parsedBody = parsedOutput.body;
|
|
1199
|
+
$metadata = deserializeMetadata(output);
|
|
1200
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1262
1201
|
response = new __BaseException({
|
|
1263
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1264
1203
|
$fault: "client",
|
|
1265
|
-
$metadata:
|
|
1204
|
+
$metadata: $metadata,
|
|
1266
1205
|
});
|
|
1267
1206
|
throw __decorateServiceException(response, parsedBody);
|
|
1268
1207
|
}
|
|
@@ -1287,7 +1226,7 @@ export var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand
|
|
|
1287
1226
|
});
|
|
1288
1227
|
}); };
|
|
1289
1228
|
var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1290
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1229
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1291
1230
|
var _c;
|
|
1292
1231
|
return __generator(this, function (_d) {
|
|
1293
1232
|
switch (_d.label) {
|
|
@@ -1297,7 +1236,6 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
|
|
|
1297
1236
|
return [4, parseBody(output.body, context)];
|
|
1298
1237
|
case 1:
|
|
1299
1238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1300
|
-
errorCode = "UnknownError";
|
|
1301
1239
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1240
|
_b = errorCode;
|
|
1303
1241
|
switch (_b) {
|
|
@@ -1325,10 +1263,12 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
|
|
|
1325
1263
|
case 11: throw _d.sent();
|
|
1326
1264
|
case 12:
|
|
1327
1265
|
parsedBody = parsedOutput.body;
|
|
1266
|
+
$metadata = deserializeMetadata(output);
|
|
1267
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1328
1268
|
response = new __BaseException({
|
|
1329
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1330
1270
|
$fault: "client",
|
|
1331
|
-
$metadata:
|
|
1271
|
+
$metadata: $metadata,
|
|
1332
1272
|
});
|
|
1333
1273
|
throw __decorateServiceException(response, parsedBody);
|
|
1334
1274
|
}
|
|
@@ -1353,7 +1293,7 @@ export var deserializeAws_restJson1DeleteSourceServerCommand = function (output,
|
|
|
1353
1293
|
});
|
|
1354
1294
|
}); };
|
|
1355
1295
|
var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1356
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1296
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1357
1297
|
var _c;
|
|
1358
1298
|
return __generator(this, function (_d) {
|
|
1359
1299
|
switch (_d.label) {
|
|
@@ -1363,7 +1303,6 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
|
|
|
1363
1303
|
return [4, parseBody(output.body, context)];
|
|
1364
1304
|
case 1:
|
|
1365
1305
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1366
|
-
errorCode = "UnknownError";
|
|
1367
1306
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1307
|
_b = errorCode;
|
|
1369
1308
|
switch (_b) {
|
|
@@ -1391,10 +1330,12 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
|
|
|
1391
1330
|
case 11: throw _d.sent();
|
|
1392
1331
|
case 12:
|
|
1393
1332
|
parsedBody = parsedOutput.body;
|
|
1333
|
+
$metadata = deserializeMetadata(output);
|
|
1334
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1394
1335
|
response = new __BaseException({
|
|
1395
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1336
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1396
1337
|
$fault: "client",
|
|
1397
|
-
$metadata:
|
|
1338
|
+
$metadata: $metadata,
|
|
1398
1339
|
});
|
|
1399
1340
|
throw __decorateServiceException(response, parsedBody);
|
|
1400
1341
|
}
|
|
@@ -1429,7 +1370,7 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
|
|
|
1429
1370
|
});
|
|
1430
1371
|
}); };
|
|
1431
1372
|
var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1432
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1373
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1433
1374
|
var _c;
|
|
1434
1375
|
return __generator(this, function (_d) {
|
|
1435
1376
|
switch (_d.label) {
|
|
@@ -1439,7 +1380,6 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
|
|
|
1439
1380
|
return [4, parseBody(output.body, context)];
|
|
1440
1381
|
case 1:
|
|
1441
1382
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1442
|
-
errorCode = "UnknownError";
|
|
1443
1383
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
1384
|
_b = errorCode;
|
|
1445
1385
|
switch (_b) {
|
|
@@ -1463,10 +1403,12 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
|
|
|
1463
1403
|
case 9: throw _d.sent();
|
|
1464
1404
|
case 10:
|
|
1465
1405
|
parsedBody = parsedOutput.body;
|
|
1406
|
+
$metadata = deserializeMetadata(output);
|
|
1407
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1466
1408
|
response = new __BaseException({
|
|
1467
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1409
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1468
1410
|
$fault: "client",
|
|
1469
|
-
$metadata:
|
|
1411
|
+
$metadata: $metadata,
|
|
1470
1412
|
});
|
|
1471
1413
|
throw __decorateServiceException(response, parsedBody);
|
|
1472
1414
|
}
|
|
@@ -1501,7 +1443,7 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1501
1443
|
});
|
|
1502
1444
|
}); };
|
|
1503
1445
|
var deserializeAws_restJson1DescribeJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1504
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1446
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1505
1447
|
var _c;
|
|
1506
1448
|
return __generator(this, function (_d) {
|
|
1507
1449
|
switch (_d.label) {
|
|
@@ -1511,7 +1453,6 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1511
1453
|
return [4, parseBody(output.body, context)];
|
|
1512
1454
|
case 1:
|
|
1513
1455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1514
|
-
errorCode = "UnknownError";
|
|
1515
1456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
1457
|
_b = errorCode;
|
|
1517
1458
|
switch (_b) {
|
|
@@ -1535,10 +1476,12 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1535
1476
|
case 9: throw _d.sent();
|
|
1536
1477
|
case 10:
|
|
1537
1478
|
parsedBody = parsedOutput.body;
|
|
1479
|
+
$metadata = deserializeMetadata(output);
|
|
1480
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1538
1481
|
response = new __BaseException({
|
|
1539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1540
1483
|
$fault: "client",
|
|
1541
|
-
$metadata:
|
|
1484
|
+
$metadata: $metadata,
|
|
1542
1485
|
});
|
|
1543
1486
|
throw __decorateServiceException(response, parsedBody);
|
|
1544
1487
|
}
|
|
@@ -1573,7 +1516,7 @@ export var deserializeAws_restJson1DescribeRecoveryInstancesCommand = function (
|
|
|
1573
1516
|
});
|
|
1574
1517
|
}); };
|
|
1575
1518
|
var deserializeAws_restJson1DescribeRecoveryInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1576
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1519
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1577
1520
|
var _c;
|
|
1578
1521
|
return __generator(this, function (_d) {
|
|
1579
1522
|
switch (_d.label) {
|
|
@@ -1583,7 +1526,6 @@ var deserializeAws_restJson1DescribeRecoveryInstancesCommandError = function (ou
|
|
|
1583
1526
|
return [4, parseBody(output.body, context)];
|
|
1584
1527
|
case 1:
|
|
1585
1528
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1586
|
-
errorCode = "UnknownError";
|
|
1587
1529
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
1530
|
_b = errorCode;
|
|
1589
1531
|
switch (_b) {
|
|
@@ -1607,10 +1549,12 @@ var deserializeAws_restJson1DescribeRecoveryInstancesCommandError = function (ou
|
|
|
1607
1549
|
case 9: throw _d.sent();
|
|
1608
1550
|
case 10:
|
|
1609
1551
|
parsedBody = parsedOutput.body;
|
|
1552
|
+
$metadata = deserializeMetadata(output);
|
|
1553
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1610
1554
|
response = new __BaseException({
|
|
1611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1555
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1612
1556
|
$fault: "client",
|
|
1613
|
-
$metadata:
|
|
1557
|
+
$metadata: $metadata,
|
|
1614
1558
|
});
|
|
1615
1559
|
throw __decorateServiceException(response, parsedBody);
|
|
1616
1560
|
}
|
|
@@ -1645,7 +1589,7 @@ export var deserializeAws_restJson1DescribeRecoverySnapshotsCommand = function (
|
|
|
1645
1589
|
});
|
|
1646
1590
|
}); };
|
|
1647
1591
|
var deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1648
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1592
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1649
1593
|
var _c;
|
|
1650
1594
|
return __generator(this, function (_d) {
|
|
1651
1595
|
switch (_d.label) {
|
|
@@ -1655,7 +1599,6 @@ var deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = function (ou
|
|
|
1655
1599
|
return [4, parseBody(output.body, context)];
|
|
1656
1600
|
case 1:
|
|
1657
1601
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1658
|
-
errorCode = "UnknownError";
|
|
1659
1602
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1603
|
_b = errorCode;
|
|
1661
1604
|
switch (_b) {
|
|
@@ -1683,10 +1626,12 @@ var deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = function (ou
|
|
|
1683
1626
|
case 11: throw _d.sent();
|
|
1684
1627
|
case 12:
|
|
1685
1628
|
parsedBody = parsedOutput.body;
|
|
1629
|
+
$metadata = deserializeMetadata(output);
|
|
1630
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1686
1631
|
response = new __BaseException({
|
|
1687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1688
1633
|
$fault: "client",
|
|
1689
|
-
$metadata:
|
|
1634
|
+
$metadata: $metadata,
|
|
1690
1635
|
});
|
|
1691
1636
|
throw __decorateServiceException(response, parsedBody);
|
|
1692
1637
|
}
|
|
@@ -1721,7 +1666,7 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
|
|
|
1721
1666
|
});
|
|
1722
1667
|
}); };
|
|
1723
1668
|
var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1724
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1669
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1725
1670
|
var _c;
|
|
1726
1671
|
return __generator(this, function (_d) {
|
|
1727
1672
|
switch (_d.label) {
|
|
@@ -1731,7 +1676,6 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
|
|
|
1731
1676
|
return [4, parseBody(output.body, context)];
|
|
1732
1677
|
case 1:
|
|
1733
1678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1734
|
-
errorCode = "UnknownError";
|
|
1735
1679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
1680
|
_b = errorCode;
|
|
1737
1681
|
switch (_b) {
|
|
@@ -1759,10 +1703,12 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
|
|
|
1759
1703
|
case 11: throw _d.sent();
|
|
1760
1704
|
case 12:
|
|
1761
1705
|
parsedBody = parsedOutput.body;
|
|
1706
|
+
$metadata = deserializeMetadata(output);
|
|
1707
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1762
1708
|
response = new __BaseException({
|
|
1763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1764
1710
|
$fault: "client",
|
|
1765
|
-
$metadata:
|
|
1711
|
+
$metadata: $metadata,
|
|
1766
1712
|
});
|
|
1767
1713
|
throw __decorateServiceException(response, parsedBody);
|
|
1768
1714
|
}
|
|
@@ -1797,7 +1743,7 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
|
|
|
1797
1743
|
});
|
|
1798
1744
|
}); };
|
|
1799
1745
|
var deserializeAws_restJson1DescribeSourceServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1800
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1746
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1801
1747
|
var _c;
|
|
1802
1748
|
return __generator(this, function (_d) {
|
|
1803
1749
|
switch (_d.label) {
|
|
@@ -1807,7 +1753,6 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
|
|
|
1807
1753
|
return [4, parseBody(output.body, context)];
|
|
1808
1754
|
case 1:
|
|
1809
1755
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1810
|
-
errorCode = "UnknownError";
|
|
1811
1756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
1757
|
_b = errorCode;
|
|
1813
1758
|
switch (_b) {
|
|
@@ -1831,10 +1776,12 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
|
|
|
1831
1776
|
case 9: throw _d.sent();
|
|
1832
1777
|
case 10:
|
|
1833
1778
|
parsedBody = parsedOutput.body;
|
|
1779
|
+
$metadata = deserializeMetadata(output);
|
|
1780
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1834
1781
|
response = new __BaseException({
|
|
1835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1782
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1836
1783
|
$fault: "client",
|
|
1837
|
-
$metadata:
|
|
1784
|
+
$metadata: $metadata,
|
|
1838
1785
|
});
|
|
1839
1786
|
throw __decorateServiceException(response, parsedBody);
|
|
1840
1787
|
}
|
|
@@ -1859,7 +1806,7 @@ export var deserializeAws_restJson1DisconnectRecoveryInstanceCommand = function
|
|
|
1859
1806
|
});
|
|
1860
1807
|
}); };
|
|
1861
1808
|
var deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1862
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1809
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1863
1810
|
var _c;
|
|
1864
1811
|
return __generator(this, function (_d) {
|
|
1865
1812
|
switch (_d.label) {
|
|
@@ -1869,7 +1816,6 @@ var deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = function (o
|
|
|
1869
1816
|
return [4, parseBody(output.body, context)];
|
|
1870
1817
|
case 1:
|
|
1871
1818
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1872
|
-
errorCode = "UnknownError";
|
|
1873
1819
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
1820
|
_b = errorCode;
|
|
1875
1821
|
switch (_b) {
|
|
@@ -1901,10 +1847,12 @@ var deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = function (o
|
|
|
1901
1847
|
case 13: throw _d.sent();
|
|
1902
1848
|
case 14:
|
|
1903
1849
|
parsedBody = parsedOutput.body;
|
|
1850
|
+
$metadata = deserializeMetadata(output);
|
|
1851
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1904
1852
|
response = new __BaseException({
|
|
1905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1906
1854
|
$fault: "client",
|
|
1907
|
-
$metadata:
|
|
1855
|
+
$metadata: $metadata,
|
|
1908
1856
|
});
|
|
1909
1857
|
throw __decorateServiceException(response, parsedBody);
|
|
1910
1858
|
}
|
|
@@ -1967,7 +1915,7 @@ export var deserializeAws_restJson1DisconnectSourceServerCommand = function (out
|
|
|
1967
1915
|
});
|
|
1968
1916
|
}); };
|
|
1969
1917
|
var deserializeAws_restJson1DisconnectSourceServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1970
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1918
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1971
1919
|
var _c;
|
|
1972
1920
|
return __generator(this, function (_d) {
|
|
1973
1921
|
switch (_d.label) {
|
|
@@ -1977,7 +1925,6 @@ var deserializeAws_restJson1DisconnectSourceServerCommandError = function (outpu
|
|
|
1977
1925
|
return [4, parseBody(output.body, context)];
|
|
1978
1926
|
case 1:
|
|
1979
1927
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1980
|
-
errorCode = "UnknownError";
|
|
1981
1928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1929
|
_b = errorCode;
|
|
1983
1930
|
switch (_b) {
|
|
@@ -2005,10 +1952,12 @@ var deserializeAws_restJson1DisconnectSourceServerCommandError = function (outpu
|
|
|
2005
1952
|
case 11: throw _d.sent();
|
|
2006
1953
|
case 12:
|
|
2007
1954
|
parsedBody = parsedOutput.body;
|
|
1955
|
+
$metadata = deserializeMetadata(output);
|
|
1956
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2008
1957
|
response = new __BaseException({
|
|
2009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1958
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2010
1959
|
$fault: "client",
|
|
2011
|
-
$metadata:
|
|
1960
|
+
$metadata: $metadata,
|
|
2012
1961
|
});
|
|
2013
1962
|
throw __decorateServiceException(response, parsedBody);
|
|
2014
1963
|
}
|
|
@@ -2051,7 +2000,7 @@ export var deserializeAws_restJson1GetFailbackReplicationConfigurationCommand =
|
|
|
2051
2000
|
});
|
|
2052
2001
|
}); };
|
|
2053
2002
|
var deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2054
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2003
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2055
2004
|
var _c;
|
|
2056
2005
|
return __generator(this, function (_d) {
|
|
2057
2006
|
switch (_d.label) {
|
|
@@ -2061,7 +2010,6 @@ var deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError = fu
|
|
|
2061
2010
|
return [4, parseBody(output.body, context)];
|
|
2062
2011
|
case 1:
|
|
2063
2012
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2064
|
-
errorCode = "UnknownError";
|
|
2065
2013
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
2014
|
_b = errorCode;
|
|
2067
2015
|
switch (_b) {
|
|
@@ -2085,10 +2033,12 @@ var deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError = fu
|
|
|
2085
2033
|
case 9: throw _d.sent();
|
|
2086
2034
|
case 10:
|
|
2087
2035
|
parsedBody = parsedOutput.body;
|
|
2036
|
+
$metadata = deserializeMetadata(output);
|
|
2037
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2088
2038
|
response = new __BaseException({
|
|
2089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2090
2040
|
$fault: "client",
|
|
2091
|
-
$metadata:
|
|
2041
|
+
$metadata: $metadata,
|
|
2092
2042
|
});
|
|
2093
2043
|
throw __decorateServiceException(response, parsedBody);
|
|
2094
2044
|
}
|
|
@@ -2147,7 +2097,7 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
|
|
|
2147
2097
|
});
|
|
2148
2098
|
}); };
|
|
2149
2099
|
var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2150
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2100
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2151
2101
|
var _c;
|
|
2152
2102
|
return __generator(this, function (_d) {
|
|
2153
2103
|
switch (_d.label) {
|
|
@@ -2157,7 +2107,6 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
|
|
|
2157
2107
|
return [4, parseBody(output.body, context)];
|
|
2158
2108
|
case 1:
|
|
2159
2109
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2160
|
-
errorCode = "UnknownError";
|
|
2161
2110
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2111
|
_b = errorCode;
|
|
2163
2112
|
switch (_b) {
|
|
@@ -2181,10 +2130,12 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
|
|
|
2181
2130
|
case 9: throw _d.sent();
|
|
2182
2131
|
case 10:
|
|
2183
2132
|
parsedBody = parsedOutput.body;
|
|
2133
|
+
$metadata = deserializeMetadata(output);
|
|
2134
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2184
2135
|
response = new __BaseException({
|
|
2185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2186
2137
|
$fault: "client",
|
|
2187
|
-
$metadata:
|
|
2138
|
+
$metadata: $metadata,
|
|
2188
2139
|
});
|
|
2189
2140
|
throw __decorateServiceException(response, parsedBody);
|
|
2190
2141
|
}
|
|
@@ -2275,7 +2226,7 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
|
|
|
2275
2226
|
});
|
|
2276
2227
|
}); };
|
|
2277
2228
|
var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2278
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2229
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2279
2230
|
var _c;
|
|
2280
2231
|
return __generator(this, function (_d) {
|
|
2281
2232
|
switch (_d.label) {
|
|
@@ -2285,7 +2236,6 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
|
|
|
2285
2236
|
return [4, parseBody(output.body, context)];
|
|
2286
2237
|
case 1:
|
|
2287
2238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2288
|
-
errorCode = "UnknownError";
|
|
2289
2239
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2290
2240
|
_b = errorCode;
|
|
2291
2241
|
switch (_b) {
|
|
@@ -2313,10 +2263,12 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
|
|
|
2313
2263
|
case 11: throw _d.sent();
|
|
2314
2264
|
case 12:
|
|
2315
2265
|
parsedBody = parsedOutput.body;
|
|
2266
|
+
$metadata = deserializeMetadata(output);
|
|
2267
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2316
2268
|
response = new __BaseException({
|
|
2317
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2318
2270
|
$fault: "client",
|
|
2319
|
-
$metadata:
|
|
2271
|
+
$metadata: $metadata,
|
|
2320
2272
|
});
|
|
2321
2273
|
throw __decorateServiceException(response, parsedBody);
|
|
2322
2274
|
}
|
|
@@ -2341,7 +2293,7 @@ export var deserializeAws_restJson1InitializeServiceCommand = function (output,
|
|
|
2341
2293
|
});
|
|
2342
2294
|
}); };
|
|
2343
2295
|
var deserializeAws_restJson1InitializeServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2344
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2296
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2345
2297
|
var _c;
|
|
2346
2298
|
return __generator(this, function (_d) {
|
|
2347
2299
|
switch (_d.label) {
|
|
@@ -2351,7 +2303,6 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
|
|
|
2351
2303
|
return [4, parseBody(output.body, context)];
|
|
2352
2304
|
case 1:
|
|
2353
2305
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2354
|
-
errorCode = "UnknownError";
|
|
2355
2306
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2307
|
_b = errorCode;
|
|
2357
2308
|
switch (_b) {
|
|
@@ -2375,10 +2326,12 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
|
|
|
2375
2326
|
case 9: throw _d.sent();
|
|
2376
2327
|
case 10:
|
|
2377
2328
|
parsedBody = parsedOutput.body;
|
|
2329
|
+
$metadata = deserializeMetadata(output);
|
|
2330
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2378
2331
|
response = new __BaseException({
|
|
2379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2380
2333
|
$fault: "client",
|
|
2381
|
-
$metadata:
|
|
2334
|
+
$metadata: $metadata,
|
|
2382
2335
|
});
|
|
2383
2336
|
throw __decorateServiceException(response, parsedBody);
|
|
2384
2337
|
}
|
|
@@ -2413,7 +2366,7 @@ export var deserializeAws_restJson1ListExtensibleSourceServersCommand = function
|
|
|
2413
2366
|
});
|
|
2414
2367
|
}); };
|
|
2415
2368
|
var deserializeAws_restJson1ListExtensibleSourceServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2416
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2369
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2417
2370
|
var _c;
|
|
2418
2371
|
return __generator(this, function (_d) {
|
|
2419
2372
|
switch (_d.label) {
|
|
@@ -2423,7 +2376,6 @@ var deserializeAws_restJson1ListExtensibleSourceServersCommandError = function (
|
|
|
2423
2376
|
return [4, parseBody(output.body, context)];
|
|
2424
2377
|
case 1:
|
|
2425
2378
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2426
|
-
errorCode = "UnknownError";
|
|
2427
2379
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
2380
|
_b = errorCode;
|
|
2429
2381
|
switch (_b) {
|
|
@@ -2451,10 +2403,12 @@ var deserializeAws_restJson1ListExtensibleSourceServersCommandError = function (
|
|
|
2451
2403
|
case 11: throw _d.sent();
|
|
2452
2404
|
case 12:
|
|
2453
2405
|
parsedBody = parsedOutput.body;
|
|
2406
|
+
$metadata = deserializeMetadata(output);
|
|
2407
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2454
2408
|
response = new __BaseException({
|
|
2455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2409
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2456
2410
|
$fault: "client",
|
|
2457
|
-
$metadata:
|
|
2411
|
+
$metadata: $metadata,
|
|
2458
2412
|
});
|
|
2459
2413
|
throw __decorateServiceException(response, parsedBody);
|
|
2460
2414
|
}
|
|
@@ -2489,7 +2443,7 @@ export var deserializeAws_restJson1ListStagingAccountsCommand = function (output
|
|
|
2489
2443
|
});
|
|
2490
2444
|
}); };
|
|
2491
2445
|
var deserializeAws_restJson1ListStagingAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2492
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2446
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2493
2447
|
var _c;
|
|
2494
2448
|
return __generator(this, function (_d) {
|
|
2495
2449
|
switch (_d.label) {
|
|
@@ -2499,7 +2453,6 @@ var deserializeAws_restJson1ListStagingAccountsCommandError = function (output,
|
|
|
2499
2453
|
return [4, parseBody(output.body, context)];
|
|
2500
2454
|
case 1:
|
|
2501
2455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2502
|
-
errorCode = "UnknownError";
|
|
2503
2456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
2457
|
_b = errorCode;
|
|
2505
2458
|
switch (_b) {
|
|
@@ -2527,10 +2480,12 @@ var deserializeAws_restJson1ListStagingAccountsCommandError = function (output,
|
|
|
2527
2480
|
case 11: throw _d.sent();
|
|
2528
2481
|
case 12:
|
|
2529
2482
|
parsedBody = parsedOutput.body;
|
|
2483
|
+
$metadata = deserializeMetadata(output);
|
|
2484
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2530
2485
|
response = new __BaseException({
|
|
2531
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2486
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2532
2487
|
$fault: "client",
|
|
2533
|
-
$metadata:
|
|
2488
|
+
$metadata: $metadata,
|
|
2534
2489
|
});
|
|
2535
2490
|
throw __decorateServiceException(response, parsedBody);
|
|
2536
2491
|
}
|
|
@@ -2561,7 +2516,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2561
2516
|
});
|
|
2562
2517
|
}); };
|
|
2563
2518
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2564
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2519
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2565
2520
|
var _c;
|
|
2566
2521
|
return __generator(this, function (_d) {
|
|
2567
2522
|
switch (_d.label) {
|
|
@@ -2571,7 +2526,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2571
2526
|
return [4, parseBody(output.body, context)];
|
|
2572
2527
|
case 1:
|
|
2573
2528
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2574
|
-
errorCode = "UnknownError";
|
|
2575
2529
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
2530
|
_b = errorCode;
|
|
2577
2531
|
switch (_b) {
|
|
@@ -2599,10 +2553,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2599
2553
|
case 11: throw _d.sent();
|
|
2600
2554
|
case 12:
|
|
2601
2555
|
parsedBody = parsedOutput.body;
|
|
2556
|
+
$metadata = deserializeMetadata(output);
|
|
2557
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2602
2558
|
response = new __BaseException({
|
|
2603
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2604
2560
|
$fault: "client",
|
|
2605
|
-
$metadata:
|
|
2561
|
+
$metadata: $metadata,
|
|
2606
2562
|
});
|
|
2607
2563
|
throw __decorateServiceException(response, parsedBody);
|
|
2608
2564
|
}
|
|
@@ -2665,7 +2621,7 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
|
|
|
2665
2621
|
});
|
|
2666
2622
|
}); };
|
|
2667
2623
|
var deserializeAws_restJson1RetryDataReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2668
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2624
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2669
2625
|
var _c;
|
|
2670
2626
|
return __generator(this, function (_d) {
|
|
2671
2627
|
switch (_d.label) {
|
|
@@ -2675,7 +2631,6 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
|
|
|
2675
2631
|
return [4, parseBody(output.body, context)];
|
|
2676
2632
|
case 1:
|
|
2677
2633
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2678
|
-
errorCode = "UnknownError";
|
|
2679
2634
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
2635
|
_b = errorCode;
|
|
2681
2636
|
switch (_b) {
|
|
@@ -2703,10 +2658,12 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
|
|
|
2703
2658
|
case 11: throw _d.sent();
|
|
2704
2659
|
case 12:
|
|
2705
2660
|
parsedBody = parsedOutput.body;
|
|
2661
|
+
$metadata = deserializeMetadata(output);
|
|
2662
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2706
2663
|
response = new __BaseException({
|
|
2707
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2664
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2708
2665
|
$fault: "client",
|
|
2709
|
-
$metadata:
|
|
2666
|
+
$metadata: $metadata,
|
|
2710
2667
|
});
|
|
2711
2668
|
throw __decorateServiceException(response, parsedBody);
|
|
2712
2669
|
}
|
|
@@ -2737,7 +2694,7 @@ export var deserializeAws_restJson1StartFailbackLaunchCommand = function (output
|
|
|
2737
2694
|
});
|
|
2738
2695
|
}); };
|
|
2739
2696
|
var deserializeAws_restJson1StartFailbackLaunchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2740
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2697
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2741
2698
|
var _c;
|
|
2742
2699
|
return __generator(this, function (_d) {
|
|
2743
2700
|
switch (_d.label) {
|
|
@@ -2747,7 +2704,6 @@ var deserializeAws_restJson1StartFailbackLaunchCommandError = function (output,
|
|
|
2747
2704
|
return [4, parseBody(output.body, context)];
|
|
2748
2705
|
case 1:
|
|
2749
2706
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2750
|
-
errorCode = "UnknownError";
|
|
2751
2707
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
2708
|
_b = errorCode;
|
|
2753
2709
|
switch (_b) {
|
|
@@ -2779,10 +2735,12 @@ var deserializeAws_restJson1StartFailbackLaunchCommandError = function (output,
|
|
|
2779
2735
|
case 13: throw _d.sent();
|
|
2780
2736
|
case 14:
|
|
2781
2737
|
parsedBody = parsedOutput.body;
|
|
2738
|
+
$metadata = deserializeMetadata(output);
|
|
2739
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2782
2740
|
response = new __BaseException({
|
|
2783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2741
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2784
2742
|
$fault: "client",
|
|
2785
|
-
$metadata:
|
|
2743
|
+
$metadata: $metadata,
|
|
2786
2744
|
});
|
|
2787
2745
|
throw __decorateServiceException(response, parsedBody);
|
|
2788
2746
|
}
|
|
@@ -2813,7 +2771,7 @@ export var deserializeAws_restJson1StartRecoveryCommand = function (output, cont
|
|
|
2813
2771
|
});
|
|
2814
2772
|
}); };
|
|
2815
2773
|
var deserializeAws_restJson1StartRecoveryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2816
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2774
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2817
2775
|
var _c;
|
|
2818
2776
|
return __generator(this, function (_d) {
|
|
2819
2777
|
switch (_d.label) {
|
|
@@ -2823,7 +2781,6 @@ var deserializeAws_restJson1StartRecoveryCommandError = function (output, contex
|
|
|
2823
2781
|
return [4, parseBody(output.body, context)];
|
|
2824
2782
|
case 1:
|
|
2825
2783
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2826
|
-
errorCode = "UnknownError";
|
|
2827
2784
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
2785
|
_b = errorCode;
|
|
2829
2786
|
switch (_b) {
|
|
@@ -2851,10 +2808,12 @@ var deserializeAws_restJson1StartRecoveryCommandError = function (output, contex
|
|
|
2851
2808
|
case 11: throw _d.sent();
|
|
2852
2809
|
case 12:
|
|
2853
2810
|
parsedBody = parsedOutput.body;
|
|
2811
|
+
$metadata = deserializeMetadata(output);
|
|
2812
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2854
2813
|
response = new __BaseException({
|
|
2855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2814
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2856
2815
|
$fault: "client",
|
|
2857
|
-
$metadata:
|
|
2816
|
+
$metadata: $metadata,
|
|
2858
2817
|
});
|
|
2859
2818
|
throw __decorateServiceException(response, parsedBody);
|
|
2860
2819
|
}
|
|
@@ -2879,7 +2838,7 @@ export var deserializeAws_restJson1StopFailbackCommand = function (output, conte
|
|
|
2879
2838
|
});
|
|
2880
2839
|
}); };
|
|
2881
2840
|
var deserializeAws_restJson1StopFailbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2882
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2841
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2883
2842
|
var _c;
|
|
2884
2843
|
return __generator(this, function (_d) {
|
|
2885
2844
|
switch (_d.label) {
|
|
@@ -2889,7 +2848,6 @@ var deserializeAws_restJson1StopFailbackCommandError = function (output, context
|
|
|
2889
2848
|
return [4, parseBody(output.body, context)];
|
|
2890
2849
|
case 1:
|
|
2891
2850
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2892
|
-
errorCode = "UnknownError";
|
|
2893
2851
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2894
2852
|
_b = errorCode;
|
|
2895
2853
|
switch (_b) {
|
|
@@ -2913,10 +2871,12 @@ var deserializeAws_restJson1StopFailbackCommandError = function (output, context
|
|
|
2913
2871
|
case 9: throw _d.sent();
|
|
2914
2872
|
case 10:
|
|
2915
2873
|
parsedBody = parsedOutput.body;
|
|
2874
|
+
$metadata = deserializeMetadata(output);
|
|
2875
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2916
2876
|
response = new __BaseException({
|
|
2917
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2877
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2918
2878
|
$fault: "client",
|
|
2919
|
-
$metadata:
|
|
2879
|
+
$metadata: $metadata,
|
|
2920
2880
|
});
|
|
2921
2881
|
throw __decorateServiceException(response, parsedBody);
|
|
2922
2882
|
}
|
|
@@ -2941,7 +2901,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2941
2901
|
});
|
|
2942
2902
|
}); };
|
|
2943
2903
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2944
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2904
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2945
2905
|
var _c;
|
|
2946
2906
|
return __generator(this, function (_d) {
|
|
2947
2907
|
switch (_d.label) {
|
|
@@ -2951,7 +2911,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2951
2911
|
return [4, parseBody(output.body, context)];
|
|
2952
2912
|
case 1:
|
|
2953
2913
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2954
|
-
errorCode = "UnknownError";
|
|
2955
2914
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
2915
|
_b = errorCode;
|
|
2957
2916
|
switch (_b) {
|
|
@@ -2979,10 +2938,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2979
2938
|
case 11: throw _d.sent();
|
|
2980
2939
|
case 12:
|
|
2981
2940
|
parsedBody = parsedOutput.body;
|
|
2941
|
+
$metadata = deserializeMetadata(output);
|
|
2942
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2982
2943
|
response = new __BaseException({
|
|
2983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2944
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2984
2945
|
$fault: "client",
|
|
2985
|
-
$metadata:
|
|
2946
|
+
$metadata: $metadata,
|
|
2986
2947
|
});
|
|
2987
2948
|
throw __decorateServiceException(response, parsedBody);
|
|
2988
2949
|
}
|
|
@@ -3013,7 +2974,7 @@ export var deserializeAws_restJson1TerminateRecoveryInstancesCommand = function
|
|
|
3013
2974
|
});
|
|
3014
2975
|
}); };
|
|
3015
2976
|
var deserializeAws_restJson1TerminateRecoveryInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3016
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2977
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3017
2978
|
var _c;
|
|
3018
2979
|
return __generator(this, function (_d) {
|
|
3019
2980
|
switch (_d.label) {
|
|
@@ -3023,7 +2984,6 @@ var deserializeAws_restJson1TerminateRecoveryInstancesCommandError = function (o
|
|
|
3023
2984
|
return [4, parseBody(output.body, context)];
|
|
3024
2985
|
case 1:
|
|
3025
2986
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3026
|
-
errorCode = "UnknownError";
|
|
3027
2987
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3028
2988
|
_b = errorCode;
|
|
3029
2989
|
switch (_b) {
|
|
@@ -3051,10 +3011,12 @@ var deserializeAws_restJson1TerminateRecoveryInstancesCommandError = function (o
|
|
|
3051
3011
|
case 11: throw _d.sent();
|
|
3052
3012
|
case 12:
|
|
3053
3013
|
parsedBody = parsedOutput.body;
|
|
3014
|
+
$metadata = deserializeMetadata(output);
|
|
3015
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3054
3016
|
response = new __BaseException({
|
|
3055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3017
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3056
3018
|
$fault: "client",
|
|
3057
|
-
$metadata:
|
|
3019
|
+
$metadata: $metadata,
|
|
3058
3020
|
});
|
|
3059
3021
|
throw __decorateServiceException(response, parsedBody);
|
|
3060
3022
|
}
|
|
@@ -3079,7 +3041,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3079
3041
|
});
|
|
3080
3042
|
}); };
|
|
3081
3043
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3082
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3044
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3083
3045
|
var _c;
|
|
3084
3046
|
return __generator(this, function (_d) {
|
|
3085
3047
|
switch (_d.label) {
|
|
@@ -3089,7 +3051,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3089
3051
|
return [4, parseBody(output.body, context)];
|
|
3090
3052
|
case 1:
|
|
3091
3053
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3092
|
-
errorCode = "UnknownError";
|
|
3093
3054
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
3055
|
_b = errorCode;
|
|
3095
3056
|
switch (_b) {
|
|
@@ -3117,10 +3078,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3117
3078
|
case 11: throw _d.sent();
|
|
3118
3079
|
case 12:
|
|
3119
3080
|
parsedBody = parsedOutput.body;
|
|
3081
|
+
$metadata = deserializeMetadata(output);
|
|
3082
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3120
3083
|
response = new __BaseException({
|
|
3121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3084
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3122
3085
|
$fault: "client",
|
|
3123
|
-
$metadata:
|
|
3086
|
+
$metadata: $metadata,
|
|
3124
3087
|
});
|
|
3125
3088
|
throw __decorateServiceException(response, parsedBody);
|
|
3126
3089
|
}
|
|
@@ -3145,7 +3108,7 @@ export var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommand
|
|
|
3145
3108
|
});
|
|
3146
3109
|
}); };
|
|
3147
3110
|
var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3148
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3111
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3149
3112
|
var _c;
|
|
3150
3113
|
return __generator(this, function (_d) {
|
|
3151
3114
|
switch (_d.label) {
|
|
@@ -3155,7 +3118,6 @@ var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError =
|
|
|
3155
3118
|
return [4, parseBody(output.body, context)];
|
|
3156
3119
|
case 1:
|
|
3157
3120
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3158
|
-
errorCode = "UnknownError";
|
|
3159
3121
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
3122
|
_b = errorCode;
|
|
3161
3123
|
switch (_b) {
|
|
@@ -3183,10 +3145,12 @@ var deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError =
|
|
|
3183
3145
|
case 11: throw _d.sent();
|
|
3184
3146
|
case 12:
|
|
3185
3147
|
parsedBody = parsedOutput.body;
|
|
3148
|
+
$metadata = deserializeMetadata(output);
|
|
3149
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3186
3150
|
response = new __BaseException({
|
|
3187
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3188
3152
|
$fault: "client",
|
|
3189
|
-
$metadata:
|
|
3153
|
+
$metadata: $metadata,
|
|
3190
3154
|
});
|
|
3191
3155
|
throw __decorateServiceException(response, parsedBody);
|
|
3192
3156
|
}
|
|
@@ -3245,7 +3209,7 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
|
|
|
3245
3209
|
});
|
|
3246
3210
|
}); };
|
|
3247
3211
|
var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3248
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3212
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3249
3213
|
var _c;
|
|
3250
3214
|
return __generator(this, function (_d) {
|
|
3251
3215
|
switch (_d.label) {
|
|
@@ -3255,7 +3219,6 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
|
|
|
3255
3219
|
return [4, parseBody(output.body, context)];
|
|
3256
3220
|
case 1:
|
|
3257
3221
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3258
|
-
errorCode = "UnknownError";
|
|
3259
3222
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3260
3223
|
_b = errorCode;
|
|
3261
3224
|
switch (_b) {
|
|
@@ -3287,10 +3250,12 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
|
|
|
3287
3250
|
case 13: throw _d.sent();
|
|
3288
3251
|
case 14:
|
|
3289
3252
|
parsedBody = parsedOutput.body;
|
|
3253
|
+
$metadata = deserializeMetadata(output);
|
|
3254
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3290
3255
|
response = new __BaseException({
|
|
3291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3292
3257
|
$fault: "client",
|
|
3293
|
-
$metadata:
|
|
3258
|
+
$metadata: $metadata,
|
|
3294
3259
|
});
|
|
3295
3260
|
throw __decorateServiceException(response, parsedBody);
|
|
3296
3261
|
}
|
|
@@ -3381,7 +3346,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
|
|
|
3381
3346
|
});
|
|
3382
3347
|
}); };
|
|
3383
3348
|
var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3384
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3349
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3385
3350
|
var _c;
|
|
3386
3351
|
return __generator(this, function (_d) {
|
|
3387
3352
|
switch (_d.label) {
|
|
@@ -3391,7 +3356,6 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
|
|
|
3391
3356
|
return [4, parseBody(output.body, context)];
|
|
3392
3357
|
case 1:
|
|
3393
3358
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3394
|
-
errorCode = "UnknownError";
|
|
3395
3359
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
3360
|
_b = errorCode;
|
|
3397
3361
|
switch (_b) {
|
|
@@ -3427,10 +3391,12 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
|
|
|
3427
3391
|
case 15: throw _d.sent();
|
|
3428
3392
|
case 16:
|
|
3429
3393
|
parsedBody = parsedOutput.body;
|
|
3394
|
+
$metadata = deserializeMetadata(output);
|
|
3395
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3430
3396
|
response = new __BaseException({
|
|
3431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3397
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3432
3398
|
$fault: "client",
|
|
3433
|
-
$metadata:
|
|
3399
|
+
$metadata: $metadata,
|
|
3434
3400
|
});
|
|
3435
3401
|
throw __decorateServiceException(response, parsedBody);
|
|
3436
3402
|
}
|
|
@@ -3521,7 +3487,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
3521
3487
|
});
|
|
3522
3488
|
}); };
|
|
3523
3489
|
var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3524
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3490
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3525
3491
|
var _c;
|
|
3526
3492
|
return __generator(this, function (_d) {
|
|
3527
3493
|
switch (_d.label) {
|
|
@@ -3531,7 +3497,6 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
|
|
|
3531
3497
|
return [4, parseBody(output.body, context)];
|
|
3532
3498
|
case 1:
|
|
3533
3499
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3534
|
-
errorCode = "UnknownError";
|
|
3535
3500
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3536
3501
|
_b = errorCode;
|
|
3537
3502
|
switch (_b) {
|
|
@@ -3563,10 +3528,12 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
|
|
|
3563
3528
|
case 13: throw _d.sent();
|
|
3564
3529
|
case 14:
|
|
3565
3530
|
parsedBody = parsedOutput.body;
|
|
3531
|
+
$metadata = deserializeMetadata(output);
|
|
3532
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3566
3533
|
response = new __BaseException({
|
|
3567
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3534
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3568
3535
|
$fault: "client",
|
|
3569
|
-
$metadata:
|
|
3536
|
+
$metadata: $metadata,
|
|
3570
3537
|
});
|
|
3571
3538
|
throw __decorateServiceException(response, parsedBody);
|
|
3572
3539
|
}
|
|
@@ -3739,10 +3706,9 @@ var serializeAws_restJson1AccountIDs = function (input, context) {
|
|
|
3739
3706
|
});
|
|
3740
3707
|
};
|
|
3741
3708
|
var serializeAws_restJson1DescribeJobsRequestFilters = function (input, context) {
|
|
3742
|
-
return __assign(__assign(__assign({}, (input.fromDate
|
|
3743
|
-
input.jobIDs !== null && {
|
|
3709
|
+
return __assign(__assign(__assign({}, (input.fromDate != null && { fromDate: input.fromDate })), (input.jobIDs != null && {
|
|
3744
3710
|
jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
|
|
3745
|
-
})), (input.toDate
|
|
3711
|
+
})), (input.toDate != null && { toDate: input.toDate }));
|
|
3746
3712
|
};
|
|
3747
3713
|
var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, context) {
|
|
3748
3714
|
return input
|
|
@@ -3755,23 +3721,19 @@ var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, co
|
|
|
3755
3721
|
});
|
|
3756
3722
|
};
|
|
3757
3723
|
var serializeAws_restJson1DescribeRecoveryInstancesRequestFilters = function (input, context) {
|
|
3758
|
-
return __assign(__assign({}, (input.recoveryInstanceIDs
|
|
3759
|
-
input.recoveryInstanceIDs !== null && {
|
|
3724
|
+
return __assign(__assign({}, (input.recoveryInstanceIDs != null && {
|
|
3760
3725
|
recoveryInstanceIDs: serializeAws_restJson1RecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
3761
|
-
})), (input.sourceServerIDs
|
|
3762
|
-
input.sourceServerIDs !== null && {
|
|
3726
|
+
})), (input.sourceServerIDs != null && {
|
|
3763
3727
|
sourceServerIDs: serializeAws_restJson1SourceServerIDs(input.sourceServerIDs, context),
|
|
3764
3728
|
}));
|
|
3765
3729
|
};
|
|
3766
3730
|
var serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters = function (input, context) {
|
|
3767
|
-
return __assign(__assign({}, (input.fromDateTime
|
|
3731
|
+
return __assign(__assign({}, (input.fromDateTime != null && { fromDateTime: input.fromDateTime })), (input.toDateTime != null && { toDateTime: input.toDateTime }));
|
|
3768
3732
|
};
|
|
3769
3733
|
var serializeAws_restJson1DescribeSourceServersRequestFilters = function (input, context) {
|
|
3770
|
-
return __assign(__assign(__assign({}, (input.hardwareId
|
|
3771
|
-
input.sourceServerIDs !== null && {
|
|
3734
|
+
return __assign(__assign(__assign({}, (input.hardwareId != null && { hardwareId: input.hardwareId })), (input.sourceServerIDs != null && {
|
|
3772
3735
|
sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
|
|
3773
|
-
})), (input.stagingAccountIDs
|
|
3774
|
-
input.stagingAccountIDs !== null && {
|
|
3736
|
+
})), (input.stagingAccountIDs != null && {
|
|
3775
3737
|
stagingAccountIDs: serializeAws_restJson1AccountIDs(input.stagingAccountIDs, context),
|
|
3776
3738
|
}));
|
|
3777
3739
|
};
|
|
@@ -3786,7 +3748,7 @@ var serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = function (inp
|
|
|
3786
3748
|
});
|
|
3787
3749
|
};
|
|
3788
3750
|
var serializeAws_restJson1Licensing = function (input, context) {
|
|
3789
|
-
return __assign({}, (input.osByol
|
|
3751
|
+
return __assign({}, (input.osByol != null && { osByol: input.osByol }));
|
|
3790
3752
|
};
|
|
3791
3753
|
var serializeAws_restJson1PITPolicy = function (input, context) {
|
|
3792
3754
|
return input
|
|
@@ -3799,8 +3761,7 @@ var serializeAws_restJson1PITPolicy = function (input, context) {
|
|
|
3799
3761
|
});
|
|
3800
3762
|
};
|
|
3801
3763
|
var serializeAws_restJson1PITPolicyRule = function (input, context) {
|
|
3802
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.enabled
|
|
3803
|
-
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 }));
|
|
3804
3765
|
};
|
|
3805
3766
|
var serializeAws_restJson1RecoveryInstanceIDs = function (input, context) {
|
|
3806
3767
|
return input
|
|
@@ -3823,8 +3784,7 @@ var serializeAws_restJson1RecoveryInstancesForTerminationRequest = function (inp
|
|
|
3823
3784
|
});
|
|
3824
3785
|
};
|
|
3825
3786
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (input, context) {
|
|
3826
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.deviceName
|
|
3827
|
-
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 }));
|
|
3828
3788
|
};
|
|
3829
3789
|
var serializeAws_restJson1ReplicationConfigurationReplicatedDisks = function (input, context) {
|
|
3830
3790
|
return input
|
|
@@ -3877,9 +3837,7 @@ var serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs = function (in
|
|
|
3877
3837
|
});
|
|
3878
3838
|
};
|
|
3879
3839
|
var serializeAws_restJson1StartRecoveryRequestSourceServer = function (input, context) {
|
|
3880
|
-
return __assign(__assign({}, (input.recoverySnapshotID
|
|
3881
|
-
input.recoverySnapshotID !== null && { recoverySnapshotID: input.recoverySnapshotID })), (input.sourceServerID !== undefined &&
|
|
3882
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }));
|
|
3840
|
+
return __assign(__assign({}, (input.recoverySnapshotID != null && { recoverySnapshotID: input.recoverySnapshotID })), (input.sourceServerID != null && { sourceServerID: input.sourceServerID }));
|
|
3883
3841
|
};
|
|
3884
3842
|
var serializeAws_restJson1StartRecoveryRequestSourceServers = function (input, context) {
|
|
3885
3843
|
return input
|
|
@@ -3932,10 +3890,10 @@ var deserializeAws_restJson1ConversionProperties = function (output, context) {
|
|
|
3932
3890
|
dataTimestamp: __expectString(output.dataTimestamp),
|
|
3933
3891
|
forceUefi: __expectBoolean(output.forceUefi),
|
|
3934
3892
|
rootVolumeName: __expectString(output.rootVolumeName),
|
|
3935
|
-
volumeToConversionMap: output.volumeToConversionMap
|
|
3893
|
+
volumeToConversionMap: output.volumeToConversionMap != null
|
|
3936
3894
|
? deserializeAws_restJson1VolumeToConversionMap(output.volumeToConversionMap, context)
|
|
3937
3895
|
: undefined,
|
|
3938
|
-
volumeToVolumeSize: output.volumeToVolumeSize
|
|
3896
|
+
volumeToVolumeSize: output.volumeToVolumeSize != null
|
|
3939
3897
|
? deserializeAws_restJson1VolumeToSizeMap(output.volumeToVolumeSize, context)
|
|
3940
3898
|
: undefined,
|
|
3941
3899
|
};
|
|
@@ -3965,16 +3923,16 @@ var deserializeAws_restJson1DataReplicationError = function (output, context) {
|
|
|
3965
3923
|
};
|
|
3966
3924
|
var deserializeAws_restJson1DataReplicationInfo = function (output, context) {
|
|
3967
3925
|
return {
|
|
3968
|
-
dataReplicationError: output.dataReplicationError
|
|
3926
|
+
dataReplicationError: output.dataReplicationError != null
|
|
3969
3927
|
? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
|
|
3970
3928
|
: undefined,
|
|
3971
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
3929
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3972
3930
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3973
3931
|
: undefined,
|
|
3974
3932
|
dataReplicationState: __expectString(output.dataReplicationState),
|
|
3975
3933
|
etaDateTime: __expectString(output.etaDateTime),
|
|
3976
3934
|
lagDuration: __expectString(output.lagDuration),
|
|
3977
|
-
replicatedDisks: output.replicatedDisks
|
|
3935
|
+
replicatedDisks: output.replicatedDisks != null
|
|
3978
3936
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3979
3937
|
: undefined,
|
|
3980
3938
|
};
|
|
@@ -4003,9 +3961,7 @@ var deserializeAws_restJson1DataReplicationInitiation = function (output, contex
|
|
|
4003
3961
|
return {
|
|
4004
3962
|
nextAttemptDateTime: __expectString(output.nextAttemptDateTime),
|
|
4005
3963
|
startDateTime: __expectString(output.startDateTime),
|
|
4006
|
-
steps: output.steps
|
|
4007
|
-
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
4008
|
-
: undefined,
|
|
3964
|
+
steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
4009
3965
|
};
|
|
4010
3966
|
};
|
|
4011
3967
|
var deserializeAws_restJson1DataReplicationInitiationStep = function (output, context) {
|
|
@@ -4090,28 +4046,24 @@ var deserializeAws_restJson1Job = function (output, context) {
|
|
|
4090
4046
|
endDateTime: __expectString(output.endDateTime),
|
|
4091
4047
|
initiatedBy: __expectString(output.initiatedBy),
|
|
4092
4048
|
jobID: __expectString(output.jobID),
|
|
4093
|
-
participatingServers: output.participatingServers
|
|
4049
|
+
participatingServers: output.participatingServers != null
|
|
4094
4050
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
4095
4051
|
: undefined,
|
|
4096
4052
|
status: __expectString(output.status),
|
|
4097
|
-
tags: output.tags
|
|
4098
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4099
|
-
: undefined,
|
|
4053
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4100
4054
|
type: __expectString(output.type),
|
|
4101
4055
|
};
|
|
4102
4056
|
};
|
|
4103
4057
|
var deserializeAws_restJson1JobLog = function (output, context) {
|
|
4104
4058
|
return {
|
|
4105
4059
|
event: __expectString(output.event),
|
|
4106
|
-
eventData: output.eventData
|
|
4107
|
-
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
4108
|
-
: undefined,
|
|
4060
|
+
eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
|
|
4109
4061
|
logDateTime: __expectString(output.logDateTime),
|
|
4110
4062
|
};
|
|
4111
4063
|
};
|
|
4112
4064
|
var deserializeAws_restJson1JobLogEventData = function (output, context) {
|
|
4113
4065
|
return {
|
|
4114
|
-
conversionProperties: output.conversionProperties
|
|
4066
|
+
conversionProperties: output.conversionProperties != null
|
|
4115
4067
|
? deserializeAws_restJson1ConversionProperties(output.conversionProperties, context)
|
|
4116
4068
|
: undefined,
|
|
4117
4069
|
conversionServerID: __expectString(output.conversionServerID),
|
|
@@ -4152,15 +4104,13 @@ var deserializeAws_restJson1LifeCycle = function (output, context) {
|
|
|
4152
4104
|
addedToServiceDateTime: __expectString(output.addedToServiceDateTime),
|
|
4153
4105
|
elapsedReplicationDuration: __expectString(output.elapsedReplicationDuration),
|
|
4154
4106
|
firstByteDateTime: __expectString(output.firstByteDateTime),
|
|
4155
|
-
lastLaunch: output.lastLaunch
|
|
4156
|
-
? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context)
|
|
4157
|
-
: undefined,
|
|
4107
|
+
lastLaunch: output.lastLaunch != null ? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context) : undefined,
|
|
4158
4108
|
lastSeenByServiceDateTime: __expectString(output.lastSeenByServiceDateTime),
|
|
4159
4109
|
};
|
|
4160
4110
|
};
|
|
4161
4111
|
var deserializeAws_restJson1LifeCycleLastLaunch = function (output, context) {
|
|
4162
4112
|
return {
|
|
4163
|
-
initiated: output.initiated
|
|
4113
|
+
initiated: output.initiated != null
|
|
4164
4114
|
? deserializeAws_restJson1LifeCycleLastLaunchInitiated(output.initiated, context)
|
|
4165
4115
|
: undefined,
|
|
4166
4116
|
};
|
|
@@ -4174,9 +4124,7 @@ var deserializeAws_restJson1LifeCycleLastLaunchInitiated = function (output, con
|
|
|
4174
4124
|
};
|
|
4175
4125
|
var deserializeAws_restJson1NetworkInterface = function (output, context) {
|
|
4176
4126
|
return {
|
|
4177
|
-
ips: output.ips
|
|
4178
|
-
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
4179
|
-
: undefined,
|
|
4127
|
+
ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
|
|
4180
4128
|
isPrimary: __expectBoolean(output.isPrimary),
|
|
4181
4129
|
macAddress: __expectString(output.macAddress),
|
|
4182
4130
|
};
|
|
@@ -4238,25 +4186,21 @@ var deserializeAws_restJson1PITPolicyRule = function (output, context) {
|
|
|
4238
4186
|
var deserializeAws_restJson1RecoveryInstance = function (output, context) {
|
|
4239
4187
|
return {
|
|
4240
4188
|
arn: __expectString(output.arn),
|
|
4241
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
4189
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
4242
4190
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfo(output.dataReplicationInfo, context)
|
|
4243
4191
|
: undefined,
|
|
4244
4192
|
ec2InstanceID: __expectString(output.ec2InstanceID),
|
|
4245
4193
|
ec2InstanceState: __expectString(output.ec2InstanceState),
|
|
4246
|
-
failback: output.failback
|
|
4247
|
-
? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context)
|
|
4248
|
-
: undefined,
|
|
4194
|
+
failback: output.failback != null ? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context) : undefined,
|
|
4249
4195
|
isDrill: __expectBoolean(output.isDrill),
|
|
4250
4196
|
jobID: __expectString(output.jobID),
|
|
4251
4197
|
pointInTimeSnapshotDateTime: __expectString(output.pointInTimeSnapshotDateTime),
|
|
4252
4198
|
recoveryInstanceID: __expectString(output.recoveryInstanceID),
|
|
4253
|
-
recoveryInstanceProperties: output.recoveryInstanceProperties
|
|
4199
|
+
recoveryInstanceProperties: output.recoveryInstanceProperties != null
|
|
4254
4200
|
? deserializeAws_restJson1RecoveryInstanceProperties(output.recoveryInstanceProperties, context)
|
|
4255
4201
|
: undefined,
|
|
4256
4202
|
sourceServerID: __expectString(output.sourceServerID),
|
|
4257
|
-
tags: output.tags
|
|
4258
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4259
|
-
: undefined,
|
|
4203
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4260
4204
|
};
|
|
4261
4205
|
};
|
|
4262
4206
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationError = function (output, context) {
|
|
@@ -4267,16 +4211,16 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationError = function (out
|
|
|
4267
4211
|
};
|
|
4268
4212
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = function (output, context) {
|
|
4269
4213
|
return {
|
|
4270
|
-
dataReplicationError: output.dataReplicationError
|
|
4214
|
+
dataReplicationError: output.dataReplicationError != null
|
|
4271
4215
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationError(output.dataReplicationError, context)
|
|
4272
4216
|
: undefined,
|
|
4273
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
4217
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
4274
4218
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
4275
4219
|
: undefined,
|
|
4276
4220
|
dataReplicationState: __expectString(output.dataReplicationState),
|
|
4277
4221
|
etaDateTime: __expectString(output.etaDateTime),
|
|
4278
4222
|
lagDuration: __expectString(output.lagDuration),
|
|
4279
|
-
replicatedDisks: output.replicatedDisks
|
|
4223
|
+
replicatedDisks: output.replicatedDisks != null
|
|
4280
4224
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
4281
4225
|
: undefined,
|
|
4282
4226
|
};
|
|
@@ -4304,7 +4248,7 @@ var deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks =
|
|
|
4304
4248
|
var deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = function (output, context) {
|
|
4305
4249
|
return {
|
|
4306
4250
|
startDateTime: __expectString(output.startDateTime),
|
|
4307
|
-
steps: output.steps
|
|
4251
|
+
steps: output.steps != null
|
|
4308
4252
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps(output.steps, context)
|
|
4309
4253
|
: undefined,
|
|
4310
4254
|
};
|
|
@@ -4359,28 +4303,22 @@ var deserializeAws_restJson1RecoveryInstanceFailback = function (output, context
|
|
|
4359
4303
|
};
|
|
4360
4304
|
var deserializeAws_restJson1RecoveryInstanceProperties = function (output, context) {
|
|
4361
4305
|
return {
|
|
4362
|
-
cpus: output.cpus
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
4366
|
-
? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context)
|
|
4367
|
-
: undefined,
|
|
4368
|
-
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
|
|
4369
4309
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
4370
4310
|
: undefined,
|
|
4371
4311
|
lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
|
|
4372
|
-
networkInterfaces: output.networkInterfaces
|
|
4312
|
+
networkInterfaces: output.networkInterfaces != null
|
|
4373
4313
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
4374
4314
|
: undefined,
|
|
4375
|
-
os: output.os
|
|
4315
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
4376
4316
|
ramBytes: __expectLong(output.ramBytes),
|
|
4377
4317
|
};
|
|
4378
4318
|
};
|
|
4379
4319
|
var deserializeAws_restJson1RecoverySnapshot = function (output, context) {
|
|
4380
4320
|
return {
|
|
4381
|
-
ebsSnapshots: output.ebsSnapshots
|
|
4382
|
-
? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context)
|
|
4383
|
-
: undefined,
|
|
4321
|
+
ebsSnapshots: output.ebsSnapshots != null ? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context) : undefined,
|
|
4384
4322
|
expectedTimestamp: __expectString(output.expectedTimestamp),
|
|
4385
4323
|
snapshotID: __expectString(output.snapshotID),
|
|
4386
4324
|
sourceServerID: __expectString(output.sourceServerID),
|
|
@@ -4428,21 +4366,15 @@ var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output,
|
|
|
4428
4366
|
defaultLargeStagingDiskType: __expectString(output.defaultLargeStagingDiskType),
|
|
4429
4367
|
ebsEncryption: __expectString(output.ebsEncryption),
|
|
4430
4368
|
ebsEncryptionKeyArn: __expectString(output.ebsEncryptionKeyArn),
|
|
4431
|
-
pitPolicy: output.pitPolicy
|
|
4432
|
-
? deserializeAws_restJson1PITPolicy(output.pitPolicy, context)
|
|
4433
|
-
: undefined,
|
|
4369
|
+
pitPolicy: output.pitPolicy != null ? deserializeAws_restJson1PITPolicy(output.pitPolicy, context) : undefined,
|
|
4434
4370
|
replicationConfigurationTemplateID: __expectString(output.replicationConfigurationTemplateID),
|
|
4435
4371
|
replicationServerInstanceType: __expectString(output.replicationServerInstanceType),
|
|
4436
|
-
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs
|
|
4372
|
+
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
|
|
4437
4373
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
4438
4374
|
: undefined,
|
|
4439
4375
|
stagingAreaSubnetId: __expectString(output.stagingAreaSubnetId),
|
|
4440
|
-
stagingAreaTags: output.stagingAreaTags
|
|
4441
|
-
|
|
4442
|
-
: undefined,
|
|
4443
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
4444
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4445
|
-
: undefined,
|
|
4376
|
+
stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
|
|
4377
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4446
4378
|
useDedicatedReplicationServer: __expectBoolean(output.useDedicatedReplicationServer),
|
|
4447
4379
|
};
|
|
4448
4380
|
};
|
|
@@ -4470,20 +4402,16 @@ var deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (outp
|
|
|
4470
4402
|
};
|
|
4471
4403
|
var deserializeAws_restJson1SourceProperties = function (output, context) {
|
|
4472
4404
|
return {
|
|
4473
|
-
cpus: output.cpus
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
4477
|
-
? deserializeAws_restJson1Disks(output.disks, context)
|
|
4478
|
-
: undefined,
|
|
4479
|
-
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
|
|
4480
4408
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
4481
4409
|
: undefined,
|
|
4482
4410
|
lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
|
|
4483
|
-
networkInterfaces: output.networkInterfaces
|
|
4411
|
+
networkInterfaces: output.networkInterfaces != null
|
|
4484
4412
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
4485
4413
|
: undefined,
|
|
4486
|
-
os: output.os
|
|
4414
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
4487
4415
|
ramBytes: __expectLong(output.ramBytes),
|
|
4488
4416
|
recommendedInstanceType: __expectString(output.recommendedInstanceType),
|
|
4489
4417
|
};
|
|
@@ -4491,24 +4419,18 @@ var deserializeAws_restJson1SourceProperties = function (output, context) {
|
|
|
4491
4419
|
var deserializeAws_restJson1SourceServer = function (output, context) {
|
|
4492
4420
|
return {
|
|
4493
4421
|
arn: __expectString(output.arn),
|
|
4494
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
4422
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
4495
4423
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
4496
4424
|
: undefined,
|
|
4497
4425
|
lastLaunchResult: __expectString(output.lastLaunchResult),
|
|
4498
|
-
lifeCycle: output.lifeCycle
|
|
4499
|
-
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
4500
|
-
: undefined,
|
|
4426
|
+
lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
|
|
4501
4427
|
recoveryInstanceId: __expectString(output.recoveryInstanceId),
|
|
4502
|
-
sourceProperties: output.sourceProperties
|
|
4428
|
+
sourceProperties: output.sourceProperties != null
|
|
4503
4429
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
4504
4430
|
: undefined,
|
|
4505
4431
|
sourceServerID: __expectString(output.sourceServerID),
|
|
4506
|
-
stagingArea: output.stagingArea
|
|
4507
|
-
|
|
4508
|
-
: undefined,
|
|
4509
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
4510
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4511
|
-
: undefined,
|
|
4432
|
+
stagingArea: output.stagingArea != null ? deserializeAws_restJson1StagingArea(output.stagingArea, context) : undefined,
|
|
4433
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4512
4434
|
};
|
|
4513
4435
|
};
|
|
4514
4436
|
var deserializeAws_restJson1SourceServersList = function (output, context) {
|
|
@@ -4534,9 +4456,7 @@ var deserializeAws_restJson1StagingSourceServer = function (output, context) {
|
|
|
4534
4456
|
return {
|
|
4535
4457
|
arn: __expectString(output.arn),
|
|
4536
4458
|
hostname: __expectString(output.hostname),
|
|
4537
|
-
tags: output.tags
|
|
4538
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
4539
|
-
: undefined,
|
|
4459
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4540
4460
|
};
|
|
4541
4461
|
};
|
|
4542
4462
|
var deserializeAws_restJson1StagingSourceServersList = function (output, context) {
|
|
@@ -4653,5 +4573,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4653
4573
|
if (data["__type"] !== undefined) {
|
|
4654
4574
|
return sanitizeErrorCode(data["__type"]);
|
|
4655
4575
|
}
|
|
4656
|
-
return "";
|
|
4657
4576
|
};
|