@aws-sdk/client-drs 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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,10 +14,8 @@ const serializeAws_restJson1CreateExtendedSourceServerCommand = async (input, co
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateExtendedSourceServer";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.sourceServerArn
|
|
18
|
-
|
|
19
|
-
...(input.tags !== undefined &&
|
|
20
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
17
|
+
...(input.sourceServerArn != null && { sourceServerArn: input.sourceServerArn }),
|
|
18
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
21
19
|
});
|
|
22
20
|
return new protocol_http_1.HttpRequest({
|
|
23
21
|
protocol,
|
|
@@ -38,41 +36,30 @@ const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = asyn
|
|
|
38
36
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate";
|
|
39
37
|
let body;
|
|
40
38
|
body = JSON.stringify({
|
|
41
|
-
...(input.associateDefaultSecurityGroup
|
|
42
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
39
|
+
...(input.associateDefaultSecurityGroup != null && {
|
|
43
40
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
44
41
|
}),
|
|
45
|
-
...(input.bandwidthThrottling
|
|
46
|
-
|
|
47
|
-
...(input.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
...(input.
|
|
52
|
-
|
|
53
|
-
...(input.
|
|
54
|
-
...(input.
|
|
55
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
56
|
-
...(input.pitPolicy !== undefined &&
|
|
57
|
-
input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
|
|
58
|
-
...(input.replicationServerInstanceType !== undefined &&
|
|
59
|
-
input.replicationServerInstanceType !== null && {
|
|
42
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
43
|
+
...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
|
|
44
|
+
...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
|
|
45
|
+
...(input.defaultLargeStagingDiskType != null && {
|
|
46
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
47
|
+
}),
|
|
48
|
+
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
49
|
+
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
50
|
+
...(input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
|
|
51
|
+
...(input.replicationServerInstanceType != null && {
|
|
60
52
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
61
53
|
}),
|
|
62
|
-
...(input.replicationServersSecurityGroupsIDs
|
|
63
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
54
|
+
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
64
55
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
65
56
|
}),
|
|
66
|
-
...(input.stagingAreaSubnetId
|
|
67
|
-
|
|
68
|
-
...(input.stagingAreaTags !== undefined &&
|
|
69
|
-
input.stagingAreaTags !== null && {
|
|
57
|
+
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
58
|
+
...(input.stagingAreaTags != null && {
|
|
70
59
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
71
60
|
}),
|
|
72
|
-
...(input.tags
|
|
73
|
-
|
|
74
|
-
...(input.useDedicatedReplicationServer !== undefined &&
|
|
75
|
-
input.useDedicatedReplicationServer !== null && {
|
|
61
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
62
|
+
...(input.useDedicatedReplicationServer != null && {
|
|
76
63
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
77
64
|
}),
|
|
78
65
|
});
|
|
@@ -95,7 +82,7 @@ const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
|
|
|
95
82
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob";
|
|
96
83
|
let body;
|
|
97
84
|
body = JSON.stringify({
|
|
98
|
-
...(input.jobID
|
|
85
|
+
...(input.jobID != null && { jobID: input.jobID }),
|
|
99
86
|
});
|
|
100
87
|
return new protocol_http_1.HttpRequest({
|
|
101
88
|
protocol,
|
|
@@ -116,8 +103,7 @@ const serializeAws_restJson1DeleteRecoveryInstanceCommand = async (input, contex
|
|
|
116
103
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecoveryInstance";
|
|
117
104
|
let body;
|
|
118
105
|
body = JSON.stringify({
|
|
119
|
-
...(input.recoveryInstanceID
|
|
120
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
106
|
+
...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
121
107
|
});
|
|
122
108
|
return new protocol_http_1.HttpRequest({
|
|
123
109
|
protocol,
|
|
@@ -138,8 +124,7 @@ const serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = asyn
|
|
|
138
124
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate";
|
|
139
125
|
let body;
|
|
140
126
|
body = JSON.stringify({
|
|
141
|
-
...(input.replicationConfigurationTemplateID
|
|
142
|
-
input.replicationConfigurationTemplateID !== null && {
|
|
127
|
+
...(input.replicationConfigurationTemplateID != null && {
|
|
143
128
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
144
129
|
}),
|
|
145
130
|
});
|
|
@@ -162,8 +147,7 @@ const serializeAws_restJson1DeleteSourceServerCommand = async (input, context) =
|
|
|
162
147
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer";
|
|
163
148
|
let body;
|
|
164
149
|
body = JSON.stringify({
|
|
165
|
-
...(input.sourceServerID
|
|
166
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
150
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
167
151
|
});
|
|
168
152
|
return new protocol_http_1.HttpRequest({
|
|
169
153
|
protocol,
|
|
@@ -184,9 +168,9 @@ const serializeAws_restJson1DescribeJobLogItemsCommand = async (input, context)
|
|
|
184
168
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems";
|
|
185
169
|
let body;
|
|
186
170
|
body = JSON.stringify({
|
|
187
|
-
...(input.jobID
|
|
188
|
-
...(input.maxResults
|
|
189
|
-
...(input.nextToken
|
|
171
|
+
...(input.jobID != null && { jobID: input.jobID }),
|
|
172
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
173
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
190
174
|
});
|
|
191
175
|
return new protocol_http_1.HttpRequest({
|
|
192
176
|
protocol,
|
|
@@ -207,10 +191,9 @@ const serializeAws_restJson1DescribeJobsCommand = async (input, context) => {
|
|
|
207
191
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
|
|
208
192
|
let body;
|
|
209
193
|
body = JSON.stringify({
|
|
210
|
-
...(input.filters
|
|
211
|
-
|
|
212
|
-
...(input.
|
|
213
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
194
|
+
...(input.filters != null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) }),
|
|
195
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
196
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
214
197
|
});
|
|
215
198
|
return new protocol_http_1.HttpRequest({
|
|
216
199
|
protocol,
|
|
@@ -231,12 +214,11 @@ const serializeAws_restJson1DescribeRecoveryInstancesCommand = async (input, con
|
|
|
231
214
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoveryInstances";
|
|
232
215
|
let body;
|
|
233
216
|
body = JSON.stringify({
|
|
234
|
-
...(input.filters
|
|
235
|
-
input.filters !== null && {
|
|
217
|
+
...(input.filters != null && {
|
|
236
218
|
filters: serializeAws_restJson1DescribeRecoveryInstancesRequestFilters(input.filters, context),
|
|
237
219
|
}),
|
|
238
|
-
...(input.maxResults
|
|
239
|
-
...(input.nextToken
|
|
220
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
221
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
240
222
|
});
|
|
241
223
|
return new protocol_http_1.HttpRequest({
|
|
242
224
|
protocol,
|
|
@@ -257,15 +239,13 @@ const serializeAws_restJson1DescribeRecoverySnapshotsCommand = async (input, con
|
|
|
257
239
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoverySnapshots";
|
|
258
240
|
let body;
|
|
259
241
|
body = JSON.stringify({
|
|
260
|
-
...(input.filters
|
|
261
|
-
input.filters !== null && {
|
|
242
|
+
...(input.filters != null && {
|
|
262
243
|
filters: serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters(input.filters, context),
|
|
263
244
|
}),
|
|
264
|
-
...(input.maxResults
|
|
265
|
-
...(input.nextToken
|
|
266
|
-
...(input.order
|
|
267
|
-
...(input.sourceServerID
|
|
268
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
245
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
246
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
247
|
+
...(input.order != null && { order: input.order }),
|
|
248
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
269
249
|
});
|
|
270
250
|
return new protocol_http_1.HttpRequest({
|
|
271
251
|
protocol,
|
|
@@ -287,10 +267,9 @@ const serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = a
|
|
|
287
267
|
"/DescribeReplicationConfigurationTemplates";
|
|
288
268
|
let body;
|
|
289
269
|
body = JSON.stringify({
|
|
290
|
-
...(input.maxResults
|
|
291
|
-
...(input.nextToken
|
|
292
|
-
...(input.replicationConfigurationTemplateIDs
|
|
293
|
-
input.replicationConfigurationTemplateIDs !== null && {
|
|
270
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
271
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
272
|
+
...(input.replicationConfigurationTemplateIDs != null && {
|
|
294
273
|
replicationConfigurationTemplateIDs: serializeAws_restJson1ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
|
|
295
274
|
}),
|
|
296
275
|
});
|
|
@@ -313,12 +292,11 @@ const serializeAws_restJson1DescribeSourceServersCommand = async (input, context
|
|
|
313
292
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
|
|
314
293
|
let body;
|
|
315
294
|
body = JSON.stringify({
|
|
316
|
-
...(input.filters
|
|
317
|
-
input.filters !== null && {
|
|
295
|
+
...(input.filters != null && {
|
|
318
296
|
filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
|
|
319
297
|
}),
|
|
320
|
-
...(input.maxResults
|
|
321
|
-
...(input.nextToken
|
|
298
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
299
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
322
300
|
});
|
|
323
301
|
return new protocol_http_1.HttpRequest({
|
|
324
302
|
protocol,
|
|
@@ -339,8 +317,7 @@ const serializeAws_restJson1DisconnectRecoveryInstanceCommand = async (input, co
|
|
|
339
317
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectRecoveryInstance";
|
|
340
318
|
let body;
|
|
341
319
|
body = JSON.stringify({
|
|
342
|
-
...(input.recoveryInstanceID
|
|
343
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
320
|
+
...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
344
321
|
});
|
|
345
322
|
return new protocol_http_1.HttpRequest({
|
|
346
323
|
protocol,
|
|
@@ -361,8 +338,7 @@ const serializeAws_restJson1DisconnectSourceServerCommand = async (input, contex
|
|
|
361
338
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectSourceServer";
|
|
362
339
|
let body;
|
|
363
340
|
body = JSON.stringify({
|
|
364
|
-
...(input.sourceServerID
|
|
365
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
341
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
366
342
|
});
|
|
367
343
|
return new protocol_http_1.HttpRequest({
|
|
368
344
|
protocol,
|
|
@@ -383,8 +359,7 @@ const serializeAws_restJson1GetFailbackReplicationConfigurationCommand = async (
|
|
|
383
359
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetFailbackReplicationConfiguration";
|
|
384
360
|
let body;
|
|
385
361
|
body = JSON.stringify({
|
|
386
|
-
...(input.recoveryInstanceID
|
|
387
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
362
|
+
...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
388
363
|
});
|
|
389
364
|
return new protocol_http_1.HttpRequest({
|
|
390
365
|
protocol,
|
|
@@ -405,8 +380,7 @@ const serializeAws_restJson1GetLaunchConfigurationCommand = async (input, contex
|
|
|
405
380
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration";
|
|
406
381
|
let body;
|
|
407
382
|
body = JSON.stringify({
|
|
408
|
-
...(input.sourceServerID
|
|
409
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
383
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
410
384
|
});
|
|
411
385
|
return new protocol_http_1.HttpRequest({
|
|
412
386
|
protocol,
|
|
@@ -427,8 +401,7 @@ const serializeAws_restJson1GetReplicationConfigurationCommand = async (input, c
|
|
|
427
401
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration";
|
|
428
402
|
let body;
|
|
429
403
|
body = JSON.stringify({
|
|
430
|
-
...(input.sourceServerID
|
|
431
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
404
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
432
405
|
});
|
|
433
406
|
return new protocol_http_1.HttpRequest({
|
|
434
407
|
protocol,
|
|
@@ -468,10 +441,9 @@ const serializeAws_restJson1ListExtensibleSourceServersCommand = async (input, c
|
|
|
468
441
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListExtensibleSourceServers";
|
|
469
442
|
let body;
|
|
470
443
|
body = JSON.stringify({
|
|
471
|
-
...(input.maxResults
|
|
472
|
-
...(input.nextToken
|
|
473
|
-
...(input.stagingAccountID
|
|
474
|
-
input.stagingAccountID !== null && { stagingAccountID: input.stagingAccountID }),
|
|
444
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
445
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
446
|
+
...(input.stagingAccountID != null && { stagingAccountID: input.stagingAccountID }),
|
|
475
447
|
});
|
|
476
448
|
return new protocol_http_1.HttpRequest({
|
|
477
449
|
protocol,
|
|
@@ -539,8 +511,7 @@ const serializeAws_restJson1RetryDataReplicationCommand = async (input, context)
|
|
|
539
511
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
|
|
540
512
|
let body;
|
|
541
513
|
body = JSON.stringify({
|
|
542
|
-
...(input.sourceServerID
|
|
543
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
514
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
544
515
|
});
|
|
545
516
|
return new protocol_http_1.HttpRequest({
|
|
546
517
|
protocol,
|
|
@@ -561,12 +532,10 @@ const serializeAws_restJson1StartFailbackLaunchCommand = async (input, context)
|
|
|
561
532
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartFailbackLaunch";
|
|
562
533
|
let body;
|
|
563
534
|
body = JSON.stringify({
|
|
564
|
-
...(input.recoveryInstanceIDs
|
|
565
|
-
input.recoveryInstanceIDs !== null && {
|
|
535
|
+
...(input.recoveryInstanceIDs != null && {
|
|
566
536
|
recoveryInstanceIDs: serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
567
537
|
}),
|
|
568
|
-
...(input.tags
|
|
569
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
538
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
570
539
|
});
|
|
571
540
|
return new protocol_http_1.HttpRequest({
|
|
572
541
|
protocol,
|
|
@@ -587,13 +556,11 @@ const serializeAws_restJson1StartRecoveryCommand = async (input, context) => {
|
|
|
587
556
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartRecovery";
|
|
588
557
|
let body;
|
|
589
558
|
body = JSON.stringify({
|
|
590
|
-
...(input.isDrill
|
|
591
|
-
...(input.sourceServers
|
|
592
|
-
input.sourceServers !== null && {
|
|
559
|
+
...(input.isDrill != null && { isDrill: input.isDrill }),
|
|
560
|
+
...(input.sourceServers != null && {
|
|
593
561
|
sourceServers: serializeAws_restJson1StartRecoveryRequestSourceServers(input.sourceServers, context),
|
|
594
562
|
}),
|
|
595
|
-
...(input.tags
|
|
596
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
563
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
597
564
|
});
|
|
598
565
|
return new protocol_http_1.HttpRequest({
|
|
599
566
|
protocol,
|
|
@@ -614,8 +581,7 @@ const serializeAws_restJson1StopFailbackCommand = async (input, context) => {
|
|
|
614
581
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StopFailback";
|
|
615
582
|
let body;
|
|
616
583
|
body = JSON.stringify({
|
|
617
|
-
...(input.recoveryInstanceID
|
|
618
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
584
|
+
...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
619
585
|
});
|
|
620
586
|
return new protocol_http_1.HttpRequest({
|
|
621
587
|
protocol,
|
|
@@ -646,8 +612,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
646
612
|
}
|
|
647
613
|
let body;
|
|
648
614
|
body = JSON.stringify({
|
|
649
|
-
...(input.tags
|
|
650
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
615
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
651
616
|
});
|
|
652
617
|
return new protocol_http_1.HttpRequest({
|
|
653
618
|
protocol,
|
|
@@ -668,8 +633,7 @@ const serializeAws_restJson1TerminateRecoveryInstancesCommand = async (input, co
|
|
|
668
633
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateRecoveryInstances";
|
|
669
634
|
let body;
|
|
670
635
|
body = JSON.stringify({
|
|
671
|
-
...(input.recoveryInstanceIDs
|
|
672
|
-
input.recoveryInstanceIDs !== null && {
|
|
636
|
+
...(input.recoveryInstanceIDs != null && {
|
|
673
637
|
recoveryInstanceIDs: serializeAws_restJson1RecoveryInstancesForTerminationRequest(input.recoveryInstanceIDs, context),
|
|
674
638
|
}),
|
|
675
639
|
});
|
|
@@ -722,12 +686,10 @@ const serializeAws_restJson1UpdateFailbackReplicationConfigurationCommand = asyn
|
|
|
722
686
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateFailbackReplicationConfiguration";
|
|
723
687
|
let body;
|
|
724
688
|
body = JSON.stringify({
|
|
725
|
-
...(input.bandwidthThrottling
|
|
726
|
-
|
|
727
|
-
...(input.
|
|
728
|
-
...(input.
|
|
729
|
-
input.recoveryInstanceID !== null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
730
|
-
...(input.usePrivateIP !== undefined && input.usePrivateIP !== null && { usePrivateIP: input.usePrivateIP }),
|
|
689
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
690
|
+
...(input.name != null && { name: input.name }),
|
|
691
|
+
...(input.recoveryInstanceID != null && { recoveryInstanceID: input.recoveryInstanceID }),
|
|
692
|
+
...(input.usePrivateIP != null && { usePrivateIP: input.usePrivateIP }),
|
|
731
693
|
});
|
|
732
694
|
return new protocol_http_1.HttpRequest({
|
|
733
695
|
protocol,
|
|
@@ -748,17 +710,13 @@ const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (input, con
|
|
|
748
710
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
|
|
749
711
|
let body;
|
|
750
712
|
body = JSON.stringify({
|
|
751
|
-
...(input.copyPrivateIp
|
|
752
|
-
...(input.copyTags
|
|
753
|
-
...(input.launchDisposition
|
|
754
|
-
|
|
755
|
-
...(input.
|
|
756
|
-
|
|
757
|
-
...(input.
|
|
758
|
-
...(input.sourceServerID !== undefined &&
|
|
759
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
760
|
-
...(input.targetInstanceTypeRightSizingMethod !== undefined &&
|
|
761
|
-
input.targetInstanceTypeRightSizingMethod !== null && {
|
|
713
|
+
...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
|
|
714
|
+
...(input.copyTags != null && { copyTags: input.copyTags }),
|
|
715
|
+
...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
|
|
716
|
+
...(input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
|
|
717
|
+
...(input.name != null && { name: input.name }),
|
|
718
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
719
|
+
...(input.targetInstanceTypeRightSizingMethod != null && {
|
|
762
720
|
targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
|
|
763
721
|
}),
|
|
764
722
|
});
|
|
@@ -781,46 +739,34 @@ const serializeAws_restJson1UpdateReplicationConfigurationCommand = async (input
|
|
|
781
739
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration";
|
|
782
740
|
let body;
|
|
783
741
|
body = JSON.stringify({
|
|
784
|
-
...(input.associateDefaultSecurityGroup
|
|
785
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
742
|
+
...(input.associateDefaultSecurityGroup != null && {
|
|
786
743
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
787
744
|
}),
|
|
788
|
-
...(input.bandwidthThrottling
|
|
789
|
-
|
|
790
|
-
...(input.
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
...(input.
|
|
795
|
-
|
|
796
|
-
...(input.
|
|
797
|
-
...(input.
|
|
798
|
-
|
|
799
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
800
|
-
...(input.pitPolicy !== undefined &&
|
|
801
|
-
input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
|
|
802
|
-
...(input.replicatedDisks !== undefined &&
|
|
803
|
-
input.replicatedDisks !== null && {
|
|
745
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
746
|
+
...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
|
|
747
|
+
...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
|
|
748
|
+
...(input.defaultLargeStagingDiskType != null && {
|
|
749
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
750
|
+
}),
|
|
751
|
+
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
752
|
+
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
753
|
+
...(input.name != null && { name: input.name }),
|
|
754
|
+
...(input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
|
|
755
|
+
...(input.replicatedDisks != null && {
|
|
804
756
|
replicatedDisks: serializeAws_restJson1ReplicationConfigurationReplicatedDisks(input.replicatedDisks, context),
|
|
805
757
|
}),
|
|
806
|
-
...(input.replicationServerInstanceType
|
|
807
|
-
input.replicationServerInstanceType !== null && {
|
|
758
|
+
...(input.replicationServerInstanceType != null && {
|
|
808
759
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
809
760
|
}),
|
|
810
|
-
...(input.replicationServersSecurityGroupsIDs
|
|
811
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
761
|
+
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
812
762
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
813
763
|
}),
|
|
814
|
-
...(input.sourceServerID
|
|
815
|
-
|
|
816
|
-
...(input.
|
|
817
|
-
input.stagingAreaSubnetId !== null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
818
|
-
...(input.stagingAreaTags !== undefined &&
|
|
819
|
-
input.stagingAreaTags !== null && {
|
|
764
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
765
|
+
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
766
|
+
...(input.stagingAreaTags != null && {
|
|
820
767
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
821
768
|
}),
|
|
822
|
-
...(input.useDedicatedReplicationServer
|
|
823
|
-
input.useDedicatedReplicationServer !== null && {
|
|
769
|
+
...(input.useDedicatedReplicationServer != null && {
|
|
824
770
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
825
771
|
}),
|
|
826
772
|
});
|
|
@@ -843,44 +789,33 @@ const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = asyn
|
|
|
843
789
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate";
|
|
844
790
|
let body;
|
|
845
791
|
body = JSON.stringify({
|
|
846
|
-
...(input.arn
|
|
847
|
-
...(input.associateDefaultSecurityGroup
|
|
848
|
-
input.associateDefaultSecurityGroup !== null && {
|
|
792
|
+
...(input.arn != null && { arn: input.arn }),
|
|
793
|
+
...(input.associateDefaultSecurityGroup != null && {
|
|
849
794
|
associateDefaultSecurityGroup: input.associateDefaultSecurityGroup,
|
|
850
795
|
}),
|
|
851
|
-
...(input.bandwidthThrottling
|
|
852
|
-
|
|
853
|
-
...(input.
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
...(input.
|
|
858
|
-
|
|
859
|
-
...(input.
|
|
860
|
-
...(input.
|
|
861
|
-
input.ebsEncryptionKeyArn !== null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
862
|
-
...(input.pitPolicy !== undefined &&
|
|
863
|
-
input.pitPolicy !== null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
|
|
864
|
-
...(input.replicationConfigurationTemplateID !== undefined &&
|
|
865
|
-
input.replicationConfigurationTemplateID !== null && {
|
|
796
|
+
...(input.bandwidthThrottling != null && { bandwidthThrottling: input.bandwidthThrottling }),
|
|
797
|
+
...(input.createPublicIP != null && { createPublicIP: input.createPublicIP }),
|
|
798
|
+
...(input.dataPlaneRouting != null && { dataPlaneRouting: input.dataPlaneRouting }),
|
|
799
|
+
...(input.defaultLargeStagingDiskType != null && {
|
|
800
|
+
defaultLargeStagingDiskType: input.defaultLargeStagingDiskType,
|
|
801
|
+
}),
|
|
802
|
+
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
803
|
+
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
804
|
+
...(input.pitPolicy != null && { pitPolicy: serializeAws_restJson1PITPolicy(input.pitPolicy, context) }),
|
|
805
|
+
...(input.replicationConfigurationTemplateID != null && {
|
|
866
806
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
867
807
|
}),
|
|
868
|
-
...(input.replicationServerInstanceType
|
|
869
|
-
input.replicationServerInstanceType !== null && {
|
|
808
|
+
...(input.replicationServerInstanceType != null && {
|
|
870
809
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
871
810
|
}),
|
|
872
|
-
...(input.replicationServersSecurityGroupsIDs
|
|
873
|
-
input.replicationServersSecurityGroupsIDs !== null && {
|
|
811
|
+
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
874
812
|
replicationServersSecurityGroupsIDs: serializeAws_restJson1ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
875
813
|
}),
|
|
876
|
-
...(input.stagingAreaSubnetId
|
|
877
|
-
|
|
878
|
-
...(input.stagingAreaTags !== undefined &&
|
|
879
|
-
input.stagingAreaTags !== null && {
|
|
814
|
+
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
815
|
+
...(input.stagingAreaTags != null && {
|
|
880
816
|
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
881
817
|
}),
|
|
882
|
-
...(input.useDedicatedReplicationServer
|
|
883
|
-
input.useDedicatedReplicationServer !== null && {
|
|
818
|
+
...(input.useDedicatedReplicationServer != null && {
|
|
884
819
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
885
820
|
}),
|
|
886
821
|
});
|
|
@@ -916,8 +851,7 @@ const deserializeAws_restJson1CreateExtendedSourceServerCommandError = async (ou
|
|
|
916
851
|
body: await parseBody(output.body, context),
|
|
917
852
|
};
|
|
918
853
|
let response;
|
|
919
|
-
|
|
920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
855
|
switch (errorCode) {
|
|
922
856
|
case "AccessDeniedException":
|
|
923
857
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -942,10 +876,12 @@ const deserializeAws_restJson1CreateExtendedSourceServerCommandError = async (ou
|
|
|
942
876
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
943
877
|
default:
|
|
944
878
|
const parsedBody = parsedOutput.body;
|
|
879
|
+
const $metadata = deserializeMetadata(output);
|
|
880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
945
881
|
response = new DrsServiceException_1.DrsServiceException({
|
|
946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
882
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
947
883
|
$fault: "client",
|
|
948
|
-
$metadata
|
|
884
|
+
$metadata,
|
|
949
885
|
});
|
|
950
886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
951
887
|
}
|
|
@@ -1031,8 +967,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
1031
967
|
body: await parseBody(output.body, context),
|
|
1032
968
|
};
|
|
1033
969
|
let response;
|
|
1034
|
-
|
|
1035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
971
|
switch (errorCode) {
|
|
1037
972
|
case "AccessDeniedException":
|
|
1038
973
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1054,10 +989,12 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
1054
989
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1055
990
|
default:
|
|
1056
991
|
const parsedBody = parsedOutput.body;
|
|
992
|
+
const $metadata = deserializeMetadata(output);
|
|
993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1057
994
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1059
996
|
$fault: "client",
|
|
1060
|
-
$metadata
|
|
997
|
+
$metadata,
|
|
1061
998
|
});
|
|
1062
999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1063
1000
|
}
|
|
@@ -1079,8 +1016,7 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1079
1016
|
body: await parseBody(output.body, context),
|
|
1080
1017
|
};
|
|
1081
1018
|
let response;
|
|
1082
|
-
|
|
1083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
1020
|
switch (errorCode) {
|
|
1085
1021
|
case "ConflictException":
|
|
1086
1022
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -1099,10 +1035,12 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1099
1035
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1100
1036
|
default:
|
|
1101
1037
|
const parsedBody = parsedOutput.body;
|
|
1038
|
+
const $metadata = deserializeMetadata(output);
|
|
1039
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1102
1040
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1103
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1041
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1104
1042
|
$fault: "client",
|
|
1105
|
-
$metadata
|
|
1043
|
+
$metadata,
|
|
1106
1044
|
});
|
|
1107
1045
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1108
1046
|
}
|
|
@@ -1124,8 +1062,7 @@ const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output
|
|
|
1124
1062
|
body: await parseBody(output.body, context),
|
|
1125
1063
|
};
|
|
1126
1064
|
let response;
|
|
1127
|
-
|
|
1128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
1066
|
switch (errorCode) {
|
|
1130
1067
|
case "AccessDeniedException":
|
|
1131
1068
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1144,10 +1081,12 @@ const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output
|
|
|
1144
1081
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1145
1082
|
default:
|
|
1146
1083
|
const parsedBody = parsedOutput.body;
|
|
1084
|
+
const $metadata = deserializeMetadata(output);
|
|
1085
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1147
1086
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1149
1088
|
$fault: "client",
|
|
1150
|
-
$metadata
|
|
1089
|
+
$metadata,
|
|
1151
1090
|
});
|
|
1152
1091
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1153
1092
|
}
|
|
@@ -1169,8 +1108,7 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1169
1108
|
body: await parseBody(output.body, context),
|
|
1170
1109
|
};
|
|
1171
1110
|
let response;
|
|
1172
|
-
|
|
1173
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1112
|
switch (errorCode) {
|
|
1175
1113
|
case "ConflictException":
|
|
1176
1114
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -1189,10 +1127,12 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1189
1127
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1190
1128
|
default:
|
|
1191
1129
|
const parsedBody = parsedOutput.body;
|
|
1130
|
+
const $metadata = deserializeMetadata(output);
|
|
1131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1192
1132
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1193
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1194
1134
|
$fault: "client",
|
|
1195
|
-
$metadata
|
|
1135
|
+
$metadata,
|
|
1196
1136
|
});
|
|
1197
1137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1198
1138
|
}
|
|
@@ -1214,8 +1154,7 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1214
1154
|
body: await parseBody(output.body, context),
|
|
1215
1155
|
};
|
|
1216
1156
|
let response;
|
|
1217
|
-
|
|
1218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
1158
|
switch (errorCode) {
|
|
1220
1159
|
case "ConflictException":
|
|
1221
1160
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -1234,10 +1173,12 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1234
1173
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1235
1174
|
default:
|
|
1236
1175
|
const parsedBody = parsedOutput.body;
|
|
1176
|
+
const $metadata = deserializeMetadata(output);
|
|
1177
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1237
1178
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1179
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1239
1180
|
$fault: "client",
|
|
1240
|
-
$metadata
|
|
1181
|
+
$metadata,
|
|
1241
1182
|
});
|
|
1242
1183
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1243
1184
|
}
|
|
@@ -1267,8 +1208,7 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1267
1208
|
body: await parseBody(output.body, context),
|
|
1268
1209
|
};
|
|
1269
1210
|
let response;
|
|
1270
|
-
|
|
1271
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
1212
|
switch (errorCode) {
|
|
1273
1213
|
case "InternalServerException":
|
|
1274
1214
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -1284,10 +1224,12 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1284
1224
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1285
1225
|
default:
|
|
1286
1226
|
const parsedBody = parsedOutput.body;
|
|
1227
|
+
const $metadata = deserializeMetadata(output);
|
|
1228
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1287
1229
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1230
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1289
1231
|
$fault: "client",
|
|
1290
|
-
$metadata
|
|
1232
|
+
$metadata,
|
|
1291
1233
|
});
|
|
1292
1234
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1293
1235
|
}
|
|
@@ -1317,8 +1259,7 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1317
1259
|
body: await parseBody(output.body, context),
|
|
1318
1260
|
};
|
|
1319
1261
|
let response;
|
|
1320
|
-
|
|
1321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
1263
|
switch (errorCode) {
|
|
1323
1264
|
case "InternalServerException":
|
|
1324
1265
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -1334,10 +1275,12 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1334
1275
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1335
1276
|
default:
|
|
1336
1277
|
const parsedBody = parsedOutput.body;
|
|
1278
|
+
const $metadata = deserializeMetadata(output);
|
|
1279
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1337
1280
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1338
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1281
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1339
1282
|
$fault: "client",
|
|
1340
|
-
$metadata
|
|
1283
|
+
$metadata,
|
|
1341
1284
|
});
|
|
1342
1285
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1343
1286
|
}
|
|
@@ -1367,8 +1310,7 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (out
|
|
|
1367
1310
|
body: await parseBody(output.body, context),
|
|
1368
1311
|
};
|
|
1369
1312
|
let response;
|
|
1370
|
-
|
|
1371
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1314
|
switch (errorCode) {
|
|
1373
1315
|
case "AccessDeniedException":
|
|
1374
1316
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1384,10 +1326,12 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (out
|
|
|
1384
1326
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1385
1327
|
default:
|
|
1386
1328
|
const parsedBody = parsedOutput.body;
|
|
1329
|
+
const $metadata = deserializeMetadata(output);
|
|
1330
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1387
1331
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1389
1333
|
$fault: "client",
|
|
1390
|
-
$metadata
|
|
1334
|
+
$metadata,
|
|
1391
1335
|
});
|
|
1392
1336
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1393
1337
|
}
|
|
@@ -1417,8 +1361,7 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (out
|
|
|
1417
1361
|
body: await parseBody(output.body, context),
|
|
1418
1362
|
};
|
|
1419
1363
|
let response;
|
|
1420
|
-
|
|
1421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
1365
|
switch (errorCode) {
|
|
1423
1366
|
case "AccessDeniedException":
|
|
1424
1367
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1437,10 +1380,12 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (out
|
|
|
1437
1380
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1438
1381
|
default:
|
|
1439
1382
|
const parsedBody = parsedOutput.body;
|
|
1383
|
+
const $metadata = deserializeMetadata(output);
|
|
1384
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1440
1385
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1441
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1386
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1442
1387
|
$fault: "client",
|
|
1443
|
-
$metadata
|
|
1388
|
+
$metadata,
|
|
1444
1389
|
});
|
|
1445
1390
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1446
1391
|
}
|
|
@@ -1470,8 +1415,7 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1470
1415
|
body: await parseBody(output.body, context),
|
|
1471
1416
|
};
|
|
1472
1417
|
let response;
|
|
1473
|
-
|
|
1474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1419
|
switch (errorCode) {
|
|
1476
1420
|
case "InternalServerException":
|
|
1477
1421
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -1490,10 +1434,12 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1490
1434
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1491
1435
|
default:
|
|
1492
1436
|
const parsedBody = parsedOutput.body;
|
|
1437
|
+
const $metadata = deserializeMetadata(output);
|
|
1438
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1493
1439
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1495
1441
|
$fault: "client",
|
|
1496
|
-
$metadata
|
|
1442
|
+
$metadata,
|
|
1497
1443
|
});
|
|
1498
1444
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1499
1445
|
}
|
|
@@ -1523,8 +1469,7 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1523
1469
|
body: await parseBody(output.body, context),
|
|
1524
1470
|
};
|
|
1525
1471
|
let response;
|
|
1526
|
-
|
|
1527
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
1473
|
switch (errorCode) {
|
|
1529
1474
|
case "InternalServerException":
|
|
1530
1475
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -1540,10 +1485,12 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1540
1485
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1541
1486
|
default:
|
|
1542
1487
|
const parsedBody = parsedOutput.body;
|
|
1488
|
+
const $metadata = deserializeMetadata(output);
|
|
1489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1543
1490
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1544
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1545
1492
|
$fault: "client",
|
|
1546
|
-
$metadata
|
|
1493
|
+
$metadata,
|
|
1547
1494
|
});
|
|
1548
1495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1549
1496
|
}
|
|
@@ -1565,8 +1512,7 @@ const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (ou
|
|
|
1565
1512
|
body: await parseBody(output.body, context),
|
|
1566
1513
|
};
|
|
1567
1514
|
let response;
|
|
1568
|
-
|
|
1569
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
1516
|
switch (errorCode) {
|
|
1571
1517
|
case "AccessDeniedException":
|
|
1572
1518
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1588,10 +1534,12 @@ const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (ou
|
|
|
1588
1534
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1589
1535
|
default:
|
|
1590
1536
|
const parsedBody = parsedOutput.body;
|
|
1537
|
+
const $metadata = deserializeMetadata(output);
|
|
1538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1591
1539
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1593
1541
|
$fault: "client",
|
|
1594
|
-
$metadata
|
|
1542
|
+
$metadata,
|
|
1595
1543
|
});
|
|
1596
1544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1597
1545
|
}
|
|
@@ -1649,8 +1597,7 @@ const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output
|
|
|
1649
1597
|
body: await parseBody(output.body, context),
|
|
1650
1598
|
};
|
|
1651
1599
|
let response;
|
|
1652
|
-
|
|
1653
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
1601
|
switch (errorCode) {
|
|
1655
1602
|
case "ConflictException":
|
|
1656
1603
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -1669,10 +1616,12 @@ const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output
|
|
|
1669
1616
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1670
1617
|
default:
|
|
1671
1618
|
const parsedBody = parsedOutput.body;
|
|
1619
|
+
const $metadata = deserializeMetadata(output);
|
|
1620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1672
1621
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1673
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1674
1623
|
$fault: "client",
|
|
1675
|
-
$metadata
|
|
1624
|
+
$metadata,
|
|
1676
1625
|
});
|
|
1677
1626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1678
1627
|
}
|
|
@@ -1710,8 +1659,7 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError =
|
|
|
1710
1659
|
body: await parseBody(output.body, context),
|
|
1711
1660
|
};
|
|
1712
1661
|
let response;
|
|
1713
|
-
|
|
1714
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1715
1663
|
switch (errorCode) {
|
|
1716
1664
|
case "InternalServerException":
|
|
1717
1665
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -1727,10 +1675,12 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError =
|
|
|
1727
1675
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1728
1676
|
default:
|
|
1729
1677
|
const parsedBody = parsedOutput.body;
|
|
1678
|
+
const $metadata = deserializeMetadata(output);
|
|
1679
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1730
1680
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1731
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1732
1682
|
$fault: "client",
|
|
1733
|
-
$metadata
|
|
1683
|
+
$metadata,
|
|
1734
1684
|
});
|
|
1735
1685
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1736
1686
|
}
|
|
@@ -1784,8 +1734,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1784
1734
|
body: await parseBody(output.body, context),
|
|
1785
1735
|
};
|
|
1786
1736
|
let response;
|
|
1787
|
-
|
|
1788
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
1738
|
switch (errorCode) {
|
|
1790
1739
|
case "InternalServerException":
|
|
1791
1740
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -1801,10 +1750,12 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1801
1750
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1802
1751
|
default:
|
|
1803
1752
|
const parsedBody = parsedOutput.body;
|
|
1753
|
+
const $metadata = deserializeMetadata(output);
|
|
1754
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1804
1755
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1805
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1806
1757
|
$fault: "client",
|
|
1807
|
-
$metadata
|
|
1758
|
+
$metadata,
|
|
1808
1759
|
});
|
|
1809
1760
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1810
1761
|
}
|
|
@@ -1890,8 +1841,7 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1890
1841
|
body: await parseBody(output.body, context),
|
|
1891
1842
|
};
|
|
1892
1843
|
let response;
|
|
1893
|
-
|
|
1894
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
1845
|
switch (errorCode) {
|
|
1896
1846
|
case "AccessDeniedException":
|
|
1897
1847
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1910,10 +1860,12 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1910
1860
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1911
1861
|
default:
|
|
1912
1862
|
const parsedBody = parsedOutput.body;
|
|
1863
|
+
const $metadata = deserializeMetadata(output);
|
|
1864
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1913
1865
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1915
1867
|
$fault: "client",
|
|
1916
|
-
$metadata
|
|
1868
|
+
$metadata,
|
|
1917
1869
|
});
|
|
1918
1870
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1919
1871
|
}
|
|
@@ -1935,8 +1887,7 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1935
1887
|
body: await parseBody(output.body, context),
|
|
1936
1888
|
};
|
|
1937
1889
|
let response;
|
|
1938
|
-
|
|
1939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1891
|
switch (errorCode) {
|
|
1941
1892
|
case "AccessDeniedException":
|
|
1942
1893
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -1952,10 +1903,12 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1952
1903
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1953
1904
|
default:
|
|
1954
1905
|
const parsedBody = parsedOutput.body;
|
|
1906
|
+
const $metadata = deserializeMetadata(output);
|
|
1907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1955
1908
|
response = new DrsServiceException_1.DrsServiceException({
|
|
1956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1957
1910
|
$fault: "client",
|
|
1958
|
-
$metadata
|
|
1911
|
+
$metadata,
|
|
1959
1912
|
});
|
|
1960
1913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1961
1914
|
}
|
|
@@ -1985,8 +1938,7 @@ const deserializeAws_restJson1ListExtensibleSourceServersCommandError = async (o
|
|
|
1985
1938
|
body: await parseBody(output.body, context),
|
|
1986
1939
|
};
|
|
1987
1940
|
let response;
|
|
1988
|
-
|
|
1989
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
1942
|
switch (errorCode) {
|
|
1991
1943
|
case "AccessDeniedException":
|
|
1992
1944
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2005,10 +1957,12 @@ const deserializeAws_restJson1ListExtensibleSourceServersCommandError = async (o
|
|
|
2005
1957
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2006
1958
|
default:
|
|
2007
1959
|
const parsedBody = parsedOutput.body;
|
|
1960
|
+
const $metadata = deserializeMetadata(output);
|
|
1961
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2008
1962
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1963
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2010
1964
|
$fault: "client",
|
|
2011
|
-
$metadata
|
|
1965
|
+
$metadata,
|
|
2012
1966
|
});
|
|
2013
1967
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2014
1968
|
}
|
|
@@ -2038,8 +1992,7 @@ const deserializeAws_restJson1ListStagingAccountsCommandError = async (output, c
|
|
|
2038
1992
|
body: await parseBody(output.body, context),
|
|
2039
1993
|
};
|
|
2040
1994
|
let response;
|
|
2041
|
-
|
|
2042
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
1996
|
switch (errorCode) {
|
|
2044
1997
|
case "AccessDeniedException":
|
|
2045
1998
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2058,10 +2011,12 @@ const deserializeAws_restJson1ListStagingAccountsCommandError = async (output, c
|
|
|
2058
2011
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2059
2012
|
default:
|
|
2060
2013
|
const parsedBody = parsedOutput.body;
|
|
2014
|
+
const $metadata = deserializeMetadata(output);
|
|
2015
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2061
2016
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2062
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2017
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2063
2018
|
$fault: "client",
|
|
2064
|
-
$metadata
|
|
2019
|
+
$metadata,
|
|
2065
2020
|
});
|
|
2066
2021
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2067
2022
|
}
|
|
@@ -2087,8 +2042,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2087
2042
|
body: await parseBody(output.body, context),
|
|
2088
2043
|
};
|
|
2089
2044
|
let response;
|
|
2090
|
-
|
|
2091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
2046
|
switch (errorCode) {
|
|
2093
2047
|
case "AccessDeniedException":
|
|
2094
2048
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2107,10 +2061,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2107
2061
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2108
2062
|
default:
|
|
2109
2063
|
const parsedBody = parsedOutput.body;
|
|
2064
|
+
const $metadata = deserializeMetadata(output);
|
|
2065
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2110
2066
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2067
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2112
2068
|
$fault: "client",
|
|
2113
|
-
$metadata
|
|
2069
|
+
$metadata,
|
|
2114
2070
|
});
|
|
2115
2071
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2116
2072
|
}
|
|
@@ -2168,8 +2124,7 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
2168
2124
|
body: await parseBody(output.body, context),
|
|
2169
2125
|
};
|
|
2170
2126
|
let response;
|
|
2171
|
-
|
|
2172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2127
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2128
|
switch (errorCode) {
|
|
2174
2129
|
case "InternalServerException":
|
|
2175
2130
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -2188,10 +2143,12 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
2188
2143
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2189
2144
|
default:
|
|
2190
2145
|
const parsedBody = parsedOutput.body;
|
|
2146
|
+
const $metadata = deserializeMetadata(output);
|
|
2147
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2191
2148
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2149
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2193
2150
|
$fault: "client",
|
|
2194
|
-
$metadata
|
|
2151
|
+
$metadata,
|
|
2195
2152
|
});
|
|
2196
2153
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2197
2154
|
}
|
|
@@ -2217,8 +2174,7 @@ const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, c
|
|
|
2217
2174
|
body: await parseBody(output.body, context),
|
|
2218
2175
|
};
|
|
2219
2176
|
let response;
|
|
2220
|
-
|
|
2221
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2178
|
switch (errorCode) {
|
|
2223
2179
|
case "ConflictException":
|
|
2224
2180
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -2240,10 +2196,12 @@ const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, c
|
|
|
2240
2196
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2241
2197
|
default:
|
|
2242
2198
|
const parsedBody = parsedOutput.body;
|
|
2199
|
+
const $metadata = deserializeMetadata(output);
|
|
2200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2243
2201
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2244
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2245
2203
|
$fault: "client",
|
|
2246
|
-
$metadata
|
|
2204
|
+
$metadata,
|
|
2247
2205
|
});
|
|
2248
2206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2249
2207
|
}
|
|
@@ -2269,8 +2227,7 @@ const deserializeAws_restJson1StartRecoveryCommandError = async (output, context
|
|
|
2269
2227
|
body: await parseBody(output.body, context),
|
|
2270
2228
|
};
|
|
2271
2229
|
let response;
|
|
2272
|
-
|
|
2273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2231
|
switch (errorCode) {
|
|
2275
2232
|
case "ConflictException":
|
|
2276
2233
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -2289,10 +2246,12 @@ const deserializeAws_restJson1StartRecoveryCommandError = async (output, context
|
|
|
2289
2246
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2290
2247
|
default:
|
|
2291
2248
|
const parsedBody = parsedOutput.body;
|
|
2249
|
+
const $metadata = deserializeMetadata(output);
|
|
2250
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2292
2251
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2252
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2294
2253
|
$fault: "client",
|
|
2295
|
-
$metadata
|
|
2254
|
+
$metadata,
|
|
2296
2255
|
});
|
|
2297
2256
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2298
2257
|
}
|
|
@@ -2314,8 +2273,7 @@ const deserializeAws_restJson1StopFailbackCommandError = async (output, context)
|
|
|
2314
2273
|
body: await parseBody(output.body, context),
|
|
2315
2274
|
};
|
|
2316
2275
|
let response;
|
|
2317
|
-
|
|
2318
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
2277
|
switch (errorCode) {
|
|
2320
2278
|
case "InternalServerException":
|
|
2321
2279
|
case "com.amazonaws.drs#InternalServerException":
|
|
@@ -2331,10 +2289,12 @@ const deserializeAws_restJson1StopFailbackCommandError = async (output, context)
|
|
|
2331
2289
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2332
2290
|
default:
|
|
2333
2291
|
const parsedBody = parsedOutput.body;
|
|
2292
|
+
const $metadata = deserializeMetadata(output);
|
|
2293
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2334
2294
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2335
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2295
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2336
2296
|
$fault: "client",
|
|
2337
|
-
$metadata
|
|
2297
|
+
$metadata,
|
|
2338
2298
|
});
|
|
2339
2299
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2340
2300
|
}
|
|
@@ -2356,8 +2316,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2356
2316
|
body: await parseBody(output.body, context),
|
|
2357
2317
|
};
|
|
2358
2318
|
let response;
|
|
2359
|
-
|
|
2360
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
2320
|
switch (errorCode) {
|
|
2362
2321
|
case "AccessDeniedException":
|
|
2363
2322
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2376,10 +2335,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2376
2335
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2377
2336
|
default:
|
|
2378
2337
|
const parsedBody = parsedOutput.body;
|
|
2338
|
+
const $metadata = deserializeMetadata(output);
|
|
2339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2379
2340
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2380
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2381
2342
|
$fault: "client",
|
|
2382
|
-
$metadata
|
|
2343
|
+
$metadata,
|
|
2383
2344
|
});
|
|
2384
2345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2385
2346
|
}
|
|
@@ -2405,8 +2366,7 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (ou
|
|
|
2405
2366
|
body: await parseBody(output.body, context),
|
|
2406
2367
|
};
|
|
2407
2368
|
let response;
|
|
2408
|
-
|
|
2409
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
2370
|
switch (errorCode) {
|
|
2411
2371
|
case "ConflictException":
|
|
2412
2372
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -2425,10 +2385,12 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (ou
|
|
|
2425
2385
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2426
2386
|
default:
|
|
2427
2387
|
const parsedBody = parsedOutput.body;
|
|
2388
|
+
const $metadata = deserializeMetadata(output);
|
|
2389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2428
2390
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2429
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2430
2392
|
$fault: "client",
|
|
2431
|
-
$metadata
|
|
2393
|
+
$metadata,
|
|
2432
2394
|
});
|
|
2433
2395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2434
2396
|
}
|
|
@@ -2450,8 +2412,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2450
2412
|
body: await parseBody(output.body, context),
|
|
2451
2413
|
};
|
|
2452
2414
|
let response;
|
|
2453
|
-
|
|
2454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
2416
|
switch (errorCode) {
|
|
2456
2417
|
case "AccessDeniedException":
|
|
2457
2418
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2470,10 +2431,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2470
2431
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2471
2432
|
default:
|
|
2472
2433
|
const parsedBody = parsedOutput.body;
|
|
2434
|
+
const $metadata = deserializeMetadata(output);
|
|
2435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2473
2436
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2475
2438
|
$fault: "client",
|
|
2476
|
-
$metadata
|
|
2439
|
+
$metadata,
|
|
2477
2440
|
});
|
|
2478
2441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2479
2442
|
}
|
|
@@ -2495,8 +2458,7 @@ const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError
|
|
|
2495
2458
|
body: await parseBody(output.body, context),
|
|
2496
2459
|
};
|
|
2497
2460
|
let response;
|
|
2498
|
-
|
|
2499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
2462
|
switch (errorCode) {
|
|
2501
2463
|
case "AccessDeniedException":
|
|
2502
2464
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2515,10 +2477,12 @@ const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError
|
|
|
2515
2477
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2516
2478
|
default:
|
|
2517
2479
|
const parsedBody = parsedOutput.body;
|
|
2480
|
+
const $metadata = deserializeMetadata(output);
|
|
2481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2518
2482
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2520
2484
|
$fault: "client",
|
|
2521
|
-
$metadata
|
|
2485
|
+
$metadata,
|
|
2522
2486
|
});
|
|
2523
2487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2524
2488
|
}
|
|
@@ -2572,8 +2536,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2572
2536
|
body: await parseBody(output.body, context),
|
|
2573
2537
|
};
|
|
2574
2538
|
let response;
|
|
2575
|
-
|
|
2576
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2540
|
switch (errorCode) {
|
|
2578
2541
|
case "ConflictException":
|
|
2579
2542
|
case "com.amazonaws.drs#ConflictException":
|
|
@@ -2595,10 +2558,12 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2595
2558
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2596
2559
|
default:
|
|
2597
2560
|
const parsedBody = parsedOutput.body;
|
|
2561
|
+
const $metadata = deserializeMetadata(output);
|
|
2562
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2598
2563
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2599
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2564
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2600
2565
|
$fault: "client",
|
|
2601
|
-
$metadata
|
|
2566
|
+
$metadata,
|
|
2602
2567
|
});
|
|
2603
2568
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2604
2569
|
}
|
|
@@ -2684,8 +2649,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2684
2649
|
body: await parseBody(output.body, context),
|
|
2685
2650
|
};
|
|
2686
2651
|
let response;
|
|
2687
|
-
|
|
2688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2689
2653
|
switch (errorCode) {
|
|
2690
2654
|
case "AccessDeniedException":
|
|
2691
2655
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2710,10 +2674,12 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2710
2674
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2711
2675
|
default:
|
|
2712
2676
|
const parsedBody = parsedOutput.body;
|
|
2677
|
+
const $metadata = deserializeMetadata(output);
|
|
2678
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2713
2679
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2680
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2715
2681
|
$fault: "client",
|
|
2716
|
-
$metadata
|
|
2682
|
+
$metadata,
|
|
2717
2683
|
});
|
|
2718
2684
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2719
2685
|
}
|
|
@@ -2799,8 +2765,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2799
2765
|
body: await parseBody(output.body, context),
|
|
2800
2766
|
};
|
|
2801
2767
|
let response;
|
|
2802
|
-
|
|
2803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
2769
|
switch (errorCode) {
|
|
2805
2770
|
case "AccessDeniedException":
|
|
2806
2771
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
@@ -2822,10 +2787,12 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2822
2787
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2823
2788
|
default:
|
|
2824
2789
|
const parsedBody = parsedOutput.body;
|
|
2790
|
+
const $metadata = deserializeMetadata(output);
|
|
2791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2825
2792
|
response = new DrsServiceException_1.DrsServiceException({
|
|
2826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2827
2794
|
$fault: "client",
|
|
2828
|
-
$metadata
|
|
2795
|
+
$metadata,
|
|
2829
2796
|
});
|
|
2830
2797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2831
2798
|
}
|
|
@@ -2998,12 +2965,11 @@ const serializeAws_restJson1AccountIDs = (input, context) => {
|
|
|
2998
2965
|
};
|
|
2999
2966
|
const serializeAws_restJson1DescribeJobsRequestFilters = (input, context) => {
|
|
3000
2967
|
return {
|
|
3001
|
-
...(input.fromDate
|
|
3002
|
-
...(input.jobIDs
|
|
3003
|
-
input.jobIDs !== null && {
|
|
2968
|
+
...(input.fromDate != null && { fromDate: input.fromDate }),
|
|
2969
|
+
...(input.jobIDs != null && {
|
|
3004
2970
|
jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
|
|
3005
2971
|
}),
|
|
3006
|
-
...(input.toDate
|
|
2972
|
+
...(input.toDate != null && { toDate: input.toDate }),
|
|
3007
2973
|
};
|
|
3008
2974
|
};
|
|
3009
2975
|
const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context) => {
|
|
@@ -3018,31 +2984,27 @@ const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context)
|
|
|
3018
2984
|
};
|
|
3019
2985
|
const serializeAws_restJson1DescribeRecoveryInstancesRequestFilters = (input, context) => {
|
|
3020
2986
|
return {
|
|
3021
|
-
...(input.recoveryInstanceIDs
|
|
3022
|
-
input.recoveryInstanceIDs !== null && {
|
|
2987
|
+
...(input.recoveryInstanceIDs != null && {
|
|
3023
2988
|
recoveryInstanceIDs: serializeAws_restJson1RecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
3024
2989
|
}),
|
|
3025
|
-
...(input.sourceServerIDs
|
|
3026
|
-
input.sourceServerIDs !== null && {
|
|
2990
|
+
...(input.sourceServerIDs != null && {
|
|
3027
2991
|
sourceServerIDs: serializeAws_restJson1SourceServerIDs(input.sourceServerIDs, context),
|
|
3028
2992
|
}),
|
|
3029
2993
|
};
|
|
3030
2994
|
};
|
|
3031
2995
|
const serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters = (input, context) => {
|
|
3032
2996
|
return {
|
|
3033
|
-
...(input.fromDateTime
|
|
3034
|
-
...(input.toDateTime
|
|
2997
|
+
...(input.fromDateTime != null && { fromDateTime: input.fromDateTime }),
|
|
2998
|
+
...(input.toDateTime != null && { toDateTime: input.toDateTime }),
|
|
3035
2999
|
};
|
|
3036
3000
|
};
|
|
3037
3001
|
const serializeAws_restJson1DescribeSourceServersRequestFilters = (input, context) => {
|
|
3038
3002
|
return {
|
|
3039
|
-
...(input.hardwareId
|
|
3040
|
-
...(input.sourceServerIDs
|
|
3041
|
-
input.sourceServerIDs !== null && {
|
|
3003
|
+
...(input.hardwareId != null && { hardwareId: input.hardwareId }),
|
|
3004
|
+
...(input.sourceServerIDs != null && {
|
|
3042
3005
|
sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
|
|
3043
3006
|
}),
|
|
3044
|
-
...(input.stagingAccountIDs
|
|
3045
|
-
input.stagingAccountIDs !== null && {
|
|
3007
|
+
...(input.stagingAccountIDs != null && {
|
|
3046
3008
|
stagingAccountIDs: serializeAws_restJson1AccountIDs(input.stagingAccountIDs, context),
|
|
3047
3009
|
}),
|
|
3048
3010
|
};
|
|
@@ -3059,7 +3021,7 @@ const serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = (input, con
|
|
|
3059
3021
|
};
|
|
3060
3022
|
const serializeAws_restJson1Licensing = (input, context) => {
|
|
3061
3023
|
return {
|
|
3062
|
-
...(input.osByol
|
|
3024
|
+
...(input.osByol != null && { osByol: input.osByol }),
|
|
3063
3025
|
};
|
|
3064
3026
|
};
|
|
3065
3027
|
const serializeAws_restJson1PITPolicy = (input, context) => {
|
|
@@ -3074,12 +3036,11 @@ const serializeAws_restJson1PITPolicy = (input, context) => {
|
|
|
3074
3036
|
};
|
|
3075
3037
|
const serializeAws_restJson1PITPolicyRule = (input, context) => {
|
|
3076
3038
|
return {
|
|
3077
|
-
...(input.enabled
|
|
3078
|
-
...(input.interval
|
|
3079
|
-
...(input.retentionDuration
|
|
3080
|
-
|
|
3081
|
-
...(input.
|
|
3082
|
-
...(input.units !== undefined && input.units !== null && { units: input.units }),
|
|
3039
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
3040
|
+
...(input.interval != null && { interval: input.interval }),
|
|
3041
|
+
...(input.retentionDuration != null && { retentionDuration: input.retentionDuration }),
|
|
3042
|
+
...(input.ruleID != null && { ruleID: input.ruleID }),
|
|
3043
|
+
...(input.units != null && { units: input.units }),
|
|
3083
3044
|
};
|
|
3084
3045
|
};
|
|
3085
3046
|
const serializeAws_restJson1RecoveryInstanceIDs = (input, context) => {
|
|
@@ -3104,12 +3065,11 @@ const serializeAws_restJson1RecoveryInstancesForTerminationRequest = (input, con
|
|
|
3104
3065
|
};
|
|
3105
3066
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, context) => {
|
|
3106
3067
|
return {
|
|
3107
|
-
...(input.deviceName
|
|
3108
|
-
...(input.iops
|
|
3109
|
-
...(input.isBootDisk
|
|
3110
|
-
...(input.stagingDiskType
|
|
3111
|
-
|
|
3112
|
-
...(input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }),
|
|
3068
|
+
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
3069
|
+
...(input.iops != null && { iops: input.iops }),
|
|
3070
|
+
...(input.isBootDisk != null && { isBootDisk: input.isBootDisk }),
|
|
3071
|
+
...(input.stagingDiskType != null && { stagingDiskType: input.stagingDiskType }),
|
|
3072
|
+
...(input.throughput != null && { throughput: input.throughput }),
|
|
3113
3073
|
};
|
|
3114
3074
|
};
|
|
3115
3075
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisks = (input, context) => {
|
|
@@ -3164,10 +3124,8 @@ const serializeAws_restJson1StartFailbackRequestRecoveryInstanceIDs = (input, co
|
|
|
3164
3124
|
};
|
|
3165
3125
|
const serializeAws_restJson1StartRecoveryRequestSourceServer = (input, context) => {
|
|
3166
3126
|
return {
|
|
3167
|
-
...(input.recoverySnapshotID
|
|
3168
|
-
|
|
3169
|
-
...(input.sourceServerID !== undefined &&
|
|
3170
|
-
input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
|
|
3127
|
+
...(input.recoverySnapshotID != null && { recoverySnapshotID: input.recoverySnapshotID }),
|
|
3128
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
3171
3129
|
};
|
|
3172
3130
|
};
|
|
3173
3131
|
const serializeAws_restJson1StartRecoveryRequestSourceServers = (input, context) => {
|
|
@@ -3223,10 +3181,10 @@ const deserializeAws_restJson1ConversionProperties = (output, context) => {
|
|
|
3223
3181
|
dataTimestamp: (0, smithy_client_1.expectString)(output.dataTimestamp),
|
|
3224
3182
|
forceUefi: (0, smithy_client_1.expectBoolean)(output.forceUefi),
|
|
3225
3183
|
rootVolumeName: (0, smithy_client_1.expectString)(output.rootVolumeName),
|
|
3226
|
-
volumeToConversionMap: output.volumeToConversionMap
|
|
3184
|
+
volumeToConversionMap: output.volumeToConversionMap != null
|
|
3227
3185
|
? deserializeAws_restJson1VolumeToConversionMap(output.volumeToConversionMap, context)
|
|
3228
3186
|
: undefined,
|
|
3229
|
-
volumeToVolumeSize: output.volumeToVolumeSize
|
|
3187
|
+
volumeToVolumeSize: output.volumeToVolumeSize != null
|
|
3230
3188
|
? deserializeAws_restJson1VolumeToSizeMap(output.volumeToVolumeSize, context)
|
|
3231
3189
|
: undefined,
|
|
3232
3190
|
};
|
|
@@ -3256,16 +3214,16 @@ const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
|
3256
3214
|
};
|
|
3257
3215
|
const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
3258
3216
|
return {
|
|
3259
|
-
dataReplicationError: output.dataReplicationError
|
|
3217
|
+
dataReplicationError: output.dataReplicationError != null
|
|
3260
3218
|
? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
|
|
3261
3219
|
: undefined,
|
|
3262
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
3220
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3263
3221
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3264
3222
|
: undefined,
|
|
3265
3223
|
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
3266
3224
|
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
3267
3225
|
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
3268
|
-
replicatedDisks: output.replicatedDisks
|
|
3226
|
+
replicatedDisks: output.replicatedDisks != null
|
|
3269
3227
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3270
3228
|
: undefined,
|
|
3271
3229
|
};
|
|
@@ -3294,9 +3252,7 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
|
3294
3252
|
return {
|
|
3295
3253
|
nextAttemptDateTime: (0, smithy_client_1.expectString)(output.nextAttemptDateTime),
|
|
3296
3254
|
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
3297
|
-
steps: output.steps
|
|
3298
|
-
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
3299
|
-
: undefined,
|
|
3255
|
+
steps: output.steps != null ? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
3300
3256
|
};
|
|
3301
3257
|
};
|
|
3302
3258
|
const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
|
|
@@ -3381,28 +3337,24 @@ const deserializeAws_restJson1Job = (output, context) => {
|
|
|
3381
3337
|
endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
|
|
3382
3338
|
initiatedBy: (0, smithy_client_1.expectString)(output.initiatedBy),
|
|
3383
3339
|
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3384
|
-
participatingServers: output.participatingServers
|
|
3340
|
+
participatingServers: output.participatingServers != null
|
|
3385
3341
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3386
3342
|
: undefined,
|
|
3387
3343
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3388
|
-
tags: output.tags
|
|
3389
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3390
|
-
: undefined,
|
|
3344
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3391
3345
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3392
3346
|
};
|
|
3393
3347
|
};
|
|
3394
3348
|
const deserializeAws_restJson1JobLog = (output, context) => {
|
|
3395
3349
|
return {
|
|
3396
3350
|
event: (0, smithy_client_1.expectString)(output.event),
|
|
3397
|
-
eventData: output.eventData
|
|
3398
|
-
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
3399
|
-
: undefined,
|
|
3351
|
+
eventData: output.eventData != null ? deserializeAws_restJson1JobLogEventData(output.eventData, context) : undefined,
|
|
3400
3352
|
logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
|
|
3401
3353
|
};
|
|
3402
3354
|
};
|
|
3403
3355
|
const deserializeAws_restJson1JobLogEventData = (output, context) => {
|
|
3404
3356
|
return {
|
|
3405
|
-
conversionProperties: output.conversionProperties
|
|
3357
|
+
conversionProperties: output.conversionProperties != null
|
|
3406
3358
|
? deserializeAws_restJson1ConversionProperties(output.conversionProperties, context)
|
|
3407
3359
|
: undefined,
|
|
3408
3360
|
conversionServerID: (0, smithy_client_1.expectString)(output.conversionServerID),
|
|
@@ -3443,15 +3395,13 @@ const deserializeAws_restJson1LifeCycle = (output, context) => {
|
|
|
3443
3395
|
addedToServiceDateTime: (0, smithy_client_1.expectString)(output.addedToServiceDateTime),
|
|
3444
3396
|
elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
|
|
3445
3397
|
firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
|
|
3446
|
-
lastLaunch: output.lastLaunch
|
|
3447
|
-
? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context)
|
|
3448
|
-
: undefined,
|
|
3398
|
+
lastLaunch: output.lastLaunch != null ? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context) : undefined,
|
|
3449
3399
|
lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
|
|
3450
3400
|
};
|
|
3451
3401
|
};
|
|
3452
3402
|
const deserializeAws_restJson1LifeCycleLastLaunch = (output, context) => {
|
|
3453
3403
|
return {
|
|
3454
|
-
initiated: output.initiated
|
|
3404
|
+
initiated: output.initiated != null
|
|
3455
3405
|
? deserializeAws_restJson1LifeCycleLastLaunchInitiated(output.initiated, context)
|
|
3456
3406
|
: undefined,
|
|
3457
3407
|
};
|
|
@@ -3465,9 +3415,7 @@ const deserializeAws_restJson1LifeCycleLastLaunchInitiated = (output, context) =
|
|
|
3465
3415
|
};
|
|
3466
3416
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
3467
3417
|
return {
|
|
3468
|
-
ips: output.ips
|
|
3469
|
-
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
3470
|
-
: undefined,
|
|
3418
|
+
ips: output.ips != null ? deserializeAws_restJson1IPsList(output.ips, context) : undefined,
|
|
3471
3419
|
isPrimary: (0, smithy_client_1.expectBoolean)(output.isPrimary),
|
|
3472
3420
|
macAddress: (0, smithy_client_1.expectString)(output.macAddress),
|
|
3473
3421
|
};
|
|
@@ -3529,25 +3477,21 @@ const deserializeAws_restJson1PITPolicyRule = (output, context) => {
|
|
|
3529
3477
|
const deserializeAws_restJson1RecoveryInstance = (output, context) => {
|
|
3530
3478
|
return {
|
|
3531
3479
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3532
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
3480
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3533
3481
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfo(output.dataReplicationInfo, context)
|
|
3534
3482
|
: undefined,
|
|
3535
3483
|
ec2InstanceID: (0, smithy_client_1.expectString)(output.ec2InstanceID),
|
|
3536
3484
|
ec2InstanceState: (0, smithy_client_1.expectString)(output.ec2InstanceState),
|
|
3537
|
-
failback: output.failback
|
|
3538
|
-
? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context)
|
|
3539
|
-
: undefined,
|
|
3485
|
+
failback: output.failback != null ? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context) : undefined,
|
|
3540
3486
|
isDrill: (0, smithy_client_1.expectBoolean)(output.isDrill),
|
|
3541
3487
|
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3542
3488
|
pointInTimeSnapshotDateTime: (0, smithy_client_1.expectString)(output.pointInTimeSnapshotDateTime),
|
|
3543
3489
|
recoveryInstanceID: (0, smithy_client_1.expectString)(output.recoveryInstanceID),
|
|
3544
|
-
recoveryInstanceProperties: output.recoveryInstanceProperties
|
|
3490
|
+
recoveryInstanceProperties: output.recoveryInstanceProperties != null
|
|
3545
3491
|
? deserializeAws_restJson1RecoveryInstanceProperties(output.recoveryInstanceProperties, context)
|
|
3546
3492
|
: undefined,
|
|
3547
3493
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3548
|
-
tags: output.tags
|
|
3549
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3550
|
-
: undefined,
|
|
3494
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3551
3495
|
};
|
|
3552
3496
|
};
|
|
3553
3497
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationError = (output, context) => {
|
|
@@ -3558,16 +3502,16 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationError = (output, co
|
|
|
3558
3502
|
};
|
|
3559
3503
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = (output, context) => {
|
|
3560
3504
|
return {
|
|
3561
|
-
dataReplicationError: output.dataReplicationError
|
|
3505
|
+
dataReplicationError: output.dataReplicationError != null
|
|
3562
3506
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationError(output.dataReplicationError, context)
|
|
3563
3507
|
: undefined,
|
|
3564
|
-
dataReplicationInitiation: output.dataReplicationInitiation
|
|
3508
|
+
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3565
3509
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3566
3510
|
: undefined,
|
|
3567
3511
|
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
3568
3512
|
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
3569
3513
|
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
3570
|
-
replicatedDisks: output.replicatedDisks
|
|
3514
|
+
replicatedDisks: output.replicatedDisks != null
|
|
3571
3515
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3572
3516
|
: undefined,
|
|
3573
3517
|
};
|
|
@@ -3595,7 +3539,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks
|
|
|
3595
3539
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = (output, context) => {
|
|
3596
3540
|
return {
|
|
3597
3541
|
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
3598
|
-
steps: output.steps
|
|
3542
|
+
steps: output.steps != null
|
|
3599
3543
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps(output.steps, context)
|
|
3600
3544
|
: undefined,
|
|
3601
3545
|
};
|
|
@@ -3650,28 +3594,22 @@ const deserializeAws_restJson1RecoveryInstanceFailback = (output, context) => {
|
|
|
3650
3594
|
};
|
|
3651
3595
|
const deserializeAws_restJson1RecoveryInstanceProperties = (output, context) => {
|
|
3652
3596
|
return {
|
|
3653
|
-
cpus: output.cpus
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
3657
|
-
? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context)
|
|
3658
|
-
: undefined,
|
|
3659
|
-
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3597
|
+
cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
|
|
3598
|
+
disks: output.disks != null ? deserializeAws_restJson1RecoveryInstanceDisks(output.disks, context) : undefined,
|
|
3599
|
+
identificationHints: output.identificationHints != null
|
|
3660
3600
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3661
3601
|
: undefined,
|
|
3662
3602
|
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3663
|
-
networkInterfaces: output.networkInterfaces
|
|
3603
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3664
3604
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3665
3605
|
: undefined,
|
|
3666
|
-
os: output.os
|
|
3606
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3667
3607
|
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3668
3608
|
};
|
|
3669
3609
|
};
|
|
3670
3610
|
const deserializeAws_restJson1RecoverySnapshot = (output, context) => {
|
|
3671
3611
|
return {
|
|
3672
|
-
ebsSnapshots: output.ebsSnapshots
|
|
3673
|
-
? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context)
|
|
3674
|
-
: undefined,
|
|
3612
|
+
ebsSnapshots: output.ebsSnapshots != null ? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context) : undefined,
|
|
3675
3613
|
expectedTimestamp: (0, smithy_client_1.expectString)(output.expectedTimestamp),
|
|
3676
3614
|
snapshotID: (0, smithy_client_1.expectString)(output.snapshotID),
|
|
3677
3615
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
@@ -3719,21 +3657,15 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
|
|
|
3719
3657
|
defaultLargeStagingDiskType: (0, smithy_client_1.expectString)(output.defaultLargeStagingDiskType),
|
|
3720
3658
|
ebsEncryption: (0, smithy_client_1.expectString)(output.ebsEncryption),
|
|
3721
3659
|
ebsEncryptionKeyArn: (0, smithy_client_1.expectString)(output.ebsEncryptionKeyArn),
|
|
3722
|
-
pitPolicy: output.pitPolicy
|
|
3723
|
-
? deserializeAws_restJson1PITPolicy(output.pitPolicy, context)
|
|
3724
|
-
: undefined,
|
|
3660
|
+
pitPolicy: output.pitPolicy != null ? deserializeAws_restJson1PITPolicy(output.pitPolicy, context) : undefined,
|
|
3725
3661
|
replicationConfigurationTemplateID: (0, smithy_client_1.expectString)(output.replicationConfigurationTemplateID),
|
|
3726
3662
|
replicationServerInstanceType: (0, smithy_client_1.expectString)(output.replicationServerInstanceType),
|
|
3727
|
-
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs
|
|
3663
|
+
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
|
|
3728
3664
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3729
3665
|
: undefined,
|
|
3730
3666
|
stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
|
|
3731
|
-
stagingAreaTags: output.stagingAreaTags
|
|
3732
|
-
|
|
3733
|
-
: undefined,
|
|
3734
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3735
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3736
|
-
: undefined,
|
|
3667
|
+
stagingAreaTags: output.stagingAreaTags != null ? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context) : undefined,
|
|
3668
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3737
3669
|
useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
|
|
3738
3670
|
};
|
|
3739
3671
|
};
|
|
@@ -3761,20 +3693,16 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3761
3693
|
};
|
|
3762
3694
|
const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
3763
3695
|
return {
|
|
3764
|
-
cpus: output.cpus
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
disks: output.disks !== undefined && output.disks !== null
|
|
3768
|
-
? deserializeAws_restJson1Disks(output.disks, context)
|
|
3769
|
-
: undefined,
|
|
3770
|
-
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3696
|
+
cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
|
|
3697
|
+
disks: output.disks != null ? deserializeAws_restJson1Disks(output.disks, context) : undefined,
|
|
3698
|
+
identificationHints: output.identificationHints != null
|
|
3771
3699
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3772
3700
|
: undefined,
|
|
3773
3701
|
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3774
|
-
networkInterfaces: output.networkInterfaces
|
|
3702
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3775
3703
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3776
3704
|
: undefined,
|
|
3777
|
-
os: output.os
|
|
3705
|
+
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3778
3706
|
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3779
3707
|
recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
|
|
3780
3708
|
};
|
|
@@ -3782,24 +3710,18 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3782
3710
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3783
3711
|
return {
|
|
3784
3712
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3785
|
-
dataReplicationInfo: output.dataReplicationInfo
|
|
3713
|
+
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3786
3714
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3787
3715
|
: undefined,
|
|
3788
3716
|
lastLaunchResult: (0, smithy_client_1.expectString)(output.lastLaunchResult),
|
|
3789
|
-
lifeCycle: output.lifeCycle
|
|
3790
|
-
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
3791
|
-
: undefined,
|
|
3717
|
+
lifeCycle: output.lifeCycle != null ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context) : undefined,
|
|
3792
3718
|
recoveryInstanceId: (0, smithy_client_1.expectString)(output.recoveryInstanceId),
|
|
3793
|
-
sourceProperties: output.sourceProperties
|
|
3719
|
+
sourceProperties: output.sourceProperties != null
|
|
3794
3720
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3795
3721
|
: undefined,
|
|
3796
3722
|
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3797
|
-
stagingArea: output.stagingArea
|
|
3798
|
-
|
|
3799
|
-
: undefined,
|
|
3800
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3801
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3802
|
-
: undefined,
|
|
3723
|
+
stagingArea: output.stagingArea != null ? deserializeAws_restJson1StagingArea(output.stagingArea, context) : undefined,
|
|
3724
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3803
3725
|
};
|
|
3804
3726
|
};
|
|
3805
3727
|
const deserializeAws_restJson1SourceServersList = (output, context) => {
|
|
@@ -3825,9 +3747,7 @@ const deserializeAws_restJson1StagingSourceServer = (output, context) => {
|
|
|
3825
3747
|
return {
|
|
3826
3748
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3827
3749
|
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3828
|
-
tags: output.tags
|
|
3829
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3830
|
-
: undefined,
|
|
3750
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3831
3751
|
};
|
|
3832
3752
|
};
|
|
3833
3753
|
const deserializeAws_restJson1StagingSourceServersList = (output, context) => {
|
|
@@ -3940,5 +3860,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3940
3860
|
if (data["__type"] !== undefined) {
|
|
3941
3861
|
return sanitizeErrorCode(data["__type"]);
|
|
3942
3862
|
}
|
|
3943
|
-
return "";
|
|
3944
3863
|
};
|