@aws-sdk/client-drs 3.306.0 → 3.310.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/dist-cjs/commands/CreateExtendedSourceServerCommand.js +2 -2
- package/dist-cjs/commands/CreateReplicationConfigurationTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteJobCommand.js +2 -2
- package/dist-cjs/commands/DeleteRecoveryInstanceCommand.js +2 -2
- package/dist-cjs/commands/DeleteReplicationConfigurationTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteSourceServerCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobLogItemsCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobsCommand.js +2 -2
- package/dist-cjs/commands/DescribeRecoveryInstancesCommand.js +2 -2
- package/dist-cjs/commands/DescribeRecoverySnapshotsCommand.js +2 -2
- package/dist-cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js +2 -2
- package/dist-cjs/commands/DescribeSourceServersCommand.js +2 -2
- package/dist-cjs/commands/DisconnectRecoveryInstanceCommand.js +2 -2
- package/dist-cjs/commands/DisconnectSourceServerCommand.js +2 -2
- package/dist-cjs/commands/GetFailbackReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetLaunchConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/InitializeServiceCommand.js +2 -2
- package/dist-cjs/commands/ListExtensibleSourceServersCommand.js +2 -2
- package/dist-cjs/commands/ListStagingAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RetryDataReplicationCommand.js +2 -2
- package/dist-cjs/commands/ReverseReplicationCommand.js +2 -2
- package/dist-cjs/commands/StartFailbackLaunchCommand.js +2 -2
- package/dist-cjs/commands/StartRecoveryCommand.js +2 -2
- package/dist-cjs/commands/StartReplicationCommand.js +2 -2
- package/dist-cjs/commands/StopFailbackCommand.js +2 -2
- package/dist-cjs/commands/StopReplicationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TerminateRecoveryInstancesCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateFailbackReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateLaunchConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateReplicationConfigurationTemplateCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +627 -669
- package/dist-es/commands/CreateExtendedSourceServerCommand.js +3 -3
- package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteJobCommand.js +3 -3
- package/dist-es/commands/DeleteRecoveryInstanceCommand.js +3 -3
- package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteSourceServerCommand.js +3 -3
- package/dist-es/commands/DescribeJobLogItemsCommand.js +3 -3
- package/dist-es/commands/DescribeJobsCommand.js +3 -3
- package/dist-es/commands/DescribeRecoveryInstancesCommand.js +3 -3
- package/dist-es/commands/DescribeRecoverySnapshotsCommand.js +3 -3
- package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +3 -3
- package/dist-es/commands/DescribeSourceServersCommand.js +3 -3
- package/dist-es/commands/DisconnectRecoveryInstanceCommand.js +3 -3
- package/dist-es/commands/DisconnectSourceServerCommand.js +3 -3
- package/dist-es/commands/GetFailbackReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/GetLaunchConfigurationCommand.js +3 -3
- package/dist-es/commands/GetReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/InitializeServiceCommand.js +3 -3
- package/dist-es/commands/ListExtensibleSourceServersCommand.js +3 -3
- package/dist-es/commands/ListStagingAccountsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RetryDataReplicationCommand.js +3 -3
- package/dist-es/commands/ReverseReplicationCommand.js +3 -3
- package/dist-es/commands/StartFailbackLaunchCommand.js +3 -3
- package/dist-es/commands/StartRecoveryCommand.js +3 -3
- package/dist-es/commands/StartReplicationCommand.js +3 -3
- package/dist-es/commands/StopFailbackCommand.js +3 -3
- package/dist-es/commands/StopReplicationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TerminateRecoveryInstancesCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateFailbackReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateLaunchConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +555 -597
- package/dist-types/protocols/Aws_restJson1.d.ts +280 -70
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +70 -70
- package/package.json +35 -35
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { DrsServiceException as __BaseException } from "../models/DrsServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateExtendedSourceServerCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -11,7 +11,7 @@ export const serializeAws_restJson1CreateExtendedSourceServerCommand = async (in
|
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify({
|
|
13
13
|
...(input.sourceServerArn != null && { sourceServerArn: input.sourceServerArn }),
|
|
14
|
-
...(input.tags != null && { tags:
|
|
14
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
15
15
|
});
|
|
16
16
|
return new __HttpRequest({
|
|
17
17
|
protocol,
|
|
@@ -23,7 +23,7 @@ export const serializeAws_restJson1CreateExtendedSourceServerCommand = async (in
|
|
|
23
23
|
body,
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
export const
|
|
26
|
+
export const se_CreateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
27
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
28
|
const headers = {
|
|
29
29
|
"content-type": "application/json",
|
|
@@ -43,18 +43,16 @@ export const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand
|
|
|
43
43
|
}),
|
|
44
44
|
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
45
45
|
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
46
|
-
...(input.pitPolicy != null && { pitPolicy:
|
|
46
|
+
...(input.pitPolicy != null && { pitPolicy: se_PITPolicy(input.pitPolicy, context) }),
|
|
47
47
|
...(input.replicationServerInstanceType != null && {
|
|
48
48
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
49
49
|
}),
|
|
50
50
|
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
51
|
-
replicationServersSecurityGroupsIDs:
|
|
51
|
+
replicationServersSecurityGroupsIDs: se_ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
52
52
|
}),
|
|
53
53
|
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
54
|
-
...(input.stagingAreaTags != null && {
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
54
|
+
...(input.stagingAreaTags != null && { stagingAreaTags: se_TagsMap(input.stagingAreaTags, context) }),
|
|
55
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
58
56
|
...(input.useDedicatedReplicationServer != null && {
|
|
59
57
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
60
58
|
}),
|
|
@@ -69,7 +67,7 @@ export const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand
|
|
|
69
67
|
body,
|
|
70
68
|
});
|
|
71
69
|
};
|
|
72
|
-
export const
|
|
70
|
+
export const se_DeleteJobCommand = async (input, context) => {
|
|
73
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
72
|
const headers = {
|
|
75
73
|
"content-type": "application/json",
|
|
@@ -89,7 +87,7 @@ export const serializeAws_restJson1DeleteJobCommand = async (input, context) =>
|
|
|
89
87
|
body,
|
|
90
88
|
});
|
|
91
89
|
};
|
|
92
|
-
export const
|
|
90
|
+
export const se_DeleteRecoveryInstanceCommand = async (input, context) => {
|
|
93
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
92
|
const headers = {
|
|
95
93
|
"content-type": "application/json",
|
|
@@ -109,7 +107,7 @@ export const serializeAws_restJson1DeleteRecoveryInstanceCommand = async (input,
|
|
|
109
107
|
body,
|
|
110
108
|
});
|
|
111
109
|
};
|
|
112
|
-
export const
|
|
110
|
+
export const se_DeleteReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
113
111
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
114
112
|
const headers = {
|
|
115
113
|
"content-type": "application/json",
|
|
@@ -131,7 +129,7 @@ export const serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand
|
|
|
131
129
|
body,
|
|
132
130
|
});
|
|
133
131
|
};
|
|
134
|
-
export const
|
|
132
|
+
export const se_DeleteSourceServerCommand = async (input, context) => {
|
|
135
133
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
134
|
const headers = {
|
|
137
135
|
"content-type": "application/json",
|
|
@@ -151,7 +149,7 @@ export const serializeAws_restJson1DeleteSourceServerCommand = async (input, con
|
|
|
151
149
|
body,
|
|
152
150
|
});
|
|
153
151
|
};
|
|
154
|
-
export const
|
|
152
|
+
export const se_DescribeJobLogItemsCommand = async (input, context) => {
|
|
155
153
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
156
154
|
const headers = {
|
|
157
155
|
"content-type": "application/json",
|
|
@@ -173,7 +171,7 @@ export const serializeAws_restJson1DescribeJobLogItemsCommand = async (input, co
|
|
|
173
171
|
body,
|
|
174
172
|
});
|
|
175
173
|
};
|
|
176
|
-
export const
|
|
174
|
+
export const se_DescribeJobsCommand = async (input, context) => {
|
|
177
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
178
176
|
const headers = {
|
|
179
177
|
"content-type": "application/json",
|
|
@@ -181,7 +179,7 @@ export const serializeAws_restJson1DescribeJobsCommand = async (input, context)
|
|
|
181
179
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
|
|
182
180
|
let body;
|
|
183
181
|
body = JSON.stringify({
|
|
184
|
-
...(input.filters != null && { filters:
|
|
182
|
+
...(input.filters != null && { filters: se_DescribeJobsRequestFilters(input.filters, context) }),
|
|
185
183
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
186
184
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
187
185
|
});
|
|
@@ -195,7 +193,7 @@ export const serializeAws_restJson1DescribeJobsCommand = async (input, context)
|
|
|
195
193
|
body,
|
|
196
194
|
});
|
|
197
195
|
};
|
|
198
|
-
export const
|
|
196
|
+
export const se_DescribeRecoveryInstancesCommand = async (input, context) => {
|
|
199
197
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
198
|
const headers = {
|
|
201
199
|
"content-type": "application/json",
|
|
@@ -203,9 +201,7 @@ export const serializeAws_restJson1DescribeRecoveryInstancesCommand = async (inp
|
|
|
203
201
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoveryInstances";
|
|
204
202
|
let body;
|
|
205
203
|
body = JSON.stringify({
|
|
206
|
-
...(input.filters != null && {
|
|
207
|
-
filters: serializeAws_restJson1DescribeRecoveryInstancesRequestFilters(input.filters, context),
|
|
208
|
-
}),
|
|
204
|
+
...(input.filters != null && { filters: se_DescribeRecoveryInstancesRequestFilters(input.filters, context) }),
|
|
209
205
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
210
206
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
211
207
|
});
|
|
@@ -219,7 +215,7 @@ export const serializeAws_restJson1DescribeRecoveryInstancesCommand = async (inp
|
|
|
219
215
|
body,
|
|
220
216
|
});
|
|
221
217
|
};
|
|
222
|
-
export const
|
|
218
|
+
export const se_DescribeRecoverySnapshotsCommand = async (input, context) => {
|
|
223
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
224
220
|
const headers = {
|
|
225
221
|
"content-type": "application/json",
|
|
@@ -227,9 +223,7 @@ export const serializeAws_restJson1DescribeRecoverySnapshotsCommand = async (inp
|
|
|
227
223
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoverySnapshots";
|
|
228
224
|
let body;
|
|
229
225
|
body = JSON.stringify({
|
|
230
|
-
...(input.filters != null && {
|
|
231
|
-
filters: serializeAws_restJson1DescribeRecoverySnapshotsRequestFilters(input.filters, context),
|
|
232
|
-
}),
|
|
226
|
+
...(input.filters != null && { filters: se_DescribeRecoverySnapshotsRequestFilters(input.filters, context) }),
|
|
233
227
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
234
228
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
235
229
|
...(input.order != null && { order: input.order }),
|
|
@@ -245,7 +239,7 @@ export const serializeAws_restJson1DescribeRecoverySnapshotsCommand = async (inp
|
|
|
245
239
|
body,
|
|
246
240
|
});
|
|
247
241
|
};
|
|
248
|
-
export const
|
|
242
|
+
export const se_DescribeReplicationConfigurationTemplatesCommand = async (input, context) => {
|
|
249
243
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
244
|
const headers = {
|
|
251
245
|
"content-type": "application/json",
|
|
@@ -257,7 +251,7 @@ export const serializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
|
|
|
257
251
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
258
252
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
259
253
|
...(input.replicationConfigurationTemplateIDs != null && {
|
|
260
|
-
replicationConfigurationTemplateIDs:
|
|
254
|
+
replicationConfigurationTemplateIDs: se_ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
|
|
261
255
|
}),
|
|
262
256
|
});
|
|
263
257
|
return new __HttpRequest({
|
|
@@ -270,7 +264,7 @@ export const serializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
|
|
|
270
264
|
body,
|
|
271
265
|
});
|
|
272
266
|
};
|
|
273
|
-
export const
|
|
267
|
+
export const se_DescribeSourceServersCommand = async (input, context) => {
|
|
274
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
275
269
|
const headers = {
|
|
276
270
|
"content-type": "application/json",
|
|
@@ -278,9 +272,7 @@ export const serializeAws_restJson1DescribeSourceServersCommand = async (input,
|
|
|
278
272
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
|
|
279
273
|
let body;
|
|
280
274
|
body = JSON.stringify({
|
|
281
|
-
...(input.filters != null && {
|
|
282
|
-
filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
|
|
283
|
-
}),
|
|
275
|
+
...(input.filters != null && { filters: se_DescribeSourceServersRequestFilters(input.filters, context) }),
|
|
284
276
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
285
277
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
286
278
|
});
|
|
@@ -294,7 +286,7 @@ export const serializeAws_restJson1DescribeSourceServersCommand = async (input,
|
|
|
294
286
|
body,
|
|
295
287
|
});
|
|
296
288
|
};
|
|
297
|
-
export const
|
|
289
|
+
export const se_DisconnectRecoveryInstanceCommand = async (input, context) => {
|
|
298
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
291
|
const headers = {
|
|
300
292
|
"content-type": "application/json",
|
|
@@ -314,7 +306,7 @@ export const serializeAws_restJson1DisconnectRecoveryInstanceCommand = async (in
|
|
|
314
306
|
body,
|
|
315
307
|
});
|
|
316
308
|
};
|
|
317
|
-
export const
|
|
309
|
+
export const se_DisconnectSourceServerCommand = async (input, context) => {
|
|
318
310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
319
311
|
const headers = {
|
|
320
312
|
"content-type": "application/json",
|
|
@@ -334,7 +326,7 @@ export const serializeAws_restJson1DisconnectSourceServerCommand = async (input,
|
|
|
334
326
|
body,
|
|
335
327
|
});
|
|
336
328
|
};
|
|
337
|
-
export const
|
|
329
|
+
export const se_GetFailbackReplicationConfigurationCommand = async (input, context) => {
|
|
338
330
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
339
331
|
const headers = {
|
|
340
332
|
"content-type": "application/json",
|
|
@@ -354,7 +346,7 @@ export const serializeAws_restJson1GetFailbackReplicationConfigurationCommand =
|
|
|
354
346
|
body,
|
|
355
347
|
});
|
|
356
348
|
};
|
|
357
|
-
export const
|
|
349
|
+
export const se_GetLaunchConfigurationCommand = async (input, context) => {
|
|
358
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
359
351
|
const headers = {
|
|
360
352
|
"content-type": "application/json",
|
|
@@ -374,7 +366,7 @@ export const serializeAws_restJson1GetLaunchConfigurationCommand = async (input,
|
|
|
374
366
|
body,
|
|
375
367
|
});
|
|
376
368
|
};
|
|
377
|
-
export const
|
|
369
|
+
export const se_GetReplicationConfigurationCommand = async (input, context) => {
|
|
378
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
371
|
const headers = {
|
|
380
372
|
"content-type": "application/json",
|
|
@@ -394,7 +386,7 @@ export const serializeAws_restJson1GetReplicationConfigurationCommand = async (i
|
|
|
394
386
|
body,
|
|
395
387
|
});
|
|
396
388
|
};
|
|
397
|
-
export const
|
|
389
|
+
export const se_InitializeServiceCommand = async (input, context) => {
|
|
398
390
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
399
391
|
const headers = {
|
|
400
392
|
"content-type": "application/json",
|
|
@@ -412,7 +404,7 @@ export const serializeAws_restJson1InitializeServiceCommand = async (input, cont
|
|
|
412
404
|
body,
|
|
413
405
|
});
|
|
414
406
|
};
|
|
415
|
-
export const
|
|
407
|
+
export const se_ListExtensibleSourceServersCommand = async (input, context) => {
|
|
416
408
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
417
409
|
const headers = {
|
|
418
410
|
"content-type": "application/json",
|
|
@@ -434,7 +426,7 @@ export const serializeAws_restJson1ListExtensibleSourceServersCommand = async (i
|
|
|
434
426
|
body,
|
|
435
427
|
});
|
|
436
428
|
};
|
|
437
|
-
export const
|
|
429
|
+
export const se_ListStagingAccountsCommand = async (input, context) => {
|
|
438
430
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
439
431
|
const headers = {};
|
|
440
432
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStagingAccounts";
|
|
@@ -454,7 +446,7 @@ export const serializeAws_restJson1ListStagingAccountsCommand = async (input, co
|
|
|
454
446
|
body,
|
|
455
447
|
});
|
|
456
448
|
};
|
|
457
|
-
export const
|
|
449
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
458
450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
451
|
const headers = {};
|
|
460
452
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -470,7 +462,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
470
462
|
body,
|
|
471
463
|
});
|
|
472
464
|
};
|
|
473
|
-
export const
|
|
465
|
+
export const se_RetryDataReplicationCommand = async (input, context) => {
|
|
474
466
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
467
|
const headers = {
|
|
476
468
|
"content-type": "application/json",
|
|
@@ -490,7 +482,7 @@ export const serializeAws_restJson1RetryDataReplicationCommand = async (input, c
|
|
|
490
482
|
body,
|
|
491
483
|
});
|
|
492
484
|
};
|
|
493
|
-
export const
|
|
485
|
+
export const se_ReverseReplicationCommand = async (input, context) => {
|
|
494
486
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
495
487
|
const headers = {
|
|
496
488
|
"content-type": "application/json",
|
|
@@ -510,7 +502,7 @@ export const serializeAws_restJson1ReverseReplicationCommand = async (input, con
|
|
|
510
502
|
body,
|
|
511
503
|
});
|
|
512
504
|
};
|
|
513
|
-
export const
|
|
505
|
+
export const se_StartFailbackLaunchCommand = async (input, context) => {
|
|
514
506
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
515
507
|
const headers = {
|
|
516
508
|
"content-type": "application/json",
|
|
@@ -519,9 +511,9 @@ export const serializeAws_restJson1StartFailbackLaunchCommand = async (input, co
|
|
|
519
511
|
let body;
|
|
520
512
|
body = JSON.stringify({
|
|
521
513
|
...(input.recoveryInstanceIDs != null && {
|
|
522
|
-
recoveryInstanceIDs:
|
|
514
|
+
recoveryInstanceIDs: se_StartFailbackRequestRecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
523
515
|
}),
|
|
524
|
-
...(input.tags != null && { tags:
|
|
516
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
525
517
|
});
|
|
526
518
|
return new __HttpRequest({
|
|
527
519
|
protocol,
|
|
@@ -533,7 +525,7 @@ export const serializeAws_restJson1StartFailbackLaunchCommand = async (input, co
|
|
|
533
525
|
body,
|
|
534
526
|
});
|
|
535
527
|
};
|
|
536
|
-
export const
|
|
528
|
+
export const se_StartRecoveryCommand = async (input, context) => {
|
|
537
529
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
538
530
|
const headers = {
|
|
539
531
|
"content-type": "application/json",
|
|
@@ -543,9 +535,9 @@ export const serializeAws_restJson1StartRecoveryCommand = async (input, context)
|
|
|
543
535
|
body = JSON.stringify({
|
|
544
536
|
...(input.isDrill != null && { isDrill: input.isDrill }),
|
|
545
537
|
...(input.sourceServers != null && {
|
|
546
|
-
sourceServers:
|
|
538
|
+
sourceServers: se_StartRecoveryRequestSourceServers(input.sourceServers, context),
|
|
547
539
|
}),
|
|
548
|
-
...(input.tags != null && { tags:
|
|
540
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
549
541
|
});
|
|
550
542
|
return new __HttpRequest({
|
|
551
543
|
protocol,
|
|
@@ -557,7 +549,7 @@ export const serializeAws_restJson1StartRecoveryCommand = async (input, context)
|
|
|
557
549
|
body,
|
|
558
550
|
});
|
|
559
551
|
};
|
|
560
|
-
export const
|
|
552
|
+
export const se_StartReplicationCommand = async (input, context) => {
|
|
561
553
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
562
554
|
const headers = {
|
|
563
555
|
"content-type": "application/json",
|
|
@@ -577,7 +569,7 @@ export const serializeAws_restJson1StartReplicationCommand = async (input, conte
|
|
|
577
569
|
body,
|
|
578
570
|
});
|
|
579
571
|
};
|
|
580
|
-
export const
|
|
572
|
+
export const se_StopFailbackCommand = async (input, context) => {
|
|
581
573
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
582
574
|
const headers = {
|
|
583
575
|
"content-type": "application/json",
|
|
@@ -597,7 +589,7 @@ export const serializeAws_restJson1StopFailbackCommand = async (input, context)
|
|
|
597
589
|
body,
|
|
598
590
|
});
|
|
599
591
|
};
|
|
600
|
-
export const
|
|
592
|
+
export const se_StopReplicationCommand = async (input, context) => {
|
|
601
593
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
602
594
|
const headers = {
|
|
603
595
|
"content-type": "application/json",
|
|
@@ -617,7 +609,7 @@ export const serializeAws_restJson1StopReplicationCommand = async (input, contex
|
|
|
617
609
|
body,
|
|
618
610
|
});
|
|
619
611
|
};
|
|
620
|
-
export const
|
|
612
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
621
613
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
614
|
const headers = {
|
|
623
615
|
"content-type": "application/json",
|
|
@@ -626,7 +618,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
626
618
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
627
619
|
let body;
|
|
628
620
|
body = JSON.stringify({
|
|
629
|
-
...(input.tags != null && { tags:
|
|
621
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
630
622
|
});
|
|
631
623
|
return new __HttpRequest({
|
|
632
624
|
protocol,
|
|
@@ -638,7 +630,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
638
630
|
body,
|
|
639
631
|
});
|
|
640
632
|
};
|
|
641
|
-
export const
|
|
633
|
+
export const se_TerminateRecoveryInstancesCommand = async (input, context) => {
|
|
642
634
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
643
635
|
const headers = {
|
|
644
636
|
"content-type": "application/json",
|
|
@@ -647,7 +639,7 @@ export const serializeAws_restJson1TerminateRecoveryInstancesCommand = async (in
|
|
|
647
639
|
let body;
|
|
648
640
|
body = JSON.stringify({
|
|
649
641
|
...(input.recoveryInstanceIDs != null && {
|
|
650
|
-
recoveryInstanceIDs:
|
|
642
|
+
recoveryInstanceIDs: se_RecoveryInstancesForTerminationRequest(input.recoveryInstanceIDs, context),
|
|
651
643
|
}),
|
|
652
644
|
});
|
|
653
645
|
return new __HttpRequest({
|
|
@@ -660,7 +652,7 @@ export const serializeAws_restJson1TerminateRecoveryInstancesCommand = async (in
|
|
|
660
652
|
body,
|
|
661
653
|
});
|
|
662
654
|
};
|
|
663
|
-
export const
|
|
655
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
664
656
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
665
657
|
const headers = {};
|
|
666
658
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -683,7 +675,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
683
675
|
body,
|
|
684
676
|
});
|
|
685
677
|
};
|
|
686
|
-
export const
|
|
678
|
+
export const se_UpdateFailbackReplicationConfigurationCommand = async (input, context) => {
|
|
687
679
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
688
680
|
const headers = {
|
|
689
681
|
"content-type": "application/json",
|
|
@@ -706,7 +698,7 @@ export const serializeAws_restJson1UpdateFailbackReplicationConfigurationCommand
|
|
|
706
698
|
body,
|
|
707
699
|
});
|
|
708
700
|
};
|
|
709
|
-
export const
|
|
701
|
+
export const se_UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
710
702
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
711
703
|
const headers = {
|
|
712
704
|
"content-type": "application/json",
|
|
@@ -717,7 +709,7 @@ export const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (inp
|
|
|
717
709
|
...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
|
|
718
710
|
...(input.copyTags != null && { copyTags: input.copyTags }),
|
|
719
711
|
...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
|
|
720
|
-
...(input.licensing != null && { licensing:
|
|
712
|
+
...(input.licensing != null && { licensing: se_Licensing(input.licensing, context) }),
|
|
721
713
|
...(input.name != null && { name: input.name }),
|
|
722
714
|
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
723
715
|
...(input.targetInstanceTypeRightSizingMethod != null && {
|
|
@@ -734,7 +726,7 @@ export const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (inp
|
|
|
734
726
|
body,
|
|
735
727
|
});
|
|
736
728
|
};
|
|
737
|
-
export const
|
|
729
|
+
export const se_UpdateReplicationConfigurationCommand = async (input, context) => {
|
|
738
730
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
739
731
|
const headers = {
|
|
740
732
|
"content-type": "application/json",
|
|
@@ -755,21 +747,19 @@ export const serializeAws_restJson1UpdateReplicationConfigurationCommand = async
|
|
|
755
747
|
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
756
748
|
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
757
749
|
...(input.name != null && { name: input.name }),
|
|
758
|
-
...(input.pitPolicy != null && { pitPolicy:
|
|
750
|
+
...(input.pitPolicy != null && { pitPolicy: se_PITPolicy(input.pitPolicy, context) }),
|
|
759
751
|
...(input.replicatedDisks != null && {
|
|
760
|
-
replicatedDisks:
|
|
752
|
+
replicatedDisks: se_ReplicationConfigurationReplicatedDisks(input.replicatedDisks, context),
|
|
761
753
|
}),
|
|
762
754
|
...(input.replicationServerInstanceType != null && {
|
|
763
755
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
764
756
|
}),
|
|
765
757
|
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
766
|
-
replicationServersSecurityGroupsIDs:
|
|
758
|
+
replicationServersSecurityGroupsIDs: se_ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
767
759
|
}),
|
|
768
760
|
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
769
761
|
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
770
|
-
...(input.stagingAreaTags != null && {
|
|
771
|
-
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
772
|
-
}),
|
|
762
|
+
...(input.stagingAreaTags != null && { stagingAreaTags: se_TagsMap(input.stagingAreaTags, context) }),
|
|
773
763
|
...(input.useDedicatedReplicationServer != null && {
|
|
774
764
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
775
765
|
}),
|
|
@@ -784,7 +774,7 @@ export const serializeAws_restJson1UpdateReplicationConfigurationCommand = async
|
|
|
784
774
|
body,
|
|
785
775
|
});
|
|
786
776
|
};
|
|
787
|
-
export const
|
|
777
|
+
export const se_UpdateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
788
778
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
789
779
|
const headers = {
|
|
790
780
|
"content-type": "application/json",
|
|
@@ -805,7 +795,7 @@ export const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
805
795
|
}),
|
|
806
796
|
...(input.ebsEncryption != null && { ebsEncryption: input.ebsEncryption }),
|
|
807
797
|
...(input.ebsEncryptionKeyArn != null && { ebsEncryptionKeyArn: input.ebsEncryptionKeyArn }),
|
|
808
|
-
...(input.pitPolicy != null && { pitPolicy:
|
|
798
|
+
...(input.pitPolicy != null && { pitPolicy: se_PITPolicy(input.pitPolicy, context) }),
|
|
809
799
|
...(input.replicationConfigurationTemplateID != null && {
|
|
810
800
|
replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
|
|
811
801
|
}),
|
|
@@ -813,12 +803,10 @@ export const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
813
803
|
replicationServerInstanceType: input.replicationServerInstanceType,
|
|
814
804
|
}),
|
|
815
805
|
...(input.replicationServersSecurityGroupsIDs != null && {
|
|
816
|
-
replicationServersSecurityGroupsIDs:
|
|
806
|
+
replicationServersSecurityGroupsIDs: se_ReplicationServersSecurityGroupsIDs(input.replicationServersSecurityGroupsIDs, context),
|
|
817
807
|
}),
|
|
818
808
|
...(input.stagingAreaSubnetId != null && { stagingAreaSubnetId: input.stagingAreaSubnetId }),
|
|
819
|
-
...(input.stagingAreaTags != null && {
|
|
820
|
-
stagingAreaTags: serializeAws_restJson1TagsMap(input.stagingAreaTags, context),
|
|
821
|
-
}),
|
|
809
|
+
...(input.stagingAreaTags != null && { stagingAreaTags: se_TagsMap(input.stagingAreaTags, context) }),
|
|
822
810
|
...(input.useDedicatedReplicationServer != null && {
|
|
823
811
|
useDedicatedReplicationServer: input.useDedicatedReplicationServer,
|
|
824
812
|
}),
|
|
@@ -833,20 +821,20 @@ export const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
|
|
|
833
821
|
body,
|
|
834
822
|
});
|
|
835
823
|
};
|
|
836
|
-
export const
|
|
824
|
+
export const de_CreateExtendedSourceServerCommand = async (output, context) => {
|
|
837
825
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
826
|
+
return de_CreateExtendedSourceServerCommandError(output, context);
|
|
839
827
|
}
|
|
840
828
|
const contents = map({
|
|
841
829
|
$metadata: deserializeMetadata(output),
|
|
842
830
|
});
|
|
843
831
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
844
832
|
if (data.sourceServer != null) {
|
|
845
|
-
contents.sourceServer =
|
|
833
|
+
contents.sourceServer = de_SourceServer(data.sourceServer, context);
|
|
846
834
|
}
|
|
847
835
|
return contents;
|
|
848
836
|
};
|
|
849
|
-
const
|
|
837
|
+
const de_CreateExtendedSourceServerCommandError = async (output, context) => {
|
|
850
838
|
const parsedOutput = {
|
|
851
839
|
...output,
|
|
852
840
|
body: await parseErrorBody(output.body, context),
|
|
@@ -855,25 +843,25 @@ const deserializeAws_restJson1CreateExtendedSourceServerCommandError = async (ou
|
|
|
855
843
|
switch (errorCode) {
|
|
856
844
|
case "AccessDeniedException":
|
|
857
845
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
858
|
-
throw await
|
|
846
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
847
|
case "InternalServerException":
|
|
860
848
|
case "com.amazonaws.drs#InternalServerException":
|
|
861
|
-
throw await
|
|
849
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
862
850
|
case "ResourceNotFoundException":
|
|
863
851
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
864
|
-
throw await
|
|
852
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
865
853
|
case "ServiceQuotaExceededException":
|
|
866
854
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
867
|
-
throw await
|
|
855
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
868
856
|
case "ThrottlingException":
|
|
869
857
|
case "com.amazonaws.drs#ThrottlingException":
|
|
870
|
-
throw await
|
|
858
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
871
859
|
case "UninitializedAccountException":
|
|
872
860
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
873
|
-
throw await
|
|
861
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
874
862
|
case "ValidationException":
|
|
875
863
|
case "com.amazonaws.drs#ValidationException":
|
|
876
|
-
throw await
|
|
864
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
865
|
default:
|
|
878
866
|
const parsedBody = parsedOutput.body;
|
|
879
867
|
throwDefaultError({
|
|
@@ -884,9 +872,9 @@ const deserializeAws_restJson1CreateExtendedSourceServerCommandError = async (ou
|
|
|
884
872
|
});
|
|
885
873
|
}
|
|
886
874
|
};
|
|
887
|
-
export const
|
|
875
|
+
export const de_CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
888
876
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
889
|
-
return
|
|
877
|
+
return de_CreateReplicationConfigurationTemplateCommandError(output, context);
|
|
890
878
|
}
|
|
891
879
|
const contents = map({
|
|
892
880
|
$metadata: deserializeMetadata(output),
|
|
@@ -920,7 +908,7 @@ export const deserializeAws_restJson1CreateReplicationConfigurationTemplateComma
|
|
|
920
908
|
contents.ebsEncryptionKeyArn = __expectString(data.ebsEncryptionKeyArn);
|
|
921
909
|
}
|
|
922
910
|
if (data.pitPolicy != null) {
|
|
923
|
-
contents.pitPolicy =
|
|
911
|
+
contents.pitPolicy = de_PITPolicy(data.pitPolicy, context);
|
|
924
912
|
}
|
|
925
913
|
if (data.replicationConfigurationTemplateID != null) {
|
|
926
914
|
contents.replicationConfigurationTemplateID = __expectString(data.replicationConfigurationTemplateID);
|
|
@@ -929,23 +917,23 @@ export const deserializeAws_restJson1CreateReplicationConfigurationTemplateComma
|
|
|
929
917
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
930
918
|
}
|
|
931
919
|
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
932
|
-
contents.replicationServersSecurityGroupsIDs =
|
|
920
|
+
contents.replicationServersSecurityGroupsIDs = de_ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
933
921
|
}
|
|
934
922
|
if (data.stagingAreaSubnetId != null) {
|
|
935
923
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
936
924
|
}
|
|
937
925
|
if (data.stagingAreaTags != null) {
|
|
938
|
-
contents.stagingAreaTags =
|
|
926
|
+
contents.stagingAreaTags = de_TagsMap(data.stagingAreaTags, context);
|
|
939
927
|
}
|
|
940
928
|
if (data.tags != null) {
|
|
941
|
-
contents.tags =
|
|
929
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
942
930
|
}
|
|
943
931
|
if (data.useDedicatedReplicationServer != null) {
|
|
944
932
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
945
933
|
}
|
|
946
934
|
return contents;
|
|
947
935
|
};
|
|
948
|
-
const
|
|
936
|
+
const de_CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
949
937
|
const parsedOutput = {
|
|
950
938
|
...output,
|
|
951
939
|
body: await parseErrorBody(output.body, context),
|
|
@@ -954,22 +942,22 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
954
942
|
switch (errorCode) {
|
|
955
943
|
case "AccessDeniedException":
|
|
956
944
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
957
|
-
throw await
|
|
945
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
958
946
|
case "InternalServerException":
|
|
959
947
|
case "com.amazonaws.drs#InternalServerException":
|
|
960
|
-
throw await
|
|
948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
961
949
|
case "ServiceQuotaExceededException":
|
|
962
950
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
963
|
-
throw await
|
|
951
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
964
952
|
case "ThrottlingException":
|
|
965
953
|
case "com.amazonaws.drs#ThrottlingException":
|
|
966
|
-
throw await
|
|
954
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
967
955
|
case "UninitializedAccountException":
|
|
968
956
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
969
|
-
throw await
|
|
957
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
970
958
|
case "ValidationException":
|
|
971
959
|
case "com.amazonaws.drs#ValidationException":
|
|
972
|
-
throw await
|
|
960
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
961
|
default:
|
|
974
962
|
const parsedBody = parsedOutput.body;
|
|
975
963
|
throwDefaultError({
|
|
@@ -980,9 +968,9 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
980
968
|
});
|
|
981
969
|
}
|
|
982
970
|
};
|
|
983
|
-
export const
|
|
971
|
+
export const de_DeleteJobCommand = async (output, context) => {
|
|
984
972
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
985
|
-
return
|
|
973
|
+
return de_DeleteJobCommandError(output, context);
|
|
986
974
|
}
|
|
987
975
|
const contents = map({
|
|
988
976
|
$metadata: deserializeMetadata(output),
|
|
@@ -990,7 +978,7 @@ export const deserializeAws_restJson1DeleteJobCommand = async (output, context)
|
|
|
990
978
|
await collectBody(output.body, context);
|
|
991
979
|
return contents;
|
|
992
980
|
};
|
|
993
|
-
const
|
|
981
|
+
const de_DeleteJobCommandError = async (output, context) => {
|
|
994
982
|
const parsedOutput = {
|
|
995
983
|
...output,
|
|
996
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -999,19 +987,19 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
999
987
|
switch (errorCode) {
|
|
1000
988
|
case "ConflictException":
|
|
1001
989
|
case "com.amazonaws.drs#ConflictException":
|
|
1002
|
-
throw await
|
|
990
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1003
991
|
case "InternalServerException":
|
|
1004
992
|
case "com.amazonaws.drs#InternalServerException":
|
|
1005
|
-
throw await
|
|
993
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1006
994
|
case "ResourceNotFoundException":
|
|
1007
995
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1008
|
-
throw await
|
|
996
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1009
997
|
case "ThrottlingException":
|
|
1010
998
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1011
|
-
throw await
|
|
999
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1012
1000
|
case "UninitializedAccountException":
|
|
1013
1001
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1014
|
-
throw await
|
|
1002
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1015
1003
|
default:
|
|
1016
1004
|
const parsedBody = parsedOutput.body;
|
|
1017
1005
|
throwDefaultError({
|
|
@@ -1022,9 +1010,9 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1022
1010
|
});
|
|
1023
1011
|
}
|
|
1024
1012
|
};
|
|
1025
|
-
export const
|
|
1013
|
+
export const de_DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
1026
1014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
1015
|
+
return de_DeleteRecoveryInstanceCommandError(output, context);
|
|
1028
1016
|
}
|
|
1029
1017
|
const contents = map({
|
|
1030
1018
|
$metadata: deserializeMetadata(output),
|
|
@@ -1032,7 +1020,7 @@ export const deserializeAws_restJson1DeleteRecoveryInstanceCommand = async (outp
|
|
|
1032
1020
|
await collectBody(output.body, context);
|
|
1033
1021
|
return contents;
|
|
1034
1022
|
};
|
|
1035
|
-
const
|
|
1023
|
+
const de_DeleteRecoveryInstanceCommandError = async (output, context) => {
|
|
1036
1024
|
const parsedOutput = {
|
|
1037
1025
|
...output,
|
|
1038
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1041,19 +1029,19 @@ const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output
|
|
|
1041
1029
|
switch (errorCode) {
|
|
1042
1030
|
case "AccessDeniedException":
|
|
1043
1031
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1044
|
-
throw await
|
|
1032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1045
1033
|
case "ConflictException":
|
|
1046
1034
|
case "com.amazonaws.drs#ConflictException":
|
|
1047
|
-
throw await
|
|
1035
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1048
1036
|
case "InternalServerException":
|
|
1049
1037
|
case "com.amazonaws.drs#InternalServerException":
|
|
1050
|
-
throw await
|
|
1038
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1051
1039
|
case "ThrottlingException":
|
|
1052
1040
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1053
|
-
throw await
|
|
1041
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1054
1042
|
case "UninitializedAccountException":
|
|
1055
1043
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1056
|
-
throw await
|
|
1044
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1057
1045
|
default:
|
|
1058
1046
|
const parsedBody = parsedOutput.body;
|
|
1059
1047
|
throwDefaultError({
|
|
@@ -1064,9 +1052,9 @@ const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output
|
|
|
1064
1052
|
});
|
|
1065
1053
|
}
|
|
1066
1054
|
};
|
|
1067
|
-
export const
|
|
1055
|
+
export const de_DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1068
1056
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1069
|
-
return
|
|
1057
|
+
return de_DeleteReplicationConfigurationTemplateCommandError(output, context);
|
|
1070
1058
|
}
|
|
1071
1059
|
const contents = map({
|
|
1072
1060
|
$metadata: deserializeMetadata(output),
|
|
@@ -1074,7 +1062,7 @@ export const deserializeAws_restJson1DeleteReplicationConfigurationTemplateComma
|
|
|
1074
1062
|
await collectBody(output.body, context);
|
|
1075
1063
|
return contents;
|
|
1076
1064
|
};
|
|
1077
|
-
const
|
|
1065
|
+
const de_DeleteReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1078
1066
|
const parsedOutput = {
|
|
1079
1067
|
...output,
|
|
1080
1068
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1083,19 +1071,19 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1083
1071
|
switch (errorCode) {
|
|
1084
1072
|
case "ConflictException":
|
|
1085
1073
|
case "com.amazonaws.drs#ConflictException":
|
|
1086
|
-
throw await
|
|
1074
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1087
1075
|
case "InternalServerException":
|
|
1088
1076
|
case "com.amazonaws.drs#InternalServerException":
|
|
1089
|
-
throw await
|
|
1077
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1090
1078
|
case "ResourceNotFoundException":
|
|
1091
1079
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1092
|
-
throw await
|
|
1080
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
1081
|
case "ThrottlingException":
|
|
1094
1082
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1095
|
-
throw await
|
|
1083
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1096
1084
|
case "UninitializedAccountException":
|
|
1097
1085
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1098
|
-
throw await
|
|
1086
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1099
1087
|
default:
|
|
1100
1088
|
const parsedBody = parsedOutput.body;
|
|
1101
1089
|
throwDefaultError({
|
|
@@ -1106,9 +1094,9 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1106
1094
|
});
|
|
1107
1095
|
}
|
|
1108
1096
|
};
|
|
1109
|
-
export const
|
|
1097
|
+
export const de_DeleteSourceServerCommand = async (output, context) => {
|
|
1110
1098
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1111
|
-
return
|
|
1099
|
+
return de_DeleteSourceServerCommandError(output, context);
|
|
1112
1100
|
}
|
|
1113
1101
|
const contents = map({
|
|
1114
1102
|
$metadata: deserializeMetadata(output),
|
|
@@ -1116,7 +1104,7 @@ export const deserializeAws_restJson1DeleteSourceServerCommand = async (output,
|
|
|
1116
1104
|
await collectBody(output.body, context);
|
|
1117
1105
|
return contents;
|
|
1118
1106
|
};
|
|
1119
|
-
const
|
|
1107
|
+
const de_DeleteSourceServerCommandError = async (output, context) => {
|
|
1120
1108
|
const parsedOutput = {
|
|
1121
1109
|
...output,
|
|
1122
1110
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1125,19 +1113,19 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1125
1113
|
switch (errorCode) {
|
|
1126
1114
|
case "ConflictException":
|
|
1127
1115
|
case "com.amazonaws.drs#ConflictException":
|
|
1128
|
-
throw await
|
|
1116
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1129
1117
|
case "InternalServerException":
|
|
1130
1118
|
case "com.amazonaws.drs#InternalServerException":
|
|
1131
|
-
throw await
|
|
1119
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1132
1120
|
case "ResourceNotFoundException":
|
|
1133
1121
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1134
|
-
throw await
|
|
1122
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1135
1123
|
case "ThrottlingException":
|
|
1136
1124
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1137
|
-
throw await
|
|
1125
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1138
1126
|
case "UninitializedAccountException":
|
|
1139
1127
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1140
|
-
throw await
|
|
1128
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1141
1129
|
default:
|
|
1142
1130
|
const parsedBody = parsedOutput.body;
|
|
1143
1131
|
throwDefaultError({
|
|
@@ -1148,23 +1136,23 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1148
1136
|
});
|
|
1149
1137
|
}
|
|
1150
1138
|
};
|
|
1151
|
-
export const
|
|
1139
|
+
export const de_DescribeJobLogItemsCommand = async (output, context) => {
|
|
1152
1140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
1141
|
+
return de_DescribeJobLogItemsCommandError(output, context);
|
|
1154
1142
|
}
|
|
1155
1143
|
const contents = map({
|
|
1156
1144
|
$metadata: deserializeMetadata(output),
|
|
1157
1145
|
});
|
|
1158
1146
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1159
1147
|
if (data.items != null) {
|
|
1160
|
-
contents.items =
|
|
1148
|
+
contents.items = de_JobLogs(data.items, context);
|
|
1161
1149
|
}
|
|
1162
1150
|
if (data.nextToken != null) {
|
|
1163
1151
|
contents.nextToken = __expectString(data.nextToken);
|
|
1164
1152
|
}
|
|
1165
1153
|
return contents;
|
|
1166
1154
|
};
|
|
1167
|
-
const
|
|
1155
|
+
const de_DescribeJobLogItemsCommandError = async (output, context) => {
|
|
1168
1156
|
const parsedOutput = {
|
|
1169
1157
|
...output,
|
|
1170
1158
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1173,16 +1161,16 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1173
1161
|
switch (errorCode) {
|
|
1174
1162
|
case "InternalServerException":
|
|
1175
1163
|
case "com.amazonaws.drs#InternalServerException":
|
|
1176
|
-
throw await
|
|
1164
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1177
1165
|
case "ThrottlingException":
|
|
1178
1166
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1179
|
-
throw await
|
|
1167
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1180
1168
|
case "UninitializedAccountException":
|
|
1181
1169
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1182
|
-
throw await
|
|
1170
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1183
1171
|
case "ValidationException":
|
|
1184
1172
|
case "com.amazonaws.drs#ValidationException":
|
|
1185
|
-
throw await
|
|
1173
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1186
1174
|
default:
|
|
1187
1175
|
const parsedBody = parsedOutput.body;
|
|
1188
1176
|
throwDefaultError({
|
|
@@ -1193,23 +1181,23 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1193
1181
|
});
|
|
1194
1182
|
}
|
|
1195
1183
|
};
|
|
1196
|
-
export const
|
|
1184
|
+
export const de_DescribeJobsCommand = async (output, context) => {
|
|
1197
1185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1198
|
-
return
|
|
1186
|
+
return de_DescribeJobsCommandError(output, context);
|
|
1199
1187
|
}
|
|
1200
1188
|
const contents = map({
|
|
1201
1189
|
$metadata: deserializeMetadata(output),
|
|
1202
1190
|
});
|
|
1203
1191
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1204
1192
|
if (data.items != null) {
|
|
1205
|
-
contents.items =
|
|
1193
|
+
contents.items = de_JobsList(data.items, context);
|
|
1206
1194
|
}
|
|
1207
1195
|
if (data.nextToken != null) {
|
|
1208
1196
|
contents.nextToken = __expectString(data.nextToken);
|
|
1209
1197
|
}
|
|
1210
1198
|
return contents;
|
|
1211
1199
|
};
|
|
1212
|
-
const
|
|
1200
|
+
const de_DescribeJobsCommandError = async (output, context) => {
|
|
1213
1201
|
const parsedOutput = {
|
|
1214
1202
|
...output,
|
|
1215
1203
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1218,16 +1206,16 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1218
1206
|
switch (errorCode) {
|
|
1219
1207
|
case "InternalServerException":
|
|
1220
1208
|
case "com.amazonaws.drs#InternalServerException":
|
|
1221
|
-
throw await
|
|
1209
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1222
1210
|
case "ThrottlingException":
|
|
1223
1211
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1224
|
-
throw await
|
|
1212
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1225
1213
|
case "UninitializedAccountException":
|
|
1226
1214
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1227
|
-
throw await
|
|
1215
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1228
1216
|
case "ValidationException":
|
|
1229
1217
|
case "com.amazonaws.drs#ValidationException":
|
|
1230
|
-
throw await
|
|
1218
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1231
1219
|
default:
|
|
1232
1220
|
const parsedBody = parsedOutput.body;
|
|
1233
1221
|
throwDefaultError({
|
|
@@ -1238,23 +1226,23 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1238
1226
|
});
|
|
1239
1227
|
}
|
|
1240
1228
|
};
|
|
1241
|
-
export const
|
|
1229
|
+
export const de_DescribeRecoveryInstancesCommand = async (output, context) => {
|
|
1242
1230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
|
-
return
|
|
1231
|
+
return de_DescribeRecoveryInstancesCommandError(output, context);
|
|
1244
1232
|
}
|
|
1245
1233
|
const contents = map({
|
|
1246
1234
|
$metadata: deserializeMetadata(output),
|
|
1247
1235
|
});
|
|
1248
1236
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1249
1237
|
if (data.items != null) {
|
|
1250
|
-
contents.items =
|
|
1238
|
+
contents.items = de_DescribeRecoveryInstancesItems(data.items, context);
|
|
1251
1239
|
}
|
|
1252
1240
|
if (data.nextToken != null) {
|
|
1253
1241
|
contents.nextToken = __expectString(data.nextToken);
|
|
1254
1242
|
}
|
|
1255
1243
|
return contents;
|
|
1256
1244
|
};
|
|
1257
|
-
const
|
|
1245
|
+
const de_DescribeRecoveryInstancesCommandError = async (output, context) => {
|
|
1258
1246
|
const parsedOutput = {
|
|
1259
1247
|
...output,
|
|
1260
1248
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1263,16 +1251,16 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (out
|
|
|
1263
1251
|
switch (errorCode) {
|
|
1264
1252
|
case "AccessDeniedException":
|
|
1265
1253
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1266
|
-
throw await
|
|
1254
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1267
1255
|
case "InternalServerException":
|
|
1268
1256
|
case "com.amazonaws.drs#InternalServerException":
|
|
1269
|
-
throw await
|
|
1257
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1270
1258
|
case "ThrottlingException":
|
|
1271
1259
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1272
|
-
throw await
|
|
1260
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1273
1261
|
case "UninitializedAccountException":
|
|
1274
1262
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1275
|
-
throw await
|
|
1263
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1276
1264
|
default:
|
|
1277
1265
|
const parsedBody = parsedOutput.body;
|
|
1278
1266
|
throwDefaultError({
|
|
@@ -1283,23 +1271,23 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (out
|
|
|
1283
1271
|
});
|
|
1284
1272
|
}
|
|
1285
1273
|
};
|
|
1286
|
-
export const
|
|
1274
|
+
export const de_DescribeRecoverySnapshotsCommand = async (output, context) => {
|
|
1287
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
1276
|
+
return de_DescribeRecoverySnapshotsCommandError(output, context);
|
|
1289
1277
|
}
|
|
1290
1278
|
const contents = map({
|
|
1291
1279
|
$metadata: deserializeMetadata(output),
|
|
1292
1280
|
});
|
|
1293
1281
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1294
1282
|
if (data.items != null) {
|
|
1295
|
-
contents.items =
|
|
1283
|
+
contents.items = de_RecoverySnapshotsList(data.items, context);
|
|
1296
1284
|
}
|
|
1297
1285
|
if (data.nextToken != null) {
|
|
1298
1286
|
contents.nextToken = __expectString(data.nextToken);
|
|
1299
1287
|
}
|
|
1300
1288
|
return contents;
|
|
1301
1289
|
};
|
|
1302
|
-
const
|
|
1290
|
+
const de_DescribeRecoverySnapshotsCommandError = async (output, context) => {
|
|
1303
1291
|
const parsedOutput = {
|
|
1304
1292
|
...output,
|
|
1305
1293
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1308,19 +1296,19 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (out
|
|
|
1308
1296
|
switch (errorCode) {
|
|
1309
1297
|
case "AccessDeniedException":
|
|
1310
1298
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1311
|
-
throw await
|
|
1299
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1312
1300
|
case "InternalServerException":
|
|
1313
1301
|
case "com.amazonaws.drs#InternalServerException":
|
|
1314
|
-
throw await
|
|
1302
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1315
1303
|
case "ThrottlingException":
|
|
1316
1304
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1317
|
-
throw await
|
|
1305
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1318
1306
|
case "UninitializedAccountException":
|
|
1319
1307
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1320
|
-
throw await
|
|
1308
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1321
1309
|
case "ValidationException":
|
|
1322
1310
|
case "com.amazonaws.drs#ValidationException":
|
|
1323
|
-
throw await
|
|
1311
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1324
1312
|
default:
|
|
1325
1313
|
const parsedBody = parsedOutput.body;
|
|
1326
1314
|
throwDefaultError({
|
|
@@ -1331,23 +1319,23 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (out
|
|
|
1331
1319
|
});
|
|
1332
1320
|
}
|
|
1333
1321
|
};
|
|
1334
|
-
export const
|
|
1322
|
+
export const de_DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
1335
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1336
|
-
return
|
|
1324
|
+
return de_DescribeReplicationConfigurationTemplatesCommandError(output, context);
|
|
1337
1325
|
}
|
|
1338
1326
|
const contents = map({
|
|
1339
1327
|
$metadata: deserializeMetadata(output),
|
|
1340
1328
|
});
|
|
1341
1329
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1342
1330
|
if (data.items != null) {
|
|
1343
|
-
contents.items =
|
|
1331
|
+
contents.items = de_ReplicationConfigurationTemplates(data.items, context);
|
|
1344
1332
|
}
|
|
1345
1333
|
if (data.nextToken != null) {
|
|
1346
1334
|
contents.nextToken = __expectString(data.nextToken);
|
|
1347
1335
|
}
|
|
1348
1336
|
return contents;
|
|
1349
1337
|
};
|
|
1350
|
-
const
|
|
1338
|
+
const de_DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
1351
1339
|
const parsedOutput = {
|
|
1352
1340
|
...output,
|
|
1353
1341
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1356,19 +1344,19 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1356
1344
|
switch (errorCode) {
|
|
1357
1345
|
case "InternalServerException":
|
|
1358
1346
|
case "com.amazonaws.drs#InternalServerException":
|
|
1359
|
-
throw await
|
|
1347
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1360
1348
|
case "ResourceNotFoundException":
|
|
1361
1349
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1362
|
-
throw await
|
|
1350
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1363
1351
|
case "ThrottlingException":
|
|
1364
1352
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1365
|
-
throw await
|
|
1353
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1366
1354
|
case "UninitializedAccountException":
|
|
1367
1355
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1368
|
-
throw await
|
|
1356
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1369
1357
|
case "ValidationException":
|
|
1370
1358
|
case "com.amazonaws.drs#ValidationException":
|
|
1371
|
-
throw await
|
|
1359
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1372
1360
|
default:
|
|
1373
1361
|
const parsedBody = parsedOutput.body;
|
|
1374
1362
|
throwDefaultError({
|
|
@@ -1379,23 +1367,23 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1379
1367
|
});
|
|
1380
1368
|
}
|
|
1381
1369
|
};
|
|
1382
|
-
export const
|
|
1370
|
+
export const de_DescribeSourceServersCommand = async (output, context) => {
|
|
1383
1371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return
|
|
1372
|
+
return de_DescribeSourceServersCommandError(output, context);
|
|
1385
1373
|
}
|
|
1386
1374
|
const contents = map({
|
|
1387
1375
|
$metadata: deserializeMetadata(output),
|
|
1388
1376
|
});
|
|
1389
1377
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1390
1378
|
if (data.items != null) {
|
|
1391
|
-
contents.items =
|
|
1379
|
+
contents.items = de_SourceServersList(data.items, context);
|
|
1392
1380
|
}
|
|
1393
1381
|
if (data.nextToken != null) {
|
|
1394
1382
|
contents.nextToken = __expectString(data.nextToken);
|
|
1395
1383
|
}
|
|
1396
1384
|
return contents;
|
|
1397
1385
|
};
|
|
1398
|
-
const
|
|
1386
|
+
const de_DescribeSourceServersCommandError = async (output, context) => {
|
|
1399
1387
|
const parsedOutput = {
|
|
1400
1388
|
...output,
|
|
1401
1389
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1404,16 +1392,16 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1404
1392
|
switch (errorCode) {
|
|
1405
1393
|
case "InternalServerException":
|
|
1406
1394
|
case "com.amazonaws.drs#InternalServerException":
|
|
1407
|
-
throw await
|
|
1395
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1408
1396
|
case "ThrottlingException":
|
|
1409
1397
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1410
|
-
throw await
|
|
1398
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1411
1399
|
case "UninitializedAccountException":
|
|
1412
1400
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1413
|
-
throw await
|
|
1401
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1414
1402
|
case "ValidationException":
|
|
1415
1403
|
case "com.amazonaws.drs#ValidationException":
|
|
1416
|
-
throw await
|
|
1404
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1417
1405
|
default:
|
|
1418
1406
|
const parsedBody = parsedOutput.body;
|
|
1419
1407
|
throwDefaultError({
|
|
@@ -1424,9 +1412,9 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1424
1412
|
});
|
|
1425
1413
|
}
|
|
1426
1414
|
};
|
|
1427
|
-
export const
|
|
1415
|
+
export const de_DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
1428
1416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
1417
|
+
return de_DisconnectRecoveryInstanceCommandError(output, context);
|
|
1430
1418
|
}
|
|
1431
1419
|
const contents = map({
|
|
1432
1420
|
$metadata: deserializeMetadata(output),
|
|
@@ -1434,7 +1422,7 @@ export const deserializeAws_restJson1DisconnectRecoveryInstanceCommand = async (
|
|
|
1434
1422
|
await collectBody(output.body, context);
|
|
1435
1423
|
return contents;
|
|
1436
1424
|
};
|
|
1437
|
-
const
|
|
1425
|
+
const de_DisconnectRecoveryInstanceCommandError = async (output, context) => {
|
|
1438
1426
|
const parsedOutput = {
|
|
1439
1427
|
...output,
|
|
1440
1428
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1443,22 +1431,22 @@ const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (ou
|
|
|
1443
1431
|
switch (errorCode) {
|
|
1444
1432
|
case "AccessDeniedException":
|
|
1445
1433
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1446
|
-
throw await
|
|
1434
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1447
1435
|
case "ConflictException":
|
|
1448
1436
|
case "com.amazonaws.drs#ConflictException":
|
|
1449
|
-
throw await
|
|
1437
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1450
1438
|
case "InternalServerException":
|
|
1451
1439
|
case "com.amazonaws.drs#InternalServerException":
|
|
1452
|
-
throw await
|
|
1440
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1453
1441
|
case "ResourceNotFoundException":
|
|
1454
1442
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1455
|
-
throw await
|
|
1443
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1456
1444
|
case "ThrottlingException":
|
|
1457
1445
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1458
|
-
throw await
|
|
1446
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1459
1447
|
case "UninitializedAccountException":
|
|
1460
1448
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1461
|
-
throw await
|
|
1449
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1462
1450
|
default:
|
|
1463
1451
|
const parsedBody = parsedOutput.body;
|
|
1464
1452
|
throwDefaultError({
|
|
@@ -1469,9 +1457,9 @@ const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (ou
|
|
|
1469
1457
|
});
|
|
1470
1458
|
}
|
|
1471
1459
|
};
|
|
1472
|
-
export const
|
|
1460
|
+
export const de_DisconnectSourceServerCommand = async (output, context) => {
|
|
1473
1461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
1462
|
+
return de_DisconnectSourceServerCommandError(output, context);
|
|
1475
1463
|
}
|
|
1476
1464
|
const contents = map({
|
|
1477
1465
|
$metadata: deserializeMetadata(output),
|
|
@@ -1481,13 +1469,13 @@ export const deserializeAws_restJson1DisconnectSourceServerCommand = async (outp
|
|
|
1481
1469
|
contents.arn = __expectString(data.arn);
|
|
1482
1470
|
}
|
|
1483
1471
|
if (data.dataReplicationInfo != null) {
|
|
1484
|
-
contents.dataReplicationInfo =
|
|
1472
|
+
contents.dataReplicationInfo = de_DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1485
1473
|
}
|
|
1486
1474
|
if (data.lastLaunchResult != null) {
|
|
1487
1475
|
contents.lastLaunchResult = __expectString(data.lastLaunchResult);
|
|
1488
1476
|
}
|
|
1489
1477
|
if (data.lifeCycle != null) {
|
|
1490
|
-
contents.lifeCycle =
|
|
1478
|
+
contents.lifeCycle = de_LifeCycle(data.lifeCycle, context);
|
|
1491
1479
|
}
|
|
1492
1480
|
if (data.recoveryInstanceId != null) {
|
|
1493
1481
|
contents.recoveryInstanceId = __expectString(data.recoveryInstanceId);
|
|
@@ -1499,23 +1487,23 @@ export const deserializeAws_restJson1DisconnectSourceServerCommand = async (outp
|
|
|
1499
1487
|
contents.reversedDirectionSourceServerArn = __expectString(data.reversedDirectionSourceServerArn);
|
|
1500
1488
|
}
|
|
1501
1489
|
if (data.sourceCloudProperties != null) {
|
|
1502
|
-
contents.sourceCloudProperties =
|
|
1490
|
+
contents.sourceCloudProperties = de_SourceCloudProperties(data.sourceCloudProperties, context);
|
|
1503
1491
|
}
|
|
1504
1492
|
if (data.sourceProperties != null) {
|
|
1505
|
-
contents.sourceProperties =
|
|
1493
|
+
contents.sourceProperties = de_SourceProperties(data.sourceProperties, context);
|
|
1506
1494
|
}
|
|
1507
1495
|
if (data.sourceServerID != null) {
|
|
1508
1496
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
1509
1497
|
}
|
|
1510
1498
|
if (data.stagingArea != null) {
|
|
1511
|
-
contents.stagingArea =
|
|
1499
|
+
contents.stagingArea = de_StagingArea(data.stagingArea, context);
|
|
1512
1500
|
}
|
|
1513
1501
|
if (data.tags != null) {
|
|
1514
|
-
contents.tags =
|
|
1502
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
1515
1503
|
}
|
|
1516
1504
|
return contents;
|
|
1517
1505
|
};
|
|
1518
|
-
const
|
|
1506
|
+
const de_DisconnectSourceServerCommandError = async (output, context) => {
|
|
1519
1507
|
const parsedOutput = {
|
|
1520
1508
|
...output,
|
|
1521
1509
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1524,19 +1512,19 @@ const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output
|
|
|
1524
1512
|
switch (errorCode) {
|
|
1525
1513
|
case "ConflictException":
|
|
1526
1514
|
case "com.amazonaws.drs#ConflictException":
|
|
1527
|
-
throw await
|
|
1515
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1528
1516
|
case "InternalServerException":
|
|
1529
1517
|
case "com.amazonaws.drs#InternalServerException":
|
|
1530
|
-
throw await
|
|
1518
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1531
1519
|
case "ResourceNotFoundException":
|
|
1532
1520
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1533
|
-
throw await
|
|
1521
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1534
1522
|
case "ThrottlingException":
|
|
1535
1523
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1536
|
-
throw await
|
|
1524
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1537
1525
|
case "UninitializedAccountException":
|
|
1538
1526
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1539
|
-
throw await
|
|
1527
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1540
1528
|
default:
|
|
1541
1529
|
const parsedBody = parsedOutput.body;
|
|
1542
1530
|
throwDefaultError({
|
|
@@ -1547,9 +1535,9 @@ const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output
|
|
|
1547
1535
|
});
|
|
1548
1536
|
}
|
|
1549
1537
|
};
|
|
1550
|
-
export const
|
|
1538
|
+
export const de_GetFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
1551
1539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
|
-
return
|
|
1540
|
+
return de_GetFailbackReplicationConfigurationCommandError(output, context);
|
|
1553
1541
|
}
|
|
1554
1542
|
const contents = map({
|
|
1555
1543
|
$metadata: deserializeMetadata(output),
|
|
@@ -1569,7 +1557,7 @@ export const deserializeAws_restJson1GetFailbackReplicationConfigurationCommand
|
|
|
1569
1557
|
}
|
|
1570
1558
|
return contents;
|
|
1571
1559
|
};
|
|
1572
|
-
const
|
|
1560
|
+
const de_GetFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
1573
1561
|
const parsedOutput = {
|
|
1574
1562
|
...output,
|
|
1575
1563
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1578,16 +1566,16 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError =
|
|
|
1578
1566
|
switch (errorCode) {
|
|
1579
1567
|
case "InternalServerException":
|
|
1580
1568
|
case "com.amazonaws.drs#InternalServerException":
|
|
1581
|
-
throw await
|
|
1569
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1582
1570
|
case "ResourceNotFoundException":
|
|
1583
1571
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1584
|
-
throw await
|
|
1572
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1585
1573
|
case "ThrottlingException":
|
|
1586
1574
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1587
|
-
throw await
|
|
1575
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
1576
|
case "UninitializedAccountException":
|
|
1589
1577
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1590
|
-
throw await
|
|
1578
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1591
1579
|
default:
|
|
1592
1580
|
const parsedBody = parsedOutput.body;
|
|
1593
1581
|
throwDefaultError({
|
|
@@ -1598,9 +1586,9 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError =
|
|
|
1598
1586
|
});
|
|
1599
1587
|
}
|
|
1600
1588
|
};
|
|
1601
|
-
export const
|
|
1589
|
+
export const de_GetLaunchConfigurationCommand = async (output, context) => {
|
|
1602
1590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1603
|
-
return
|
|
1591
|
+
return de_GetLaunchConfigurationCommandError(output, context);
|
|
1604
1592
|
}
|
|
1605
1593
|
const contents = map({
|
|
1606
1594
|
$metadata: deserializeMetadata(output),
|
|
@@ -1619,7 +1607,7 @@ export const deserializeAws_restJson1GetLaunchConfigurationCommand = async (outp
|
|
|
1619
1607
|
contents.launchDisposition = __expectString(data.launchDisposition);
|
|
1620
1608
|
}
|
|
1621
1609
|
if (data.licensing != null) {
|
|
1622
|
-
contents.licensing =
|
|
1610
|
+
contents.licensing = de_Licensing(data.licensing, context);
|
|
1623
1611
|
}
|
|
1624
1612
|
if (data.name != null) {
|
|
1625
1613
|
contents.name = __expectString(data.name);
|
|
@@ -1632,7 +1620,7 @@ export const deserializeAws_restJson1GetLaunchConfigurationCommand = async (outp
|
|
|
1632
1620
|
}
|
|
1633
1621
|
return contents;
|
|
1634
1622
|
};
|
|
1635
|
-
const
|
|
1623
|
+
const de_GetLaunchConfigurationCommandError = async (output, context) => {
|
|
1636
1624
|
const parsedOutput = {
|
|
1637
1625
|
...output,
|
|
1638
1626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1641,16 +1629,16 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1641
1629
|
switch (errorCode) {
|
|
1642
1630
|
case "InternalServerException":
|
|
1643
1631
|
case "com.amazonaws.drs#InternalServerException":
|
|
1644
|
-
throw await
|
|
1632
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1645
1633
|
case "ResourceNotFoundException":
|
|
1646
1634
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1647
|
-
throw await
|
|
1635
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1648
1636
|
case "ThrottlingException":
|
|
1649
1637
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1650
|
-
throw await
|
|
1638
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1651
1639
|
case "UninitializedAccountException":
|
|
1652
1640
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1653
|
-
throw await
|
|
1641
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1654
1642
|
default:
|
|
1655
1643
|
const parsedBody = parsedOutput.body;
|
|
1656
1644
|
throwDefaultError({
|
|
@@ -1661,9 +1649,9 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1661
1649
|
});
|
|
1662
1650
|
}
|
|
1663
1651
|
};
|
|
1664
|
-
export const
|
|
1652
|
+
export const de_GetReplicationConfigurationCommand = async (output, context) => {
|
|
1665
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1666
|
-
return
|
|
1654
|
+
return de_GetReplicationConfigurationCommandError(output, context);
|
|
1667
1655
|
}
|
|
1668
1656
|
const contents = map({
|
|
1669
1657
|
$metadata: deserializeMetadata(output),
|
|
@@ -1697,16 +1685,16 @@ export const deserializeAws_restJson1GetReplicationConfigurationCommand = async
|
|
|
1697
1685
|
contents.name = __expectString(data.name);
|
|
1698
1686
|
}
|
|
1699
1687
|
if (data.pitPolicy != null) {
|
|
1700
|
-
contents.pitPolicy =
|
|
1688
|
+
contents.pitPolicy = de_PITPolicy(data.pitPolicy, context);
|
|
1701
1689
|
}
|
|
1702
1690
|
if (data.replicatedDisks != null) {
|
|
1703
|
-
contents.replicatedDisks =
|
|
1691
|
+
contents.replicatedDisks = de_ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
1704
1692
|
}
|
|
1705
1693
|
if (data.replicationServerInstanceType != null) {
|
|
1706
1694
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
1707
1695
|
}
|
|
1708
1696
|
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
1709
|
-
contents.replicationServersSecurityGroupsIDs =
|
|
1697
|
+
contents.replicationServersSecurityGroupsIDs = de_ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
1710
1698
|
}
|
|
1711
1699
|
if (data.sourceServerID != null) {
|
|
1712
1700
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
@@ -1715,14 +1703,14 @@ export const deserializeAws_restJson1GetReplicationConfigurationCommand = async
|
|
|
1715
1703
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
1716
1704
|
}
|
|
1717
1705
|
if (data.stagingAreaTags != null) {
|
|
1718
|
-
contents.stagingAreaTags =
|
|
1706
|
+
contents.stagingAreaTags = de_TagsMap(data.stagingAreaTags, context);
|
|
1719
1707
|
}
|
|
1720
1708
|
if (data.useDedicatedReplicationServer != null) {
|
|
1721
1709
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
1722
1710
|
}
|
|
1723
1711
|
return contents;
|
|
1724
1712
|
};
|
|
1725
|
-
const
|
|
1713
|
+
const de_GetReplicationConfigurationCommandError = async (output, context) => {
|
|
1726
1714
|
const parsedOutput = {
|
|
1727
1715
|
...output,
|
|
1728
1716
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1731,19 +1719,19 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1731
1719
|
switch (errorCode) {
|
|
1732
1720
|
case "AccessDeniedException":
|
|
1733
1721
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1734
|
-
throw await
|
|
1722
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1735
1723
|
case "InternalServerException":
|
|
1736
1724
|
case "com.amazonaws.drs#InternalServerException":
|
|
1737
|
-
throw await
|
|
1725
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1738
1726
|
case "ResourceNotFoundException":
|
|
1739
1727
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1740
|
-
throw await
|
|
1728
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1741
1729
|
case "ThrottlingException":
|
|
1742
1730
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1743
|
-
throw await
|
|
1731
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1744
1732
|
case "UninitializedAccountException":
|
|
1745
1733
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1746
|
-
throw await
|
|
1734
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1747
1735
|
default:
|
|
1748
1736
|
const parsedBody = parsedOutput.body;
|
|
1749
1737
|
throwDefaultError({
|
|
@@ -1754,9 +1742,9 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1754
1742
|
});
|
|
1755
1743
|
}
|
|
1756
1744
|
};
|
|
1757
|
-
export const
|
|
1745
|
+
export const de_InitializeServiceCommand = async (output, context) => {
|
|
1758
1746
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1759
|
-
return
|
|
1747
|
+
return de_InitializeServiceCommandError(output, context);
|
|
1760
1748
|
}
|
|
1761
1749
|
const contents = map({
|
|
1762
1750
|
$metadata: deserializeMetadata(output),
|
|
@@ -1764,7 +1752,7 @@ export const deserializeAws_restJson1InitializeServiceCommand = async (output, c
|
|
|
1764
1752
|
await collectBody(output.body, context);
|
|
1765
1753
|
return contents;
|
|
1766
1754
|
};
|
|
1767
|
-
const
|
|
1755
|
+
const de_InitializeServiceCommandError = async (output, context) => {
|
|
1768
1756
|
const parsedOutput = {
|
|
1769
1757
|
...output,
|
|
1770
1758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1773,16 +1761,16 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1773
1761
|
switch (errorCode) {
|
|
1774
1762
|
case "AccessDeniedException":
|
|
1775
1763
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1776
|
-
throw await
|
|
1764
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1777
1765
|
case "InternalServerException":
|
|
1778
1766
|
case "com.amazonaws.drs#InternalServerException":
|
|
1779
|
-
throw await
|
|
1767
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1780
1768
|
case "ThrottlingException":
|
|
1781
1769
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1782
|
-
throw await
|
|
1770
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1783
1771
|
case "ValidationException":
|
|
1784
1772
|
case "com.amazonaws.drs#ValidationException":
|
|
1785
|
-
throw await
|
|
1773
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1786
1774
|
default:
|
|
1787
1775
|
const parsedBody = parsedOutput.body;
|
|
1788
1776
|
throwDefaultError({
|
|
@@ -1793,23 +1781,23 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1793
1781
|
});
|
|
1794
1782
|
}
|
|
1795
1783
|
};
|
|
1796
|
-
export const
|
|
1784
|
+
export const de_ListExtensibleSourceServersCommand = async (output, context) => {
|
|
1797
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
1786
|
+
return de_ListExtensibleSourceServersCommandError(output, context);
|
|
1799
1787
|
}
|
|
1800
1788
|
const contents = map({
|
|
1801
1789
|
$metadata: deserializeMetadata(output),
|
|
1802
1790
|
});
|
|
1803
1791
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1804
1792
|
if (data.items != null) {
|
|
1805
|
-
contents.items =
|
|
1793
|
+
contents.items = de_StagingSourceServersList(data.items, context);
|
|
1806
1794
|
}
|
|
1807
1795
|
if (data.nextToken != null) {
|
|
1808
1796
|
contents.nextToken = __expectString(data.nextToken);
|
|
1809
1797
|
}
|
|
1810
1798
|
return contents;
|
|
1811
1799
|
};
|
|
1812
|
-
const
|
|
1800
|
+
const de_ListExtensibleSourceServersCommandError = async (output, context) => {
|
|
1813
1801
|
const parsedOutput = {
|
|
1814
1802
|
...output,
|
|
1815
1803
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1818,19 +1806,19 @@ const deserializeAws_restJson1ListExtensibleSourceServersCommandError = async (o
|
|
|
1818
1806
|
switch (errorCode) {
|
|
1819
1807
|
case "AccessDeniedException":
|
|
1820
1808
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1821
|
-
throw await
|
|
1809
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
1810
|
case "InternalServerException":
|
|
1823
1811
|
case "com.amazonaws.drs#InternalServerException":
|
|
1824
|
-
throw await
|
|
1812
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1825
1813
|
case "ThrottlingException":
|
|
1826
1814
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1827
|
-
throw await
|
|
1815
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1828
1816
|
case "UninitializedAccountException":
|
|
1829
1817
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1830
|
-
throw await
|
|
1818
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1831
1819
|
case "ValidationException":
|
|
1832
1820
|
case "com.amazonaws.drs#ValidationException":
|
|
1833
|
-
throw await
|
|
1821
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
1822
|
default:
|
|
1835
1823
|
const parsedBody = parsedOutput.body;
|
|
1836
1824
|
throwDefaultError({
|
|
@@ -1841,23 +1829,23 @@ const deserializeAws_restJson1ListExtensibleSourceServersCommandError = async (o
|
|
|
1841
1829
|
});
|
|
1842
1830
|
}
|
|
1843
1831
|
};
|
|
1844
|
-
export const
|
|
1832
|
+
export const de_ListStagingAccountsCommand = async (output, context) => {
|
|
1845
1833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return
|
|
1834
|
+
return de_ListStagingAccountsCommandError(output, context);
|
|
1847
1835
|
}
|
|
1848
1836
|
const contents = map({
|
|
1849
1837
|
$metadata: deserializeMetadata(output),
|
|
1850
1838
|
});
|
|
1851
1839
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1852
1840
|
if (data.accounts != null) {
|
|
1853
|
-
contents.accounts =
|
|
1841
|
+
contents.accounts = de_Accounts(data.accounts, context);
|
|
1854
1842
|
}
|
|
1855
1843
|
if (data.nextToken != null) {
|
|
1856
1844
|
contents.nextToken = __expectString(data.nextToken);
|
|
1857
1845
|
}
|
|
1858
1846
|
return contents;
|
|
1859
1847
|
};
|
|
1860
|
-
const
|
|
1848
|
+
const de_ListStagingAccountsCommandError = async (output, context) => {
|
|
1861
1849
|
const parsedOutput = {
|
|
1862
1850
|
...output,
|
|
1863
1851
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1866,19 +1854,19 @@ const deserializeAws_restJson1ListStagingAccountsCommandError = async (output, c
|
|
|
1866
1854
|
switch (errorCode) {
|
|
1867
1855
|
case "AccessDeniedException":
|
|
1868
1856
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1869
|
-
throw await
|
|
1857
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1870
1858
|
case "InternalServerException":
|
|
1871
1859
|
case "com.amazonaws.drs#InternalServerException":
|
|
1872
|
-
throw await
|
|
1860
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1873
1861
|
case "ThrottlingException":
|
|
1874
1862
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1875
|
-
throw await
|
|
1863
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1876
1864
|
case "UninitializedAccountException":
|
|
1877
1865
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1878
|
-
throw await
|
|
1866
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1879
1867
|
case "ValidationException":
|
|
1880
1868
|
case "com.amazonaws.drs#ValidationException":
|
|
1881
|
-
throw await
|
|
1869
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1882
1870
|
default:
|
|
1883
1871
|
const parsedBody = parsedOutput.body;
|
|
1884
1872
|
throwDefaultError({
|
|
@@ -1889,20 +1877,20 @@ const deserializeAws_restJson1ListStagingAccountsCommandError = async (output, c
|
|
|
1889
1877
|
});
|
|
1890
1878
|
}
|
|
1891
1879
|
};
|
|
1892
|
-
export const
|
|
1880
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1893
1881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1882
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1895
1883
|
}
|
|
1896
1884
|
const contents = map({
|
|
1897
1885
|
$metadata: deserializeMetadata(output),
|
|
1898
1886
|
});
|
|
1899
1887
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1900
1888
|
if (data.tags != null) {
|
|
1901
|
-
contents.tags =
|
|
1889
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
1902
1890
|
}
|
|
1903
1891
|
return contents;
|
|
1904
1892
|
};
|
|
1905
|
-
const
|
|
1893
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1906
1894
|
const parsedOutput = {
|
|
1907
1895
|
...output,
|
|
1908
1896
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1911,19 +1899,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1911
1899
|
switch (errorCode) {
|
|
1912
1900
|
case "AccessDeniedException":
|
|
1913
1901
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
1914
|
-
throw await
|
|
1902
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1915
1903
|
case "InternalServerException":
|
|
1916
1904
|
case "com.amazonaws.drs#InternalServerException":
|
|
1917
|
-
throw await
|
|
1905
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1918
1906
|
case "ResourceNotFoundException":
|
|
1919
1907
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1920
|
-
throw await
|
|
1908
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1921
1909
|
case "ThrottlingException":
|
|
1922
1910
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1923
|
-
throw await
|
|
1911
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1924
1912
|
case "ValidationException":
|
|
1925
1913
|
case "com.amazonaws.drs#ValidationException":
|
|
1926
|
-
throw await
|
|
1914
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1927
1915
|
default:
|
|
1928
1916
|
const parsedBody = parsedOutput.body;
|
|
1929
1917
|
throwDefaultError({
|
|
@@ -1934,9 +1922,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1934
1922
|
});
|
|
1935
1923
|
}
|
|
1936
1924
|
};
|
|
1937
|
-
export const
|
|
1925
|
+
export const de_RetryDataReplicationCommand = async (output, context) => {
|
|
1938
1926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1927
|
+
return de_RetryDataReplicationCommandError(output, context);
|
|
1940
1928
|
}
|
|
1941
1929
|
const contents = map({
|
|
1942
1930
|
$metadata: deserializeMetadata(output),
|
|
@@ -1946,13 +1934,13 @@ export const deserializeAws_restJson1RetryDataReplicationCommand = async (output
|
|
|
1946
1934
|
contents.arn = __expectString(data.arn);
|
|
1947
1935
|
}
|
|
1948
1936
|
if (data.dataReplicationInfo != null) {
|
|
1949
|
-
contents.dataReplicationInfo =
|
|
1937
|
+
contents.dataReplicationInfo = de_DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1950
1938
|
}
|
|
1951
1939
|
if (data.lastLaunchResult != null) {
|
|
1952
1940
|
contents.lastLaunchResult = __expectString(data.lastLaunchResult);
|
|
1953
1941
|
}
|
|
1954
1942
|
if (data.lifeCycle != null) {
|
|
1955
|
-
contents.lifeCycle =
|
|
1943
|
+
contents.lifeCycle = de_LifeCycle(data.lifeCycle, context);
|
|
1956
1944
|
}
|
|
1957
1945
|
if (data.recoveryInstanceId != null) {
|
|
1958
1946
|
contents.recoveryInstanceId = __expectString(data.recoveryInstanceId);
|
|
@@ -1964,23 +1952,23 @@ export const deserializeAws_restJson1RetryDataReplicationCommand = async (output
|
|
|
1964
1952
|
contents.reversedDirectionSourceServerArn = __expectString(data.reversedDirectionSourceServerArn);
|
|
1965
1953
|
}
|
|
1966
1954
|
if (data.sourceCloudProperties != null) {
|
|
1967
|
-
contents.sourceCloudProperties =
|
|
1955
|
+
contents.sourceCloudProperties = de_SourceCloudProperties(data.sourceCloudProperties, context);
|
|
1968
1956
|
}
|
|
1969
1957
|
if (data.sourceProperties != null) {
|
|
1970
|
-
contents.sourceProperties =
|
|
1958
|
+
contents.sourceProperties = de_SourceProperties(data.sourceProperties, context);
|
|
1971
1959
|
}
|
|
1972
1960
|
if (data.sourceServerID != null) {
|
|
1973
1961
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
1974
1962
|
}
|
|
1975
1963
|
if (data.stagingArea != null) {
|
|
1976
|
-
contents.stagingArea =
|
|
1964
|
+
contents.stagingArea = de_StagingArea(data.stagingArea, context);
|
|
1977
1965
|
}
|
|
1978
1966
|
if (data.tags != null) {
|
|
1979
|
-
contents.tags =
|
|
1967
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
1980
1968
|
}
|
|
1981
1969
|
return contents;
|
|
1982
1970
|
};
|
|
1983
|
-
const
|
|
1971
|
+
const de_RetryDataReplicationCommandError = async (output, context) => {
|
|
1984
1972
|
const parsedOutput = {
|
|
1985
1973
|
...output,
|
|
1986
1974
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1989,19 +1977,19 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
1989
1977
|
switch (errorCode) {
|
|
1990
1978
|
case "InternalServerException":
|
|
1991
1979
|
case "com.amazonaws.drs#InternalServerException":
|
|
1992
|
-
throw await
|
|
1980
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1993
1981
|
case "ResourceNotFoundException":
|
|
1994
1982
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1995
|
-
throw await
|
|
1983
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1996
1984
|
case "ThrottlingException":
|
|
1997
1985
|
case "com.amazonaws.drs#ThrottlingException":
|
|
1998
|
-
throw await
|
|
1986
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1999
1987
|
case "UninitializedAccountException":
|
|
2000
1988
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2001
|
-
throw await
|
|
1989
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2002
1990
|
case "ValidationException":
|
|
2003
1991
|
case "com.amazonaws.drs#ValidationException":
|
|
2004
|
-
throw await
|
|
1992
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2005
1993
|
default:
|
|
2006
1994
|
const parsedBody = parsedOutput.body;
|
|
2007
1995
|
throwDefaultError({
|
|
@@ -2012,9 +2000,9 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
2012
2000
|
});
|
|
2013
2001
|
}
|
|
2014
2002
|
};
|
|
2015
|
-
export const
|
|
2003
|
+
export const de_ReverseReplicationCommand = async (output, context) => {
|
|
2016
2004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
2005
|
+
return de_ReverseReplicationCommandError(output, context);
|
|
2018
2006
|
}
|
|
2019
2007
|
const contents = map({
|
|
2020
2008
|
$metadata: deserializeMetadata(output),
|
|
@@ -2025,7 +2013,7 @@ export const deserializeAws_restJson1ReverseReplicationCommand = async (output,
|
|
|
2025
2013
|
}
|
|
2026
2014
|
return contents;
|
|
2027
2015
|
};
|
|
2028
|
-
const
|
|
2016
|
+
const de_ReverseReplicationCommandError = async (output, context) => {
|
|
2029
2017
|
const parsedOutput = {
|
|
2030
2018
|
...output,
|
|
2031
2019
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2034,25 +2022,25 @@ const deserializeAws_restJson1ReverseReplicationCommandError = async (output, co
|
|
|
2034
2022
|
switch (errorCode) {
|
|
2035
2023
|
case "AccessDeniedException":
|
|
2036
2024
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2037
|
-
throw await
|
|
2025
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2038
2026
|
case "ConflictException":
|
|
2039
2027
|
case "com.amazonaws.drs#ConflictException":
|
|
2040
|
-
throw await
|
|
2028
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2041
2029
|
case "InternalServerException":
|
|
2042
2030
|
case "com.amazonaws.drs#InternalServerException":
|
|
2043
|
-
throw await
|
|
2031
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2044
2032
|
case "ResourceNotFoundException":
|
|
2045
2033
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2046
|
-
throw await
|
|
2034
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2047
2035
|
case "ThrottlingException":
|
|
2048
2036
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2049
|
-
throw await
|
|
2037
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2050
2038
|
case "UninitializedAccountException":
|
|
2051
2039
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2052
|
-
throw await
|
|
2040
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2053
2041
|
case "ValidationException":
|
|
2054
2042
|
case "com.amazonaws.drs#ValidationException":
|
|
2055
|
-
throw await
|
|
2043
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2056
2044
|
default:
|
|
2057
2045
|
const parsedBody = parsedOutput.body;
|
|
2058
2046
|
throwDefaultError({
|
|
@@ -2063,20 +2051,20 @@ const deserializeAws_restJson1ReverseReplicationCommandError = async (output, co
|
|
|
2063
2051
|
});
|
|
2064
2052
|
}
|
|
2065
2053
|
};
|
|
2066
|
-
export const
|
|
2054
|
+
export const de_StartFailbackLaunchCommand = async (output, context) => {
|
|
2067
2055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2068
|
-
return
|
|
2056
|
+
return de_StartFailbackLaunchCommandError(output, context);
|
|
2069
2057
|
}
|
|
2070
2058
|
const contents = map({
|
|
2071
2059
|
$metadata: deserializeMetadata(output),
|
|
2072
2060
|
});
|
|
2073
2061
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2074
2062
|
if (data.job != null) {
|
|
2075
|
-
contents.job =
|
|
2063
|
+
contents.job = de_Job(data.job, context);
|
|
2076
2064
|
}
|
|
2077
2065
|
return contents;
|
|
2078
2066
|
};
|
|
2079
|
-
const
|
|
2067
|
+
const de_StartFailbackLaunchCommandError = async (output, context) => {
|
|
2080
2068
|
const parsedOutput = {
|
|
2081
2069
|
...output,
|
|
2082
2070
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2085,22 +2073,22 @@ const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, c
|
|
|
2085
2073
|
switch (errorCode) {
|
|
2086
2074
|
case "ConflictException":
|
|
2087
2075
|
case "com.amazonaws.drs#ConflictException":
|
|
2088
|
-
throw await
|
|
2076
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2089
2077
|
case "InternalServerException":
|
|
2090
2078
|
case "com.amazonaws.drs#InternalServerException":
|
|
2091
|
-
throw await
|
|
2079
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2092
2080
|
case "ServiceQuotaExceededException":
|
|
2093
2081
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2094
|
-
throw await
|
|
2082
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2095
2083
|
case "ThrottlingException":
|
|
2096
2084
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2097
|
-
throw await
|
|
2085
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2098
2086
|
case "UninitializedAccountException":
|
|
2099
2087
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2100
|
-
throw await
|
|
2088
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2101
2089
|
case "ValidationException":
|
|
2102
2090
|
case "com.amazonaws.drs#ValidationException":
|
|
2103
|
-
throw await
|
|
2091
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2104
2092
|
default:
|
|
2105
2093
|
const parsedBody = parsedOutput.body;
|
|
2106
2094
|
throwDefaultError({
|
|
@@ -2111,20 +2099,20 @@ const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, c
|
|
|
2111
2099
|
});
|
|
2112
2100
|
}
|
|
2113
2101
|
};
|
|
2114
|
-
export const
|
|
2102
|
+
export const de_StartRecoveryCommand = async (output, context) => {
|
|
2115
2103
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2116
|
-
return
|
|
2104
|
+
return de_StartRecoveryCommandError(output, context);
|
|
2117
2105
|
}
|
|
2118
2106
|
const contents = map({
|
|
2119
2107
|
$metadata: deserializeMetadata(output),
|
|
2120
2108
|
});
|
|
2121
2109
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2122
2110
|
if (data.job != null) {
|
|
2123
|
-
contents.job =
|
|
2111
|
+
contents.job = de_Job(data.job, context);
|
|
2124
2112
|
}
|
|
2125
2113
|
return contents;
|
|
2126
2114
|
};
|
|
2127
|
-
const
|
|
2115
|
+
const de_StartRecoveryCommandError = async (output, context) => {
|
|
2128
2116
|
const parsedOutput = {
|
|
2129
2117
|
...output,
|
|
2130
2118
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2133,19 +2121,19 @@ const deserializeAws_restJson1StartRecoveryCommandError = async (output, context
|
|
|
2133
2121
|
switch (errorCode) {
|
|
2134
2122
|
case "ConflictException":
|
|
2135
2123
|
case "com.amazonaws.drs#ConflictException":
|
|
2136
|
-
throw await
|
|
2124
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2137
2125
|
case "InternalServerException":
|
|
2138
2126
|
case "com.amazonaws.drs#InternalServerException":
|
|
2139
|
-
throw await
|
|
2127
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2140
2128
|
case "ServiceQuotaExceededException":
|
|
2141
2129
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2142
|
-
throw await
|
|
2130
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2143
2131
|
case "ThrottlingException":
|
|
2144
2132
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2145
|
-
throw await
|
|
2133
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2146
2134
|
case "UninitializedAccountException":
|
|
2147
2135
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2148
|
-
throw await
|
|
2136
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2149
2137
|
default:
|
|
2150
2138
|
const parsedBody = parsedOutput.body;
|
|
2151
2139
|
throwDefaultError({
|
|
@@ -2156,20 +2144,20 @@ const deserializeAws_restJson1StartRecoveryCommandError = async (output, context
|
|
|
2156
2144
|
});
|
|
2157
2145
|
}
|
|
2158
2146
|
};
|
|
2159
|
-
export const
|
|
2147
|
+
export const de_StartReplicationCommand = async (output, context) => {
|
|
2160
2148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2161
|
-
return
|
|
2149
|
+
return de_StartReplicationCommandError(output, context);
|
|
2162
2150
|
}
|
|
2163
2151
|
const contents = map({
|
|
2164
2152
|
$metadata: deserializeMetadata(output),
|
|
2165
2153
|
});
|
|
2166
2154
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2167
2155
|
if (data.sourceServer != null) {
|
|
2168
|
-
contents.sourceServer =
|
|
2156
|
+
contents.sourceServer = de_SourceServer(data.sourceServer, context);
|
|
2169
2157
|
}
|
|
2170
2158
|
return contents;
|
|
2171
2159
|
};
|
|
2172
|
-
const
|
|
2160
|
+
const de_StartReplicationCommandError = async (output, context) => {
|
|
2173
2161
|
const parsedOutput = {
|
|
2174
2162
|
...output,
|
|
2175
2163
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2178,19 +2166,19 @@ const deserializeAws_restJson1StartReplicationCommandError = async (output, cont
|
|
|
2178
2166
|
switch (errorCode) {
|
|
2179
2167
|
case "ConflictException":
|
|
2180
2168
|
case "com.amazonaws.drs#ConflictException":
|
|
2181
|
-
throw await
|
|
2169
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2182
2170
|
case "InternalServerException":
|
|
2183
2171
|
case "com.amazonaws.drs#InternalServerException":
|
|
2184
|
-
throw await
|
|
2172
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2185
2173
|
case "ResourceNotFoundException":
|
|
2186
2174
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2187
|
-
throw await
|
|
2175
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2188
2176
|
case "ThrottlingException":
|
|
2189
2177
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2190
|
-
throw await
|
|
2178
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2191
2179
|
case "UninitializedAccountException":
|
|
2192
2180
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2193
|
-
throw await
|
|
2181
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2194
2182
|
default:
|
|
2195
2183
|
const parsedBody = parsedOutput.body;
|
|
2196
2184
|
throwDefaultError({
|
|
@@ -2201,9 +2189,9 @@ const deserializeAws_restJson1StartReplicationCommandError = async (output, cont
|
|
|
2201
2189
|
});
|
|
2202
2190
|
}
|
|
2203
2191
|
};
|
|
2204
|
-
export const
|
|
2192
|
+
export const de_StopFailbackCommand = async (output, context) => {
|
|
2205
2193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2206
|
-
return
|
|
2194
|
+
return de_StopFailbackCommandError(output, context);
|
|
2207
2195
|
}
|
|
2208
2196
|
const contents = map({
|
|
2209
2197
|
$metadata: deserializeMetadata(output),
|
|
@@ -2211,7 +2199,7 @@ export const deserializeAws_restJson1StopFailbackCommand = async (output, contex
|
|
|
2211
2199
|
await collectBody(output.body, context);
|
|
2212
2200
|
return contents;
|
|
2213
2201
|
};
|
|
2214
|
-
const
|
|
2202
|
+
const de_StopFailbackCommandError = async (output, context) => {
|
|
2215
2203
|
const parsedOutput = {
|
|
2216
2204
|
...output,
|
|
2217
2205
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2220,16 +2208,16 @@ const deserializeAws_restJson1StopFailbackCommandError = async (output, context)
|
|
|
2220
2208
|
switch (errorCode) {
|
|
2221
2209
|
case "InternalServerException":
|
|
2222
2210
|
case "com.amazonaws.drs#InternalServerException":
|
|
2223
|
-
throw await
|
|
2211
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2224
2212
|
case "ResourceNotFoundException":
|
|
2225
2213
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2226
|
-
throw await
|
|
2214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2227
2215
|
case "ThrottlingException":
|
|
2228
2216
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2229
|
-
throw await
|
|
2217
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2230
2218
|
case "UninitializedAccountException":
|
|
2231
2219
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2232
|
-
throw await
|
|
2220
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2233
2221
|
default:
|
|
2234
2222
|
const parsedBody = parsedOutput.body;
|
|
2235
2223
|
throwDefaultError({
|
|
@@ -2240,20 +2228,20 @@ const deserializeAws_restJson1StopFailbackCommandError = async (output, context)
|
|
|
2240
2228
|
});
|
|
2241
2229
|
}
|
|
2242
2230
|
};
|
|
2243
|
-
export const
|
|
2231
|
+
export const de_StopReplicationCommand = async (output, context) => {
|
|
2244
2232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2245
|
-
return
|
|
2233
|
+
return de_StopReplicationCommandError(output, context);
|
|
2246
2234
|
}
|
|
2247
2235
|
const contents = map({
|
|
2248
2236
|
$metadata: deserializeMetadata(output),
|
|
2249
2237
|
});
|
|
2250
2238
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2251
2239
|
if (data.sourceServer != null) {
|
|
2252
|
-
contents.sourceServer =
|
|
2240
|
+
contents.sourceServer = de_SourceServer(data.sourceServer, context);
|
|
2253
2241
|
}
|
|
2254
2242
|
return contents;
|
|
2255
2243
|
};
|
|
2256
|
-
const
|
|
2244
|
+
const de_StopReplicationCommandError = async (output, context) => {
|
|
2257
2245
|
const parsedOutput = {
|
|
2258
2246
|
...output,
|
|
2259
2247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2262,19 +2250,19 @@ const deserializeAws_restJson1StopReplicationCommandError = async (output, conte
|
|
|
2262
2250
|
switch (errorCode) {
|
|
2263
2251
|
case "ConflictException":
|
|
2264
2252
|
case "com.amazonaws.drs#ConflictException":
|
|
2265
|
-
throw await
|
|
2253
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2266
2254
|
case "InternalServerException":
|
|
2267
2255
|
case "com.amazonaws.drs#InternalServerException":
|
|
2268
|
-
throw await
|
|
2256
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2269
2257
|
case "ResourceNotFoundException":
|
|
2270
2258
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2271
|
-
throw await
|
|
2259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2272
2260
|
case "ThrottlingException":
|
|
2273
2261
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2274
|
-
throw await
|
|
2262
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2275
2263
|
case "UninitializedAccountException":
|
|
2276
2264
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2277
|
-
throw await
|
|
2265
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2278
2266
|
default:
|
|
2279
2267
|
const parsedBody = parsedOutput.body;
|
|
2280
2268
|
throwDefaultError({
|
|
@@ -2285,9 +2273,9 @@ const deserializeAws_restJson1StopReplicationCommandError = async (output, conte
|
|
|
2285
2273
|
});
|
|
2286
2274
|
}
|
|
2287
2275
|
};
|
|
2288
|
-
export const
|
|
2276
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2289
2277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2290
|
-
return
|
|
2278
|
+
return de_TagResourceCommandError(output, context);
|
|
2291
2279
|
}
|
|
2292
2280
|
const contents = map({
|
|
2293
2281
|
$metadata: deserializeMetadata(output),
|
|
@@ -2295,7 +2283,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2295
2283
|
await collectBody(output.body, context);
|
|
2296
2284
|
return contents;
|
|
2297
2285
|
};
|
|
2298
|
-
const
|
|
2286
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2299
2287
|
const parsedOutput = {
|
|
2300
2288
|
...output,
|
|
2301
2289
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2304,19 +2292,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2304
2292
|
switch (errorCode) {
|
|
2305
2293
|
case "AccessDeniedException":
|
|
2306
2294
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2307
|
-
throw await
|
|
2295
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2308
2296
|
case "InternalServerException":
|
|
2309
2297
|
case "com.amazonaws.drs#InternalServerException":
|
|
2310
|
-
throw await
|
|
2298
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2311
2299
|
case "ResourceNotFoundException":
|
|
2312
2300
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2313
|
-
throw await
|
|
2301
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2314
2302
|
case "ThrottlingException":
|
|
2315
2303
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2316
|
-
throw await
|
|
2304
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2317
2305
|
case "ValidationException":
|
|
2318
2306
|
case "com.amazonaws.drs#ValidationException":
|
|
2319
|
-
throw await
|
|
2307
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2320
2308
|
default:
|
|
2321
2309
|
const parsedBody = parsedOutput.body;
|
|
2322
2310
|
throwDefaultError({
|
|
@@ -2327,20 +2315,20 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2327
2315
|
});
|
|
2328
2316
|
}
|
|
2329
2317
|
};
|
|
2330
|
-
export const
|
|
2318
|
+
export const de_TerminateRecoveryInstancesCommand = async (output, context) => {
|
|
2331
2319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2332
|
-
return
|
|
2320
|
+
return de_TerminateRecoveryInstancesCommandError(output, context);
|
|
2333
2321
|
}
|
|
2334
2322
|
const contents = map({
|
|
2335
2323
|
$metadata: deserializeMetadata(output),
|
|
2336
2324
|
});
|
|
2337
2325
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2338
2326
|
if (data.job != null) {
|
|
2339
|
-
contents.job =
|
|
2327
|
+
contents.job = de_Job(data.job, context);
|
|
2340
2328
|
}
|
|
2341
2329
|
return contents;
|
|
2342
2330
|
};
|
|
2343
|
-
const
|
|
2331
|
+
const de_TerminateRecoveryInstancesCommandError = async (output, context) => {
|
|
2344
2332
|
const parsedOutput = {
|
|
2345
2333
|
...output,
|
|
2346
2334
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2349,19 +2337,19 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (ou
|
|
|
2349
2337
|
switch (errorCode) {
|
|
2350
2338
|
case "ConflictException":
|
|
2351
2339
|
case "com.amazonaws.drs#ConflictException":
|
|
2352
|
-
throw await
|
|
2340
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2353
2341
|
case "InternalServerException":
|
|
2354
2342
|
case "com.amazonaws.drs#InternalServerException":
|
|
2355
|
-
throw await
|
|
2343
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2356
2344
|
case "ServiceQuotaExceededException":
|
|
2357
2345
|
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2358
|
-
throw await
|
|
2346
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2359
2347
|
case "ThrottlingException":
|
|
2360
2348
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2361
|
-
throw await
|
|
2349
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2362
2350
|
case "UninitializedAccountException":
|
|
2363
2351
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2364
|
-
throw await
|
|
2352
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2365
2353
|
default:
|
|
2366
2354
|
const parsedBody = parsedOutput.body;
|
|
2367
2355
|
throwDefaultError({
|
|
@@ -2372,9 +2360,9 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (ou
|
|
|
2372
2360
|
});
|
|
2373
2361
|
}
|
|
2374
2362
|
};
|
|
2375
|
-
export const
|
|
2363
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2376
2364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2377
|
-
return
|
|
2365
|
+
return de_UntagResourceCommandError(output, context);
|
|
2378
2366
|
}
|
|
2379
2367
|
const contents = map({
|
|
2380
2368
|
$metadata: deserializeMetadata(output),
|
|
@@ -2382,7 +2370,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2382
2370
|
await collectBody(output.body, context);
|
|
2383
2371
|
return contents;
|
|
2384
2372
|
};
|
|
2385
|
-
const
|
|
2373
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2386
2374
|
const parsedOutput = {
|
|
2387
2375
|
...output,
|
|
2388
2376
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2391,19 +2379,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2391
2379
|
switch (errorCode) {
|
|
2392
2380
|
case "AccessDeniedException":
|
|
2393
2381
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2394
|
-
throw await
|
|
2382
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2395
2383
|
case "InternalServerException":
|
|
2396
2384
|
case "com.amazonaws.drs#InternalServerException":
|
|
2397
|
-
throw await
|
|
2385
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2398
2386
|
case "ResourceNotFoundException":
|
|
2399
2387
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2400
|
-
throw await
|
|
2388
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2401
2389
|
case "ThrottlingException":
|
|
2402
2390
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2403
|
-
throw await
|
|
2391
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2404
2392
|
case "ValidationException":
|
|
2405
2393
|
case "com.amazonaws.drs#ValidationException":
|
|
2406
|
-
throw await
|
|
2394
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2407
2395
|
default:
|
|
2408
2396
|
const parsedBody = parsedOutput.body;
|
|
2409
2397
|
throwDefaultError({
|
|
@@ -2414,9 +2402,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2414
2402
|
});
|
|
2415
2403
|
}
|
|
2416
2404
|
};
|
|
2417
|
-
export const
|
|
2405
|
+
export const de_UpdateFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
2418
2406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2419
|
-
return
|
|
2407
|
+
return de_UpdateFailbackReplicationConfigurationCommandError(output, context);
|
|
2420
2408
|
}
|
|
2421
2409
|
const contents = map({
|
|
2422
2410
|
$metadata: deserializeMetadata(output),
|
|
@@ -2424,7 +2412,7 @@ export const deserializeAws_restJson1UpdateFailbackReplicationConfigurationComma
|
|
|
2424
2412
|
await collectBody(output.body, context);
|
|
2425
2413
|
return contents;
|
|
2426
2414
|
};
|
|
2427
|
-
const
|
|
2415
|
+
const de_UpdateFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
2428
2416
|
const parsedOutput = {
|
|
2429
2417
|
...output,
|
|
2430
2418
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2433,19 +2421,19 @@ const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError
|
|
|
2433
2421
|
switch (errorCode) {
|
|
2434
2422
|
case "AccessDeniedException":
|
|
2435
2423
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2436
|
-
throw await
|
|
2424
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2437
2425
|
case "InternalServerException":
|
|
2438
2426
|
case "com.amazonaws.drs#InternalServerException":
|
|
2439
|
-
throw await
|
|
2427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2440
2428
|
case "ResourceNotFoundException":
|
|
2441
2429
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2442
|
-
throw await
|
|
2430
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2443
2431
|
case "ThrottlingException":
|
|
2444
2432
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2445
|
-
throw await
|
|
2433
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2446
2434
|
case "UninitializedAccountException":
|
|
2447
2435
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2448
|
-
throw await
|
|
2436
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2449
2437
|
default:
|
|
2450
2438
|
const parsedBody = parsedOutput.body;
|
|
2451
2439
|
throwDefaultError({
|
|
@@ -2456,9 +2444,9 @@ const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError
|
|
|
2456
2444
|
});
|
|
2457
2445
|
}
|
|
2458
2446
|
};
|
|
2459
|
-
export const
|
|
2447
|
+
export const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
2460
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2461
|
-
return
|
|
2449
|
+
return de_UpdateLaunchConfigurationCommandError(output, context);
|
|
2462
2450
|
}
|
|
2463
2451
|
const contents = map({
|
|
2464
2452
|
$metadata: deserializeMetadata(output),
|
|
@@ -2477,7 +2465,7 @@ export const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (o
|
|
|
2477
2465
|
contents.launchDisposition = __expectString(data.launchDisposition);
|
|
2478
2466
|
}
|
|
2479
2467
|
if (data.licensing != null) {
|
|
2480
|
-
contents.licensing =
|
|
2468
|
+
contents.licensing = de_Licensing(data.licensing, context);
|
|
2481
2469
|
}
|
|
2482
2470
|
if (data.name != null) {
|
|
2483
2471
|
contents.name = __expectString(data.name);
|
|
@@ -2490,7 +2478,7 @@ export const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (o
|
|
|
2490
2478
|
}
|
|
2491
2479
|
return contents;
|
|
2492
2480
|
};
|
|
2493
|
-
const
|
|
2481
|
+
const de_UpdateLaunchConfigurationCommandError = async (output, context) => {
|
|
2494
2482
|
const parsedOutput = {
|
|
2495
2483
|
...output,
|
|
2496
2484
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2499,22 +2487,22 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2499
2487
|
switch (errorCode) {
|
|
2500
2488
|
case "ConflictException":
|
|
2501
2489
|
case "com.amazonaws.drs#ConflictException":
|
|
2502
|
-
throw await
|
|
2490
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2503
2491
|
case "InternalServerException":
|
|
2504
2492
|
case "com.amazonaws.drs#InternalServerException":
|
|
2505
|
-
throw await
|
|
2493
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2506
2494
|
case "ResourceNotFoundException":
|
|
2507
2495
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2508
|
-
throw await
|
|
2496
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2509
2497
|
case "ThrottlingException":
|
|
2510
2498
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2511
|
-
throw await
|
|
2499
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2512
2500
|
case "UninitializedAccountException":
|
|
2513
2501
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2514
|
-
throw await
|
|
2502
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2515
2503
|
case "ValidationException":
|
|
2516
2504
|
case "com.amazonaws.drs#ValidationException":
|
|
2517
|
-
throw await
|
|
2505
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2518
2506
|
default:
|
|
2519
2507
|
const parsedBody = parsedOutput.body;
|
|
2520
2508
|
throwDefaultError({
|
|
@@ -2525,9 +2513,9 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2525
2513
|
});
|
|
2526
2514
|
}
|
|
2527
2515
|
};
|
|
2528
|
-
export const
|
|
2516
|
+
export const de_UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
2529
2517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2530
|
-
return
|
|
2518
|
+
return de_UpdateReplicationConfigurationCommandError(output, context);
|
|
2531
2519
|
}
|
|
2532
2520
|
const contents = map({
|
|
2533
2521
|
$metadata: deserializeMetadata(output),
|
|
@@ -2561,16 +2549,16 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationCommand = asy
|
|
|
2561
2549
|
contents.name = __expectString(data.name);
|
|
2562
2550
|
}
|
|
2563
2551
|
if (data.pitPolicy != null) {
|
|
2564
|
-
contents.pitPolicy =
|
|
2552
|
+
contents.pitPolicy = de_PITPolicy(data.pitPolicy, context);
|
|
2565
2553
|
}
|
|
2566
2554
|
if (data.replicatedDisks != null) {
|
|
2567
|
-
contents.replicatedDisks =
|
|
2555
|
+
contents.replicatedDisks = de_ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
2568
2556
|
}
|
|
2569
2557
|
if (data.replicationServerInstanceType != null) {
|
|
2570
2558
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
2571
2559
|
}
|
|
2572
2560
|
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
2573
|
-
contents.replicationServersSecurityGroupsIDs =
|
|
2561
|
+
contents.replicationServersSecurityGroupsIDs = de_ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2574
2562
|
}
|
|
2575
2563
|
if (data.sourceServerID != null) {
|
|
2576
2564
|
contents.sourceServerID = __expectString(data.sourceServerID);
|
|
@@ -2579,14 +2567,14 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationCommand = asy
|
|
|
2579
2567
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
2580
2568
|
}
|
|
2581
2569
|
if (data.stagingAreaTags != null) {
|
|
2582
|
-
contents.stagingAreaTags =
|
|
2570
|
+
contents.stagingAreaTags = de_TagsMap(data.stagingAreaTags, context);
|
|
2583
2571
|
}
|
|
2584
2572
|
if (data.useDedicatedReplicationServer != null) {
|
|
2585
2573
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
2586
2574
|
}
|
|
2587
2575
|
return contents;
|
|
2588
2576
|
};
|
|
2589
|
-
const
|
|
2577
|
+
const de_UpdateReplicationConfigurationCommandError = async (output, context) => {
|
|
2590
2578
|
const parsedOutput = {
|
|
2591
2579
|
...output,
|
|
2592
2580
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2595,25 +2583,25 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2595
2583
|
switch (errorCode) {
|
|
2596
2584
|
case "AccessDeniedException":
|
|
2597
2585
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2598
|
-
throw await
|
|
2586
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2599
2587
|
case "ConflictException":
|
|
2600
2588
|
case "com.amazonaws.drs#ConflictException":
|
|
2601
|
-
throw await
|
|
2589
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2602
2590
|
case "InternalServerException":
|
|
2603
2591
|
case "com.amazonaws.drs#InternalServerException":
|
|
2604
|
-
throw await
|
|
2592
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2605
2593
|
case "ResourceNotFoundException":
|
|
2606
2594
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2607
|
-
throw await
|
|
2595
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2608
2596
|
case "ThrottlingException":
|
|
2609
2597
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2610
|
-
throw await
|
|
2598
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2611
2599
|
case "UninitializedAccountException":
|
|
2612
2600
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2613
|
-
throw await
|
|
2601
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2614
2602
|
case "ValidationException":
|
|
2615
2603
|
case "com.amazonaws.drs#ValidationException":
|
|
2616
|
-
throw await
|
|
2604
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2617
2605
|
default:
|
|
2618
2606
|
const parsedBody = parsedOutput.body;
|
|
2619
2607
|
throwDefaultError({
|
|
@@ -2624,9 +2612,9 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2624
2612
|
});
|
|
2625
2613
|
}
|
|
2626
2614
|
};
|
|
2627
|
-
export const
|
|
2615
|
+
export const de_UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
2628
2616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2629
|
-
return
|
|
2617
|
+
return de_UpdateReplicationConfigurationTemplateCommandError(output, context);
|
|
2630
2618
|
}
|
|
2631
2619
|
const contents = map({
|
|
2632
2620
|
$metadata: deserializeMetadata(output),
|
|
@@ -2660,7 +2648,7 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationTemplateComma
|
|
|
2660
2648
|
contents.ebsEncryptionKeyArn = __expectString(data.ebsEncryptionKeyArn);
|
|
2661
2649
|
}
|
|
2662
2650
|
if (data.pitPolicy != null) {
|
|
2663
|
-
contents.pitPolicy =
|
|
2651
|
+
contents.pitPolicy = de_PITPolicy(data.pitPolicy, context);
|
|
2664
2652
|
}
|
|
2665
2653
|
if (data.replicationConfigurationTemplateID != null) {
|
|
2666
2654
|
contents.replicationConfigurationTemplateID = __expectString(data.replicationConfigurationTemplateID);
|
|
@@ -2669,23 +2657,23 @@ export const deserializeAws_restJson1UpdateReplicationConfigurationTemplateComma
|
|
|
2669
2657
|
contents.replicationServerInstanceType = __expectString(data.replicationServerInstanceType);
|
|
2670
2658
|
}
|
|
2671
2659
|
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
2672
|
-
contents.replicationServersSecurityGroupsIDs =
|
|
2660
|
+
contents.replicationServersSecurityGroupsIDs = de_ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2673
2661
|
}
|
|
2674
2662
|
if (data.stagingAreaSubnetId != null) {
|
|
2675
2663
|
contents.stagingAreaSubnetId = __expectString(data.stagingAreaSubnetId);
|
|
2676
2664
|
}
|
|
2677
2665
|
if (data.stagingAreaTags != null) {
|
|
2678
|
-
contents.stagingAreaTags =
|
|
2666
|
+
contents.stagingAreaTags = de_TagsMap(data.stagingAreaTags, context);
|
|
2679
2667
|
}
|
|
2680
2668
|
if (data.tags != null) {
|
|
2681
|
-
contents.tags =
|
|
2669
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
2682
2670
|
}
|
|
2683
2671
|
if (data.useDedicatedReplicationServer != null) {
|
|
2684
2672
|
contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
|
|
2685
2673
|
}
|
|
2686
2674
|
return contents;
|
|
2687
2675
|
};
|
|
2688
|
-
const
|
|
2676
|
+
const de_UpdateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
2689
2677
|
const parsedOutput = {
|
|
2690
2678
|
...output,
|
|
2691
2679
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2694,22 +2682,22 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2694
2682
|
switch (errorCode) {
|
|
2695
2683
|
case "AccessDeniedException":
|
|
2696
2684
|
case "com.amazonaws.drs#AccessDeniedException":
|
|
2697
|
-
throw await
|
|
2685
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2698
2686
|
case "InternalServerException":
|
|
2699
2687
|
case "com.amazonaws.drs#InternalServerException":
|
|
2700
|
-
throw await
|
|
2688
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2701
2689
|
case "ResourceNotFoundException":
|
|
2702
2690
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2703
|
-
throw await
|
|
2691
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2704
2692
|
case "ThrottlingException":
|
|
2705
2693
|
case "com.amazonaws.drs#ThrottlingException":
|
|
2706
|
-
throw await
|
|
2694
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2707
2695
|
case "UninitializedAccountException":
|
|
2708
2696
|
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2709
|
-
throw await
|
|
2697
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2710
2698
|
case "ValidationException":
|
|
2711
2699
|
case "com.amazonaws.drs#ValidationException":
|
|
2712
|
-
throw await
|
|
2700
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2713
2701
|
default:
|
|
2714
2702
|
const parsedBody = parsedOutput.body;
|
|
2715
2703
|
throwDefaultError({
|
|
@@ -2721,7 +2709,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2721
2709
|
}
|
|
2722
2710
|
};
|
|
2723
2711
|
const map = __map;
|
|
2724
|
-
const
|
|
2712
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2725
2713
|
const contents = map({});
|
|
2726
2714
|
const data = parsedOutput.body;
|
|
2727
2715
|
if (data.code != null) {
|
|
@@ -2736,7 +2724,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2736
2724
|
});
|
|
2737
2725
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2738
2726
|
};
|
|
2739
|
-
const
|
|
2727
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2740
2728
|
const contents = map({});
|
|
2741
2729
|
const data = parsedOutput.body;
|
|
2742
2730
|
if (data.code != null) {
|
|
@@ -2757,7 +2745,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2757
2745
|
});
|
|
2758
2746
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2759
2747
|
};
|
|
2760
|
-
const
|
|
2748
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2761
2749
|
const contents = map({
|
|
2762
2750
|
retryAfterSeconds: [
|
|
2763
2751
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2774,7 +2762,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2774
2762
|
});
|
|
2775
2763
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2776
2764
|
};
|
|
2777
|
-
const
|
|
2765
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2778
2766
|
const contents = map({});
|
|
2779
2767
|
const data = parsedOutput.body;
|
|
2780
2768
|
if (data.code != null) {
|
|
@@ -2795,7 +2783,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2795
2783
|
});
|
|
2796
2784
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2797
2785
|
};
|
|
2798
|
-
const
|
|
2786
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2799
2787
|
const contents = map({});
|
|
2800
2788
|
const data = parsedOutput.body;
|
|
2801
2789
|
if (data.code != null) {
|
|
@@ -2822,7 +2810,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2822
2810
|
});
|
|
2823
2811
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2824
2812
|
};
|
|
2825
|
-
const
|
|
2813
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2826
2814
|
const contents = map({
|
|
2827
2815
|
retryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
2828
2816
|
});
|
|
@@ -2842,7 +2830,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2842
2830
|
});
|
|
2843
2831
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2844
2832
|
};
|
|
2845
|
-
const
|
|
2833
|
+
const de_UninitializedAccountExceptionRes = async (parsedOutput, context) => {
|
|
2846
2834
|
const contents = map({});
|
|
2847
2835
|
const data = parsedOutput.body;
|
|
2848
2836
|
if (data.code != null) {
|
|
@@ -2857,14 +2845,14 @@ const deserializeAws_restJson1UninitializedAccountExceptionResponse = async (par
|
|
|
2857
2845
|
});
|
|
2858
2846
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2859
2847
|
};
|
|
2860
|
-
const
|
|
2848
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2861
2849
|
const contents = map({});
|
|
2862
2850
|
const data = parsedOutput.body;
|
|
2863
2851
|
if (data.code != null) {
|
|
2864
2852
|
contents.code = __expectString(data.code);
|
|
2865
2853
|
}
|
|
2866
2854
|
if (data.fieldList != null) {
|
|
2867
|
-
contents.fieldList =
|
|
2855
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
2868
2856
|
}
|
|
2869
2857
|
if (data.message != null) {
|
|
2870
2858
|
contents.message = __expectString(data.message);
|
|
@@ -2878,76 +2866,70 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2878
2866
|
});
|
|
2879
2867
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2880
2868
|
};
|
|
2881
|
-
const
|
|
2869
|
+
const se_AccountIDs = (input, context) => {
|
|
2882
2870
|
return input
|
|
2883
2871
|
.filter((e) => e != null)
|
|
2884
2872
|
.map((entry) => {
|
|
2885
2873
|
return entry;
|
|
2886
2874
|
});
|
|
2887
2875
|
};
|
|
2888
|
-
const
|
|
2876
|
+
const se_DescribeJobsRequestFilters = (input, context) => {
|
|
2889
2877
|
return {
|
|
2890
2878
|
...(input.fromDate != null && { fromDate: input.fromDate }),
|
|
2891
|
-
...(input.jobIDs != null && {
|
|
2892
|
-
jobIDs: serializeAws_restJson1DescribeJobsRequestFiltersJobIDs(input.jobIDs, context),
|
|
2893
|
-
}),
|
|
2879
|
+
...(input.jobIDs != null && { jobIDs: se_DescribeJobsRequestFiltersJobIDs(input.jobIDs, context) }),
|
|
2894
2880
|
...(input.toDate != null && { toDate: input.toDate }),
|
|
2895
2881
|
};
|
|
2896
2882
|
};
|
|
2897
|
-
const
|
|
2883
|
+
const se_DescribeJobsRequestFiltersJobIDs = (input, context) => {
|
|
2898
2884
|
return input
|
|
2899
2885
|
.filter((e) => e != null)
|
|
2900
2886
|
.map((entry) => {
|
|
2901
2887
|
return entry;
|
|
2902
2888
|
});
|
|
2903
2889
|
};
|
|
2904
|
-
const
|
|
2890
|
+
const se_DescribeRecoveryInstancesRequestFilters = (input, context) => {
|
|
2905
2891
|
return {
|
|
2906
2892
|
...(input.recoveryInstanceIDs != null && {
|
|
2907
|
-
recoveryInstanceIDs:
|
|
2908
|
-
}),
|
|
2909
|
-
...(input.sourceServerIDs != null && {
|
|
2910
|
-
sourceServerIDs: serializeAws_restJson1SourceServerIDs(input.sourceServerIDs, context),
|
|
2893
|
+
recoveryInstanceIDs: se_RecoveryInstanceIDs(input.recoveryInstanceIDs, context),
|
|
2911
2894
|
}),
|
|
2895
|
+
...(input.sourceServerIDs != null && { sourceServerIDs: se_SourceServerIDs(input.sourceServerIDs, context) }),
|
|
2912
2896
|
};
|
|
2913
2897
|
};
|
|
2914
|
-
const
|
|
2898
|
+
const se_DescribeRecoverySnapshotsRequestFilters = (input, context) => {
|
|
2915
2899
|
return {
|
|
2916
2900
|
...(input.fromDateTime != null && { fromDateTime: input.fromDateTime }),
|
|
2917
2901
|
...(input.toDateTime != null && { toDateTime: input.toDateTime }),
|
|
2918
2902
|
};
|
|
2919
2903
|
};
|
|
2920
|
-
const
|
|
2904
|
+
const se_DescribeSourceServersRequestFilters = (input, context) => {
|
|
2921
2905
|
return {
|
|
2922
2906
|
...(input.hardwareId != null && { hardwareId: input.hardwareId }),
|
|
2923
2907
|
...(input.sourceServerIDs != null && {
|
|
2924
|
-
sourceServerIDs:
|
|
2925
|
-
}),
|
|
2926
|
-
...(input.stagingAccountIDs != null && {
|
|
2927
|
-
stagingAccountIDs: serializeAws_restJson1AccountIDs(input.stagingAccountIDs, context),
|
|
2908
|
+
sourceServerIDs: se_DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
|
|
2928
2909
|
}),
|
|
2910
|
+
...(input.stagingAccountIDs != null && { stagingAccountIDs: se_AccountIDs(input.stagingAccountIDs, context) }),
|
|
2929
2911
|
};
|
|
2930
2912
|
};
|
|
2931
|
-
const
|
|
2913
|
+
const se_DescribeSourceServersRequestFiltersIDs = (input, context) => {
|
|
2932
2914
|
return input
|
|
2933
2915
|
.filter((e) => e != null)
|
|
2934
2916
|
.map((entry) => {
|
|
2935
2917
|
return entry;
|
|
2936
2918
|
});
|
|
2937
2919
|
};
|
|
2938
|
-
const
|
|
2920
|
+
const se_Licensing = (input, context) => {
|
|
2939
2921
|
return {
|
|
2940
2922
|
...(input.osByol != null && { osByol: input.osByol }),
|
|
2941
2923
|
};
|
|
2942
2924
|
};
|
|
2943
|
-
const
|
|
2925
|
+
const se_PITPolicy = (input, context) => {
|
|
2944
2926
|
return input
|
|
2945
2927
|
.filter((e) => e != null)
|
|
2946
2928
|
.map((entry) => {
|
|
2947
|
-
return
|
|
2929
|
+
return se_PITPolicyRule(entry, context);
|
|
2948
2930
|
});
|
|
2949
2931
|
};
|
|
2950
|
-
const
|
|
2932
|
+
const se_PITPolicyRule = (input, context) => {
|
|
2951
2933
|
return {
|
|
2952
2934
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
2953
2935
|
...(input.interval != null && { interval: input.interval }),
|
|
@@ -2956,21 +2938,21 @@ const serializeAws_restJson1PITPolicyRule = (input, context) => {
|
|
|
2956
2938
|
...(input.units != null && { units: input.units }),
|
|
2957
2939
|
};
|
|
2958
2940
|
};
|
|
2959
|
-
const
|
|
2941
|
+
const se_RecoveryInstanceIDs = (input, context) => {
|
|
2960
2942
|
return input
|
|
2961
2943
|
.filter((e) => e != null)
|
|
2962
2944
|
.map((entry) => {
|
|
2963
2945
|
return entry;
|
|
2964
2946
|
});
|
|
2965
2947
|
};
|
|
2966
|
-
const
|
|
2948
|
+
const se_RecoveryInstancesForTerminationRequest = (input, context) => {
|
|
2967
2949
|
return input
|
|
2968
2950
|
.filter((e) => e != null)
|
|
2969
2951
|
.map((entry) => {
|
|
2970
2952
|
return entry;
|
|
2971
2953
|
});
|
|
2972
2954
|
};
|
|
2973
|
-
const
|
|
2955
|
+
const se_ReplicationConfigurationReplicatedDisk = (input, context) => {
|
|
2974
2956
|
return {
|
|
2975
2957
|
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
2976
2958
|
...(input.iops != null && { iops: input.iops }),
|
|
@@ -2980,55 +2962,55 @@ const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, con
|
|
|
2980
2962
|
...(input.throughput != null && { throughput: input.throughput }),
|
|
2981
2963
|
};
|
|
2982
2964
|
};
|
|
2983
|
-
const
|
|
2965
|
+
const se_ReplicationConfigurationReplicatedDisks = (input, context) => {
|
|
2984
2966
|
return input
|
|
2985
2967
|
.filter((e) => e != null)
|
|
2986
2968
|
.map((entry) => {
|
|
2987
|
-
return
|
|
2969
|
+
return se_ReplicationConfigurationReplicatedDisk(entry, context);
|
|
2988
2970
|
});
|
|
2989
2971
|
};
|
|
2990
|
-
const
|
|
2972
|
+
const se_ReplicationConfigurationTemplateIDs = (input, context) => {
|
|
2991
2973
|
return input
|
|
2992
2974
|
.filter((e) => e != null)
|
|
2993
2975
|
.map((entry) => {
|
|
2994
2976
|
return entry;
|
|
2995
2977
|
});
|
|
2996
2978
|
};
|
|
2997
|
-
const
|
|
2979
|
+
const se_ReplicationServersSecurityGroupsIDs = (input, context) => {
|
|
2998
2980
|
return input
|
|
2999
2981
|
.filter((e) => e != null)
|
|
3000
2982
|
.map((entry) => {
|
|
3001
2983
|
return entry;
|
|
3002
2984
|
});
|
|
3003
2985
|
};
|
|
3004
|
-
const
|
|
2986
|
+
const se_SourceServerIDs = (input, context) => {
|
|
3005
2987
|
return input
|
|
3006
2988
|
.filter((e) => e != null)
|
|
3007
2989
|
.map((entry) => {
|
|
3008
2990
|
return entry;
|
|
3009
2991
|
});
|
|
3010
2992
|
};
|
|
3011
|
-
const
|
|
2993
|
+
const se_StartFailbackRequestRecoveryInstanceIDs = (input, context) => {
|
|
3012
2994
|
return input
|
|
3013
2995
|
.filter((e) => e != null)
|
|
3014
2996
|
.map((entry) => {
|
|
3015
2997
|
return entry;
|
|
3016
2998
|
});
|
|
3017
2999
|
};
|
|
3018
|
-
const
|
|
3000
|
+
const se_StartRecoveryRequestSourceServer = (input, context) => {
|
|
3019
3001
|
return {
|
|
3020
3002
|
...(input.recoverySnapshotID != null && { recoverySnapshotID: input.recoverySnapshotID }),
|
|
3021
3003
|
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
3022
3004
|
};
|
|
3023
3005
|
};
|
|
3024
|
-
const
|
|
3006
|
+
const se_StartRecoveryRequestSourceServers = (input, context) => {
|
|
3025
3007
|
return input
|
|
3026
3008
|
.filter((e) => e != null)
|
|
3027
3009
|
.map((entry) => {
|
|
3028
|
-
return
|
|
3010
|
+
return se_StartRecoveryRequestSourceServer(entry, context);
|
|
3029
3011
|
});
|
|
3030
3012
|
};
|
|
3031
|
-
const
|
|
3013
|
+
const se_TagsMap = (input, context) => {
|
|
3032
3014
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3033
3015
|
if (value === null) {
|
|
3034
3016
|
return acc;
|
|
@@ -3037,23 +3019,23 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
3037
3019
|
return acc;
|
|
3038
3020
|
}, {});
|
|
3039
3021
|
};
|
|
3040
|
-
const
|
|
3022
|
+
const de_Account = (output, context) => {
|
|
3041
3023
|
return {
|
|
3042
3024
|
accountID: __expectString(output.accountID),
|
|
3043
3025
|
};
|
|
3044
3026
|
};
|
|
3045
|
-
const
|
|
3027
|
+
const de_Accounts = (output, context) => {
|
|
3046
3028
|
const retVal = (output || [])
|
|
3047
3029
|
.filter((e) => e != null)
|
|
3048
3030
|
.map((entry) => {
|
|
3049
3031
|
if (entry === null) {
|
|
3050
3032
|
return null;
|
|
3051
3033
|
}
|
|
3052
|
-
return
|
|
3034
|
+
return de_Account(entry, context);
|
|
3053
3035
|
});
|
|
3054
3036
|
return retVal;
|
|
3055
3037
|
};
|
|
3056
|
-
const
|
|
3038
|
+
const de_ConversionMap = (output, context) => {
|
|
3057
3039
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3058
3040
|
if (value === null) {
|
|
3059
3041
|
return acc;
|
|
@@ -3062,60 +3044,56 @@ const deserializeAws_restJson1ConversionMap = (output, context) => {
|
|
|
3062
3044
|
return acc;
|
|
3063
3045
|
}, {});
|
|
3064
3046
|
};
|
|
3065
|
-
const
|
|
3047
|
+
const de_ConversionProperties = (output, context) => {
|
|
3066
3048
|
return {
|
|
3067
3049
|
dataTimestamp: __expectString(output.dataTimestamp),
|
|
3068
3050
|
forceUefi: __expectBoolean(output.forceUefi),
|
|
3069
3051
|
rootVolumeName: __expectString(output.rootVolumeName),
|
|
3070
3052
|
volumeToConversionMap: output.volumeToConversionMap != null
|
|
3071
|
-
?
|
|
3072
|
-
: undefined,
|
|
3073
|
-
volumeToVolumeSize: output.volumeToVolumeSize != null
|
|
3074
|
-
? deserializeAws_restJson1VolumeToSizeMap(output.volumeToVolumeSize, context)
|
|
3053
|
+
? de_VolumeToConversionMap(output.volumeToConversionMap, context)
|
|
3075
3054
|
: undefined,
|
|
3055
|
+
volumeToVolumeSize: output.volumeToVolumeSize != null ? de_VolumeToSizeMap(output.volumeToVolumeSize, context) : undefined,
|
|
3076
3056
|
};
|
|
3077
3057
|
};
|
|
3078
|
-
const
|
|
3058
|
+
const de_CPU = (output, context) => {
|
|
3079
3059
|
return {
|
|
3080
3060
|
cores: __expectLong(output.cores),
|
|
3081
3061
|
modelName: __expectString(output.modelName),
|
|
3082
3062
|
};
|
|
3083
3063
|
};
|
|
3084
|
-
const
|
|
3064
|
+
const de_Cpus = (output, context) => {
|
|
3085
3065
|
const retVal = (output || [])
|
|
3086
3066
|
.filter((e) => e != null)
|
|
3087
3067
|
.map((entry) => {
|
|
3088
3068
|
if (entry === null) {
|
|
3089
3069
|
return null;
|
|
3090
3070
|
}
|
|
3091
|
-
return
|
|
3071
|
+
return de_CPU(entry, context);
|
|
3092
3072
|
});
|
|
3093
3073
|
return retVal;
|
|
3094
3074
|
};
|
|
3095
|
-
const
|
|
3075
|
+
const de_DataReplicationError = (output, context) => {
|
|
3096
3076
|
return {
|
|
3097
3077
|
error: __expectString(output.error),
|
|
3098
3078
|
rawError: __expectString(output.rawError),
|
|
3099
3079
|
};
|
|
3100
3080
|
};
|
|
3101
|
-
const
|
|
3081
|
+
const de_DataReplicationInfo = (output, context) => {
|
|
3102
3082
|
return {
|
|
3103
|
-
dataReplicationError: output.dataReplicationError != null
|
|
3104
|
-
? deserializeAws_restJson1DataReplicationError(output.dataReplicationError, context)
|
|
3105
|
-
: undefined,
|
|
3083
|
+
dataReplicationError: output.dataReplicationError != null ? de_DataReplicationError(output.dataReplicationError, context) : undefined,
|
|
3106
3084
|
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3107
|
-
?
|
|
3085
|
+
? de_DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3108
3086
|
: undefined,
|
|
3109
3087
|
dataReplicationState: __expectString(output.dataReplicationState),
|
|
3110
3088
|
etaDateTime: __expectString(output.etaDateTime),
|
|
3111
3089
|
lagDuration: __expectString(output.lagDuration),
|
|
3112
3090
|
replicatedDisks: output.replicatedDisks != null
|
|
3113
|
-
?
|
|
3091
|
+
? de_DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3114
3092
|
: undefined,
|
|
3115
3093
|
stagingAvailabilityZone: __expectString(output.stagingAvailabilityZone),
|
|
3116
3094
|
};
|
|
3117
3095
|
};
|
|
3118
|
-
const
|
|
3096
|
+
const de_DataReplicationInfoReplicatedDisk = (output, context) => {
|
|
3119
3097
|
return {
|
|
3120
3098
|
backloggedStorageBytes: __expectLong(output.backloggedStorageBytes),
|
|
3121
3099
|
deviceName: __expectString(output.deviceName),
|
|
@@ -3124,70 +3102,70 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (output, conte
|
|
|
3124
3102
|
totalStorageBytes: __expectLong(output.totalStorageBytes),
|
|
3125
3103
|
};
|
|
3126
3104
|
};
|
|
3127
|
-
const
|
|
3105
|
+
const de_DataReplicationInfoReplicatedDisks = (output, context) => {
|
|
3128
3106
|
const retVal = (output || [])
|
|
3129
3107
|
.filter((e) => e != null)
|
|
3130
3108
|
.map((entry) => {
|
|
3131
3109
|
if (entry === null) {
|
|
3132
3110
|
return null;
|
|
3133
3111
|
}
|
|
3134
|
-
return
|
|
3112
|
+
return de_DataReplicationInfoReplicatedDisk(entry, context);
|
|
3135
3113
|
});
|
|
3136
3114
|
return retVal;
|
|
3137
3115
|
};
|
|
3138
|
-
const
|
|
3116
|
+
const de_DataReplicationInitiation = (output, context) => {
|
|
3139
3117
|
return {
|
|
3140
3118
|
nextAttemptDateTime: __expectString(output.nextAttemptDateTime),
|
|
3141
3119
|
startDateTime: __expectString(output.startDateTime),
|
|
3142
|
-
steps: output.steps != null ?
|
|
3120
|
+
steps: output.steps != null ? de_DataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
3143
3121
|
};
|
|
3144
3122
|
};
|
|
3145
|
-
const
|
|
3123
|
+
const de_DataReplicationInitiationStep = (output, context) => {
|
|
3146
3124
|
return {
|
|
3147
3125
|
name: __expectString(output.name),
|
|
3148
3126
|
status: __expectString(output.status),
|
|
3149
3127
|
};
|
|
3150
3128
|
};
|
|
3151
|
-
const
|
|
3129
|
+
const de_DataReplicationInitiationSteps = (output, context) => {
|
|
3152
3130
|
const retVal = (output || [])
|
|
3153
3131
|
.filter((e) => e != null)
|
|
3154
3132
|
.map((entry) => {
|
|
3155
3133
|
if (entry === null) {
|
|
3156
3134
|
return null;
|
|
3157
3135
|
}
|
|
3158
|
-
return
|
|
3136
|
+
return de_DataReplicationInitiationStep(entry, context);
|
|
3159
3137
|
});
|
|
3160
3138
|
return retVal;
|
|
3161
3139
|
};
|
|
3162
|
-
const
|
|
3140
|
+
const de_DescribeRecoveryInstancesItems = (output, context) => {
|
|
3163
3141
|
const retVal = (output || [])
|
|
3164
3142
|
.filter((e) => e != null)
|
|
3165
3143
|
.map((entry) => {
|
|
3166
3144
|
if (entry === null) {
|
|
3167
3145
|
return null;
|
|
3168
3146
|
}
|
|
3169
|
-
return
|
|
3147
|
+
return de_RecoveryInstance(entry, context);
|
|
3170
3148
|
});
|
|
3171
3149
|
return retVal;
|
|
3172
3150
|
};
|
|
3173
|
-
const
|
|
3151
|
+
const de_Disk = (output, context) => {
|
|
3174
3152
|
return {
|
|
3175
3153
|
bytes: __expectLong(output.bytes),
|
|
3176
3154
|
deviceName: __expectString(output.deviceName),
|
|
3177
3155
|
};
|
|
3178
3156
|
};
|
|
3179
|
-
const
|
|
3157
|
+
const de_Disks = (output, context) => {
|
|
3180
3158
|
const retVal = (output || [])
|
|
3181
3159
|
.filter((e) => e != null)
|
|
3182
3160
|
.map((entry) => {
|
|
3183
3161
|
if (entry === null) {
|
|
3184
3162
|
return null;
|
|
3185
3163
|
}
|
|
3186
|
-
return
|
|
3164
|
+
return de_Disk(entry, context);
|
|
3187
3165
|
});
|
|
3188
3166
|
return retVal;
|
|
3189
3167
|
};
|
|
3190
|
-
const
|
|
3168
|
+
const de_EbsSnapshotsList = (output, context) => {
|
|
3191
3169
|
const retVal = (output || [])
|
|
3192
3170
|
.filter((e) => e != null)
|
|
3193
3171
|
.map((entry) => {
|
|
@@ -3198,7 +3176,7 @@ const deserializeAws_restJson1EbsSnapshotsList = (output, context) => {
|
|
|
3198
3176
|
});
|
|
3199
3177
|
return retVal;
|
|
3200
3178
|
};
|
|
3201
|
-
const
|
|
3179
|
+
const de_IdentificationHints = (output, context) => {
|
|
3202
3180
|
return {
|
|
3203
3181
|
awsInstanceID: __expectString(output.awsInstanceID),
|
|
3204
3182
|
fqdn: __expectString(output.fqdn),
|
|
@@ -3206,7 +3184,7 @@ const deserializeAws_restJson1IdentificationHints = (output, context) => {
|
|
|
3206
3184
|
vmWareUuid: __expectString(output.vmWareUuid),
|
|
3207
3185
|
};
|
|
3208
3186
|
};
|
|
3209
|
-
const
|
|
3187
|
+
const de_IPsList = (output, context) => {
|
|
3210
3188
|
const retVal = (output || [])
|
|
3211
3189
|
.filter((e) => e != null)
|
|
3212
3190
|
.map((entry) => {
|
|
@@ -3217,143 +3195,137 @@ const deserializeAws_restJson1IPsList = (output, context) => {
|
|
|
3217
3195
|
});
|
|
3218
3196
|
return retVal;
|
|
3219
3197
|
};
|
|
3220
|
-
const
|
|
3198
|
+
const de_Job = (output, context) => {
|
|
3221
3199
|
return {
|
|
3222
3200
|
arn: __expectString(output.arn),
|
|
3223
3201
|
creationDateTime: __expectString(output.creationDateTime),
|
|
3224
3202
|
endDateTime: __expectString(output.endDateTime),
|
|
3225
3203
|
initiatedBy: __expectString(output.initiatedBy),
|
|
3226
3204
|
jobID: __expectString(output.jobID),
|
|
3227
|
-
participatingServers: output.participatingServers != null
|
|
3228
|
-
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3229
|
-
: undefined,
|
|
3205
|
+
participatingServers: output.participatingServers != null ? de_ParticipatingServers(output.participatingServers, context) : undefined,
|
|
3230
3206
|
status: __expectString(output.status),
|
|
3231
|
-
tags: output.tags != null ?
|
|
3207
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
3232
3208
|
type: __expectString(output.type),
|
|
3233
3209
|
};
|
|
3234
3210
|
};
|
|
3235
|
-
const
|
|
3211
|
+
const de_JobLog = (output, context) => {
|
|
3236
3212
|
return {
|
|
3237
3213
|
event: __expectString(output.event),
|
|
3238
|
-
eventData: output.eventData != null ?
|
|
3214
|
+
eventData: output.eventData != null ? de_JobLogEventData(output.eventData, context) : undefined,
|
|
3239
3215
|
logDateTime: __expectString(output.logDateTime),
|
|
3240
3216
|
};
|
|
3241
3217
|
};
|
|
3242
|
-
const
|
|
3218
|
+
const de_JobLogEventData = (output, context) => {
|
|
3243
3219
|
return {
|
|
3244
|
-
conversionProperties: output.conversionProperties != null
|
|
3245
|
-
? deserializeAws_restJson1ConversionProperties(output.conversionProperties, context)
|
|
3246
|
-
: undefined,
|
|
3220
|
+
conversionProperties: output.conversionProperties != null ? de_ConversionProperties(output.conversionProperties, context) : undefined,
|
|
3247
3221
|
conversionServerID: __expectString(output.conversionServerID),
|
|
3248
3222
|
rawError: __expectString(output.rawError),
|
|
3249
3223
|
sourceServerID: __expectString(output.sourceServerID),
|
|
3250
3224
|
targetInstanceID: __expectString(output.targetInstanceID),
|
|
3251
3225
|
};
|
|
3252
3226
|
};
|
|
3253
|
-
const
|
|
3227
|
+
const de_JobLogs = (output, context) => {
|
|
3254
3228
|
const retVal = (output || [])
|
|
3255
3229
|
.filter((e) => e != null)
|
|
3256
3230
|
.map((entry) => {
|
|
3257
3231
|
if (entry === null) {
|
|
3258
3232
|
return null;
|
|
3259
3233
|
}
|
|
3260
|
-
return
|
|
3234
|
+
return de_JobLog(entry, context);
|
|
3261
3235
|
});
|
|
3262
3236
|
return retVal;
|
|
3263
3237
|
};
|
|
3264
|
-
const
|
|
3238
|
+
const de_JobsList = (output, context) => {
|
|
3265
3239
|
const retVal = (output || [])
|
|
3266
3240
|
.filter((e) => e != null)
|
|
3267
3241
|
.map((entry) => {
|
|
3268
3242
|
if (entry === null) {
|
|
3269
3243
|
return null;
|
|
3270
3244
|
}
|
|
3271
|
-
return
|
|
3245
|
+
return de_Job(entry, context);
|
|
3272
3246
|
});
|
|
3273
3247
|
return retVal;
|
|
3274
3248
|
};
|
|
3275
|
-
const
|
|
3249
|
+
const de_Licensing = (output, context) => {
|
|
3276
3250
|
return {
|
|
3277
3251
|
osByol: __expectBoolean(output.osByol),
|
|
3278
3252
|
};
|
|
3279
3253
|
};
|
|
3280
|
-
const
|
|
3254
|
+
const de_LifeCycle = (output, context) => {
|
|
3281
3255
|
return {
|
|
3282
3256
|
addedToServiceDateTime: __expectString(output.addedToServiceDateTime),
|
|
3283
3257
|
elapsedReplicationDuration: __expectString(output.elapsedReplicationDuration),
|
|
3284
3258
|
firstByteDateTime: __expectString(output.firstByteDateTime),
|
|
3285
|
-
lastLaunch: output.lastLaunch != null ?
|
|
3259
|
+
lastLaunch: output.lastLaunch != null ? de_LifeCycleLastLaunch(output.lastLaunch, context) : undefined,
|
|
3286
3260
|
lastSeenByServiceDateTime: __expectString(output.lastSeenByServiceDateTime),
|
|
3287
3261
|
};
|
|
3288
3262
|
};
|
|
3289
|
-
const
|
|
3263
|
+
const de_LifeCycleLastLaunch = (output, context) => {
|
|
3290
3264
|
return {
|
|
3291
|
-
initiated: output.initiated != null
|
|
3292
|
-
? deserializeAws_restJson1LifeCycleLastLaunchInitiated(output.initiated, context)
|
|
3293
|
-
: undefined,
|
|
3265
|
+
initiated: output.initiated != null ? de_LifeCycleLastLaunchInitiated(output.initiated, context) : undefined,
|
|
3294
3266
|
status: __expectString(output.status),
|
|
3295
3267
|
};
|
|
3296
3268
|
};
|
|
3297
|
-
const
|
|
3269
|
+
const de_LifeCycleLastLaunchInitiated = (output, context) => {
|
|
3298
3270
|
return {
|
|
3299
3271
|
apiCallDateTime: __expectString(output.apiCallDateTime),
|
|
3300
3272
|
jobID: __expectString(output.jobID),
|
|
3301
3273
|
type: __expectString(output.type),
|
|
3302
3274
|
};
|
|
3303
3275
|
};
|
|
3304
|
-
const
|
|
3276
|
+
const de_NetworkInterface = (output, context) => {
|
|
3305
3277
|
return {
|
|
3306
|
-
ips: output.ips != null ?
|
|
3278
|
+
ips: output.ips != null ? de_IPsList(output.ips, context) : undefined,
|
|
3307
3279
|
isPrimary: __expectBoolean(output.isPrimary),
|
|
3308
3280
|
macAddress: __expectString(output.macAddress),
|
|
3309
3281
|
};
|
|
3310
3282
|
};
|
|
3311
|
-
const
|
|
3283
|
+
const de_NetworkInterfaces = (output, context) => {
|
|
3312
3284
|
const retVal = (output || [])
|
|
3313
3285
|
.filter((e) => e != null)
|
|
3314
3286
|
.map((entry) => {
|
|
3315
3287
|
if (entry === null) {
|
|
3316
3288
|
return null;
|
|
3317
3289
|
}
|
|
3318
|
-
return
|
|
3290
|
+
return de_NetworkInterface(entry, context);
|
|
3319
3291
|
});
|
|
3320
3292
|
return retVal;
|
|
3321
3293
|
};
|
|
3322
|
-
const
|
|
3294
|
+
const de_OS = (output, context) => {
|
|
3323
3295
|
return {
|
|
3324
3296
|
fullString: __expectString(output.fullString),
|
|
3325
3297
|
};
|
|
3326
3298
|
};
|
|
3327
|
-
const
|
|
3299
|
+
const de_ParticipatingServer = (output, context) => {
|
|
3328
3300
|
return {
|
|
3329
3301
|
launchStatus: __expectString(output.launchStatus),
|
|
3330
3302
|
recoveryInstanceID: __expectString(output.recoveryInstanceID),
|
|
3331
3303
|
sourceServerID: __expectString(output.sourceServerID),
|
|
3332
3304
|
};
|
|
3333
3305
|
};
|
|
3334
|
-
const
|
|
3306
|
+
const de_ParticipatingServers = (output, context) => {
|
|
3335
3307
|
const retVal = (output || [])
|
|
3336
3308
|
.filter((e) => e != null)
|
|
3337
3309
|
.map((entry) => {
|
|
3338
3310
|
if (entry === null) {
|
|
3339
3311
|
return null;
|
|
3340
3312
|
}
|
|
3341
|
-
return
|
|
3313
|
+
return de_ParticipatingServer(entry, context);
|
|
3342
3314
|
});
|
|
3343
3315
|
return retVal;
|
|
3344
3316
|
};
|
|
3345
|
-
const
|
|
3317
|
+
const de_PITPolicy = (output, context) => {
|
|
3346
3318
|
const retVal = (output || [])
|
|
3347
3319
|
.filter((e) => e != null)
|
|
3348
3320
|
.map((entry) => {
|
|
3349
3321
|
if (entry === null) {
|
|
3350
3322
|
return null;
|
|
3351
3323
|
}
|
|
3352
|
-
return
|
|
3324
|
+
return de_PITPolicyRule(entry, context);
|
|
3353
3325
|
});
|
|
3354
3326
|
return retVal;
|
|
3355
3327
|
};
|
|
3356
|
-
const
|
|
3328
|
+
const de_PITPolicyRule = (output, context) => {
|
|
3357
3329
|
return {
|
|
3358
3330
|
enabled: __expectBoolean(output.enabled),
|
|
3359
3331
|
interval: __expectInt32(output.interval),
|
|
@@ -3362,15 +3334,15 @@ const deserializeAws_restJson1PITPolicyRule = (output, context) => {
|
|
|
3362
3334
|
units: __expectString(output.units),
|
|
3363
3335
|
};
|
|
3364
3336
|
};
|
|
3365
|
-
const
|
|
3337
|
+
const de_RecoveryInstance = (output, context) => {
|
|
3366
3338
|
return {
|
|
3367
3339
|
arn: __expectString(output.arn),
|
|
3368
3340
|
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3369
|
-
?
|
|
3341
|
+
? de_RecoveryInstanceDataReplicationInfo(output.dataReplicationInfo, context)
|
|
3370
3342
|
: undefined,
|
|
3371
3343
|
ec2InstanceID: __expectString(output.ec2InstanceID),
|
|
3372
3344
|
ec2InstanceState: __expectString(output.ec2InstanceState),
|
|
3373
|
-
failback: output.failback != null ?
|
|
3345
|
+
failback: output.failback != null ? de_RecoveryInstanceFailback(output.failback, context) : undefined,
|
|
3374
3346
|
isDrill: __expectBoolean(output.isDrill),
|
|
3375
3347
|
jobID: __expectString(output.jobID),
|
|
3376
3348
|
originAvailabilityZone: __expectString(output.originAvailabilityZone),
|
|
@@ -3378,36 +3350,36 @@ const deserializeAws_restJson1RecoveryInstance = (output, context) => {
|
|
|
3378
3350
|
pointInTimeSnapshotDateTime: __expectString(output.pointInTimeSnapshotDateTime),
|
|
3379
3351
|
recoveryInstanceID: __expectString(output.recoveryInstanceID),
|
|
3380
3352
|
recoveryInstanceProperties: output.recoveryInstanceProperties != null
|
|
3381
|
-
?
|
|
3353
|
+
? de_RecoveryInstanceProperties(output.recoveryInstanceProperties, context)
|
|
3382
3354
|
: undefined,
|
|
3383
3355
|
sourceServerID: __expectString(output.sourceServerID),
|
|
3384
|
-
tags: output.tags != null ?
|
|
3356
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
3385
3357
|
};
|
|
3386
3358
|
};
|
|
3387
|
-
const
|
|
3359
|
+
const de_RecoveryInstanceDataReplicationError = (output, context) => {
|
|
3388
3360
|
return {
|
|
3389
3361
|
error: __expectString(output.error),
|
|
3390
3362
|
rawError: __expectString(output.rawError),
|
|
3391
3363
|
};
|
|
3392
3364
|
};
|
|
3393
|
-
const
|
|
3365
|
+
const de_RecoveryInstanceDataReplicationInfo = (output, context) => {
|
|
3394
3366
|
return {
|
|
3395
3367
|
dataReplicationError: output.dataReplicationError != null
|
|
3396
|
-
?
|
|
3368
|
+
? de_RecoveryInstanceDataReplicationError(output.dataReplicationError, context)
|
|
3397
3369
|
: undefined,
|
|
3398
3370
|
dataReplicationInitiation: output.dataReplicationInitiation != null
|
|
3399
|
-
?
|
|
3371
|
+
? de_RecoveryInstanceDataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3400
3372
|
: undefined,
|
|
3401
3373
|
dataReplicationState: __expectString(output.dataReplicationState),
|
|
3402
3374
|
etaDateTime: __expectString(output.etaDateTime),
|
|
3403
3375
|
lagDuration: __expectString(output.lagDuration),
|
|
3404
3376
|
replicatedDisks: output.replicatedDisks != null
|
|
3405
|
-
?
|
|
3377
|
+
? de_RecoveryInstanceDataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3406
3378
|
: undefined,
|
|
3407
3379
|
stagingAvailabilityZone: __expectString(output.stagingAvailabilityZone),
|
|
3408
3380
|
};
|
|
3409
3381
|
};
|
|
3410
|
-
const
|
|
3382
|
+
const de_RecoveryInstanceDataReplicationInfoReplicatedDisk = (output, context) => {
|
|
3411
3383
|
return {
|
|
3412
3384
|
backloggedStorageBytes: __expectLong(output.backloggedStorageBytes),
|
|
3413
3385
|
deviceName: __expectString(output.deviceName),
|
|
@@ -3416,61 +3388,59 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk
|
|
|
3416
3388
|
totalStorageBytes: __expectLong(output.totalStorageBytes),
|
|
3417
3389
|
};
|
|
3418
3390
|
};
|
|
3419
|
-
const
|
|
3391
|
+
const de_RecoveryInstanceDataReplicationInfoReplicatedDisks = (output, context) => {
|
|
3420
3392
|
const retVal = (output || [])
|
|
3421
3393
|
.filter((e) => e != null)
|
|
3422
3394
|
.map((entry) => {
|
|
3423
3395
|
if (entry === null) {
|
|
3424
3396
|
return null;
|
|
3425
3397
|
}
|
|
3426
|
-
return
|
|
3398
|
+
return de_RecoveryInstanceDataReplicationInfoReplicatedDisk(entry, context);
|
|
3427
3399
|
});
|
|
3428
3400
|
return retVal;
|
|
3429
3401
|
};
|
|
3430
|
-
const
|
|
3402
|
+
const de_RecoveryInstanceDataReplicationInitiation = (output, context) => {
|
|
3431
3403
|
return {
|
|
3432
3404
|
startDateTime: __expectString(output.startDateTime),
|
|
3433
|
-
steps: output.steps != null
|
|
3434
|
-
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps(output.steps, context)
|
|
3435
|
-
: undefined,
|
|
3405
|
+
steps: output.steps != null ? de_RecoveryInstanceDataReplicationInitiationSteps(output.steps, context) : undefined,
|
|
3436
3406
|
};
|
|
3437
3407
|
};
|
|
3438
|
-
const
|
|
3408
|
+
const de_RecoveryInstanceDataReplicationInitiationStep = (output, context) => {
|
|
3439
3409
|
return {
|
|
3440
3410
|
name: __expectString(output.name),
|
|
3441
3411
|
status: __expectString(output.status),
|
|
3442
3412
|
};
|
|
3443
3413
|
};
|
|
3444
|
-
const
|
|
3414
|
+
const de_RecoveryInstanceDataReplicationInitiationSteps = (output, context) => {
|
|
3445
3415
|
const retVal = (output || [])
|
|
3446
3416
|
.filter((e) => e != null)
|
|
3447
3417
|
.map((entry) => {
|
|
3448
3418
|
if (entry === null) {
|
|
3449
3419
|
return null;
|
|
3450
3420
|
}
|
|
3451
|
-
return
|
|
3421
|
+
return de_RecoveryInstanceDataReplicationInitiationStep(entry, context);
|
|
3452
3422
|
});
|
|
3453
3423
|
return retVal;
|
|
3454
3424
|
};
|
|
3455
|
-
const
|
|
3425
|
+
const de_RecoveryInstanceDisk = (output, context) => {
|
|
3456
3426
|
return {
|
|
3457
3427
|
bytes: __expectLong(output.bytes),
|
|
3458
3428
|
ebsVolumeID: __expectString(output.ebsVolumeID),
|
|
3459
3429
|
internalDeviceName: __expectString(output.internalDeviceName),
|
|
3460
3430
|
};
|
|
3461
3431
|
};
|
|
3462
|
-
const
|
|
3432
|
+
const de_RecoveryInstanceDisks = (output, context) => {
|
|
3463
3433
|
const retVal = (output || [])
|
|
3464
3434
|
.filter((e) => e != null)
|
|
3465
3435
|
.map((entry) => {
|
|
3466
3436
|
if (entry === null) {
|
|
3467
3437
|
return null;
|
|
3468
3438
|
}
|
|
3469
|
-
return
|
|
3439
|
+
return de_RecoveryInstanceDisk(entry, context);
|
|
3470
3440
|
});
|
|
3471
3441
|
return retVal;
|
|
3472
3442
|
};
|
|
3473
|
-
const
|
|
3443
|
+
const de_RecoveryInstanceFailback = (output, context) => {
|
|
3474
3444
|
return {
|
|
3475
3445
|
agentLastSeenByServiceDateTime: __expectString(output.agentLastSeenByServiceDateTime),
|
|
3476
3446
|
elapsedReplicationDuration: __expectString(output.elapsedReplicationDuration),
|
|
@@ -3484,42 +3454,38 @@ const deserializeAws_restJson1RecoveryInstanceFailback = (output, context) => {
|
|
|
3484
3454
|
state: __expectString(output.state),
|
|
3485
3455
|
};
|
|
3486
3456
|
};
|
|
3487
|
-
const
|
|
3457
|
+
const de_RecoveryInstanceProperties = (output, context) => {
|
|
3488
3458
|
return {
|
|
3489
|
-
cpus: output.cpus != null ?
|
|
3490
|
-
disks: output.disks != null ?
|
|
3491
|
-
identificationHints: output.identificationHints != null
|
|
3492
|
-
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3493
|
-
: undefined,
|
|
3459
|
+
cpus: output.cpus != null ? de_Cpus(output.cpus, context) : undefined,
|
|
3460
|
+
disks: output.disks != null ? de_RecoveryInstanceDisks(output.disks, context) : undefined,
|
|
3461
|
+
identificationHints: output.identificationHints != null ? de_IdentificationHints(output.identificationHints, context) : undefined,
|
|
3494
3462
|
lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
|
|
3495
|
-
networkInterfaces: output.networkInterfaces != null
|
|
3496
|
-
|
|
3497
|
-
: undefined,
|
|
3498
|
-
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3463
|
+
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaces(output.networkInterfaces, context) : undefined,
|
|
3464
|
+
os: output.os != null ? de_OS(output.os, context) : undefined,
|
|
3499
3465
|
ramBytes: __expectLong(output.ramBytes),
|
|
3500
3466
|
};
|
|
3501
3467
|
};
|
|
3502
|
-
const
|
|
3468
|
+
const de_RecoverySnapshot = (output, context) => {
|
|
3503
3469
|
return {
|
|
3504
|
-
ebsSnapshots: output.ebsSnapshots != null ?
|
|
3470
|
+
ebsSnapshots: output.ebsSnapshots != null ? de_EbsSnapshotsList(output.ebsSnapshots, context) : undefined,
|
|
3505
3471
|
expectedTimestamp: __expectString(output.expectedTimestamp),
|
|
3506
3472
|
snapshotID: __expectString(output.snapshotID),
|
|
3507
3473
|
sourceServerID: __expectString(output.sourceServerID),
|
|
3508
3474
|
timestamp: __expectString(output.timestamp),
|
|
3509
3475
|
};
|
|
3510
3476
|
};
|
|
3511
|
-
const
|
|
3477
|
+
const de_RecoverySnapshotsList = (output, context) => {
|
|
3512
3478
|
const retVal = (output || [])
|
|
3513
3479
|
.filter((e) => e != null)
|
|
3514
3480
|
.map((entry) => {
|
|
3515
3481
|
if (entry === null) {
|
|
3516
3482
|
return null;
|
|
3517
3483
|
}
|
|
3518
|
-
return
|
|
3484
|
+
return de_RecoverySnapshot(entry, context);
|
|
3519
3485
|
});
|
|
3520
3486
|
return retVal;
|
|
3521
3487
|
};
|
|
3522
|
-
const
|
|
3488
|
+
const de_ReplicationConfigurationReplicatedDisk = (output, context) => {
|
|
3523
3489
|
return {
|
|
3524
3490
|
deviceName: __expectString(output.deviceName),
|
|
3525
3491
|
iops: __expectLong(output.iops),
|
|
@@ -3529,18 +3495,18 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output,
|
|
|
3529
3495
|
throughput: __expectLong(output.throughput),
|
|
3530
3496
|
};
|
|
3531
3497
|
};
|
|
3532
|
-
const
|
|
3498
|
+
const de_ReplicationConfigurationReplicatedDisks = (output, context) => {
|
|
3533
3499
|
const retVal = (output || [])
|
|
3534
3500
|
.filter((e) => e != null)
|
|
3535
3501
|
.map((entry) => {
|
|
3536
3502
|
if (entry === null) {
|
|
3537
3503
|
return null;
|
|
3538
3504
|
}
|
|
3539
|
-
return
|
|
3505
|
+
return de_ReplicationConfigurationReplicatedDisk(entry, context);
|
|
3540
3506
|
});
|
|
3541
3507
|
return retVal;
|
|
3542
3508
|
};
|
|
3543
|
-
const
|
|
3509
|
+
const de_ReplicationConfigurationTemplate = (output, context) => {
|
|
3544
3510
|
return {
|
|
3545
3511
|
arn: __expectString(output.arn),
|
|
3546
3512
|
associateDefaultSecurityGroup: __expectBoolean(output.associateDefaultSecurityGroup),
|
|
@@ -3551,30 +3517,30 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
|
|
|
3551
3517
|
defaultLargeStagingDiskType: __expectString(output.defaultLargeStagingDiskType),
|
|
3552
3518
|
ebsEncryption: __expectString(output.ebsEncryption),
|
|
3553
3519
|
ebsEncryptionKeyArn: __expectString(output.ebsEncryptionKeyArn),
|
|
3554
|
-
pitPolicy: output.pitPolicy != null ?
|
|
3520
|
+
pitPolicy: output.pitPolicy != null ? de_PITPolicy(output.pitPolicy, context) : undefined,
|
|
3555
3521
|
replicationConfigurationTemplateID: __expectString(output.replicationConfigurationTemplateID),
|
|
3556
3522
|
replicationServerInstanceType: __expectString(output.replicationServerInstanceType),
|
|
3557
3523
|
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs != null
|
|
3558
|
-
?
|
|
3524
|
+
? de_ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3559
3525
|
: undefined,
|
|
3560
3526
|
stagingAreaSubnetId: __expectString(output.stagingAreaSubnetId),
|
|
3561
|
-
stagingAreaTags: output.stagingAreaTags != null ?
|
|
3562
|
-
tags: output.tags != null ?
|
|
3527
|
+
stagingAreaTags: output.stagingAreaTags != null ? de_TagsMap(output.stagingAreaTags, context) : undefined,
|
|
3528
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
3563
3529
|
useDedicatedReplicationServer: __expectBoolean(output.useDedicatedReplicationServer),
|
|
3564
3530
|
};
|
|
3565
3531
|
};
|
|
3566
|
-
const
|
|
3532
|
+
const de_ReplicationConfigurationTemplates = (output, context) => {
|
|
3567
3533
|
const retVal = (output || [])
|
|
3568
3534
|
.filter((e) => e != null)
|
|
3569
3535
|
.map((entry) => {
|
|
3570
3536
|
if (entry === null) {
|
|
3571
3537
|
return null;
|
|
3572
3538
|
}
|
|
3573
|
-
return
|
|
3539
|
+
return de_ReplicationConfigurationTemplate(entry, context);
|
|
3574
3540
|
});
|
|
3575
3541
|
return retVal;
|
|
3576
3542
|
};
|
|
3577
|
-
const
|
|
3543
|
+
const de_ReplicationServersSecurityGroupsIDs = (output, context) => {
|
|
3578
3544
|
const retVal = (output || [])
|
|
3579
3545
|
.filter((e) => e != null)
|
|
3580
3546
|
.map((entry) => {
|
|
@@ -3585,63 +3551,55 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3585
3551
|
});
|
|
3586
3552
|
return retVal;
|
|
3587
3553
|
};
|
|
3588
|
-
const
|
|
3554
|
+
const de_SourceCloudProperties = (output, context) => {
|
|
3589
3555
|
return {
|
|
3590
3556
|
originAccountID: __expectString(output.originAccountID),
|
|
3591
3557
|
originAvailabilityZone: __expectString(output.originAvailabilityZone),
|
|
3592
3558
|
originRegion: __expectString(output.originRegion),
|
|
3593
3559
|
};
|
|
3594
3560
|
};
|
|
3595
|
-
const
|
|
3561
|
+
const de_SourceProperties = (output, context) => {
|
|
3596
3562
|
return {
|
|
3597
|
-
cpus: output.cpus != null ?
|
|
3598
|
-
disks: output.disks != null ?
|
|
3599
|
-
identificationHints: output.identificationHints != null
|
|
3600
|
-
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3601
|
-
: undefined,
|
|
3563
|
+
cpus: output.cpus != null ? de_Cpus(output.cpus, context) : undefined,
|
|
3564
|
+
disks: output.disks != null ? de_Disks(output.disks, context) : undefined,
|
|
3565
|
+
identificationHints: output.identificationHints != null ? de_IdentificationHints(output.identificationHints, context) : undefined,
|
|
3602
3566
|
lastUpdatedDateTime: __expectString(output.lastUpdatedDateTime),
|
|
3603
|
-
networkInterfaces: output.networkInterfaces != null
|
|
3604
|
-
|
|
3605
|
-
: undefined,
|
|
3606
|
-
os: output.os != null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3567
|
+
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaces(output.networkInterfaces, context) : undefined,
|
|
3568
|
+
os: output.os != null ? de_OS(output.os, context) : undefined,
|
|
3607
3569
|
ramBytes: __expectLong(output.ramBytes),
|
|
3608
3570
|
recommendedInstanceType: __expectString(output.recommendedInstanceType),
|
|
3609
3571
|
};
|
|
3610
3572
|
};
|
|
3611
|
-
const
|
|
3573
|
+
const de_SourceServer = (output, context) => {
|
|
3612
3574
|
return {
|
|
3613
3575
|
arn: __expectString(output.arn),
|
|
3614
|
-
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3615
|
-
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3616
|
-
: undefined,
|
|
3576
|
+
dataReplicationInfo: output.dataReplicationInfo != null ? de_DataReplicationInfo(output.dataReplicationInfo, context) : undefined,
|
|
3617
3577
|
lastLaunchResult: __expectString(output.lastLaunchResult),
|
|
3618
|
-
lifeCycle: output.lifeCycle != null ?
|
|
3578
|
+
lifeCycle: output.lifeCycle != null ? de_LifeCycle(output.lifeCycle, context) : undefined,
|
|
3619
3579
|
recoveryInstanceId: __expectString(output.recoveryInstanceId),
|
|
3620
3580
|
replicationDirection: __expectString(output.replicationDirection),
|
|
3621
3581
|
reversedDirectionSourceServerArn: __expectString(output.reversedDirectionSourceServerArn),
|
|
3622
3582
|
sourceCloudProperties: output.sourceCloudProperties != null
|
|
3623
|
-
?
|
|
3624
|
-
: undefined,
|
|
3625
|
-
sourceProperties: output.sourceProperties != null
|
|
3626
|
-
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3583
|
+
? de_SourceCloudProperties(output.sourceCloudProperties, context)
|
|
3627
3584
|
: undefined,
|
|
3585
|
+
sourceProperties: output.sourceProperties != null ? de_SourceProperties(output.sourceProperties, context) : undefined,
|
|
3628
3586
|
sourceServerID: __expectString(output.sourceServerID),
|
|
3629
|
-
stagingArea: output.stagingArea != null ?
|
|
3630
|
-
tags: output.tags != null ?
|
|
3587
|
+
stagingArea: output.stagingArea != null ? de_StagingArea(output.stagingArea, context) : undefined,
|
|
3588
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
3631
3589
|
};
|
|
3632
3590
|
};
|
|
3633
|
-
const
|
|
3591
|
+
const de_SourceServersList = (output, context) => {
|
|
3634
3592
|
const retVal = (output || [])
|
|
3635
3593
|
.filter((e) => e != null)
|
|
3636
3594
|
.map((entry) => {
|
|
3637
3595
|
if (entry === null) {
|
|
3638
3596
|
return null;
|
|
3639
3597
|
}
|
|
3640
|
-
return
|
|
3598
|
+
return de_SourceServer(entry, context);
|
|
3641
3599
|
});
|
|
3642
3600
|
return retVal;
|
|
3643
3601
|
};
|
|
3644
|
-
const
|
|
3602
|
+
const de_StagingArea = (output, context) => {
|
|
3645
3603
|
return {
|
|
3646
3604
|
errorMessage: __expectString(output.errorMessage),
|
|
3647
3605
|
stagingAccountID: __expectString(output.stagingAccountID),
|
|
@@ -3649,25 +3607,25 @@ const deserializeAws_restJson1StagingArea = (output, context) => {
|
|
|
3649
3607
|
status: __expectString(output.status),
|
|
3650
3608
|
};
|
|
3651
3609
|
};
|
|
3652
|
-
const
|
|
3610
|
+
const de_StagingSourceServer = (output, context) => {
|
|
3653
3611
|
return {
|
|
3654
3612
|
arn: __expectString(output.arn),
|
|
3655
3613
|
hostname: __expectString(output.hostname),
|
|
3656
|
-
tags: output.tags != null ?
|
|
3614
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
3657
3615
|
};
|
|
3658
3616
|
};
|
|
3659
|
-
const
|
|
3617
|
+
const de_StagingSourceServersList = (output, context) => {
|
|
3660
3618
|
const retVal = (output || [])
|
|
3661
3619
|
.filter((e) => e != null)
|
|
3662
3620
|
.map((entry) => {
|
|
3663
3621
|
if (entry === null) {
|
|
3664
3622
|
return null;
|
|
3665
3623
|
}
|
|
3666
|
-
return
|
|
3624
|
+
return de_StagingSourceServer(entry, context);
|
|
3667
3625
|
});
|
|
3668
3626
|
return retVal;
|
|
3669
3627
|
};
|
|
3670
|
-
const
|
|
3628
|
+
const de_TagsMap = (output, context) => {
|
|
3671
3629
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3672
3630
|
if (value === null) {
|
|
3673
3631
|
return acc;
|
|
@@ -3676,33 +3634,33 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3676
3634
|
return acc;
|
|
3677
3635
|
}, {});
|
|
3678
3636
|
};
|
|
3679
|
-
const
|
|
3637
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3680
3638
|
return {
|
|
3681
3639
|
message: __expectString(output.message),
|
|
3682
3640
|
name: __expectString(output.name),
|
|
3683
3641
|
};
|
|
3684
3642
|
};
|
|
3685
|
-
const
|
|
3643
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3686
3644
|
const retVal = (output || [])
|
|
3687
3645
|
.filter((e) => e != null)
|
|
3688
3646
|
.map((entry) => {
|
|
3689
3647
|
if (entry === null) {
|
|
3690
3648
|
return null;
|
|
3691
3649
|
}
|
|
3692
|
-
return
|
|
3650
|
+
return de_ValidationExceptionField(entry, context);
|
|
3693
3651
|
});
|
|
3694
3652
|
return retVal;
|
|
3695
3653
|
};
|
|
3696
|
-
const
|
|
3654
|
+
const de_VolumeToConversionMap = (output, context) => {
|
|
3697
3655
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3698
3656
|
if (value === null) {
|
|
3699
3657
|
return acc;
|
|
3700
3658
|
}
|
|
3701
|
-
acc[key] =
|
|
3659
|
+
acc[key] = de_ConversionMap(value, context);
|
|
3702
3660
|
return acc;
|
|
3703
3661
|
}, {});
|
|
3704
3662
|
};
|
|
3705
|
-
const
|
|
3663
|
+
const de_VolumeToSizeMap = (output, context) => {
|
|
3706
3664
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3707
3665
|
if (value === null) {
|
|
3708
3666
|
return acc;
|