@aws-sdk/client-migration-hub 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MigrationHubServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +144 -1
- package/dist-cjs/protocols/Aws_json1_1.js +252 -1066
- package/dist-es/index.js +1 -0
- package/dist-es/models/MigrationHubServiceException.js +12 -0
- package/dist-es/models/models_0.js +133 -1
- package/dist-es/protocols/Aws_json1_1.js +529 -1115
- package/dist-types/MigrationHubClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MigrationHubServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -31
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/MigrationHubClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MigrationHubServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +52 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1PutResourceAttributesCommand = exports.deserializeAws_json1_1NotifyMigrationTaskStateCommand = exports.deserializeAws_json1_1NotifyApplicationStateCommand = exports.deserializeAws_json1_1ListProgressUpdateStreamsCommand = exports.deserializeAws_json1_1ListMigrationTasksCommand = exports.deserializeAws_json1_1ListDiscoveredResourcesCommand = exports.deserializeAws_json1_1ListCreatedArtifactsCommand = exports.deserializeAws_json1_1ListApplicationStatesCommand = exports.deserializeAws_json1_1ImportMigrationTaskCommand = exports.deserializeAws_json1_1DisassociateDiscoveredResourceCommand = exports.deserializeAws_json1_1DisassociateCreatedArtifactCommand = exports.deserializeAws_json1_1DescribeMigrationTaskCommand = exports.deserializeAws_json1_1DescribeApplicationStateCommand = exports.deserializeAws_json1_1DeleteProgressUpdateStreamCommand = exports.deserializeAws_json1_1CreateProgressUpdateStreamCommand = exports.deserializeAws_json1_1AssociateDiscoveredResourceCommand = exports.deserializeAws_json1_1AssociateCreatedArtifactCommand = exports.serializeAws_json1_1PutResourceAttributesCommand = exports.serializeAws_json1_1NotifyMigrationTaskStateCommand = exports.serializeAws_json1_1NotifyApplicationStateCommand = exports.serializeAws_json1_1ListProgressUpdateStreamsCommand = exports.serializeAws_json1_1ListMigrationTasksCommand = exports.serializeAws_json1_1ListDiscoveredResourcesCommand = exports.serializeAws_json1_1ListCreatedArtifactsCommand = exports.serializeAws_json1_1ListApplicationStatesCommand = exports.serializeAws_json1_1ImportMigrationTaskCommand = exports.serializeAws_json1_1DisassociateDiscoveredResourceCommand = exports.serializeAws_json1_1DisassociateCreatedArtifactCommand = exports.serializeAws_json1_1DescribeMigrationTaskCommand = exports.serializeAws_json1_1DescribeApplicationStateCommand = exports.serializeAws_json1_1DeleteProgressUpdateStreamCommand = exports.serializeAws_json1_1CreateProgressUpdateStreamCommand = exports.serializeAws_json1_1AssociateDiscoveredResourceCommand = exports.serializeAws_json1_1AssociateCreatedArtifactCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MigrationHubServiceException_1 = require("../models/MigrationHubServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1AssociateCreatedArtifactCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -198,91 +200,40 @@ const deserializeAws_json1_1AssociateCreatedArtifactCommandError = async (output
|
|
|
198
200
|
switch (errorCode) {
|
|
199
201
|
case "AccessDeniedException":
|
|
200
202
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
201
|
-
|
|
202
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
203
|
-
name: errorCode,
|
|
204
|
-
$metadata: deserializeMetadata(output),
|
|
205
|
-
};
|
|
206
|
-
break;
|
|
203
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
207
204
|
case "DryRunOperation":
|
|
208
205
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
209
|
-
|
|
210
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
211
|
-
name: errorCode,
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
};
|
|
214
|
-
break;
|
|
206
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
215
207
|
case "HomeRegionNotSetException":
|
|
216
208
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
217
|
-
|
|
218
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
219
|
-
name: errorCode,
|
|
220
|
-
$metadata: deserializeMetadata(output),
|
|
221
|
-
};
|
|
222
|
-
break;
|
|
209
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
223
210
|
case "InternalServerError":
|
|
224
211
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
225
|
-
|
|
226
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
227
|
-
name: errorCode,
|
|
228
|
-
$metadata: deserializeMetadata(output),
|
|
229
|
-
};
|
|
230
|
-
break;
|
|
212
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
231
213
|
case "InvalidInputException":
|
|
232
214
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
233
|
-
|
|
234
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
235
|
-
name: errorCode,
|
|
236
|
-
$metadata: deserializeMetadata(output),
|
|
237
|
-
};
|
|
238
|
-
break;
|
|
215
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
239
216
|
case "ResourceNotFoundException":
|
|
240
217
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
241
|
-
|
|
242
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
243
|
-
name: errorCode,
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
};
|
|
246
|
-
break;
|
|
218
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
247
219
|
case "ServiceUnavailableException":
|
|
248
220
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
249
|
-
|
|
250
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
251
|
-
name: errorCode,
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
};
|
|
254
|
-
break;
|
|
221
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
255
222
|
case "ThrottlingException":
|
|
256
223
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
257
|
-
|
|
258
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
259
|
-
name: errorCode,
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
};
|
|
262
|
-
break;
|
|
224
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
263
225
|
case "UnauthorizedOperation":
|
|
264
226
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
265
|
-
|
|
266
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
267
|
-
name: errorCode,
|
|
268
|
-
$metadata: deserializeMetadata(output),
|
|
269
|
-
};
|
|
270
|
-
break;
|
|
227
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
271
228
|
default:
|
|
272
229
|
const parsedBody = parsedOutput.body;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
...parsedBody,
|
|
276
|
-
name: `${errorCode}`,
|
|
277
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
230
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
231
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
278
232
|
$fault: "client",
|
|
279
233
|
$metadata: deserializeMetadata(output),
|
|
280
|
-
};
|
|
234
|
+
});
|
|
235
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
281
236
|
}
|
|
282
|
-
const message = response.message || response.Message || errorCode;
|
|
283
|
-
response.message = message;
|
|
284
|
-
delete response.Message;
|
|
285
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
286
237
|
};
|
|
287
238
|
const deserializeAws_json1_1AssociateDiscoveredResourceCommand = async (output, context) => {
|
|
288
239
|
if (output.statusCode >= 300) {
|
|
@@ -309,99 +260,43 @@ const deserializeAws_json1_1AssociateDiscoveredResourceCommandError = async (out
|
|
|
309
260
|
switch (errorCode) {
|
|
310
261
|
case "AccessDeniedException":
|
|
311
262
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
312
|
-
|
|
313
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
314
|
-
name: errorCode,
|
|
315
|
-
$metadata: deserializeMetadata(output),
|
|
316
|
-
};
|
|
317
|
-
break;
|
|
263
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
318
264
|
case "DryRunOperation":
|
|
319
265
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
320
|
-
|
|
321
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
322
|
-
name: errorCode,
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
};
|
|
325
|
-
break;
|
|
266
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
326
267
|
case "HomeRegionNotSetException":
|
|
327
268
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
328
|
-
|
|
329
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
330
|
-
name: errorCode,
|
|
331
|
-
$metadata: deserializeMetadata(output),
|
|
332
|
-
};
|
|
333
|
-
break;
|
|
269
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
334
270
|
case "InternalServerError":
|
|
335
271
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
336
|
-
|
|
337
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
338
|
-
name: errorCode,
|
|
339
|
-
$metadata: deserializeMetadata(output),
|
|
340
|
-
};
|
|
341
|
-
break;
|
|
272
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
342
273
|
case "InvalidInputException":
|
|
343
274
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
344
|
-
|
|
345
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
346
|
-
name: errorCode,
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
};
|
|
349
|
-
break;
|
|
275
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
350
276
|
case "PolicyErrorException":
|
|
351
277
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
352
|
-
|
|
353
|
-
...(await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)),
|
|
354
|
-
name: errorCode,
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
};
|
|
357
|
-
break;
|
|
278
|
+
throw await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context);
|
|
358
279
|
case "ResourceNotFoundException":
|
|
359
280
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
360
|
-
|
|
361
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
362
|
-
name: errorCode,
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
};
|
|
365
|
-
break;
|
|
281
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
366
282
|
case "ServiceUnavailableException":
|
|
367
283
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
368
|
-
|
|
369
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
370
|
-
name: errorCode,
|
|
371
|
-
$metadata: deserializeMetadata(output),
|
|
372
|
-
};
|
|
373
|
-
break;
|
|
284
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
374
285
|
case "ThrottlingException":
|
|
375
286
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
376
|
-
|
|
377
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
378
|
-
name: errorCode,
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
};
|
|
381
|
-
break;
|
|
287
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
382
288
|
case "UnauthorizedOperation":
|
|
383
289
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
384
|
-
|
|
385
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
386
|
-
name: errorCode,
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
};
|
|
389
|
-
break;
|
|
290
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
390
291
|
default:
|
|
391
292
|
const parsedBody = parsedOutput.body;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
...parsedBody,
|
|
395
|
-
name: `${errorCode}`,
|
|
396
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
293
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
294
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
397
295
|
$fault: "client",
|
|
398
296
|
$metadata: deserializeMetadata(output),
|
|
399
|
-
};
|
|
297
|
+
});
|
|
298
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
400
299
|
}
|
|
401
|
-
const message = response.message || response.Message || errorCode;
|
|
402
|
-
response.message = message;
|
|
403
|
-
delete response.Message;
|
|
404
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
405
300
|
};
|
|
406
301
|
const deserializeAws_json1_1CreateProgressUpdateStreamCommand = async (output, context) => {
|
|
407
302
|
if (output.statusCode >= 300) {
|
|
@@ -428,83 +323,37 @@ const deserializeAws_json1_1CreateProgressUpdateStreamCommandError = async (outp
|
|
|
428
323
|
switch (errorCode) {
|
|
429
324
|
case "AccessDeniedException":
|
|
430
325
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
431
|
-
|
|
432
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
433
|
-
name: errorCode,
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
};
|
|
436
|
-
break;
|
|
326
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
437
327
|
case "DryRunOperation":
|
|
438
328
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
439
|
-
|
|
440
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
441
|
-
name: errorCode,
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
};
|
|
444
|
-
break;
|
|
329
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
445
330
|
case "HomeRegionNotSetException":
|
|
446
331
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
447
|
-
|
|
448
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
449
|
-
name: errorCode,
|
|
450
|
-
$metadata: deserializeMetadata(output),
|
|
451
|
-
};
|
|
452
|
-
break;
|
|
332
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
453
333
|
case "InternalServerError":
|
|
454
334
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
455
|
-
|
|
456
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
457
|
-
name: errorCode,
|
|
458
|
-
$metadata: deserializeMetadata(output),
|
|
459
|
-
};
|
|
460
|
-
break;
|
|
335
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
461
336
|
case "InvalidInputException":
|
|
462
337
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
463
|
-
|
|
464
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
465
|
-
name: errorCode,
|
|
466
|
-
$metadata: deserializeMetadata(output),
|
|
467
|
-
};
|
|
468
|
-
break;
|
|
338
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
469
339
|
case "ServiceUnavailableException":
|
|
470
340
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
471
|
-
|
|
472
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
473
|
-
name: errorCode,
|
|
474
|
-
$metadata: deserializeMetadata(output),
|
|
475
|
-
};
|
|
476
|
-
break;
|
|
341
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
477
342
|
case "ThrottlingException":
|
|
478
343
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
479
|
-
|
|
480
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
481
|
-
name: errorCode,
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
};
|
|
484
|
-
break;
|
|
344
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
485
345
|
case "UnauthorizedOperation":
|
|
486
346
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
487
|
-
|
|
488
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
489
|
-
name: errorCode,
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
};
|
|
492
|
-
break;
|
|
347
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
493
348
|
default:
|
|
494
349
|
const parsedBody = parsedOutput.body;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
...parsedBody,
|
|
498
|
-
name: `${errorCode}`,
|
|
499
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
350
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
351
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
500
352
|
$fault: "client",
|
|
501
353
|
$metadata: deserializeMetadata(output),
|
|
502
|
-
};
|
|
354
|
+
});
|
|
355
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
503
356
|
}
|
|
504
|
-
const message = response.message || response.Message || errorCode;
|
|
505
|
-
response.message = message;
|
|
506
|
-
delete response.Message;
|
|
507
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
508
357
|
};
|
|
509
358
|
const deserializeAws_json1_1DeleteProgressUpdateStreamCommand = async (output, context) => {
|
|
510
359
|
if (output.statusCode >= 300) {
|
|
@@ -531,91 +380,40 @@ const deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = async (outp
|
|
|
531
380
|
switch (errorCode) {
|
|
532
381
|
case "AccessDeniedException":
|
|
533
382
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
534
|
-
|
|
535
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
536
|
-
name: errorCode,
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
};
|
|
539
|
-
break;
|
|
383
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
540
384
|
case "DryRunOperation":
|
|
541
385
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
542
|
-
|
|
543
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
544
|
-
name: errorCode,
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
};
|
|
547
|
-
break;
|
|
386
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
548
387
|
case "HomeRegionNotSetException":
|
|
549
388
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
550
|
-
|
|
551
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
552
|
-
name: errorCode,
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
break;
|
|
389
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
556
390
|
case "InternalServerError":
|
|
557
391
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
558
|
-
|
|
559
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
560
|
-
name: errorCode,
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
};
|
|
563
|
-
break;
|
|
392
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
564
393
|
case "InvalidInputException":
|
|
565
394
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
566
|
-
|
|
567
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
568
|
-
name: errorCode,
|
|
569
|
-
$metadata: deserializeMetadata(output),
|
|
570
|
-
};
|
|
571
|
-
break;
|
|
395
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
572
396
|
case "ResourceNotFoundException":
|
|
573
397
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
574
|
-
|
|
575
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
576
|
-
name: errorCode,
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
};
|
|
579
|
-
break;
|
|
398
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
580
399
|
case "ServiceUnavailableException":
|
|
581
400
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
582
|
-
|
|
583
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
584
|
-
name: errorCode,
|
|
585
|
-
$metadata: deserializeMetadata(output),
|
|
586
|
-
};
|
|
587
|
-
break;
|
|
401
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
588
402
|
case "ThrottlingException":
|
|
589
403
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
590
|
-
|
|
591
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
592
|
-
name: errorCode,
|
|
593
|
-
$metadata: deserializeMetadata(output),
|
|
594
|
-
};
|
|
595
|
-
break;
|
|
404
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
596
405
|
case "UnauthorizedOperation":
|
|
597
406
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
598
|
-
|
|
599
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
600
|
-
name: errorCode,
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
};
|
|
603
|
-
break;
|
|
407
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
604
408
|
default:
|
|
605
409
|
const parsedBody = parsedOutput.body;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
...parsedBody,
|
|
609
|
-
name: `${errorCode}`,
|
|
610
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
410
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
411
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
611
412
|
$fault: "client",
|
|
612
413
|
$metadata: deserializeMetadata(output),
|
|
613
|
-
};
|
|
414
|
+
});
|
|
415
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
614
416
|
}
|
|
615
|
-
const message = response.message || response.Message || errorCode;
|
|
616
|
-
response.message = message;
|
|
617
|
-
delete response.Message;
|
|
618
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
619
417
|
};
|
|
620
418
|
const deserializeAws_json1_1DescribeApplicationStateCommand = async (output, context) => {
|
|
621
419
|
if (output.statusCode >= 300) {
|
|
@@ -642,83 +440,37 @@ const deserializeAws_json1_1DescribeApplicationStateCommandError = async (output
|
|
|
642
440
|
switch (errorCode) {
|
|
643
441
|
case "AccessDeniedException":
|
|
644
442
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
645
|
-
|
|
646
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
647
|
-
name: errorCode,
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
};
|
|
650
|
-
break;
|
|
443
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
651
444
|
case "HomeRegionNotSetException":
|
|
652
445
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
653
|
-
|
|
654
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
655
|
-
name: errorCode,
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
};
|
|
658
|
-
break;
|
|
446
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
659
447
|
case "InternalServerError":
|
|
660
448
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
661
|
-
|
|
662
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
663
|
-
name: errorCode,
|
|
664
|
-
$metadata: deserializeMetadata(output),
|
|
665
|
-
};
|
|
666
|
-
break;
|
|
449
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
667
450
|
case "InvalidInputException":
|
|
668
451
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
669
|
-
|
|
670
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
671
|
-
name: errorCode,
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
};
|
|
674
|
-
break;
|
|
452
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
675
453
|
case "PolicyErrorException":
|
|
676
454
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
677
|
-
|
|
678
|
-
...(await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)),
|
|
679
|
-
name: errorCode,
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
};
|
|
682
|
-
break;
|
|
455
|
+
throw await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context);
|
|
683
456
|
case "ResourceNotFoundException":
|
|
684
457
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
685
|
-
|
|
686
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
687
|
-
name: errorCode,
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
};
|
|
690
|
-
break;
|
|
458
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
691
459
|
case "ServiceUnavailableException":
|
|
692
460
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
693
|
-
|
|
694
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
695
|
-
name: errorCode,
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
};
|
|
698
|
-
break;
|
|
461
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
699
462
|
case "ThrottlingException":
|
|
700
463
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
701
|
-
|
|
702
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
703
|
-
name: errorCode,
|
|
704
|
-
$metadata: deserializeMetadata(output),
|
|
705
|
-
};
|
|
706
|
-
break;
|
|
464
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
707
465
|
default:
|
|
708
466
|
const parsedBody = parsedOutput.body;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
...parsedBody,
|
|
712
|
-
name: `${errorCode}`,
|
|
713
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
467
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
468
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
714
469
|
$fault: "client",
|
|
715
470
|
$metadata: deserializeMetadata(output),
|
|
716
|
-
};
|
|
471
|
+
});
|
|
472
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
717
473
|
}
|
|
718
|
-
const message = response.message || response.Message || errorCode;
|
|
719
|
-
response.message = message;
|
|
720
|
-
delete response.Message;
|
|
721
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
722
474
|
};
|
|
723
475
|
const deserializeAws_json1_1DescribeMigrationTaskCommand = async (output, context) => {
|
|
724
476
|
if (output.statusCode >= 300) {
|
|
@@ -745,75 +497,34 @@ const deserializeAws_json1_1DescribeMigrationTaskCommandError = async (output, c
|
|
|
745
497
|
switch (errorCode) {
|
|
746
498
|
case "AccessDeniedException":
|
|
747
499
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
748
|
-
|
|
749
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
750
|
-
name: errorCode,
|
|
751
|
-
$metadata: deserializeMetadata(output),
|
|
752
|
-
};
|
|
753
|
-
break;
|
|
500
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
754
501
|
case "HomeRegionNotSetException":
|
|
755
502
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
756
|
-
|
|
757
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
758
|
-
name: errorCode,
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
};
|
|
761
|
-
break;
|
|
503
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
762
504
|
case "InternalServerError":
|
|
763
505
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
764
|
-
|
|
765
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
766
|
-
name: errorCode,
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
};
|
|
769
|
-
break;
|
|
506
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
770
507
|
case "InvalidInputException":
|
|
771
508
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
772
|
-
|
|
773
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
774
|
-
name: errorCode,
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
};
|
|
777
|
-
break;
|
|
509
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
778
510
|
case "ResourceNotFoundException":
|
|
779
511
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
780
|
-
|
|
781
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
782
|
-
name: errorCode,
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
};
|
|
785
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
786
513
|
case "ServiceUnavailableException":
|
|
787
514
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
788
|
-
|
|
789
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
790
|
-
name: errorCode,
|
|
791
|
-
$metadata: deserializeMetadata(output),
|
|
792
|
-
};
|
|
793
|
-
break;
|
|
515
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
794
516
|
case "ThrottlingException":
|
|
795
517
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
796
|
-
|
|
797
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
798
|
-
name: errorCode,
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
};
|
|
801
|
-
break;
|
|
518
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
802
519
|
default:
|
|
803
520
|
const parsedBody = parsedOutput.body;
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
...parsedBody,
|
|
807
|
-
name: `${errorCode}`,
|
|
808
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
521
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
522
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
809
523
|
$fault: "client",
|
|
810
524
|
$metadata: deserializeMetadata(output),
|
|
811
|
-
};
|
|
525
|
+
});
|
|
526
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
812
527
|
}
|
|
813
|
-
const message = response.message || response.Message || errorCode;
|
|
814
|
-
response.message = message;
|
|
815
|
-
delete response.Message;
|
|
816
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
817
528
|
};
|
|
818
529
|
const deserializeAws_json1_1DisassociateCreatedArtifactCommand = async (output, context) => {
|
|
819
530
|
if (output.statusCode >= 300) {
|
|
@@ -840,91 +551,40 @@ const deserializeAws_json1_1DisassociateCreatedArtifactCommandError = async (out
|
|
|
840
551
|
switch (errorCode) {
|
|
841
552
|
case "AccessDeniedException":
|
|
842
553
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
843
|
-
|
|
844
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
845
|
-
name: errorCode,
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
};
|
|
848
|
-
break;
|
|
554
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
849
555
|
case "DryRunOperation":
|
|
850
556
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
851
|
-
|
|
852
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
853
|
-
name: errorCode,
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
};
|
|
856
|
-
break;
|
|
557
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
857
558
|
case "HomeRegionNotSetException":
|
|
858
559
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
859
|
-
|
|
860
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
861
|
-
name: errorCode,
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
863
|
-
};
|
|
864
|
-
break;
|
|
560
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
865
561
|
case "InternalServerError":
|
|
866
562
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
867
|
-
|
|
868
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
869
|
-
name: errorCode,
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
};
|
|
872
|
-
break;
|
|
563
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
873
564
|
case "InvalidInputException":
|
|
874
565
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
875
|
-
|
|
876
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
877
|
-
name: errorCode,
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
};
|
|
880
|
-
break;
|
|
566
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
881
567
|
case "ResourceNotFoundException":
|
|
882
568
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
883
|
-
|
|
884
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
885
|
-
name: errorCode,
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
};
|
|
888
|
-
break;
|
|
569
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
889
570
|
case "ServiceUnavailableException":
|
|
890
571
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
891
|
-
|
|
892
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
893
|
-
name: errorCode,
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
896
|
-
break;
|
|
572
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
897
573
|
case "ThrottlingException":
|
|
898
574
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
899
|
-
|
|
900
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
901
|
-
name: errorCode,
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
};
|
|
904
|
-
break;
|
|
575
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
905
576
|
case "UnauthorizedOperation":
|
|
906
577
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
907
|
-
|
|
908
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
909
|
-
name: errorCode,
|
|
910
|
-
$metadata: deserializeMetadata(output),
|
|
911
|
-
};
|
|
912
|
-
break;
|
|
578
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
913
579
|
default:
|
|
914
580
|
const parsedBody = parsedOutput.body;
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
...parsedBody,
|
|
918
|
-
name: `${errorCode}`,
|
|
919
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
581
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
582
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
920
583
|
$fault: "client",
|
|
921
584
|
$metadata: deserializeMetadata(output),
|
|
922
|
-
};
|
|
585
|
+
});
|
|
586
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
923
587
|
}
|
|
924
|
-
const message = response.message || response.Message || errorCode;
|
|
925
|
-
response.message = message;
|
|
926
|
-
delete response.Message;
|
|
927
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
928
588
|
};
|
|
929
589
|
const deserializeAws_json1_1DisassociateDiscoveredResourceCommand = async (output, context) => {
|
|
930
590
|
if (output.statusCode >= 300) {
|
|
@@ -951,91 +611,40 @@ const deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = async (
|
|
|
951
611
|
switch (errorCode) {
|
|
952
612
|
case "AccessDeniedException":
|
|
953
613
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
954
|
-
|
|
955
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
956
|
-
name: errorCode,
|
|
957
|
-
$metadata: deserializeMetadata(output),
|
|
958
|
-
};
|
|
959
|
-
break;
|
|
614
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
960
615
|
case "DryRunOperation":
|
|
961
616
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
962
|
-
|
|
963
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
964
|
-
name: errorCode,
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
};
|
|
967
|
-
break;
|
|
617
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
968
618
|
case "HomeRegionNotSetException":
|
|
969
619
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
970
|
-
|
|
971
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
972
|
-
name: errorCode,
|
|
973
|
-
$metadata: deserializeMetadata(output),
|
|
974
|
-
};
|
|
975
|
-
break;
|
|
620
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
976
621
|
case "InternalServerError":
|
|
977
622
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
978
|
-
|
|
979
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
980
|
-
name: errorCode,
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
break;
|
|
623
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
984
624
|
case "InvalidInputException":
|
|
985
625
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
986
|
-
|
|
987
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
626
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
992
627
|
case "ResourceNotFoundException":
|
|
993
628
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
994
|
-
|
|
995
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
996
|
-
name: errorCode,
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
999
|
-
break;
|
|
629
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1000
630
|
case "ServiceUnavailableException":
|
|
1001
631
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1002
|
-
|
|
1003
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1004
|
-
name: errorCode,
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
};
|
|
1007
|
-
break;
|
|
632
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1008
633
|
case "ThrottlingException":
|
|
1009
634
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1010
|
-
|
|
1011
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1012
|
-
name: errorCode,
|
|
1013
|
-
$metadata: deserializeMetadata(output),
|
|
1014
|
-
};
|
|
1015
|
-
break;
|
|
635
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1016
636
|
case "UnauthorizedOperation":
|
|
1017
637
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1018
|
-
|
|
1019
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
1020
|
-
name: errorCode,
|
|
1021
|
-
$metadata: deserializeMetadata(output),
|
|
1022
|
-
};
|
|
1023
|
-
break;
|
|
638
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1024
639
|
default:
|
|
1025
640
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
...parsedBody,
|
|
1029
|
-
name: `${errorCode}`,
|
|
1030
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
641
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
642
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1031
643
|
$fault: "client",
|
|
1032
644
|
$metadata: deserializeMetadata(output),
|
|
1033
|
-
};
|
|
645
|
+
});
|
|
646
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1034
647
|
}
|
|
1035
|
-
const message = response.message || response.Message || errorCode;
|
|
1036
|
-
response.message = message;
|
|
1037
|
-
delete response.Message;
|
|
1038
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1039
648
|
};
|
|
1040
649
|
const deserializeAws_json1_1ImportMigrationTaskCommand = async (output, context) => {
|
|
1041
650
|
if (output.statusCode >= 300) {
|
|
@@ -1062,91 +671,40 @@ const deserializeAws_json1_1ImportMigrationTaskCommandError = async (output, con
|
|
|
1062
671
|
switch (errorCode) {
|
|
1063
672
|
case "AccessDeniedException":
|
|
1064
673
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1065
|
-
|
|
1066
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1067
|
-
name: errorCode,
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1070
|
-
break;
|
|
674
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1071
675
|
case "DryRunOperation":
|
|
1072
676
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1073
|
-
|
|
1074
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
1075
|
-
name: errorCode,
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
1078
|
-
break;
|
|
677
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
1079
678
|
case "HomeRegionNotSetException":
|
|
1080
679
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1081
|
-
|
|
1082
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1083
|
-
name: errorCode,
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
};
|
|
1086
|
-
break;
|
|
680
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1087
681
|
case "InternalServerError":
|
|
1088
682
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1089
|
-
|
|
1090
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1091
|
-
name: errorCode,
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
};
|
|
1094
|
-
break;
|
|
683
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1095
684
|
case "InvalidInputException":
|
|
1096
685
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1097
|
-
|
|
1098
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1099
|
-
name: errorCode,
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
};
|
|
1102
|
-
break;
|
|
686
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1103
687
|
case "ResourceNotFoundException":
|
|
1104
688
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1105
|
-
|
|
1106
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1107
|
-
name: errorCode,
|
|
1108
|
-
$metadata: deserializeMetadata(output),
|
|
1109
|
-
};
|
|
1110
|
-
break;
|
|
689
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1111
690
|
case "ServiceUnavailableException":
|
|
1112
691
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1113
|
-
|
|
1114
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1115
|
-
name: errorCode,
|
|
1116
|
-
$metadata: deserializeMetadata(output),
|
|
1117
|
-
};
|
|
1118
|
-
break;
|
|
692
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1119
693
|
case "ThrottlingException":
|
|
1120
694
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1121
|
-
|
|
1122
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1123
|
-
name: errorCode,
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
};
|
|
1126
|
-
break;
|
|
695
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1127
696
|
case "UnauthorizedOperation":
|
|
1128
697
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1129
|
-
|
|
1130
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
1131
|
-
name: errorCode,
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
};
|
|
1134
|
-
break;
|
|
698
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1135
699
|
default:
|
|
1136
700
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
...parsedBody,
|
|
1140
|
-
name: `${errorCode}`,
|
|
1141
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
701
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
703
|
$fault: "client",
|
|
1143
704
|
$metadata: deserializeMetadata(output),
|
|
1144
|
-
};
|
|
705
|
+
});
|
|
706
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1145
707
|
}
|
|
1146
|
-
const message = response.message || response.Message || errorCode;
|
|
1147
|
-
response.message = message;
|
|
1148
|
-
delete response.Message;
|
|
1149
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1150
708
|
};
|
|
1151
709
|
const deserializeAws_json1_1ListApplicationStatesCommand = async (output, context) => {
|
|
1152
710
|
if (output.statusCode >= 300) {
|
|
@@ -1173,67 +731,31 @@ const deserializeAws_json1_1ListApplicationStatesCommandError = async (output, c
|
|
|
1173
731
|
switch (errorCode) {
|
|
1174
732
|
case "AccessDeniedException":
|
|
1175
733
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1176
|
-
|
|
1177
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1178
|
-
name: errorCode,
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
};
|
|
1181
|
-
break;
|
|
734
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1182
735
|
case "HomeRegionNotSetException":
|
|
1183
736
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1184
|
-
|
|
1185
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1186
|
-
name: errorCode,
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
1189
|
-
break;
|
|
737
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1190
738
|
case "InternalServerError":
|
|
1191
739
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1192
|
-
|
|
1193
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1194
|
-
name: errorCode,
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
};
|
|
1197
|
-
break;
|
|
740
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1198
741
|
case "InvalidInputException":
|
|
1199
742
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1200
|
-
|
|
1201
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1202
|
-
name: errorCode,
|
|
1203
|
-
$metadata: deserializeMetadata(output),
|
|
1204
|
-
};
|
|
1205
|
-
break;
|
|
743
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1206
744
|
case "ServiceUnavailableException":
|
|
1207
745
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1208
|
-
|
|
1209
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1210
|
-
name: errorCode,
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1213
|
-
break;
|
|
746
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1214
747
|
case "ThrottlingException":
|
|
1215
748
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1216
|
-
|
|
1217
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
749
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1222
750
|
default:
|
|
1223
751
|
const parsedBody = parsedOutput.body;
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
...parsedBody,
|
|
1227
|
-
name: `${errorCode}`,
|
|
1228
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
752
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
753
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1229
754
|
$fault: "client",
|
|
1230
755
|
$metadata: deserializeMetadata(output),
|
|
1231
|
-
};
|
|
756
|
+
});
|
|
757
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1232
758
|
}
|
|
1233
|
-
const message = response.message || response.Message || errorCode;
|
|
1234
|
-
response.message = message;
|
|
1235
|
-
delete response.Message;
|
|
1236
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1237
759
|
};
|
|
1238
760
|
const deserializeAws_json1_1ListCreatedArtifactsCommand = async (output, context) => {
|
|
1239
761
|
if (output.statusCode >= 300) {
|
|
@@ -1260,75 +782,34 @@ const deserializeAws_json1_1ListCreatedArtifactsCommandError = async (output, co
|
|
|
1260
782
|
switch (errorCode) {
|
|
1261
783
|
case "AccessDeniedException":
|
|
1262
784
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1263
|
-
|
|
1264
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1265
|
-
name: errorCode,
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
};
|
|
1268
|
-
break;
|
|
785
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1269
786
|
case "HomeRegionNotSetException":
|
|
1270
787
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1271
|
-
|
|
1272
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1273
|
-
name: errorCode,
|
|
1274
|
-
$metadata: deserializeMetadata(output),
|
|
1275
|
-
};
|
|
1276
|
-
break;
|
|
788
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1277
789
|
case "InternalServerError":
|
|
1278
790
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1279
|
-
|
|
1280
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1281
|
-
name: errorCode,
|
|
1282
|
-
$metadata: deserializeMetadata(output),
|
|
1283
|
-
};
|
|
1284
|
-
break;
|
|
791
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1285
792
|
case "InvalidInputException":
|
|
1286
793
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1287
|
-
|
|
1288
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1289
|
-
name: errorCode,
|
|
1290
|
-
$metadata: deserializeMetadata(output),
|
|
1291
|
-
};
|
|
1292
|
-
break;
|
|
794
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1293
795
|
case "ResourceNotFoundException":
|
|
1294
796
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1295
|
-
|
|
1296
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1297
|
-
name: errorCode,
|
|
1298
|
-
$metadata: deserializeMetadata(output),
|
|
1299
|
-
};
|
|
1300
|
-
break;
|
|
797
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1301
798
|
case "ServiceUnavailableException":
|
|
1302
799
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
800
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1309
801
|
case "ThrottlingException":
|
|
1310
802
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1311
|
-
|
|
1312
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1313
|
-
name: errorCode,
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
1316
|
-
break;
|
|
803
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1317
804
|
default:
|
|
1318
805
|
const parsedBody = parsedOutput.body;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
...parsedBody,
|
|
1322
|
-
name: `${errorCode}`,
|
|
1323
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
806
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
807
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1324
808
|
$fault: "client",
|
|
1325
809
|
$metadata: deserializeMetadata(output),
|
|
1326
|
-
};
|
|
810
|
+
});
|
|
811
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1327
812
|
}
|
|
1328
|
-
const message = response.message || response.Message || errorCode;
|
|
1329
|
-
response.message = message;
|
|
1330
|
-
delete response.Message;
|
|
1331
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1332
813
|
};
|
|
1333
814
|
const deserializeAws_json1_1ListDiscoveredResourcesCommand = async (output, context) => {
|
|
1334
815
|
if (output.statusCode >= 300) {
|
|
@@ -1355,75 +836,34 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
1355
836
|
switch (errorCode) {
|
|
1356
837
|
case "AccessDeniedException":
|
|
1357
838
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1358
|
-
|
|
1359
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1360
|
-
name: errorCode,
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
839
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1364
840
|
case "HomeRegionNotSetException":
|
|
1365
841
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1366
|
-
|
|
1367
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1368
|
-
name: errorCode,
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
1371
|
-
break;
|
|
842
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1372
843
|
case "InternalServerError":
|
|
1373
844
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1374
|
-
|
|
1375
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1376
|
-
name: errorCode,
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
};
|
|
1379
|
-
break;
|
|
845
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1380
846
|
case "InvalidInputException":
|
|
1381
847
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1382
|
-
|
|
1383
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1384
|
-
name: errorCode,
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
};
|
|
1387
|
-
break;
|
|
848
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1388
849
|
case "ResourceNotFoundException":
|
|
1389
850
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1390
|
-
|
|
1391
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1392
|
-
name: errorCode,
|
|
1393
|
-
$metadata: deserializeMetadata(output),
|
|
1394
|
-
};
|
|
1395
|
-
break;
|
|
851
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1396
852
|
case "ServiceUnavailableException":
|
|
1397
853
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1398
|
-
|
|
1399
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1400
|
-
name: errorCode,
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
};
|
|
1403
|
-
break;
|
|
854
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1404
855
|
case "ThrottlingException":
|
|
1405
856
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
857
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1412
858
|
default:
|
|
1413
859
|
const parsedBody = parsedOutput.body;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
...parsedBody,
|
|
1417
|
-
name: `${errorCode}`,
|
|
1418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
860
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1419
862
|
$fault: "client",
|
|
1420
863
|
$metadata: deserializeMetadata(output),
|
|
1421
|
-
};
|
|
864
|
+
});
|
|
865
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1422
866
|
}
|
|
1423
|
-
const message = response.message || response.Message || errorCode;
|
|
1424
|
-
response.message = message;
|
|
1425
|
-
delete response.Message;
|
|
1426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1427
867
|
};
|
|
1428
868
|
const deserializeAws_json1_1ListMigrationTasksCommand = async (output, context) => {
|
|
1429
869
|
if (output.statusCode >= 300) {
|
|
@@ -1450,83 +890,37 @@ const deserializeAws_json1_1ListMigrationTasksCommandError = async (output, cont
|
|
|
1450
890
|
switch (errorCode) {
|
|
1451
891
|
case "AccessDeniedException":
|
|
1452
892
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
893
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1459
894
|
case "HomeRegionNotSetException":
|
|
1460
895
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
896
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1467
897
|
case "InternalServerError":
|
|
1468
898
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
899
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1475
900
|
case "InvalidInputException":
|
|
1476
901
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1477
|
-
|
|
1478
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1479
|
-
name: errorCode,
|
|
1480
|
-
$metadata: deserializeMetadata(output),
|
|
1481
|
-
};
|
|
1482
|
-
break;
|
|
902
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1483
903
|
case "PolicyErrorException":
|
|
1484
904
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
1485
|
-
|
|
1486
|
-
...(await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)),
|
|
1487
|
-
name: errorCode,
|
|
1488
|
-
$metadata: deserializeMetadata(output),
|
|
1489
|
-
};
|
|
1490
|
-
break;
|
|
905
|
+
throw await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context);
|
|
1491
906
|
case "ResourceNotFoundException":
|
|
1492
907
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1493
|
-
|
|
1494
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1495
|
-
name: errorCode,
|
|
1496
|
-
$metadata: deserializeMetadata(output),
|
|
1497
|
-
};
|
|
1498
|
-
break;
|
|
908
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1499
909
|
case "ServiceUnavailableException":
|
|
1500
910
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1501
|
-
|
|
1502
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1503
|
-
name: errorCode,
|
|
1504
|
-
$metadata: deserializeMetadata(output),
|
|
1505
|
-
};
|
|
1506
|
-
break;
|
|
911
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1507
912
|
case "ThrottlingException":
|
|
1508
913
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1509
|
-
|
|
1510
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1511
|
-
name: errorCode,
|
|
1512
|
-
$metadata: deserializeMetadata(output),
|
|
1513
|
-
};
|
|
1514
|
-
break;
|
|
914
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1515
915
|
default:
|
|
1516
916
|
const parsedBody = parsedOutput.body;
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
...parsedBody,
|
|
1520
|
-
name: `${errorCode}`,
|
|
1521
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
917
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
918
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1522
919
|
$fault: "client",
|
|
1523
920
|
$metadata: deserializeMetadata(output),
|
|
1524
|
-
};
|
|
921
|
+
});
|
|
922
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1525
923
|
}
|
|
1526
|
-
const message = response.message || response.Message || errorCode;
|
|
1527
|
-
response.message = message;
|
|
1528
|
-
delete response.Message;
|
|
1529
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1530
924
|
};
|
|
1531
925
|
const deserializeAws_json1_1ListProgressUpdateStreamsCommand = async (output, context) => {
|
|
1532
926
|
if (output.statusCode >= 300) {
|
|
@@ -1553,67 +947,31 @@ const deserializeAws_json1_1ListProgressUpdateStreamsCommandError = async (outpu
|
|
|
1553
947
|
switch (errorCode) {
|
|
1554
948
|
case "AccessDeniedException":
|
|
1555
949
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1556
|
-
|
|
1557
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1558
|
-
name: errorCode,
|
|
1559
|
-
$metadata: deserializeMetadata(output),
|
|
1560
|
-
};
|
|
1561
|
-
break;
|
|
950
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1562
951
|
case "HomeRegionNotSetException":
|
|
1563
952
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1564
|
-
|
|
1565
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1566
|
-
name: errorCode,
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1569
|
-
break;
|
|
953
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1570
954
|
case "InternalServerError":
|
|
1571
955
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1572
|
-
|
|
1573
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
956
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1578
957
|
case "InvalidInputException":
|
|
1579
958
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1580
|
-
|
|
1581
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1582
|
-
name: errorCode,
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
};
|
|
1585
|
-
break;
|
|
959
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1586
960
|
case "ServiceUnavailableException":
|
|
1587
961
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1588
|
-
|
|
1589
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1590
|
-
name: errorCode,
|
|
1591
|
-
$metadata: deserializeMetadata(output),
|
|
1592
|
-
};
|
|
1593
|
-
break;
|
|
962
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1594
963
|
case "ThrottlingException":
|
|
1595
964
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1596
|
-
|
|
1597
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1598
|
-
name: errorCode,
|
|
1599
|
-
$metadata: deserializeMetadata(output),
|
|
1600
|
-
};
|
|
1601
|
-
break;
|
|
965
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1602
966
|
default:
|
|
1603
967
|
const parsedBody = parsedOutput.body;
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
...parsedBody,
|
|
1607
|
-
name: `${errorCode}`,
|
|
1608
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
968
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
969
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1609
970
|
$fault: "client",
|
|
1610
971
|
$metadata: deserializeMetadata(output),
|
|
1611
|
-
};
|
|
972
|
+
});
|
|
973
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1612
974
|
}
|
|
1613
|
-
const message = response.message || response.Message || errorCode;
|
|
1614
|
-
response.message = message;
|
|
1615
|
-
delete response.Message;
|
|
1616
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1617
975
|
};
|
|
1618
976
|
const deserializeAws_json1_1NotifyApplicationStateCommand = async (output, context) => {
|
|
1619
977
|
if (output.statusCode >= 300) {
|
|
@@ -1640,99 +998,43 @@ const deserializeAws_json1_1NotifyApplicationStateCommandError = async (output,
|
|
|
1640
998
|
switch (errorCode) {
|
|
1641
999
|
case "AccessDeniedException":
|
|
1642
1000
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1643
|
-
|
|
1644
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1645
|
-
name: errorCode,
|
|
1646
|
-
$metadata: deserializeMetadata(output),
|
|
1647
|
-
};
|
|
1648
|
-
break;
|
|
1001
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1649
1002
|
case "DryRunOperation":
|
|
1650
1003
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1651
|
-
|
|
1652
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
1653
|
-
name: errorCode,
|
|
1654
|
-
$metadata: deserializeMetadata(output),
|
|
1655
|
-
};
|
|
1656
|
-
break;
|
|
1004
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
1657
1005
|
case "HomeRegionNotSetException":
|
|
1658
1006
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1659
|
-
|
|
1660
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1661
|
-
name: errorCode,
|
|
1662
|
-
$metadata: deserializeMetadata(output),
|
|
1663
|
-
};
|
|
1664
|
-
break;
|
|
1007
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1665
1008
|
case "InternalServerError":
|
|
1666
1009
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1667
|
-
|
|
1668
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1669
|
-
name: errorCode,
|
|
1670
|
-
$metadata: deserializeMetadata(output),
|
|
1671
|
-
};
|
|
1672
|
-
break;
|
|
1010
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1673
1011
|
case "InvalidInputException":
|
|
1674
1012
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1675
|
-
|
|
1676
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1677
|
-
name: errorCode,
|
|
1678
|
-
$metadata: deserializeMetadata(output),
|
|
1679
|
-
};
|
|
1680
|
-
break;
|
|
1013
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1681
1014
|
case "PolicyErrorException":
|
|
1682
1015
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
1683
|
-
|
|
1684
|
-
...(await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)),
|
|
1685
|
-
name: errorCode,
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
};
|
|
1688
|
-
break;
|
|
1016
|
+
throw await deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context);
|
|
1689
1017
|
case "ResourceNotFoundException":
|
|
1690
1018
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1691
|
-
|
|
1692
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1693
|
-
name: errorCode,
|
|
1694
|
-
$metadata: deserializeMetadata(output),
|
|
1695
|
-
};
|
|
1696
|
-
break;
|
|
1019
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1697
1020
|
case "ServiceUnavailableException":
|
|
1698
1021
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1699
|
-
|
|
1700
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1701
|
-
name: errorCode,
|
|
1702
|
-
$metadata: deserializeMetadata(output),
|
|
1703
|
-
};
|
|
1704
|
-
break;
|
|
1022
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1705
1023
|
case "ThrottlingException":
|
|
1706
1024
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1707
|
-
|
|
1708
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1709
|
-
name: errorCode,
|
|
1710
|
-
$metadata: deserializeMetadata(output),
|
|
1711
|
-
};
|
|
1712
|
-
break;
|
|
1025
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1713
1026
|
case "UnauthorizedOperation":
|
|
1714
1027
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1715
|
-
|
|
1716
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
1717
|
-
name: errorCode,
|
|
1718
|
-
$metadata: deserializeMetadata(output),
|
|
1719
|
-
};
|
|
1720
|
-
break;
|
|
1028
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1721
1029
|
default:
|
|
1722
1030
|
const parsedBody = parsedOutput.body;
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
...parsedBody,
|
|
1726
|
-
name: `${errorCode}`,
|
|
1727
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1031
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
1032
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1728
1033
|
$fault: "client",
|
|
1729
1034
|
$metadata: deserializeMetadata(output),
|
|
1730
|
-
};
|
|
1035
|
+
});
|
|
1036
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1731
1037
|
}
|
|
1732
|
-
const message = response.message || response.Message || errorCode;
|
|
1733
|
-
response.message = message;
|
|
1734
|
-
delete response.Message;
|
|
1735
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1736
1038
|
};
|
|
1737
1039
|
const deserializeAws_json1_1NotifyMigrationTaskStateCommand = async (output, context) => {
|
|
1738
1040
|
if (output.statusCode >= 300) {
|
|
@@ -1759,91 +1061,40 @@ const deserializeAws_json1_1NotifyMigrationTaskStateCommandError = async (output
|
|
|
1759
1061
|
switch (errorCode) {
|
|
1760
1062
|
case "AccessDeniedException":
|
|
1761
1063
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1762
|
-
|
|
1763
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1764
|
-
name: errorCode,
|
|
1765
|
-
$metadata: deserializeMetadata(output),
|
|
1766
|
-
};
|
|
1767
|
-
break;
|
|
1064
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1768
1065
|
case "DryRunOperation":
|
|
1769
1066
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1770
|
-
|
|
1771
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
1772
|
-
name: errorCode,
|
|
1773
|
-
$metadata: deserializeMetadata(output),
|
|
1774
|
-
};
|
|
1775
|
-
break;
|
|
1067
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
1776
1068
|
case "HomeRegionNotSetException":
|
|
1777
1069
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1778
|
-
|
|
1779
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1780
|
-
name: errorCode,
|
|
1781
|
-
$metadata: deserializeMetadata(output),
|
|
1782
|
-
};
|
|
1783
|
-
break;
|
|
1070
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1784
1071
|
case "InternalServerError":
|
|
1785
1072
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1786
|
-
|
|
1787
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1788
|
-
name: errorCode,
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
};
|
|
1791
|
-
break;
|
|
1073
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1792
1074
|
case "InvalidInputException":
|
|
1793
1075
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1794
|
-
|
|
1795
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1796
|
-
name: errorCode,
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
};
|
|
1799
|
-
break;
|
|
1076
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1800
1077
|
case "ResourceNotFoundException":
|
|
1801
1078
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1802
|
-
|
|
1803
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1804
|
-
name: errorCode,
|
|
1805
|
-
$metadata: deserializeMetadata(output),
|
|
1806
|
-
};
|
|
1807
|
-
break;
|
|
1079
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1808
1080
|
case "ServiceUnavailableException":
|
|
1809
1081
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1810
|
-
|
|
1811
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1812
|
-
name: errorCode,
|
|
1813
|
-
$metadata: deserializeMetadata(output),
|
|
1814
|
-
};
|
|
1815
|
-
break;
|
|
1082
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1816
1083
|
case "ThrottlingException":
|
|
1817
1084
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1818
|
-
|
|
1819
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1820
|
-
name: errorCode,
|
|
1821
|
-
$metadata: deserializeMetadata(output),
|
|
1822
|
-
};
|
|
1823
|
-
break;
|
|
1085
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1824
1086
|
case "UnauthorizedOperation":
|
|
1825
1087
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1826
|
-
|
|
1827
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
1828
|
-
name: errorCode,
|
|
1829
|
-
$metadata: deserializeMetadata(output),
|
|
1830
|
-
};
|
|
1831
|
-
break;
|
|
1088
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1832
1089
|
default:
|
|
1833
1090
|
const parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
...parsedBody,
|
|
1837
|
-
name: `${errorCode}`,
|
|
1838
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1091
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
1092
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1839
1093
|
$fault: "client",
|
|
1840
1094
|
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1095
|
+
});
|
|
1096
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1842
1097
|
}
|
|
1843
|
-
const message = response.message || response.Message || errorCode;
|
|
1844
|
-
response.message = message;
|
|
1845
|
-
delete response.Message;
|
|
1846
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1847
1098
|
};
|
|
1848
1099
|
const deserializeAws_json1_1PutResourceAttributesCommand = async (output, context) => {
|
|
1849
1100
|
if (output.statusCode >= 300) {
|
|
@@ -1870,201 +1121,130 @@ const deserializeAws_json1_1PutResourceAttributesCommandError = async (output, c
|
|
|
1870
1121
|
switch (errorCode) {
|
|
1871
1122
|
case "AccessDeniedException":
|
|
1872
1123
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1873
|
-
|
|
1874
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1875
|
-
name: errorCode,
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
};
|
|
1878
|
-
break;
|
|
1124
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1879
1125
|
case "DryRunOperation":
|
|
1880
1126
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1881
|
-
|
|
1882
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
1883
|
-
name: errorCode,
|
|
1884
|
-
$metadata: deserializeMetadata(output),
|
|
1885
|
-
};
|
|
1886
|
-
break;
|
|
1127
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
1887
1128
|
case "HomeRegionNotSetException":
|
|
1888
1129
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1889
|
-
|
|
1890
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1891
|
-
name: errorCode,
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
};
|
|
1894
|
-
break;
|
|
1130
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1895
1131
|
case "InternalServerError":
|
|
1896
1132
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1897
|
-
|
|
1898
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1899
|
-
name: errorCode,
|
|
1900
|
-
$metadata: deserializeMetadata(output),
|
|
1901
|
-
};
|
|
1902
|
-
break;
|
|
1133
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1903
1134
|
case "InvalidInputException":
|
|
1904
1135
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1905
|
-
|
|
1906
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1907
|
-
name: errorCode,
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
};
|
|
1910
|
-
break;
|
|
1136
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1911
1137
|
case "ResourceNotFoundException":
|
|
1912
1138
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1913
|
-
|
|
1914
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1915
|
-
name: errorCode,
|
|
1916
|
-
$metadata: deserializeMetadata(output),
|
|
1917
|
-
};
|
|
1918
|
-
break;
|
|
1139
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1919
1140
|
case "ServiceUnavailableException":
|
|
1920
1141
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1921
|
-
|
|
1922
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1923
|
-
name: errorCode,
|
|
1924
|
-
$metadata: deserializeMetadata(output),
|
|
1925
|
-
};
|
|
1926
|
-
break;
|
|
1142
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1927
1143
|
case "ThrottlingException":
|
|
1928
1144
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1929
|
-
|
|
1930
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1931
|
-
name: errorCode,
|
|
1932
|
-
$metadata: deserializeMetadata(output),
|
|
1933
|
-
};
|
|
1934
|
-
break;
|
|
1145
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1935
1146
|
case "UnauthorizedOperation":
|
|
1936
1147
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1937
|
-
|
|
1938
|
-
...(await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)),
|
|
1939
|
-
name: errorCode,
|
|
1940
|
-
$metadata: deserializeMetadata(output),
|
|
1941
|
-
};
|
|
1942
|
-
break;
|
|
1148
|
+
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1943
1149
|
default:
|
|
1944
1150
|
const parsedBody = parsedOutput.body;
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
...parsedBody,
|
|
1948
|
-
name: `${errorCode}`,
|
|
1949
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1151
|
+
response = new MigrationHubServiceException_1.MigrationHubServiceException({
|
|
1152
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1950
1153
|
$fault: "client",
|
|
1951
1154
|
$metadata: deserializeMetadata(output),
|
|
1952
|
-
};
|
|
1155
|
+
});
|
|
1156
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1953
1157
|
}
|
|
1954
|
-
const message = response.message || response.Message || errorCode;
|
|
1955
|
-
response.message = message;
|
|
1956
|
-
delete response.Message;
|
|
1957
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1958
1158
|
};
|
|
1959
1159
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1960
1160
|
const body = parsedOutput.body;
|
|
1961
1161
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1962
|
-
const
|
|
1963
|
-
name: "AccessDeniedException",
|
|
1964
|
-
$fault: "client",
|
|
1162
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1965
1163
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1966
1164
|
...deserialized,
|
|
1967
|
-
};
|
|
1968
|
-
return
|
|
1165
|
+
});
|
|
1166
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1969
1167
|
};
|
|
1970
1168
|
const deserializeAws_json1_1DryRunOperationResponse = async (parsedOutput, context) => {
|
|
1971
1169
|
const body = parsedOutput.body;
|
|
1972
1170
|
const deserialized = deserializeAws_json1_1DryRunOperation(body, context);
|
|
1973
|
-
const
|
|
1974
|
-
name: "DryRunOperation",
|
|
1975
|
-
$fault: "client",
|
|
1171
|
+
const exception = new models_0_1.DryRunOperation({
|
|
1976
1172
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1977
1173
|
...deserialized,
|
|
1978
|
-
};
|
|
1979
|
-
return
|
|
1174
|
+
});
|
|
1175
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1980
1176
|
};
|
|
1981
1177
|
const deserializeAws_json1_1HomeRegionNotSetExceptionResponse = async (parsedOutput, context) => {
|
|
1982
1178
|
const body = parsedOutput.body;
|
|
1983
1179
|
const deserialized = deserializeAws_json1_1HomeRegionNotSetException(body, context);
|
|
1984
|
-
const
|
|
1985
|
-
name: "HomeRegionNotSetException",
|
|
1986
|
-
$fault: "client",
|
|
1180
|
+
const exception = new models_0_1.HomeRegionNotSetException({
|
|
1987
1181
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1988
1182
|
...deserialized,
|
|
1989
|
-
};
|
|
1990
|
-
return
|
|
1183
|
+
});
|
|
1184
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1991
1185
|
};
|
|
1992
1186
|
const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
1993
1187
|
const body = parsedOutput.body;
|
|
1994
1188
|
const deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
1995
|
-
const
|
|
1996
|
-
name: "InternalServerError",
|
|
1997
|
-
$fault: "server",
|
|
1189
|
+
const exception = new models_0_1.InternalServerError({
|
|
1998
1190
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1999
1191
|
...deserialized,
|
|
2000
|
-
};
|
|
2001
|
-
return
|
|
1192
|
+
});
|
|
1193
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2002
1194
|
};
|
|
2003
1195
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
2004
1196
|
const body = parsedOutput.body;
|
|
2005
1197
|
const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
2006
|
-
const
|
|
2007
|
-
name: "InvalidInputException",
|
|
2008
|
-
$fault: "client",
|
|
1198
|
+
const exception = new models_0_1.InvalidInputException({
|
|
2009
1199
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2010
1200
|
...deserialized,
|
|
2011
|
-
};
|
|
2012
|
-
return
|
|
1201
|
+
});
|
|
1202
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2013
1203
|
};
|
|
2014
1204
|
const deserializeAws_json1_1PolicyErrorExceptionResponse = async (parsedOutput, context) => {
|
|
2015
1205
|
const body = parsedOutput.body;
|
|
2016
1206
|
const deserialized = deserializeAws_json1_1PolicyErrorException(body, context);
|
|
2017
|
-
const
|
|
2018
|
-
name: "PolicyErrorException",
|
|
2019
|
-
$fault: "client",
|
|
1207
|
+
const exception = new models_0_1.PolicyErrorException({
|
|
2020
1208
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2021
1209
|
...deserialized,
|
|
2022
|
-
};
|
|
2023
|
-
return
|
|
1210
|
+
});
|
|
1211
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2024
1212
|
};
|
|
2025
1213
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2026
1214
|
const body = parsedOutput.body;
|
|
2027
1215
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2028
|
-
const
|
|
2029
|
-
name: "ResourceNotFoundException",
|
|
2030
|
-
$fault: "client",
|
|
1216
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2031
1217
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2032
1218
|
...deserialized,
|
|
2033
|
-
};
|
|
2034
|
-
return
|
|
1219
|
+
});
|
|
1220
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2035
1221
|
};
|
|
2036
1222
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2037
1223
|
const body = parsedOutput.body;
|
|
2038
1224
|
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
2039
|
-
const
|
|
2040
|
-
name: "ServiceUnavailableException",
|
|
2041
|
-
$fault: "server",
|
|
1225
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
2042
1226
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2043
1227
|
...deserialized,
|
|
2044
|
-
};
|
|
2045
|
-
return
|
|
1228
|
+
});
|
|
1229
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2046
1230
|
};
|
|
2047
1231
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2048
1232
|
const body = parsedOutput.body;
|
|
2049
1233
|
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2050
|
-
const
|
|
2051
|
-
name: "ThrottlingException",
|
|
2052
|
-
$fault: "client",
|
|
1234
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2053
1235
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2054
1236
|
...deserialized,
|
|
2055
|
-
};
|
|
2056
|
-
return
|
|
1237
|
+
});
|
|
1238
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2057
1239
|
};
|
|
2058
1240
|
const deserializeAws_json1_1UnauthorizedOperationResponse = async (parsedOutput, context) => {
|
|
2059
1241
|
const body = parsedOutput.body;
|
|
2060
1242
|
const deserialized = deserializeAws_json1_1UnauthorizedOperation(body, context);
|
|
2061
|
-
const
|
|
2062
|
-
name: "UnauthorizedOperation",
|
|
2063
|
-
$fault: "client",
|
|
1243
|
+
const exception = new models_0_1.UnauthorizedOperation({
|
|
2064
1244
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2065
1245
|
...deserialized,
|
|
2066
|
-
};
|
|
2067
|
-
return
|
|
1246
|
+
});
|
|
1247
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2068
1248
|
};
|
|
2069
1249
|
const serializeAws_json1_1ApplicationIds = (input, context) => {
|
|
2070
1250
|
return input
|
|
@@ -2291,7 +1471,7 @@ const deserializeAws_json1_1ApplicationState = (output, context) => {
|
|
|
2291
1471
|
};
|
|
2292
1472
|
};
|
|
2293
1473
|
const deserializeAws_json1_1ApplicationStateList = (output, context) => {
|
|
2294
|
-
|
|
1474
|
+
const retVal = (output || [])
|
|
2295
1475
|
.filter((e) => e != null)
|
|
2296
1476
|
.map((entry) => {
|
|
2297
1477
|
if (entry === null) {
|
|
@@ -2299,6 +1479,7 @@ const deserializeAws_json1_1ApplicationStateList = (output, context) => {
|
|
|
2299
1479
|
}
|
|
2300
1480
|
return deserializeAws_json1_1ApplicationState(entry, context);
|
|
2301
1481
|
});
|
|
1482
|
+
return retVal;
|
|
2302
1483
|
};
|
|
2303
1484
|
const deserializeAws_json1_1AssociateCreatedArtifactResult = (output, context) => {
|
|
2304
1485
|
return {};
|
|
@@ -2313,7 +1494,7 @@ const deserializeAws_json1_1CreatedArtifact = (output, context) => {
|
|
|
2313
1494
|
};
|
|
2314
1495
|
};
|
|
2315
1496
|
const deserializeAws_json1_1CreatedArtifactList = (output, context) => {
|
|
2316
|
-
|
|
1497
|
+
const retVal = (output || [])
|
|
2317
1498
|
.filter((e) => e != null)
|
|
2318
1499
|
.map((entry) => {
|
|
2319
1500
|
if (entry === null) {
|
|
@@ -2321,6 +1502,7 @@ const deserializeAws_json1_1CreatedArtifactList = (output, context) => {
|
|
|
2321
1502
|
}
|
|
2322
1503
|
return deserializeAws_json1_1CreatedArtifact(entry, context);
|
|
2323
1504
|
});
|
|
1505
|
+
return retVal;
|
|
2324
1506
|
};
|
|
2325
1507
|
const deserializeAws_json1_1CreateProgressUpdateStreamResult = (output, context) => {
|
|
2326
1508
|
return {};
|
|
@@ -2356,7 +1538,7 @@ const deserializeAws_json1_1DiscoveredResource = (output, context) => {
|
|
|
2356
1538
|
};
|
|
2357
1539
|
};
|
|
2358
1540
|
const deserializeAws_json1_1DiscoveredResourceList = (output, context) => {
|
|
2359
|
-
|
|
1541
|
+
const retVal = (output || [])
|
|
2360
1542
|
.filter((e) => e != null)
|
|
2361
1543
|
.map((entry) => {
|
|
2362
1544
|
if (entry === null) {
|
|
@@ -2364,6 +1546,7 @@ const deserializeAws_json1_1DiscoveredResourceList = (output, context) => {
|
|
|
2364
1546
|
}
|
|
2365
1547
|
return deserializeAws_json1_1DiscoveredResource(entry, context);
|
|
2366
1548
|
});
|
|
1549
|
+
return retVal;
|
|
2367
1550
|
};
|
|
2368
1551
|
const deserializeAws_json1_1DryRunOperation = (output, context) => {
|
|
2369
1552
|
return {
|
|
@@ -2389,7 +1572,7 @@ const deserializeAws_json1_1InvalidInputException = (output, context) => {
|
|
|
2389
1572
|
};
|
|
2390
1573
|
};
|
|
2391
1574
|
const deserializeAws_json1_1LatestResourceAttributeList = (output, context) => {
|
|
2392
|
-
|
|
1575
|
+
const retVal = (output || [])
|
|
2393
1576
|
.filter((e) => e != null)
|
|
2394
1577
|
.map((entry) => {
|
|
2395
1578
|
if (entry === null) {
|
|
@@ -2397,6 +1580,7 @@ const deserializeAws_json1_1LatestResourceAttributeList = (output, context) => {
|
|
|
2397
1580
|
}
|
|
2398
1581
|
return deserializeAws_json1_1ResourceAttribute(entry, context);
|
|
2399
1582
|
});
|
|
1583
|
+
return retVal;
|
|
2400
1584
|
};
|
|
2401
1585
|
const deserializeAws_json1_1ListApplicationStatesResult = (output, context) => {
|
|
2402
1586
|
return {
|
|
@@ -2464,7 +1648,7 @@ const deserializeAws_json1_1MigrationTaskSummary = (output, context) => {
|
|
|
2464
1648
|
};
|
|
2465
1649
|
};
|
|
2466
1650
|
const deserializeAws_json1_1MigrationTaskSummaryList = (output, context) => {
|
|
2467
|
-
|
|
1651
|
+
const retVal = (output || [])
|
|
2468
1652
|
.filter((e) => e != null)
|
|
2469
1653
|
.map((entry) => {
|
|
2470
1654
|
if (entry === null) {
|
|
@@ -2472,6 +1656,7 @@ const deserializeAws_json1_1MigrationTaskSummaryList = (output, context) => {
|
|
|
2472
1656
|
}
|
|
2473
1657
|
return deserializeAws_json1_1MigrationTaskSummary(entry, context);
|
|
2474
1658
|
});
|
|
1659
|
+
return retVal;
|
|
2475
1660
|
};
|
|
2476
1661
|
const deserializeAws_json1_1NotifyApplicationStateResult = (output, context) => {
|
|
2477
1662
|
return {};
|
|
@@ -2490,7 +1675,7 @@ const deserializeAws_json1_1ProgressUpdateStreamSummary = (output, context) => {
|
|
|
2490
1675
|
};
|
|
2491
1676
|
};
|
|
2492
1677
|
const deserializeAws_json1_1ProgressUpdateStreamSummaryList = (output, context) => {
|
|
2493
|
-
|
|
1678
|
+
const retVal = (output || [])
|
|
2494
1679
|
.filter((e) => e != null)
|
|
2495
1680
|
.map((entry) => {
|
|
2496
1681
|
if (entry === null) {
|
|
@@ -2498,6 +1683,7 @@ const deserializeAws_json1_1ProgressUpdateStreamSummaryList = (output, context)
|
|
|
2498
1683
|
}
|
|
2499
1684
|
return deserializeAws_json1_1ProgressUpdateStreamSummary(entry, context);
|
|
2500
1685
|
});
|
|
1686
|
+
return retVal;
|
|
2501
1687
|
};
|
|
2502
1688
|
const deserializeAws_json1_1PutResourceAttributesResult = (output, context) => {
|
|
2503
1689
|
return {};
|