@aws-sdk/client-fsx 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +195 -1484
- package/dist-es/protocols/Aws_json1_1.js +180 -1469
- package/package.json +3 -3
|
@@ -275,7 +275,7 @@ export const se_UpdateVolumeCommand = async (input, context) => {
|
|
|
275
275
|
};
|
|
276
276
|
export const de_AssociateFileSystemAliasesCommand = async (output, context) => {
|
|
277
277
|
if (output.statusCode >= 300) {
|
|
278
|
-
return
|
|
278
|
+
return de_CommandError(output, context);
|
|
279
279
|
}
|
|
280
280
|
const data = await parseBody(output.body, context);
|
|
281
281
|
let contents = {};
|
|
@@ -286,34 +286,9 @@ export const de_AssociateFileSystemAliasesCommand = async (output, context) => {
|
|
|
286
286
|
};
|
|
287
287
|
return response;
|
|
288
288
|
};
|
|
289
|
-
const de_AssociateFileSystemAliasesCommandError = async (output, context) => {
|
|
290
|
-
const parsedOutput = {
|
|
291
|
-
...output,
|
|
292
|
-
body: await parseErrorBody(output.body, context),
|
|
293
|
-
};
|
|
294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
295
|
-
switch (errorCode) {
|
|
296
|
-
case "BadRequest":
|
|
297
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
298
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
299
|
-
case "FileSystemNotFound":
|
|
300
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
301
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
302
|
-
case "InternalServerError":
|
|
303
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
304
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
305
|
-
default:
|
|
306
|
-
const parsedBody = parsedOutput.body;
|
|
307
|
-
return throwDefaultError({
|
|
308
|
-
output,
|
|
309
|
-
parsedBody,
|
|
310
|
-
errorCode,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
289
|
export const de_CancelDataRepositoryTaskCommand = async (output, context) => {
|
|
315
290
|
if (output.statusCode >= 300) {
|
|
316
|
-
return
|
|
291
|
+
return de_CommandError(output, context);
|
|
317
292
|
}
|
|
318
293
|
const data = await parseBody(output.body, context);
|
|
319
294
|
let contents = {};
|
|
@@ -324,40 +299,9 @@ export const de_CancelDataRepositoryTaskCommand = async (output, context) => {
|
|
|
324
299
|
};
|
|
325
300
|
return response;
|
|
326
301
|
};
|
|
327
|
-
const de_CancelDataRepositoryTaskCommandError = async (output, context) => {
|
|
328
|
-
const parsedOutput = {
|
|
329
|
-
...output,
|
|
330
|
-
body: await parseErrorBody(output.body, context),
|
|
331
|
-
};
|
|
332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
|
-
switch (errorCode) {
|
|
334
|
-
case "BadRequest":
|
|
335
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
336
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
337
|
-
case "DataRepositoryTaskEnded":
|
|
338
|
-
case "com.amazonaws.fsx#DataRepositoryTaskEnded":
|
|
339
|
-
throw await de_DataRepositoryTaskEndedRes(parsedOutput, context);
|
|
340
|
-
case "DataRepositoryTaskNotFound":
|
|
341
|
-
case "com.amazonaws.fsx#DataRepositoryTaskNotFound":
|
|
342
|
-
throw await de_DataRepositoryTaskNotFoundRes(parsedOutput, context);
|
|
343
|
-
case "InternalServerError":
|
|
344
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
345
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
346
|
-
case "UnsupportedOperation":
|
|
347
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
348
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
349
|
-
default:
|
|
350
|
-
const parsedBody = parsedOutput.body;
|
|
351
|
-
return throwDefaultError({
|
|
352
|
-
output,
|
|
353
|
-
parsedBody,
|
|
354
|
-
errorCode,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
302
|
export const de_CopyBackupCommand = async (output, context) => {
|
|
359
303
|
if (output.statusCode >= 300) {
|
|
360
|
-
return
|
|
304
|
+
return de_CommandError(output, context);
|
|
361
305
|
}
|
|
362
306
|
const data = await parseBody(output.body, context);
|
|
363
307
|
let contents = {};
|
|
@@ -368,58 +312,9 @@ export const de_CopyBackupCommand = async (output, context) => {
|
|
|
368
312
|
};
|
|
369
313
|
return response;
|
|
370
314
|
};
|
|
371
|
-
const de_CopyBackupCommandError = async (output, context) => {
|
|
372
|
-
const parsedOutput = {
|
|
373
|
-
...output,
|
|
374
|
-
body: await parseErrorBody(output.body, context),
|
|
375
|
-
};
|
|
376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
|
-
switch (errorCode) {
|
|
378
|
-
case "BackupNotFound":
|
|
379
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
380
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
381
|
-
case "BadRequest":
|
|
382
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
383
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
384
|
-
case "IncompatibleParameterError":
|
|
385
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
386
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
387
|
-
case "IncompatibleRegionForMultiAZ":
|
|
388
|
-
case "com.amazonaws.fsx#IncompatibleRegionForMultiAZ":
|
|
389
|
-
throw await de_IncompatibleRegionForMultiAZRes(parsedOutput, context);
|
|
390
|
-
case "InternalServerError":
|
|
391
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
392
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
393
|
-
case "InvalidDestinationKmsKey":
|
|
394
|
-
case "com.amazonaws.fsx#InvalidDestinationKmsKey":
|
|
395
|
-
throw await de_InvalidDestinationKmsKeyRes(parsedOutput, context);
|
|
396
|
-
case "InvalidRegion":
|
|
397
|
-
case "com.amazonaws.fsx#InvalidRegion":
|
|
398
|
-
throw await de_InvalidRegionRes(parsedOutput, context);
|
|
399
|
-
case "InvalidSourceKmsKey":
|
|
400
|
-
case "com.amazonaws.fsx#InvalidSourceKmsKey":
|
|
401
|
-
throw await de_InvalidSourceKmsKeyRes(parsedOutput, context);
|
|
402
|
-
case "ServiceLimitExceeded":
|
|
403
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
404
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
405
|
-
case "SourceBackupUnavailable":
|
|
406
|
-
case "com.amazonaws.fsx#SourceBackupUnavailable":
|
|
407
|
-
throw await de_SourceBackupUnavailableRes(parsedOutput, context);
|
|
408
|
-
case "UnsupportedOperation":
|
|
409
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
410
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
411
|
-
default:
|
|
412
|
-
const parsedBody = parsedOutput.body;
|
|
413
|
-
return throwDefaultError({
|
|
414
|
-
output,
|
|
415
|
-
parsedBody,
|
|
416
|
-
errorCode,
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
315
|
export const de_CopySnapshotAndUpdateVolumeCommand = async (output, context) => {
|
|
421
316
|
if (output.statusCode >= 300) {
|
|
422
|
-
return
|
|
317
|
+
return de_CommandError(output, context);
|
|
423
318
|
}
|
|
424
319
|
const data = await parseBody(output.body, context);
|
|
425
320
|
let contents = {};
|
|
@@ -430,37 +325,9 @@ export const de_CopySnapshotAndUpdateVolumeCommand = async (output, context) =>
|
|
|
430
325
|
};
|
|
431
326
|
return response;
|
|
432
327
|
};
|
|
433
|
-
const de_CopySnapshotAndUpdateVolumeCommandError = async (output, context) => {
|
|
434
|
-
const parsedOutput = {
|
|
435
|
-
...output,
|
|
436
|
-
body: await parseErrorBody(output.body, context),
|
|
437
|
-
};
|
|
438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
-
switch (errorCode) {
|
|
440
|
-
case "BadRequest":
|
|
441
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
442
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
443
|
-
case "IncompatibleParameterError":
|
|
444
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
445
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
446
|
-
case "InternalServerError":
|
|
447
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
448
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
449
|
-
case "ServiceLimitExceeded":
|
|
450
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
451
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
452
|
-
default:
|
|
453
|
-
const parsedBody = parsedOutput.body;
|
|
454
|
-
return throwDefaultError({
|
|
455
|
-
output,
|
|
456
|
-
parsedBody,
|
|
457
|
-
errorCode,
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
328
|
export const de_CreateBackupCommand = async (output, context) => {
|
|
462
329
|
if (output.statusCode >= 300) {
|
|
463
|
-
return
|
|
330
|
+
return de_CommandError(output, context);
|
|
464
331
|
}
|
|
465
332
|
const data = await parseBody(output.body, context);
|
|
466
333
|
let contents = {};
|
|
@@ -471,49 +338,9 @@ export const de_CreateBackupCommand = async (output, context) => {
|
|
|
471
338
|
};
|
|
472
339
|
return response;
|
|
473
340
|
};
|
|
474
|
-
const de_CreateBackupCommandError = async (output, context) => {
|
|
475
|
-
const parsedOutput = {
|
|
476
|
-
...output,
|
|
477
|
-
body: await parseErrorBody(output.body, context),
|
|
478
|
-
};
|
|
479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
|
-
switch (errorCode) {
|
|
481
|
-
case "BackupInProgress":
|
|
482
|
-
case "com.amazonaws.fsx#BackupInProgress":
|
|
483
|
-
throw await de_BackupInProgressRes(parsedOutput, context);
|
|
484
|
-
case "BadRequest":
|
|
485
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
486
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
487
|
-
case "FileSystemNotFound":
|
|
488
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
489
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
490
|
-
case "IncompatibleParameterError":
|
|
491
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
492
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
493
|
-
case "InternalServerError":
|
|
494
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
495
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
496
|
-
case "ServiceLimitExceeded":
|
|
497
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
498
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
499
|
-
case "UnsupportedOperation":
|
|
500
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
501
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
502
|
-
case "VolumeNotFound":
|
|
503
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
504
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
505
|
-
default:
|
|
506
|
-
const parsedBody = parsedOutput.body;
|
|
507
|
-
return throwDefaultError({
|
|
508
|
-
output,
|
|
509
|
-
parsedBody,
|
|
510
|
-
errorCode,
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
341
|
export const de_CreateDataRepositoryAssociationCommand = async (output, context) => {
|
|
515
342
|
if (output.statusCode >= 300) {
|
|
516
|
-
return
|
|
343
|
+
return de_CommandError(output, context);
|
|
517
344
|
}
|
|
518
345
|
const data = await parseBody(output.body, context);
|
|
519
346
|
let contents = {};
|
|
@@ -524,43 +351,9 @@ export const de_CreateDataRepositoryAssociationCommand = async (output, context)
|
|
|
524
351
|
};
|
|
525
352
|
return response;
|
|
526
353
|
};
|
|
527
|
-
const de_CreateDataRepositoryAssociationCommandError = async (output, context) => {
|
|
528
|
-
const parsedOutput = {
|
|
529
|
-
...output,
|
|
530
|
-
body: await parseErrorBody(output.body, context),
|
|
531
|
-
};
|
|
532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
|
-
switch (errorCode) {
|
|
534
|
-
case "BadRequest":
|
|
535
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
536
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
537
|
-
case "FileSystemNotFound":
|
|
538
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
539
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
540
|
-
case "IncompatibleParameterError":
|
|
541
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
542
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
543
|
-
case "InternalServerError":
|
|
544
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
545
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
546
|
-
case "ServiceLimitExceeded":
|
|
547
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
548
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
549
|
-
case "UnsupportedOperation":
|
|
550
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
551
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
552
|
-
default:
|
|
553
|
-
const parsedBody = parsedOutput.body;
|
|
554
|
-
return throwDefaultError({
|
|
555
|
-
output,
|
|
556
|
-
parsedBody,
|
|
557
|
-
errorCode,
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
354
|
export const de_CreateDataRepositoryTaskCommand = async (output, context) => {
|
|
562
355
|
if (output.statusCode >= 300) {
|
|
563
|
-
return
|
|
356
|
+
return de_CommandError(output, context);
|
|
564
357
|
}
|
|
565
358
|
const data = await parseBody(output.body, context);
|
|
566
359
|
let contents = {};
|
|
@@ -571,46 +364,9 @@ export const de_CreateDataRepositoryTaskCommand = async (output, context) => {
|
|
|
571
364
|
};
|
|
572
365
|
return response;
|
|
573
366
|
};
|
|
574
|
-
const de_CreateDataRepositoryTaskCommandError = async (output, context) => {
|
|
575
|
-
const parsedOutput = {
|
|
576
|
-
...output,
|
|
577
|
-
body: await parseErrorBody(output.body, context),
|
|
578
|
-
};
|
|
579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
|
-
switch (errorCode) {
|
|
581
|
-
case "BadRequest":
|
|
582
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
583
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
584
|
-
case "DataRepositoryTaskExecuting":
|
|
585
|
-
case "com.amazonaws.fsx#DataRepositoryTaskExecuting":
|
|
586
|
-
throw await de_DataRepositoryTaskExecutingRes(parsedOutput, context);
|
|
587
|
-
case "FileSystemNotFound":
|
|
588
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
589
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
590
|
-
case "IncompatibleParameterError":
|
|
591
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
592
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
593
|
-
case "InternalServerError":
|
|
594
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
595
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
596
|
-
case "ServiceLimitExceeded":
|
|
597
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
598
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
599
|
-
case "UnsupportedOperation":
|
|
600
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
601
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
602
|
-
default:
|
|
603
|
-
const parsedBody = parsedOutput.body;
|
|
604
|
-
return throwDefaultError({
|
|
605
|
-
output,
|
|
606
|
-
parsedBody,
|
|
607
|
-
errorCode,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
367
|
export const de_CreateFileCacheCommand = async (output, context) => {
|
|
612
368
|
if (output.statusCode >= 300) {
|
|
613
|
-
return
|
|
369
|
+
return de_CommandError(output, context);
|
|
614
370
|
}
|
|
615
371
|
const data = await parseBody(output.body, context);
|
|
616
372
|
let contents = {};
|
|
@@ -621,105 +377,22 @@ export const de_CreateFileCacheCommand = async (output, context) => {
|
|
|
621
377
|
};
|
|
622
378
|
return response;
|
|
623
379
|
};
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
case "IncompatibleParameterError":
|
|
635
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
636
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
637
|
-
case "InternalServerError":
|
|
638
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
639
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
640
|
-
case "InvalidNetworkSettings":
|
|
641
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
642
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
643
|
-
case "InvalidPerUnitStorageThroughput":
|
|
644
|
-
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
645
|
-
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
646
|
-
case "MissingFileCacheConfiguration":
|
|
647
|
-
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
648
|
-
throw await de_MissingFileCacheConfigurationRes(parsedOutput, context);
|
|
649
|
-
case "ServiceLimitExceeded":
|
|
650
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
651
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
export const de_CreateFileSystemCommand = async (output, context) => {
|
|
662
|
-
if (output.statusCode >= 300) {
|
|
663
|
-
return de_CreateFileSystemCommandError(output, context);
|
|
664
|
-
}
|
|
665
|
-
const data = await parseBody(output.body, context);
|
|
666
|
-
let contents = {};
|
|
667
|
-
contents = de_CreateFileSystemResponse(data, context);
|
|
668
|
-
const response = {
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
...contents,
|
|
380
|
+
export const de_CreateFileSystemCommand = async (output, context) => {
|
|
381
|
+
if (output.statusCode >= 300) {
|
|
382
|
+
return de_CommandError(output, context);
|
|
383
|
+
}
|
|
384
|
+
const data = await parseBody(output.body, context);
|
|
385
|
+
let contents = {};
|
|
386
|
+
contents = de_CreateFileSystemResponse(data, context);
|
|
387
|
+
const response = {
|
|
388
|
+
$metadata: deserializeMetadata(output),
|
|
389
|
+
...contents,
|
|
671
390
|
};
|
|
672
391
|
return response;
|
|
673
392
|
};
|
|
674
|
-
const de_CreateFileSystemCommandError = async (output, context) => {
|
|
675
|
-
const parsedOutput = {
|
|
676
|
-
...output,
|
|
677
|
-
body: await parseErrorBody(output.body, context),
|
|
678
|
-
};
|
|
679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
-
switch (errorCode) {
|
|
681
|
-
case "ActiveDirectoryError":
|
|
682
|
-
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
683
|
-
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
684
|
-
case "BadRequest":
|
|
685
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
686
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
687
|
-
case "IncompatibleParameterError":
|
|
688
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
689
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
690
|
-
case "InternalServerError":
|
|
691
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
692
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
693
|
-
case "InvalidExportPath":
|
|
694
|
-
case "com.amazonaws.fsx#InvalidExportPath":
|
|
695
|
-
throw await de_InvalidExportPathRes(parsedOutput, context);
|
|
696
|
-
case "InvalidImportPath":
|
|
697
|
-
case "com.amazonaws.fsx#InvalidImportPath":
|
|
698
|
-
throw await de_InvalidImportPathRes(parsedOutput, context);
|
|
699
|
-
case "InvalidNetworkSettings":
|
|
700
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
701
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
702
|
-
case "InvalidPerUnitStorageThroughput":
|
|
703
|
-
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
704
|
-
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
705
|
-
case "MissingFileSystemConfiguration":
|
|
706
|
-
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
707
|
-
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
708
|
-
case "ServiceLimitExceeded":
|
|
709
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
710
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
393
|
export const de_CreateFileSystemFromBackupCommand = async (output, context) => {
|
|
721
394
|
if (output.statusCode >= 300) {
|
|
722
|
-
return
|
|
395
|
+
return de_CommandError(output, context);
|
|
723
396
|
}
|
|
724
397
|
const data = await parseBody(output.body, context);
|
|
725
398
|
let contents = {};
|
|
@@ -730,52 +403,9 @@ export const de_CreateFileSystemFromBackupCommand = async (output, context) => {
|
|
|
730
403
|
};
|
|
731
404
|
return response;
|
|
732
405
|
};
|
|
733
|
-
const de_CreateFileSystemFromBackupCommandError = async (output, context) => {
|
|
734
|
-
const parsedOutput = {
|
|
735
|
-
...output,
|
|
736
|
-
body: await parseErrorBody(output.body, context),
|
|
737
|
-
};
|
|
738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
-
switch (errorCode) {
|
|
740
|
-
case "ActiveDirectoryError":
|
|
741
|
-
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
742
|
-
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
743
|
-
case "BackupNotFound":
|
|
744
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
745
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
746
|
-
case "BadRequest":
|
|
747
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
748
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
749
|
-
case "IncompatibleParameterError":
|
|
750
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
751
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
752
|
-
case "InternalServerError":
|
|
753
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
754
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
755
|
-
case "InvalidNetworkSettings":
|
|
756
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
757
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
758
|
-
case "InvalidPerUnitStorageThroughput":
|
|
759
|
-
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
760
|
-
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
761
|
-
case "MissingFileSystemConfiguration":
|
|
762
|
-
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
763
|
-
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
764
|
-
case "ServiceLimitExceeded":
|
|
765
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
766
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
767
|
-
default:
|
|
768
|
-
const parsedBody = parsedOutput.body;
|
|
769
|
-
return throwDefaultError({
|
|
770
|
-
output,
|
|
771
|
-
parsedBody,
|
|
772
|
-
errorCode,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
406
|
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
777
407
|
if (output.statusCode >= 300) {
|
|
778
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
779
409
|
}
|
|
780
410
|
const data = await parseBody(output.body, context);
|
|
781
411
|
let contents = {};
|
|
@@ -786,37 +416,9 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
786
416
|
};
|
|
787
417
|
return response;
|
|
788
418
|
};
|
|
789
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
790
|
-
const parsedOutput = {
|
|
791
|
-
...output,
|
|
792
|
-
body: await parseErrorBody(output.body, context),
|
|
793
|
-
};
|
|
794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
-
switch (errorCode) {
|
|
796
|
-
case "BadRequest":
|
|
797
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
798
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
799
|
-
case "InternalServerError":
|
|
800
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
801
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
802
|
-
case "ServiceLimitExceeded":
|
|
803
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
804
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
805
|
-
case "VolumeNotFound":
|
|
806
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
807
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode,
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
419
|
export const de_CreateStorageVirtualMachineCommand = async (output, context) => {
|
|
818
420
|
if (output.statusCode >= 300) {
|
|
819
|
-
return
|
|
421
|
+
return de_CommandError(output, context);
|
|
820
422
|
}
|
|
821
423
|
const data = await parseBody(output.body, context);
|
|
822
424
|
let contents = {};
|
|
@@ -827,46 +429,9 @@ export const de_CreateStorageVirtualMachineCommand = async (output, context) =>
|
|
|
827
429
|
};
|
|
828
430
|
return response;
|
|
829
431
|
};
|
|
830
|
-
const de_CreateStorageVirtualMachineCommandError = async (output, context) => {
|
|
831
|
-
const parsedOutput = {
|
|
832
|
-
...output,
|
|
833
|
-
body: await parseErrorBody(output.body, context),
|
|
834
|
-
};
|
|
835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
-
switch (errorCode) {
|
|
837
|
-
case "ActiveDirectoryError":
|
|
838
|
-
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
839
|
-
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
840
|
-
case "BadRequest":
|
|
841
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
842
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
843
|
-
case "FileSystemNotFound":
|
|
844
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
845
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
846
|
-
case "IncompatibleParameterError":
|
|
847
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
848
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
849
|
-
case "InternalServerError":
|
|
850
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
851
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
852
|
-
case "ServiceLimitExceeded":
|
|
853
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
854
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
855
|
-
case "UnsupportedOperation":
|
|
856
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
857
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
858
|
-
default:
|
|
859
|
-
const parsedBody = parsedOutput.body;
|
|
860
|
-
return throwDefaultError({
|
|
861
|
-
output,
|
|
862
|
-
parsedBody,
|
|
863
|
-
errorCode,
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
432
|
export const de_CreateVolumeCommand = async (output, context) => {
|
|
868
433
|
if (output.statusCode >= 300) {
|
|
869
|
-
return
|
|
434
|
+
return de_CommandError(output, context);
|
|
870
435
|
}
|
|
871
436
|
const data = await parseBody(output.body, context);
|
|
872
437
|
let contents = {};
|
|
@@ -877,49 +442,9 @@ export const de_CreateVolumeCommand = async (output, context) => {
|
|
|
877
442
|
};
|
|
878
443
|
return response;
|
|
879
444
|
};
|
|
880
|
-
const de_CreateVolumeCommandError = async (output, context) => {
|
|
881
|
-
const parsedOutput = {
|
|
882
|
-
...output,
|
|
883
|
-
body: await parseErrorBody(output.body, context),
|
|
884
|
-
};
|
|
885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
-
switch (errorCode) {
|
|
887
|
-
case "BadRequest":
|
|
888
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
889
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
890
|
-
case "FileSystemNotFound":
|
|
891
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
892
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
893
|
-
case "IncompatibleParameterError":
|
|
894
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
895
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
896
|
-
case "InternalServerError":
|
|
897
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
898
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
899
|
-
case "MissingVolumeConfiguration":
|
|
900
|
-
case "com.amazonaws.fsx#MissingVolumeConfiguration":
|
|
901
|
-
throw await de_MissingVolumeConfigurationRes(parsedOutput, context);
|
|
902
|
-
case "ServiceLimitExceeded":
|
|
903
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
904
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
905
|
-
case "StorageVirtualMachineNotFound":
|
|
906
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
907
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
908
|
-
case "UnsupportedOperation":
|
|
909
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
910
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode,
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
445
|
export const de_CreateVolumeFromBackupCommand = async (output, context) => {
|
|
921
446
|
if (output.statusCode >= 300) {
|
|
922
|
-
return
|
|
447
|
+
return de_CommandError(output, context);
|
|
923
448
|
}
|
|
924
449
|
const data = await parseBody(output.body, context);
|
|
925
450
|
let contents = {};
|
|
@@ -930,49 +455,9 @@ export const de_CreateVolumeFromBackupCommand = async (output, context) => {
|
|
|
930
455
|
};
|
|
931
456
|
return response;
|
|
932
457
|
};
|
|
933
|
-
const de_CreateVolumeFromBackupCommandError = async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context),
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "BackupNotFound":
|
|
941
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
942
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
943
|
-
case "BadRequest":
|
|
944
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
945
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
946
|
-
case "FileSystemNotFound":
|
|
947
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
948
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
949
|
-
case "IncompatibleParameterError":
|
|
950
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
951
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
952
|
-
case "InternalServerError":
|
|
953
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
954
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
955
|
-
case "MissingVolumeConfiguration":
|
|
956
|
-
case "com.amazonaws.fsx#MissingVolumeConfiguration":
|
|
957
|
-
throw await de_MissingVolumeConfigurationRes(parsedOutput, context);
|
|
958
|
-
case "ServiceLimitExceeded":
|
|
959
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
960
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
961
|
-
case "StorageVirtualMachineNotFound":
|
|
962
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
963
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
964
|
-
default:
|
|
965
|
-
const parsedBody = parsedOutput.body;
|
|
966
|
-
return throwDefaultError({
|
|
967
|
-
output,
|
|
968
|
-
parsedBody,
|
|
969
|
-
errorCode,
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
458
|
export const de_DeleteBackupCommand = async (output, context) => {
|
|
974
459
|
if (output.statusCode >= 300) {
|
|
975
|
-
return
|
|
460
|
+
return de_CommandError(output, context);
|
|
976
461
|
}
|
|
977
462
|
const data = await parseBody(output.body, context);
|
|
978
463
|
let contents = {};
|
|
@@ -983,46 +468,9 @@ export const de_DeleteBackupCommand = async (output, context) => {
|
|
|
983
468
|
};
|
|
984
469
|
return response;
|
|
985
470
|
};
|
|
986
|
-
const de_DeleteBackupCommandError = async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context),
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "BackupBeingCopied":
|
|
994
|
-
case "com.amazonaws.fsx#BackupBeingCopied":
|
|
995
|
-
throw await de_BackupBeingCopiedRes(parsedOutput, context);
|
|
996
|
-
case "BackupInProgress":
|
|
997
|
-
case "com.amazonaws.fsx#BackupInProgress":
|
|
998
|
-
throw await de_BackupInProgressRes(parsedOutput, context);
|
|
999
|
-
case "BackupNotFound":
|
|
1000
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
1001
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
1002
|
-
case "BackupRestoring":
|
|
1003
|
-
case "com.amazonaws.fsx#BackupRestoring":
|
|
1004
|
-
throw await de_BackupRestoringRes(parsedOutput, context);
|
|
1005
|
-
case "BadRequest":
|
|
1006
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1007
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1008
|
-
case "IncompatibleParameterError":
|
|
1009
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1010
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1011
|
-
case "InternalServerError":
|
|
1012
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1013
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1014
|
-
default:
|
|
1015
|
-
const parsedBody = parsedOutput.body;
|
|
1016
|
-
return throwDefaultError({
|
|
1017
|
-
output,
|
|
1018
|
-
parsedBody,
|
|
1019
|
-
errorCode,
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
};
|
|
1023
471
|
export const de_DeleteDataRepositoryAssociationCommand = async (output, context) => {
|
|
1024
472
|
if (output.statusCode >= 300) {
|
|
1025
|
-
return
|
|
473
|
+
return de_CommandError(output, context);
|
|
1026
474
|
}
|
|
1027
475
|
const data = await parseBody(output.body, context);
|
|
1028
476
|
let contents = {};
|
|
@@ -1033,40 +481,9 @@ export const de_DeleteDataRepositoryAssociationCommand = async (output, context)
|
|
|
1033
481
|
};
|
|
1034
482
|
return response;
|
|
1035
483
|
};
|
|
1036
|
-
const de_DeleteDataRepositoryAssociationCommandError = async (output, context) => {
|
|
1037
|
-
const parsedOutput = {
|
|
1038
|
-
...output,
|
|
1039
|
-
body: await parseErrorBody(output.body, context),
|
|
1040
|
-
};
|
|
1041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
-
switch (errorCode) {
|
|
1043
|
-
case "BadRequest":
|
|
1044
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1045
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1046
|
-
case "DataRepositoryAssociationNotFound":
|
|
1047
|
-
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
1048
|
-
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
1049
|
-
case "IncompatibleParameterError":
|
|
1050
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1051
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1052
|
-
case "InternalServerError":
|
|
1053
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1054
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1055
|
-
case "ServiceLimitExceeded":
|
|
1056
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1057
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1058
|
-
default:
|
|
1059
|
-
const parsedBody = parsedOutput.body;
|
|
1060
|
-
return throwDefaultError({
|
|
1061
|
-
output,
|
|
1062
|
-
parsedBody,
|
|
1063
|
-
errorCode,
|
|
1064
|
-
});
|
|
1065
|
-
}
|
|
1066
|
-
};
|
|
1067
484
|
export const de_DeleteFileCacheCommand = async (output, context) => {
|
|
1068
485
|
if (output.statusCode >= 300) {
|
|
1069
|
-
return
|
|
486
|
+
return de_CommandError(output, context);
|
|
1070
487
|
}
|
|
1071
488
|
const data = await parseBody(output.body, context);
|
|
1072
489
|
let contents = {};
|
|
@@ -1077,40 +494,9 @@ export const de_DeleteFileCacheCommand = async (output, context) => {
|
|
|
1077
494
|
};
|
|
1078
495
|
return response;
|
|
1079
496
|
};
|
|
1080
|
-
const de_DeleteFileCacheCommandError = async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context),
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
-
switch (errorCode) {
|
|
1087
|
-
case "BadRequest":
|
|
1088
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1089
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1090
|
-
case "FileCacheNotFound":
|
|
1091
|
-
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
1092
|
-
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
1093
|
-
case "IncompatibleParameterError":
|
|
1094
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1095
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1096
|
-
case "InternalServerError":
|
|
1097
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1098
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1099
|
-
case "ServiceLimitExceeded":
|
|
1100
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1101
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
497
|
export const de_DeleteFileSystemCommand = async (output, context) => {
|
|
1112
498
|
if (output.statusCode >= 300) {
|
|
1113
|
-
return
|
|
499
|
+
return de_CommandError(output, context);
|
|
1114
500
|
}
|
|
1115
501
|
const data = await parseBody(output.body, context);
|
|
1116
502
|
let contents = {};
|
|
@@ -1121,40 +507,9 @@ export const de_DeleteFileSystemCommand = async (output, context) => {
|
|
|
1121
507
|
};
|
|
1122
508
|
return response;
|
|
1123
509
|
};
|
|
1124
|
-
const de_DeleteFileSystemCommandError = async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context),
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "BadRequest":
|
|
1132
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1133
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1134
|
-
case "FileSystemNotFound":
|
|
1135
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1136
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1137
|
-
case "IncompatibleParameterError":
|
|
1138
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1139
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1140
|
-
case "InternalServerError":
|
|
1141
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1142
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1143
|
-
case "ServiceLimitExceeded":
|
|
1144
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1145
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1146
|
-
default:
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode,
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
510
|
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
1156
511
|
if (output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
512
|
+
return de_CommandError(output, context);
|
|
1158
513
|
}
|
|
1159
514
|
const data = await parseBody(output.body, context);
|
|
1160
515
|
let contents = {};
|
|
@@ -1165,119 +520,35 @@ export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
|
1165
520
|
};
|
|
1166
521
|
return response;
|
|
1167
522
|
};
|
|
1168
|
-
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
1169
|
-
const parsedOutput = {
|
|
1170
|
-
...output,
|
|
1171
|
-
body: await parseErrorBody(output.body, context),
|
|
1172
|
-
};
|
|
1173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
-
switch (errorCode) {
|
|
1175
|
-
case "BadRequest":
|
|
1176
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1177
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1178
|
-
case "InternalServerError":
|
|
1179
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1180
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1181
|
-
case "SnapshotNotFound":
|
|
1182
|
-
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
1183
|
-
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
1184
|
-
default:
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode,
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
523
|
export const de_DeleteStorageVirtualMachineCommand = async (output, context) => {
|
|
1194
524
|
if (output.statusCode >= 300) {
|
|
1195
|
-
return
|
|
1196
|
-
}
|
|
1197
|
-
const data = await parseBody(output.body, context);
|
|
1198
|
-
let contents = {};
|
|
1199
|
-
contents = _json(data);
|
|
1200
|
-
const response = {
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
...contents,
|
|
1203
|
-
};
|
|
1204
|
-
return response;
|
|
1205
|
-
};
|
|
1206
|
-
const de_DeleteStorageVirtualMachineCommandError = async (output, context) => {
|
|
1207
|
-
const parsedOutput = {
|
|
1208
|
-
...output,
|
|
1209
|
-
body: await parseErrorBody(output.body, context),
|
|
1210
|
-
};
|
|
1211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
-
switch (errorCode) {
|
|
1213
|
-
case "BadRequest":
|
|
1214
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1215
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1216
|
-
case "IncompatibleParameterError":
|
|
1217
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1218
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1219
|
-
case "InternalServerError":
|
|
1220
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1221
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1222
|
-
case "StorageVirtualMachineNotFound":
|
|
1223
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
1224
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode,
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
|
-
export const de_DeleteVolumeCommand = async (output, context) => {
|
|
1235
|
-
if (output.statusCode >= 300) {
|
|
1236
|
-
return de_DeleteVolumeCommandError(output, context);
|
|
525
|
+
return de_CommandError(output, context);
|
|
1237
526
|
}
|
|
1238
|
-
const data = await parseBody(output.body, context);
|
|
1239
|
-
let contents = {};
|
|
1240
|
-
contents = _json(data);
|
|
1241
|
-
const response = {
|
|
1242
|
-
$metadata: deserializeMetadata(output),
|
|
1243
|
-
...contents,
|
|
1244
|
-
};
|
|
1245
|
-
return response;
|
|
1246
|
-
};
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
body: await parseErrorBody(output.body, context),
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "BadRequest":
|
|
1255
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1256
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1257
|
-
case "IncompatibleParameterError":
|
|
1258
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1259
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1260
|
-
case "InternalServerError":
|
|
1261
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1262
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1263
|
-
case "ServiceLimitExceeded":
|
|
1264
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1265
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1266
|
-
case "VolumeNotFound":
|
|
1267
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
1268
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
1269
|
-
default:
|
|
1270
|
-
const parsedBody = parsedOutput.body;
|
|
1271
|
-
return throwDefaultError({
|
|
1272
|
-
output,
|
|
1273
|
-
parsedBody,
|
|
1274
|
-
errorCode,
|
|
1275
|
-
});
|
|
527
|
+
const data = await parseBody(output.body, context);
|
|
528
|
+
let contents = {};
|
|
529
|
+
contents = _json(data);
|
|
530
|
+
const response = {
|
|
531
|
+
$metadata: deserializeMetadata(output),
|
|
532
|
+
...contents,
|
|
533
|
+
};
|
|
534
|
+
return response;
|
|
535
|
+
};
|
|
536
|
+
export const de_DeleteVolumeCommand = async (output, context) => {
|
|
537
|
+
if (output.statusCode >= 300) {
|
|
538
|
+
return de_CommandError(output, context);
|
|
1276
539
|
}
|
|
540
|
+
const data = await parseBody(output.body, context);
|
|
541
|
+
let contents = {};
|
|
542
|
+
contents = _json(data);
|
|
543
|
+
const response = {
|
|
544
|
+
$metadata: deserializeMetadata(output),
|
|
545
|
+
...contents,
|
|
546
|
+
};
|
|
547
|
+
return response;
|
|
1277
548
|
};
|
|
1278
549
|
export const de_DescribeBackupsCommand = async (output, context) => {
|
|
1279
550
|
if (output.statusCode >= 300) {
|
|
1280
|
-
return
|
|
551
|
+
return de_CommandError(output, context);
|
|
1281
552
|
}
|
|
1282
553
|
const data = await parseBody(output.body, context);
|
|
1283
554
|
let contents = {};
|
|
@@ -1288,40 +559,9 @@ export const de_DescribeBackupsCommand = async (output, context) => {
|
|
|
1288
559
|
};
|
|
1289
560
|
return response;
|
|
1290
561
|
};
|
|
1291
|
-
const de_DescribeBackupsCommandError = async (output, context) => {
|
|
1292
|
-
const parsedOutput = {
|
|
1293
|
-
...output,
|
|
1294
|
-
body: await parseErrorBody(output.body, context),
|
|
1295
|
-
};
|
|
1296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
|
-
switch (errorCode) {
|
|
1298
|
-
case "BackupNotFound":
|
|
1299
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
1300
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
1301
|
-
case "BadRequest":
|
|
1302
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1303
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1304
|
-
case "FileSystemNotFound":
|
|
1305
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1306
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1307
|
-
case "InternalServerError":
|
|
1308
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1309
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1310
|
-
case "VolumeNotFound":
|
|
1311
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
1312
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
1313
|
-
default:
|
|
1314
|
-
const parsedBody = parsedOutput.body;
|
|
1315
|
-
return throwDefaultError({
|
|
1316
|
-
output,
|
|
1317
|
-
parsedBody,
|
|
1318
|
-
errorCode,
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
562
|
export const de_DescribeDataRepositoryAssociationsCommand = async (output, context) => {
|
|
1323
563
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
564
|
+
return de_CommandError(output, context);
|
|
1325
565
|
}
|
|
1326
566
|
const data = await parseBody(output.body, context);
|
|
1327
567
|
let contents = {};
|
|
@@ -1332,40 +572,9 @@ export const de_DescribeDataRepositoryAssociationsCommand = async (output, conte
|
|
|
1332
572
|
};
|
|
1333
573
|
return response;
|
|
1334
574
|
};
|
|
1335
|
-
const de_DescribeDataRepositoryAssociationsCommandError = async (output, context) => {
|
|
1336
|
-
const parsedOutput = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseErrorBody(output.body, context),
|
|
1339
|
-
};
|
|
1340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
-
switch (errorCode) {
|
|
1342
|
-
case "BadRequest":
|
|
1343
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1344
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1345
|
-
case "DataRepositoryAssociationNotFound":
|
|
1346
|
-
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
1347
|
-
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
1348
|
-
case "FileSystemNotFound":
|
|
1349
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1350
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1351
|
-
case "InternalServerError":
|
|
1352
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1353
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1354
|
-
case "InvalidDataRepositoryType":
|
|
1355
|
-
case "com.amazonaws.fsx#InvalidDataRepositoryType":
|
|
1356
|
-
throw await de_InvalidDataRepositoryTypeRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode,
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
};
|
|
1366
575
|
export const de_DescribeDataRepositoryTasksCommand = async (output, context) => {
|
|
1367
576
|
if (output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
577
|
+
return de_CommandError(output, context);
|
|
1369
578
|
}
|
|
1370
579
|
const data = await parseBody(output.body, context);
|
|
1371
580
|
let contents = {};
|
|
@@ -1376,37 +585,9 @@ export const de_DescribeDataRepositoryTasksCommand = async (output, context) =>
|
|
|
1376
585
|
};
|
|
1377
586
|
return response;
|
|
1378
587
|
};
|
|
1379
|
-
const de_DescribeDataRepositoryTasksCommandError = async (output, context) => {
|
|
1380
|
-
const parsedOutput = {
|
|
1381
|
-
...output,
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "BadRequest":
|
|
1387
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1388
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1389
|
-
case "DataRepositoryTaskNotFound":
|
|
1390
|
-
case "com.amazonaws.fsx#DataRepositoryTaskNotFound":
|
|
1391
|
-
throw await de_DataRepositoryTaskNotFoundRes(parsedOutput, context);
|
|
1392
|
-
case "FileSystemNotFound":
|
|
1393
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1394
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1395
|
-
case "InternalServerError":
|
|
1396
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1397
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode,
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
588
|
export const de_DescribeFileCachesCommand = async (output, context) => {
|
|
1408
589
|
if (output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
1410
591
|
}
|
|
1411
592
|
const data = await parseBody(output.body, context);
|
|
1412
593
|
let contents = {};
|
|
@@ -1417,34 +598,9 @@ export const de_DescribeFileCachesCommand = async (output, context) => {
|
|
|
1417
598
|
};
|
|
1418
599
|
return response;
|
|
1419
600
|
};
|
|
1420
|
-
const de_DescribeFileCachesCommandError = async (output, context) => {
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "BadRequest":
|
|
1428
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1429
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1430
|
-
case "FileCacheNotFound":
|
|
1431
|
-
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
1432
|
-
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
1433
|
-
case "InternalServerError":
|
|
1434
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1435
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody,
|
|
1441
|
-
errorCode,
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
601
|
export const de_DescribeFileSystemAliasesCommand = async (output, context) => {
|
|
1446
602
|
if (output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
603
|
+
return de_CommandError(output, context);
|
|
1448
604
|
}
|
|
1449
605
|
const data = await parseBody(output.body, context);
|
|
1450
606
|
let contents = {};
|
|
@@ -1455,34 +611,9 @@ export const de_DescribeFileSystemAliasesCommand = async (output, context) => {
|
|
|
1455
611
|
};
|
|
1456
612
|
return response;
|
|
1457
613
|
};
|
|
1458
|
-
const de_DescribeFileSystemAliasesCommandError = async (output, context) => {
|
|
1459
|
-
const parsedOutput = {
|
|
1460
|
-
...output,
|
|
1461
|
-
body: await parseErrorBody(output.body, context),
|
|
1462
|
-
};
|
|
1463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
-
switch (errorCode) {
|
|
1465
|
-
case "BadRequest":
|
|
1466
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1467
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1468
|
-
case "FileSystemNotFound":
|
|
1469
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1470
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1471
|
-
case "InternalServerError":
|
|
1472
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1473
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1474
|
-
default:
|
|
1475
|
-
const parsedBody = parsedOutput.body;
|
|
1476
|
-
return throwDefaultError({
|
|
1477
|
-
output,
|
|
1478
|
-
parsedBody,
|
|
1479
|
-
errorCode,
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
};
|
|
1483
614
|
export const de_DescribeFileSystemsCommand = async (output, context) => {
|
|
1484
615
|
if (output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
616
|
+
return de_CommandError(output, context);
|
|
1486
617
|
}
|
|
1487
618
|
const data = await parseBody(output.body, context);
|
|
1488
619
|
let contents = {};
|
|
@@ -1493,34 +624,9 @@ export const de_DescribeFileSystemsCommand = async (output, context) => {
|
|
|
1493
624
|
};
|
|
1494
625
|
return response;
|
|
1495
626
|
};
|
|
1496
|
-
const de_DescribeFileSystemsCommandError = async (output, context) => {
|
|
1497
|
-
const parsedOutput = {
|
|
1498
|
-
...output,
|
|
1499
|
-
body: await parseErrorBody(output.body, context),
|
|
1500
|
-
};
|
|
1501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "BadRequest":
|
|
1504
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1505
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1506
|
-
case "FileSystemNotFound":
|
|
1507
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1508
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1509
|
-
case "InternalServerError":
|
|
1510
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1511
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
return throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
errorCode,
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
627
|
export const de_DescribeSharedVpcConfigurationCommand = async (output, context) => {
|
|
1522
628
|
if (output.statusCode >= 300) {
|
|
1523
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
1524
630
|
}
|
|
1525
631
|
const data = await parseBody(output.body, context);
|
|
1526
632
|
let contents = {};
|
|
@@ -1531,31 +637,9 @@ export const de_DescribeSharedVpcConfigurationCommand = async (output, context)
|
|
|
1531
637
|
};
|
|
1532
638
|
return response;
|
|
1533
639
|
};
|
|
1534
|
-
const de_DescribeSharedVpcConfigurationCommandError = async (output, context) => {
|
|
1535
|
-
const parsedOutput = {
|
|
1536
|
-
...output,
|
|
1537
|
-
body: await parseErrorBody(output.body, context),
|
|
1538
|
-
};
|
|
1539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
-
switch (errorCode) {
|
|
1541
|
-
case "BadRequest":
|
|
1542
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1543
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1544
|
-
case "InternalServerError":
|
|
1545
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1546
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1547
|
-
default:
|
|
1548
|
-
const parsedBody = parsedOutput.body;
|
|
1549
|
-
return throwDefaultError({
|
|
1550
|
-
output,
|
|
1551
|
-
parsedBody,
|
|
1552
|
-
errorCode,
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
};
|
|
1556
640
|
export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
1557
641
|
if (output.statusCode >= 300) {
|
|
1558
|
-
return
|
|
642
|
+
return de_CommandError(output, context);
|
|
1559
643
|
}
|
|
1560
644
|
const data = await parseBody(output.body, context);
|
|
1561
645
|
let contents = {};
|
|
@@ -1566,72 +650,22 @@ export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
|
1566
650
|
};
|
|
1567
651
|
return response;
|
|
1568
652
|
};
|
|
1569
|
-
const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
1570
|
-
const parsedOutput = {
|
|
1571
|
-
...output,
|
|
1572
|
-
body: await parseErrorBody(output.body, context),
|
|
1573
|
-
};
|
|
1574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
-
switch (errorCode) {
|
|
1576
|
-
case "BadRequest":
|
|
1577
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1578
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1579
|
-
case "InternalServerError":
|
|
1580
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1581
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1582
|
-
case "SnapshotNotFound":
|
|
1583
|
-
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
1584
|
-
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
1585
|
-
default:
|
|
1586
|
-
const parsedBody = parsedOutput.body;
|
|
1587
|
-
return throwDefaultError({
|
|
1588
|
-
output,
|
|
1589
|
-
parsedBody,
|
|
1590
|
-
errorCode,
|
|
1591
|
-
});
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
653
|
export const de_DescribeStorageVirtualMachinesCommand = async (output, context) => {
|
|
1595
|
-
if (output.statusCode >= 300) {
|
|
1596
|
-
return
|
|
1597
|
-
}
|
|
1598
|
-
const data = await parseBody(output.body, context);
|
|
1599
|
-
let contents = {};
|
|
1600
|
-
contents = de_DescribeStorageVirtualMachinesResponse(data, context);
|
|
1601
|
-
const response = {
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
...contents,
|
|
1604
|
-
};
|
|
1605
|
-
return response;
|
|
1606
|
-
};
|
|
1607
|
-
const de_DescribeStorageVirtualMachinesCommandError = async (output, context) => {
|
|
1608
|
-
const parsedOutput = {
|
|
1609
|
-
...output,
|
|
1610
|
-
body: await parseErrorBody(output.body, context),
|
|
1611
|
-
};
|
|
1612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
-
switch (errorCode) {
|
|
1614
|
-
case "BadRequest":
|
|
1615
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1616
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1617
|
-
case "InternalServerError":
|
|
1618
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1619
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1620
|
-
case "StorageVirtualMachineNotFound":
|
|
1621
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
1622
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
1623
|
-
default:
|
|
1624
|
-
const parsedBody = parsedOutput.body;
|
|
1625
|
-
return throwDefaultError({
|
|
1626
|
-
output,
|
|
1627
|
-
parsedBody,
|
|
1628
|
-
errorCode,
|
|
1629
|
-
});
|
|
654
|
+
if (output.statusCode >= 300) {
|
|
655
|
+
return de_CommandError(output, context);
|
|
1630
656
|
}
|
|
657
|
+
const data = await parseBody(output.body, context);
|
|
658
|
+
let contents = {};
|
|
659
|
+
contents = de_DescribeStorageVirtualMachinesResponse(data, context);
|
|
660
|
+
const response = {
|
|
661
|
+
$metadata: deserializeMetadata(output),
|
|
662
|
+
...contents,
|
|
663
|
+
};
|
|
664
|
+
return response;
|
|
1631
665
|
};
|
|
1632
666
|
export const de_DescribeVolumesCommand = async (output, context) => {
|
|
1633
667
|
if (output.statusCode >= 300) {
|
|
1634
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
1635
669
|
}
|
|
1636
670
|
const data = await parseBody(output.body, context);
|
|
1637
671
|
let contents = {};
|
|
@@ -1642,34 +676,9 @@ export const de_DescribeVolumesCommand = async (output, context) => {
|
|
|
1642
676
|
};
|
|
1643
677
|
return response;
|
|
1644
678
|
};
|
|
1645
|
-
const de_DescribeVolumesCommandError = async (output, context) => {
|
|
1646
|
-
const parsedOutput = {
|
|
1647
|
-
...output,
|
|
1648
|
-
body: await parseErrorBody(output.body, context),
|
|
1649
|
-
};
|
|
1650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
|
-
switch (errorCode) {
|
|
1652
|
-
case "BadRequest":
|
|
1653
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1654
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1655
|
-
case "InternalServerError":
|
|
1656
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1657
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1658
|
-
case "VolumeNotFound":
|
|
1659
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
1660
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
1661
|
-
default:
|
|
1662
|
-
const parsedBody = parsedOutput.body;
|
|
1663
|
-
return throwDefaultError({
|
|
1664
|
-
output,
|
|
1665
|
-
parsedBody,
|
|
1666
|
-
errorCode,
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
};
|
|
1670
679
|
export const de_DisassociateFileSystemAliasesCommand = async (output, context) => {
|
|
1671
680
|
if (output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
1673
682
|
}
|
|
1674
683
|
const data = await parseBody(output.body, context);
|
|
1675
684
|
let contents = {};
|
|
@@ -1680,34 +689,9 @@ export const de_DisassociateFileSystemAliasesCommand = async (output, context) =
|
|
|
1680
689
|
};
|
|
1681
690
|
return response;
|
|
1682
691
|
};
|
|
1683
|
-
const de_DisassociateFileSystemAliasesCommandError = async (output, context) => {
|
|
1684
|
-
const parsedOutput = {
|
|
1685
|
-
...output,
|
|
1686
|
-
body: await parseErrorBody(output.body, context),
|
|
1687
|
-
};
|
|
1688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
|
-
switch (errorCode) {
|
|
1690
|
-
case "BadRequest":
|
|
1691
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1692
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1693
|
-
case "FileSystemNotFound":
|
|
1694
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1695
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1696
|
-
case "InternalServerError":
|
|
1697
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1698
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1699
|
-
default:
|
|
1700
|
-
const parsedBody = parsedOutput.body;
|
|
1701
|
-
return throwDefaultError({
|
|
1702
|
-
output,
|
|
1703
|
-
parsedBody,
|
|
1704
|
-
errorCode,
|
|
1705
|
-
});
|
|
1706
|
-
}
|
|
1707
|
-
};
|
|
1708
692
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1709
693
|
if (output.statusCode >= 300) {
|
|
1710
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
1711
695
|
}
|
|
1712
696
|
const data = await parseBody(output.body, context);
|
|
1713
697
|
let contents = {};
|
|
@@ -1718,40 +702,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1718
702
|
};
|
|
1719
703
|
return response;
|
|
1720
704
|
};
|
|
1721
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context),
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "BadRequest":
|
|
1729
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1730
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1731
|
-
case "InternalServerError":
|
|
1732
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1733
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1734
|
-
case "NotServiceResourceError":
|
|
1735
|
-
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
1736
|
-
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
1737
|
-
case "ResourceDoesNotSupportTagging":
|
|
1738
|
-
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
1739
|
-
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
1740
|
-
case "ResourceNotFound":
|
|
1741
|
-
case "com.amazonaws.fsx#ResourceNotFound":
|
|
1742
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1743
|
-
default:
|
|
1744
|
-
const parsedBody = parsedOutput.body;
|
|
1745
|
-
return throwDefaultError({
|
|
1746
|
-
output,
|
|
1747
|
-
parsedBody,
|
|
1748
|
-
errorCode,
|
|
1749
|
-
});
|
|
1750
|
-
}
|
|
1751
|
-
};
|
|
1752
705
|
export const de_ReleaseFileSystemNfsV3LocksCommand = async (output, context) => {
|
|
1753
706
|
if (output.statusCode >= 300) {
|
|
1754
|
-
return
|
|
707
|
+
return de_CommandError(output, context);
|
|
1755
708
|
}
|
|
1756
709
|
const data = await parseBody(output.body, context);
|
|
1757
710
|
let contents = {};
|
|
@@ -1762,40 +715,9 @@ export const de_ReleaseFileSystemNfsV3LocksCommand = async (output, context) =>
|
|
|
1762
715
|
};
|
|
1763
716
|
return response;
|
|
1764
717
|
};
|
|
1765
|
-
const de_ReleaseFileSystemNfsV3LocksCommandError = async (output, context) => {
|
|
1766
|
-
const parsedOutput = {
|
|
1767
|
-
...output,
|
|
1768
|
-
body: await parseErrorBody(output.body, context),
|
|
1769
|
-
};
|
|
1770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
-
switch (errorCode) {
|
|
1772
|
-
case "BadRequest":
|
|
1773
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1774
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1775
|
-
case "FileSystemNotFound":
|
|
1776
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1777
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1778
|
-
case "IncompatibleParameterError":
|
|
1779
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1780
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1781
|
-
case "InternalServerError":
|
|
1782
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1783
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1784
|
-
case "ServiceLimitExceeded":
|
|
1785
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1786
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1787
|
-
default:
|
|
1788
|
-
const parsedBody = parsedOutput.body;
|
|
1789
|
-
return throwDefaultError({
|
|
1790
|
-
output,
|
|
1791
|
-
parsedBody,
|
|
1792
|
-
errorCode,
|
|
1793
|
-
});
|
|
1794
|
-
}
|
|
1795
|
-
};
|
|
1796
718
|
export const de_RestoreVolumeFromSnapshotCommand = async (output, context) => {
|
|
1797
719
|
if (output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
1799
721
|
}
|
|
1800
722
|
const data = await parseBody(output.body, context);
|
|
1801
723
|
let contents = {};
|
|
@@ -1806,34 +728,9 @@ export const de_RestoreVolumeFromSnapshotCommand = async (output, context) => {
|
|
|
1806
728
|
};
|
|
1807
729
|
return response;
|
|
1808
730
|
};
|
|
1809
|
-
const de_RestoreVolumeFromSnapshotCommandError = async (output, context) => {
|
|
1810
|
-
const parsedOutput = {
|
|
1811
|
-
...output,
|
|
1812
|
-
body: await parseErrorBody(output.body, context),
|
|
1813
|
-
};
|
|
1814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
|
-
switch (errorCode) {
|
|
1816
|
-
case "BadRequest":
|
|
1817
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1818
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1819
|
-
case "InternalServerError":
|
|
1820
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1821
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1822
|
-
case "VolumeNotFound":
|
|
1823
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
1824
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
1825
|
-
default:
|
|
1826
|
-
const parsedBody = parsedOutput.body;
|
|
1827
|
-
return throwDefaultError({
|
|
1828
|
-
output,
|
|
1829
|
-
parsedBody,
|
|
1830
|
-
errorCode,
|
|
1831
|
-
});
|
|
1832
|
-
}
|
|
1833
|
-
};
|
|
1834
731
|
export const de_StartMisconfiguredStateRecoveryCommand = async (output, context) => {
|
|
1835
732
|
if (output.statusCode >= 300) {
|
|
1836
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
1837
734
|
}
|
|
1838
735
|
const data = await parseBody(output.body, context);
|
|
1839
736
|
let contents = {};
|
|
@@ -1844,34 +741,9 @@ export const de_StartMisconfiguredStateRecoveryCommand = async (output, context)
|
|
|
1844
741
|
};
|
|
1845
742
|
return response;
|
|
1846
743
|
};
|
|
1847
|
-
const de_StartMisconfiguredStateRecoveryCommandError = async (output, context) => {
|
|
1848
|
-
const parsedOutput = {
|
|
1849
|
-
...output,
|
|
1850
|
-
body: await parseErrorBody(output.body, context),
|
|
1851
|
-
};
|
|
1852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
-
switch (errorCode) {
|
|
1854
|
-
case "BadRequest":
|
|
1855
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1856
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1857
|
-
case "FileSystemNotFound":
|
|
1858
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1859
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1860
|
-
case "InternalServerError":
|
|
1861
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1862
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1863
|
-
default:
|
|
1864
|
-
const parsedBody = parsedOutput.body;
|
|
1865
|
-
return throwDefaultError({
|
|
1866
|
-
output,
|
|
1867
|
-
parsedBody,
|
|
1868
|
-
errorCode,
|
|
1869
|
-
});
|
|
1870
|
-
}
|
|
1871
|
-
};
|
|
1872
744
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1873
745
|
if (output.statusCode >= 300) {
|
|
1874
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
1875
747
|
}
|
|
1876
748
|
const data = await parseBody(output.body, context);
|
|
1877
749
|
let contents = {};
|
|
@@ -1882,40 +754,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1882
754
|
};
|
|
1883
755
|
return response;
|
|
1884
756
|
};
|
|
1885
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1886
|
-
const parsedOutput = {
|
|
1887
|
-
...output,
|
|
1888
|
-
body: await parseErrorBody(output.body, context),
|
|
1889
|
-
};
|
|
1890
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
-
switch (errorCode) {
|
|
1892
|
-
case "BadRequest":
|
|
1893
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1894
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1895
|
-
case "InternalServerError":
|
|
1896
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1897
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1898
|
-
case "NotServiceResourceError":
|
|
1899
|
-
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
1900
|
-
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
1901
|
-
case "ResourceDoesNotSupportTagging":
|
|
1902
|
-
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
1903
|
-
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
1904
|
-
case "ResourceNotFound":
|
|
1905
|
-
case "com.amazonaws.fsx#ResourceNotFound":
|
|
1906
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1907
|
-
default:
|
|
1908
|
-
const parsedBody = parsedOutput.body;
|
|
1909
|
-
return throwDefaultError({
|
|
1910
|
-
output,
|
|
1911
|
-
parsedBody,
|
|
1912
|
-
errorCode,
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
};
|
|
1916
757
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1917
758
|
if (output.statusCode >= 300) {
|
|
1918
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
1919
760
|
}
|
|
1920
761
|
const data = await parseBody(output.body, context);
|
|
1921
762
|
let contents = {};
|
|
@@ -1926,40 +767,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1926
767
|
};
|
|
1927
768
|
return response;
|
|
1928
769
|
};
|
|
1929
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1930
|
-
const parsedOutput = {
|
|
1931
|
-
...output,
|
|
1932
|
-
body: await parseErrorBody(output.body, context),
|
|
1933
|
-
};
|
|
1934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
|
-
switch (errorCode) {
|
|
1936
|
-
case "BadRequest":
|
|
1937
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1938
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1939
|
-
case "InternalServerError":
|
|
1940
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1941
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1942
|
-
case "NotServiceResourceError":
|
|
1943
|
-
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
1944
|
-
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
1945
|
-
case "ResourceDoesNotSupportTagging":
|
|
1946
|
-
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
1947
|
-
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
1948
|
-
case "ResourceNotFound":
|
|
1949
|
-
case "com.amazonaws.fsx#ResourceNotFound":
|
|
1950
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode,
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
};
|
|
1960
770
|
export const de_UpdateDataRepositoryAssociationCommand = async (output, context) => {
|
|
1961
771
|
if (output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
1963
773
|
}
|
|
1964
774
|
const data = await parseBody(output.body, context);
|
|
1965
775
|
let contents = {};
|
|
@@ -1968,42 +778,11 @@ export const de_UpdateDataRepositoryAssociationCommand = async (output, context)
|
|
|
1968
778
|
$metadata: deserializeMetadata(output),
|
|
1969
779
|
...contents,
|
|
1970
780
|
};
|
|
1971
|
-
return response;
|
|
1972
|
-
};
|
|
1973
|
-
const de_UpdateDataRepositoryAssociationCommandError = async (output, context) => {
|
|
1974
|
-
const parsedOutput = {
|
|
1975
|
-
...output,
|
|
1976
|
-
body: await parseErrorBody(output.body, context),
|
|
1977
|
-
};
|
|
1978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
|
-
switch (errorCode) {
|
|
1980
|
-
case "BadRequest":
|
|
1981
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1982
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1983
|
-
case "DataRepositoryAssociationNotFound":
|
|
1984
|
-
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
1985
|
-
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
1986
|
-
case "IncompatibleParameterError":
|
|
1987
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1988
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1989
|
-
case "InternalServerError":
|
|
1990
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1991
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1992
|
-
case "ServiceLimitExceeded":
|
|
1993
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1994
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode,
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
781
|
+
return response;
|
|
2003
782
|
};
|
|
2004
783
|
export const de_UpdateFileCacheCommand = async (output, context) => {
|
|
2005
784
|
if (output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
2007
786
|
}
|
|
2008
787
|
const data = await parseBody(output.body, context);
|
|
2009
788
|
let contents = {};
|
|
@@ -2014,46 +793,9 @@ export const de_UpdateFileCacheCommand = async (output, context) => {
|
|
|
2014
793
|
};
|
|
2015
794
|
return response;
|
|
2016
795
|
};
|
|
2017
|
-
const de_UpdateFileCacheCommandError = async (output, context) => {
|
|
2018
|
-
const parsedOutput = {
|
|
2019
|
-
...output,
|
|
2020
|
-
body: await parseErrorBody(output.body, context),
|
|
2021
|
-
};
|
|
2022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
|
-
switch (errorCode) {
|
|
2024
|
-
case "BadRequest":
|
|
2025
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2026
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2027
|
-
case "FileCacheNotFound":
|
|
2028
|
-
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
2029
|
-
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
2030
|
-
case "IncompatibleParameterError":
|
|
2031
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2032
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2033
|
-
case "InternalServerError":
|
|
2034
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2035
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2036
|
-
case "MissingFileCacheConfiguration":
|
|
2037
|
-
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
2038
|
-
throw await de_MissingFileCacheConfigurationRes(parsedOutput, context);
|
|
2039
|
-
case "ServiceLimitExceeded":
|
|
2040
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2041
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2042
|
-
case "UnsupportedOperation":
|
|
2043
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2044
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2045
|
-
default:
|
|
2046
|
-
const parsedBody = parsedOutput.body;
|
|
2047
|
-
return throwDefaultError({
|
|
2048
|
-
output,
|
|
2049
|
-
parsedBody,
|
|
2050
|
-
errorCode,
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
};
|
|
2054
796
|
export const de_UpdateFileSystemCommand = async (output, context) => {
|
|
2055
797
|
if (output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
2057
799
|
}
|
|
2058
800
|
const data = await parseBody(output.body, context);
|
|
2059
801
|
let contents = {};
|
|
@@ -2064,49 +806,9 @@ export const de_UpdateFileSystemCommand = async (output, context) => {
|
|
|
2064
806
|
};
|
|
2065
807
|
return response;
|
|
2066
808
|
};
|
|
2067
|
-
const de_UpdateFileSystemCommandError = async (output, context) => {
|
|
2068
|
-
const parsedOutput = {
|
|
2069
|
-
...output,
|
|
2070
|
-
body: await parseErrorBody(output.body, context),
|
|
2071
|
-
};
|
|
2072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2073
|
-
switch (errorCode) {
|
|
2074
|
-
case "BadRequest":
|
|
2075
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2076
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2077
|
-
case "FileSystemNotFound":
|
|
2078
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2079
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2080
|
-
case "IncompatibleParameterError":
|
|
2081
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2082
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2083
|
-
case "InternalServerError":
|
|
2084
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2085
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2086
|
-
case "InvalidNetworkSettings":
|
|
2087
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
2088
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
2089
|
-
case "MissingFileSystemConfiguration":
|
|
2090
|
-
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
2091
|
-
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
2092
|
-
case "ServiceLimitExceeded":
|
|
2093
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2094
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2095
|
-
case "UnsupportedOperation":
|
|
2096
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2097
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2098
|
-
default:
|
|
2099
|
-
const parsedBody = parsedOutput.body;
|
|
2100
|
-
return throwDefaultError({
|
|
2101
|
-
output,
|
|
2102
|
-
parsedBody,
|
|
2103
|
-
errorCode,
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
};
|
|
2107
809
|
export const de_UpdateSharedVpcConfigurationCommand = async (output, context) => {
|
|
2108
810
|
if (output.statusCode >= 300) {
|
|
2109
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
2110
812
|
}
|
|
2111
813
|
const data = await parseBody(output.body, context);
|
|
2112
814
|
let contents = {};
|
|
@@ -2117,34 +819,9 @@ export const de_UpdateSharedVpcConfigurationCommand = async (output, context) =>
|
|
|
2117
819
|
};
|
|
2118
820
|
return response;
|
|
2119
821
|
};
|
|
2120
|
-
const de_UpdateSharedVpcConfigurationCommandError = async (output, context) => {
|
|
2121
|
-
const parsedOutput = {
|
|
2122
|
-
...output,
|
|
2123
|
-
body: await parseErrorBody(output.body, context),
|
|
2124
|
-
};
|
|
2125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
|
-
switch (errorCode) {
|
|
2127
|
-
case "BadRequest":
|
|
2128
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2129
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2130
|
-
case "IncompatibleParameterError":
|
|
2131
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2132
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2133
|
-
case "InternalServerError":
|
|
2134
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2135
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
return throwDefaultError({
|
|
2139
|
-
output,
|
|
2140
|
-
parsedBody,
|
|
2141
|
-
errorCode,
|
|
2142
|
-
});
|
|
2143
|
-
}
|
|
2144
|
-
};
|
|
2145
822
|
export const de_UpdateSnapshotCommand = async (output, context) => {
|
|
2146
823
|
if (output.statusCode >= 300) {
|
|
2147
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
2148
825
|
}
|
|
2149
826
|
const data = await parseBody(output.body, context);
|
|
2150
827
|
let contents = {};
|
|
@@ -2155,34 +832,9 @@ export const de_UpdateSnapshotCommand = async (output, context) => {
|
|
|
2155
832
|
};
|
|
2156
833
|
return response;
|
|
2157
834
|
};
|
|
2158
|
-
const de_UpdateSnapshotCommandError = async (output, context) => {
|
|
2159
|
-
const parsedOutput = {
|
|
2160
|
-
...output,
|
|
2161
|
-
body: await parseErrorBody(output.body, context),
|
|
2162
|
-
};
|
|
2163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
-
switch (errorCode) {
|
|
2165
|
-
case "BadRequest":
|
|
2166
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2167
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2168
|
-
case "InternalServerError":
|
|
2169
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2170
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2171
|
-
case "SnapshotNotFound":
|
|
2172
|
-
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
2173
|
-
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
2174
|
-
default:
|
|
2175
|
-
const parsedBody = parsedOutput.body;
|
|
2176
|
-
return throwDefaultError({
|
|
2177
|
-
output,
|
|
2178
|
-
parsedBody,
|
|
2179
|
-
errorCode,
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
};
|
|
2183
835
|
export const de_UpdateStorageVirtualMachineCommand = async (output, context) => {
|
|
2184
836
|
if (output.statusCode >= 300) {
|
|
2185
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
2186
838
|
}
|
|
2187
839
|
const data = await parseBody(output.body, context);
|
|
2188
840
|
let contents = {};
|
|
@@ -2193,40 +845,9 @@ export const de_UpdateStorageVirtualMachineCommand = async (output, context) =>
|
|
|
2193
845
|
};
|
|
2194
846
|
return response;
|
|
2195
847
|
};
|
|
2196
|
-
const de_UpdateStorageVirtualMachineCommandError = async (output, context) => {
|
|
2197
|
-
const parsedOutput = {
|
|
2198
|
-
...output,
|
|
2199
|
-
body: await parseErrorBody(output.body, context),
|
|
2200
|
-
};
|
|
2201
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2202
|
-
switch (errorCode) {
|
|
2203
|
-
case "BadRequest":
|
|
2204
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2205
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2206
|
-
case "IncompatibleParameterError":
|
|
2207
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2208
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2209
|
-
case "InternalServerError":
|
|
2210
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2211
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2212
|
-
case "StorageVirtualMachineNotFound":
|
|
2213
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
2214
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
2215
|
-
case "UnsupportedOperation":
|
|
2216
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2217
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2218
|
-
default:
|
|
2219
|
-
const parsedBody = parsedOutput.body;
|
|
2220
|
-
return throwDefaultError({
|
|
2221
|
-
output,
|
|
2222
|
-
parsedBody,
|
|
2223
|
-
errorCode,
|
|
2224
|
-
});
|
|
2225
|
-
}
|
|
2226
|
-
};
|
|
2227
848
|
export const de_UpdateVolumeCommand = async (output, context) => {
|
|
2228
849
|
if (output.statusCode >= 300) {
|
|
2229
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
2230
851
|
}
|
|
2231
852
|
const data = await parseBody(output.body, context);
|
|
2232
853
|
let contents = {};
|
|
@@ -2237,7 +858,7 @@ export const de_UpdateVolumeCommand = async (output, context) => {
|
|
|
2237
858
|
};
|
|
2238
859
|
return response;
|
|
2239
860
|
};
|
|
2240
|
-
const
|
|
861
|
+
const de_CommandError = async (output, context) => {
|
|
2241
862
|
const parsedOutput = {
|
|
2242
863
|
...output,
|
|
2243
864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2247,18 +868,108 @@ const de_UpdateVolumeCommandError = async (output, context) => {
|
|
|
2247
868
|
case "BadRequest":
|
|
2248
869
|
case "com.amazonaws.fsx#BadRequest":
|
|
2249
870
|
throw await de_BadRequestRes(parsedOutput, context);
|
|
2250
|
-
case "
|
|
2251
|
-
case "com.amazonaws.fsx#
|
|
2252
|
-
throw await
|
|
871
|
+
case "FileSystemNotFound":
|
|
872
|
+
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
873
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2253
874
|
case "InternalServerError":
|
|
2254
875
|
case "com.amazonaws.fsx#InternalServerError":
|
|
2255
876
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2256
|
-
case "
|
|
2257
|
-
case "com.amazonaws.fsx#
|
|
2258
|
-
throw await
|
|
877
|
+
case "DataRepositoryTaskEnded":
|
|
878
|
+
case "com.amazonaws.fsx#DataRepositoryTaskEnded":
|
|
879
|
+
throw await de_DataRepositoryTaskEndedRes(parsedOutput, context);
|
|
880
|
+
case "DataRepositoryTaskNotFound":
|
|
881
|
+
case "com.amazonaws.fsx#DataRepositoryTaskNotFound":
|
|
882
|
+
throw await de_DataRepositoryTaskNotFoundRes(parsedOutput, context);
|
|
883
|
+
case "UnsupportedOperation":
|
|
884
|
+
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
885
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
886
|
+
case "BackupNotFound":
|
|
887
|
+
case "com.amazonaws.fsx#BackupNotFound":
|
|
888
|
+
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
889
|
+
case "IncompatibleParameterError":
|
|
890
|
+
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
891
|
+
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
892
|
+
case "IncompatibleRegionForMultiAZ":
|
|
893
|
+
case "com.amazonaws.fsx#IncompatibleRegionForMultiAZ":
|
|
894
|
+
throw await de_IncompatibleRegionForMultiAZRes(parsedOutput, context);
|
|
895
|
+
case "InvalidDestinationKmsKey":
|
|
896
|
+
case "com.amazonaws.fsx#InvalidDestinationKmsKey":
|
|
897
|
+
throw await de_InvalidDestinationKmsKeyRes(parsedOutput, context);
|
|
898
|
+
case "InvalidRegion":
|
|
899
|
+
case "com.amazonaws.fsx#InvalidRegion":
|
|
900
|
+
throw await de_InvalidRegionRes(parsedOutput, context);
|
|
901
|
+
case "InvalidSourceKmsKey":
|
|
902
|
+
case "com.amazonaws.fsx#InvalidSourceKmsKey":
|
|
903
|
+
throw await de_InvalidSourceKmsKeyRes(parsedOutput, context);
|
|
904
|
+
case "ServiceLimitExceeded":
|
|
905
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
906
|
+
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
907
|
+
case "SourceBackupUnavailable":
|
|
908
|
+
case "com.amazonaws.fsx#SourceBackupUnavailable":
|
|
909
|
+
throw await de_SourceBackupUnavailableRes(parsedOutput, context);
|
|
910
|
+
case "BackupInProgress":
|
|
911
|
+
case "com.amazonaws.fsx#BackupInProgress":
|
|
912
|
+
throw await de_BackupInProgressRes(parsedOutput, context);
|
|
2259
913
|
case "VolumeNotFound":
|
|
2260
914
|
case "com.amazonaws.fsx#VolumeNotFound":
|
|
2261
915
|
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
916
|
+
case "DataRepositoryTaskExecuting":
|
|
917
|
+
case "com.amazonaws.fsx#DataRepositoryTaskExecuting":
|
|
918
|
+
throw await de_DataRepositoryTaskExecutingRes(parsedOutput, context);
|
|
919
|
+
case "InvalidNetworkSettings":
|
|
920
|
+
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
921
|
+
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
922
|
+
case "InvalidPerUnitStorageThroughput":
|
|
923
|
+
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
924
|
+
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
925
|
+
case "MissingFileCacheConfiguration":
|
|
926
|
+
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
927
|
+
throw await de_MissingFileCacheConfigurationRes(parsedOutput, context);
|
|
928
|
+
case "ActiveDirectoryError":
|
|
929
|
+
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
930
|
+
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
931
|
+
case "InvalidExportPath":
|
|
932
|
+
case "com.amazonaws.fsx#InvalidExportPath":
|
|
933
|
+
throw await de_InvalidExportPathRes(parsedOutput, context);
|
|
934
|
+
case "InvalidImportPath":
|
|
935
|
+
case "com.amazonaws.fsx#InvalidImportPath":
|
|
936
|
+
throw await de_InvalidImportPathRes(parsedOutput, context);
|
|
937
|
+
case "MissingFileSystemConfiguration":
|
|
938
|
+
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
939
|
+
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
940
|
+
case "MissingVolumeConfiguration":
|
|
941
|
+
case "com.amazonaws.fsx#MissingVolumeConfiguration":
|
|
942
|
+
throw await de_MissingVolumeConfigurationRes(parsedOutput, context);
|
|
943
|
+
case "StorageVirtualMachineNotFound":
|
|
944
|
+
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
945
|
+
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
946
|
+
case "BackupBeingCopied":
|
|
947
|
+
case "com.amazonaws.fsx#BackupBeingCopied":
|
|
948
|
+
throw await de_BackupBeingCopiedRes(parsedOutput, context);
|
|
949
|
+
case "BackupRestoring":
|
|
950
|
+
case "com.amazonaws.fsx#BackupRestoring":
|
|
951
|
+
throw await de_BackupRestoringRes(parsedOutput, context);
|
|
952
|
+
case "DataRepositoryAssociationNotFound":
|
|
953
|
+
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
954
|
+
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
955
|
+
case "FileCacheNotFound":
|
|
956
|
+
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
957
|
+
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
958
|
+
case "SnapshotNotFound":
|
|
959
|
+
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
960
|
+
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
961
|
+
case "InvalidDataRepositoryType":
|
|
962
|
+
case "com.amazonaws.fsx#InvalidDataRepositoryType":
|
|
963
|
+
throw await de_InvalidDataRepositoryTypeRes(parsedOutput, context);
|
|
964
|
+
case "NotServiceResourceError":
|
|
965
|
+
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
966
|
+
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
967
|
+
case "ResourceDoesNotSupportTagging":
|
|
968
|
+
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
969
|
+
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
970
|
+
case "ResourceNotFound":
|
|
971
|
+
case "com.amazonaws.fsx#ResourceNotFound":
|
|
972
|
+
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
2262
973
|
default:
|
|
2263
974
|
const parsedBody = parsedOutput.body;
|
|
2264
975
|
return throwDefaultError({
|