@aws-sdk/client-snowball 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +127 -223
- package/dist-es/protocols/Aws_json1_1.js +201 -224
- package/package.json +6 -6
|
@@ -274,7 +274,6 @@ const deserializeAws_json1_1CancelClusterCommandError = async (output, context)
|
|
|
274
274
|
...output,
|
|
275
275
|
body: await parseBody(output.body, context),
|
|
276
276
|
};
|
|
277
|
-
let response;
|
|
278
277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
278
|
switch (errorCode) {
|
|
280
279
|
case "InvalidJobStateException":
|
|
@@ -288,14 +287,12 @@ const deserializeAws_json1_1CancelClusterCommandError = async (output, context)
|
|
|
288
287
|
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
289
288
|
default:
|
|
290
289
|
const parsedBody = parsedOutput.body;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
$metadata,
|
|
290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
291
|
+
output,
|
|
292
|
+
parsedBody,
|
|
293
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
294
|
+
errorCode,
|
|
297
295
|
});
|
|
298
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
299
296
|
}
|
|
300
297
|
};
|
|
301
298
|
const deserializeAws_json1_1CancelJobCommand = async (output, context) => {
|
|
@@ -317,7 +314,6 @@ const deserializeAws_json1_1CancelJobCommandError = async (output, context) => {
|
|
|
317
314
|
...output,
|
|
318
315
|
body: await parseBody(output.body, context),
|
|
319
316
|
};
|
|
320
|
-
let response;
|
|
321
317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
318
|
switch (errorCode) {
|
|
323
319
|
case "InvalidJobStateException":
|
|
@@ -331,14 +327,12 @@ const deserializeAws_json1_1CancelJobCommandError = async (output, context) => {
|
|
|
331
327
|
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
332
328
|
default:
|
|
333
329
|
const parsedBody = parsedOutput.body;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
$metadata,
|
|
330
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
331
|
+
output,
|
|
332
|
+
parsedBody,
|
|
333
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
334
|
+
errorCode,
|
|
340
335
|
});
|
|
341
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
342
336
|
}
|
|
343
337
|
};
|
|
344
338
|
const deserializeAws_json1_1CreateAddressCommand = async (output, context) => {
|
|
@@ -360,7 +354,6 @@ const deserializeAws_json1_1CreateAddressCommandError = async (output, context)
|
|
|
360
354
|
...output,
|
|
361
355
|
body: await parseBody(output.body, context),
|
|
362
356
|
};
|
|
363
|
-
let response;
|
|
364
357
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
358
|
switch (errorCode) {
|
|
366
359
|
case "InvalidAddressException":
|
|
@@ -371,14 +364,12 @@ const deserializeAws_json1_1CreateAddressCommandError = async (output, context)
|
|
|
371
364
|
throw await deserializeAws_json1_1UnsupportedAddressExceptionResponse(parsedOutput, context);
|
|
372
365
|
default:
|
|
373
366
|
const parsedBody = parsedOutput.body;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
$metadata,
|
|
367
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
368
|
+
output,
|
|
369
|
+
parsedBody,
|
|
370
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
371
|
+
errorCode,
|
|
380
372
|
});
|
|
381
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
382
373
|
}
|
|
383
374
|
};
|
|
384
375
|
const deserializeAws_json1_1CreateClusterCommand = async (output, context) => {
|
|
@@ -400,7 +391,6 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
400
391
|
...output,
|
|
401
392
|
body: await parseBody(output.body, context),
|
|
402
393
|
};
|
|
403
|
-
let response;
|
|
404
394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
395
|
switch (errorCode) {
|
|
406
396
|
case "Ec2RequestFailedException":
|
|
@@ -417,14 +407,12 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
417
407
|
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
418
408
|
default:
|
|
419
409
|
const parsedBody = parsedOutput.body;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
$metadata,
|
|
410
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
411
|
+
output,
|
|
412
|
+
parsedBody,
|
|
413
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
414
|
+
errorCode,
|
|
426
415
|
});
|
|
427
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
428
416
|
}
|
|
429
417
|
};
|
|
430
418
|
const deserializeAws_json1_1CreateJobCommand = async (output, context) => {
|
|
@@ -446,7 +434,6 @@ const deserializeAws_json1_1CreateJobCommandError = async (output, context) => {
|
|
|
446
434
|
...output,
|
|
447
435
|
body: await parseBody(output.body, context),
|
|
448
436
|
};
|
|
449
|
-
let response;
|
|
450
437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
438
|
switch (errorCode) {
|
|
452
439
|
case "ClusterLimitExceededException":
|
|
@@ -466,14 +453,12 @@ const deserializeAws_json1_1CreateJobCommandError = async (output, context) => {
|
|
|
466
453
|
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
467
454
|
default:
|
|
468
455
|
const parsedBody = parsedOutput.body;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
$metadata,
|
|
456
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
457
|
+
output,
|
|
458
|
+
parsedBody,
|
|
459
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
460
|
+
errorCode,
|
|
475
461
|
});
|
|
476
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
477
462
|
}
|
|
478
463
|
};
|
|
479
464
|
const deserializeAws_json1_1CreateLongTermPricingCommand = async (output, context) => {
|
|
@@ -495,7 +480,6 @@ const deserializeAws_json1_1CreateLongTermPricingCommandError = async (output, c
|
|
|
495
480
|
...output,
|
|
496
481
|
body: await parseBody(output.body, context),
|
|
497
482
|
};
|
|
498
|
-
let response;
|
|
499
483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
484
|
switch (errorCode) {
|
|
501
485
|
case "InvalidResourceException":
|
|
@@ -503,14 +487,12 @@ const deserializeAws_json1_1CreateLongTermPricingCommandError = async (output, c
|
|
|
503
487
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
504
488
|
default:
|
|
505
489
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
$metadata,
|
|
490
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
491
|
+
output,
|
|
492
|
+
parsedBody,
|
|
493
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
494
|
+
errorCode,
|
|
512
495
|
});
|
|
513
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
514
496
|
}
|
|
515
497
|
};
|
|
516
498
|
const deserializeAws_json1_1CreateReturnShippingLabelCommand = async (output, context) => {
|
|
@@ -532,7 +514,6 @@ const deserializeAws_json1_1CreateReturnShippingLabelCommandError = async (outpu
|
|
|
532
514
|
...output,
|
|
533
515
|
body: await parseBody(output.body, context),
|
|
534
516
|
};
|
|
535
|
-
let response;
|
|
536
517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
518
|
switch (errorCode) {
|
|
538
519
|
case "ConflictException":
|
|
@@ -552,14 +533,12 @@ const deserializeAws_json1_1CreateReturnShippingLabelCommandError = async (outpu
|
|
|
552
533
|
throw await deserializeAws_json1_1ReturnShippingLabelAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
553
534
|
default:
|
|
554
535
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
$metadata,
|
|
536
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
537
|
+
output,
|
|
538
|
+
parsedBody,
|
|
539
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
540
|
+
errorCode,
|
|
561
541
|
});
|
|
562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
542
|
}
|
|
564
543
|
};
|
|
565
544
|
const deserializeAws_json1_1DescribeAddressCommand = async (output, context) => {
|
|
@@ -581,7 +560,6 @@ const deserializeAws_json1_1DescribeAddressCommandError = async (output, context
|
|
|
581
560
|
...output,
|
|
582
561
|
body: await parseBody(output.body, context),
|
|
583
562
|
};
|
|
584
|
-
let response;
|
|
585
563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
564
|
switch (errorCode) {
|
|
587
565
|
case "InvalidResourceException":
|
|
@@ -589,14 +567,12 @@ const deserializeAws_json1_1DescribeAddressCommandError = async (output, context
|
|
|
589
567
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
590
568
|
default:
|
|
591
569
|
const parsedBody = parsedOutput.body;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
$metadata,
|
|
570
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
571
|
+
output,
|
|
572
|
+
parsedBody,
|
|
573
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
574
|
+
errorCode,
|
|
598
575
|
});
|
|
599
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
600
576
|
}
|
|
601
577
|
};
|
|
602
578
|
const deserializeAws_json1_1DescribeAddressesCommand = async (output, context) => {
|
|
@@ -618,7 +594,6 @@ const deserializeAws_json1_1DescribeAddressesCommandError = async (output, conte
|
|
|
618
594
|
...output,
|
|
619
595
|
body: await parseBody(output.body, context),
|
|
620
596
|
};
|
|
621
|
-
let response;
|
|
622
597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
598
|
switch (errorCode) {
|
|
624
599
|
case "InvalidNextTokenException":
|
|
@@ -629,14 +604,12 @@ const deserializeAws_json1_1DescribeAddressesCommandError = async (output, conte
|
|
|
629
604
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
630
605
|
default:
|
|
631
606
|
const parsedBody = parsedOutput.body;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
$metadata,
|
|
607
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
608
|
+
output,
|
|
609
|
+
parsedBody,
|
|
610
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
611
|
+
errorCode,
|
|
638
612
|
});
|
|
639
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
640
613
|
}
|
|
641
614
|
};
|
|
642
615
|
const deserializeAws_json1_1DescribeClusterCommand = async (output, context) => {
|
|
@@ -658,7 +631,6 @@ const deserializeAws_json1_1DescribeClusterCommandError = async (output, context
|
|
|
658
631
|
...output,
|
|
659
632
|
body: await parseBody(output.body, context),
|
|
660
633
|
};
|
|
661
|
-
let response;
|
|
662
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
635
|
switch (errorCode) {
|
|
664
636
|
case "InvalidResourceException":
|
|
@@ -666,14 +638,12 @@ const deserializeAws_json1_1DescribeClusterCommandError = async (output, context
|
|
|
666
638
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
667
639
|
default:
|
|
668
640
|
const parsedBody = parsedOutput.body;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
$metadata,
|
|
641
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
642
|
+
output,
|
|
643
|
+
parsedBody,
|
|
644
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
645
|
+
errorCode,
|
|
675
646
|
});
|
|
676
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
677
647
|
}
|
|
678
648
|
};
|
|
679
649
|
const deserializeAws_json1_1DescribeJobCommand = async (output, context) => {
|
|
@@ -695,7 +665,6 @@ const deserializeAws_json1_1DescribeJobCommandError = async (output, context) =>
|
|
|
695
665
|
...output,
|
|
696
666
|
body: await parseBody(output.body, context),
|
|
697
667
|
};
|
|
698
|
-
let response;
|
|
699
668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
669
|
switch (errorCode) {
|
|
701
670
|
case "InvalidResourceException":
|
|
@@ -703,14 +672,12 @@ const deserializeAws_json1_1DescribeJobCommandError = async (output, context) =>
|
|
|
703
672
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
704
673
|
default:
|
|
705
674
|
const parsedBody = parsedOutput.body;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
$metadata,
|
|
675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
676
|
+
output,
|
|
677
|
+
parsedBody,
|
|
678
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
679
|
+
errorCode,
|
|
712
680
|
});
|
|
713
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
714
681
|
}
|
|
715
682
|
};
|
|
716
683
|
const deserializeAws_json1_1DescribeReturnShippingLabelCommand = async (output, context) => {
|
|
@@ -732,7 +699,6 @@ const deserializeAws_json1_1DescribeReturnShippingLabelCommandError = async (out
|
|
|
732
699
|
...output,
|
|
733
700
|
body: await parseBody(output.body, context),
|
|
734
701
|
};
|
|
735
|
-
let response;
|
|
736
702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
703
|
switch (errorCode) {
|
|
738
704
|
case "ConflictException":
|
|
@@ -746,14 +712,12 @@ const deserializeAws_json1_1DescribeReturnShippingLabelCommandError = async (out
|
|
|
746
712
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
747
713
|
default:
|
|
748
714
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
$metadata,
|
|
715
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
716
|
+
output,
|
|
717
|
+
parsedBody,
|
|
718
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
719
|
+
errorCode,
|
|
755
720
|
});
|
|
756
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
757
721
|
}
|
|
758
722
|
};
|
|
759
723
|
const deserializeAws_json1_1GetJobManifestCommand = async (output, context) => {
|
|
@@ -775,7 +739,6 @@ const deserializeAws_json1_1GetJobManifestCommandError = async (output, context)
|
|
|
775
739
|
...output,
|
|
776
740
|
body: await parseBody(output.body, context),
|
|
777
741
|
};
|
|
778
|
-
let response;
|
|
779
742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
743
|
switch (errorCode) {
|
|
781
744
|
case "InvalidJobStateException":
|
|
@@ -786,14 +749,12 @@ const deserializeAws_json1_1GetJobManifestCommandError = async (output, context)
|
|
|
786
749
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
787
750
|
default:
|
|
788
751
|
const parsedBody = parsedOutput.body;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
$metadata,
|
|
752
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
753
|
+
output,
|
|
754
|
+
parsedBody,
|
|
755
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
756
|
+
errorCode,
|
|
795
757
|
});
|
|
796
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
797
758
|
}
|
|
798
759
|
};
|
|
799
760
|
const deserializeAws_json1_1GetJobUnlockCodeCommand = async (output, context) => {
|
|
@@ -815,7 +776,6 @@ const deserializeAws_json1_1GetJobUnlockCodeCommandError = async (output, contex
|
|
|
815
776
|
...output,
|
|
816
777
|
body: await parseBody(output.body, context),
|
|
817
778
|
};
|
|
818
|
-
let response;
|
|
819
779
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
780
|
switch (errorCode) {
|
|
821
781
|
case "InvalidJobStateException":
|
|
@@ -826,14 +786,12 @@ const deserializeAws_json1_1GetJobUnlockCodeCommandError = async (output, contex
|
|
|
826
786
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
827
787
|
default:
|
|
828
788
|
const parsedBody = parsedOutput.body;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
$metadata,
|
|
789
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
790
|
+
output,
|
|
791
|
+
parsedBody,
|
|
792
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
793
|
+
errorCode,
|
|
835
794
|
});
|
|
836
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
837
795
|
}
|
|
838
796
|
};
|
|
839
797
|
const deserializeAws_json1_1GetSnowballUsageCommand = async (output, context) => {
|
|
@@ -855,20 +813,14 @@ const deserializeAws_json1_1GetSnowballUsageCommandError = async (output, contex
|
|
|
855
813
|
...output,
|
|
856
814
|
body: await parseBody(output.body, context),
|
|
857
815
|
};
|
|
858
|
-
let response;
|
|
859
816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
$fault: "client",
|
|
868
|
-
$metadata,
|
|
869
|
-
});
|
|
870
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
871
|
-
}
|
|
817
|
+
const parsedBody = parsedOutput.body;
|
|
818
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
819
|
+
output,
|
|
820
|
+
parsedBody,
|
|
821
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
822
|
+
errorCode,
|
|
823
|
+
});
|
|
872
824
|
};
|
|
873
825
|
const deserializeAws_json1_1GetSoftwareUpdatesCommand = async (output, context) => {
|
|
874
826
|
if (output.statusCode >= 300) {
|
|
@@ -889,7 +841,6 @@ const deserializeAws_json1_1GetSoftwareUpdatesCommandError = async (output, cont
|
|
|
889
841
|
...output,
|
|
890
842
|
body: await parseBody(output.body, context),
|
|
891
843
|
};
|
|
892
|
-
let response;
|
|
893
844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
845
|
switch (errorCode) {
|
|
895
846
|
case "InvalidJobStateException":
|
|
@@ -900,14 +851,12 @@ const deserializeAws_json1_1GetSoftwareUpdatesCommandError = async (output, cont
|
|
|
900
851
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
901
852
|
default:
|
|
902
853
|
const parsedBody = parsedOutput.body;
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
$metadata,
|
|
854
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
855
|
+
output,
|
|
856
|
+
parsedBody,
|
|
857
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
858
|
+
errorCode,
|
|
909
859
|
});
|
|
910
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
911
860
|
}
|
|
912
861
|
};
|
|
913
862
|
const deserializeAws_json1_1ListClusterJobsCommand = async (output, context) => {
|
|
@@ -929,7 +878,6 @@ const deserializeAws_json1_1ListClusterJobsCommandError = async (output, context
|
|
|
929
878
|
...output,
|
|
930
879
|
body: await parseBody(output.body, context),
|
|
931
880
|
};
|
|
932
|
-
let response;
|
|
933
881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
882
|
switch (errorCode) {
|
|
935
883
|
case "InvalidNextTokenException":
|
|
@@ -940,14 +888,12 @@ const deserializeAws_json1_1ListClusterJobsCommandError = async (output, context
|
|
|
940
888
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
941
889
|
default:
|
|
942
890
|
const parsedBody = parsedOutput.body;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
$metadata,
|
|
891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
892
|
+
output,
|
|
893
|
+
parsedBody,
|
|
894
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
895
|
+
errorCode,
|
|
949
896
|
});
|
|
950
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
951
897
|
}
|
|
952
898
|
};
|
|
953
899
|
const deserializeAws_json1_1ListClustersCommand = async (output, context) => {
|
|
@@ -969,7 +915,6 @@ const deserializeAws_json1_1ListClustersCommandError = async (output, context) =
|
|
|
969
915
|
...output,
|
|
970
916
|
body: await parseBody(output.body, context),
|
|
971
917
|
};
|
|
972
|
-
let response;
|
|
973
918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
919
|
switch (errorCode) {
|
|
975
920
|
case "InvalidNextTokenException":
|
|
@@ -977,14 +922,12 @@ const deserializeAws_json1_1ListClustersCommandError = async (output, context) =
|
|
|
977
922
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
978
923
|
default:
|
|
979
924
|
const parsedBody = parsedOutput.body;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
$metadata,
|
|
925
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
926
|
+
output,
|
|
927
|
+
parsedBody,
|
|
928
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
929
|
+
errorCode,
|
|
986
930
|
});
|
|
987
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
988
931
|
}
|
|
989
932
|
};
|
|
990
933
|
const deserializeAws_json1_1ListCompatibleImagesCommand = async (output, context) => {
|
|
@@ -1006,7 +949,6 @@ const deserializeAws_json1_1ListCompatibleImagesCommandError = async (output, co
|
|
|
1006
949
|
...output,
|
|
1007
950
|
body: await parseBody(output.body, context),
|
|
1008
951
|
};
|
|
1009
|
-
let response;
|
|
1010
952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
953
|
switch (errorCode) {
|
|
1012
954
|
case "Ec2RequestFailedException":
|
|
@@ -1017,14 +959,12 @@ const deserializeAws_json1_1ListCompatibleImagesCommandError = async (output, co
|
|
|
1017
959
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1018
960
|
default:
|
|
1019
961
|
const parsedBody = parsedOutput.body;
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
$metadata,
|
|
962
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
963
|
+
output,
|
|
964
|
+
parsedBody,
|
|
965
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
966
|
+
errorCode,
|
|
1026
967
|
});
|
|
1027
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1028
968
|
}
|
|
1029
969
|
};
|
|
1030
970
|
const deserializeAws_json1_1ListJobsCommand = async (output, context) => {
|
|
@@ -1046,7 +986,6 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
|
|
|
1046
986
|
...output,
|
|
1047
987
|
body: await parseBody(output.body, context),
|
|
1048
988
|
};
|
|
1049
|
-
let response;
|
|
1050
989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
990
|
switch (errorCode) {
|
|
1052
991
|
case "InvalidNextTokenException":
|
|
@@ -1054,14 +993,12 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
|
|
|
1054
993
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1055
994
|
default:
|
|
1056
995
|
const parsedBody = parsedOutput.body;
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
$metadata,
|
|
996
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
997
|
+
output,
|
|
998
|
+
parsedBody,
|
|
999
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
1000
|
+
errorCode,
|
|
1063
1001
|
});
|
|
1064
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1065
1002
|
}
|
|
1066
1003
|
};
|
|
1067
1004
|
const deserializeAws_json1_1ListLongTermPricingCommand = async (output, context) => {
|
|
@@ -1083,7 +1020,6 @@ const deserializeAws_json1_1ListLongTermPricingCommandError = async (output, con
|
|
|
1083
1020
|
...output,
|
|
1084
1021
|
body: await parseBody(output.body, context),
|
|
1085
1022
|
};
|
|
1086
|
-
let response;
|
|
1087
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
1024
|
switch (errorCode) {
|
|
1089
1025
|
case "InvalidNextTokenException":
|
|
@@ -1094,14 +1030,12 @@ const deserializeAws_json1_1ListLongTermPricingCommandError = async (output, con
|
|
|
1094
1030
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1095
1031
|
default:
|
|
1096
1032
|
const parsedBody = parsedOutput.body;
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
$metadata,
|
|
1033
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1034
|
+
output,
|
|
1035
|
+
parsedBody,
|
|
1036
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
1037
|
+
errorCode,
|
|
1103
1038
|
});
|
|
1104
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1105
1039
|
}
|
|
1106
1040
|
};
|
|
1107
1041
|
const deserializeAws_json1_1UpdateClusterCommand = async (output, context) => {
|
|
@@ -1123,7 +1057,6 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1123
1057
|
...output,
|
|
1124
1058
|
body: await parseBody(output.body, context),
|
|
1125
1059
|
};
|
|
1126
|
-
let response;
|
|
1127
1060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
1061
|
switch (errorCode) {
|
|
1129
1062
|
case "Ec2RequestFailedException":
|
|
@@ -1143,14 +1076,12 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1143
1076
|
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
1144
1077
|
default:
|
|
1145
1078
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
$metadata,
|
|
1079
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1080
|
+
output,
|
|
1081
|
+
parsedBody,
|
|
1082
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
1083
|
+
errorCode,
|
|
1152
1084
|
});
|
|
1153
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1154
1085
|
}
|
|
1155
1086
|
};
|
|
1156
1087
|
const deserializeAws_json1_1UpdateJobCommand = async (output, context) => {
|
|
@@ -1172,7 +1103,6 @@ const deserializeAws_json1_1UpdateJobCommandError = async (output, context) => {
|
|
|
1172
1103
|
...output,
|
|
1173
1104
|
body: await parseBody(output.body, context),
|
|
1174
1105
|
};
|
|
1175
|
-
let response;
|
|
1176
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1107
|
switch (errorCode) {
|
|
1178
1108
|
case "ClusterLimitExceededException":
|
|
@@ -1195,14 +1125,12 @@ const deserializeAws_json1_1UpdateJobCommandError = async (output, context) => {
|
|
|
1195
1125
|
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
1196
1126
|
default:
|
|
1197
1127
|
const parsedBody = parsedOutput.body;
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
$metadata,
|
|
1128
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1129
|
+
output,
|
|
1130
|
+
parsedBody,
|
|
1131
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
1132
|
+
errorCode,
|
|
1204
1133
|
});
|
|
1205
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1206
1134
|
}
|
|
1207
1135
|
};
|
|
1208
1136
|
const deserializeAws_json1_1UpdateJobShipmentStateCommand = async (output, context) => {
|
|
@@ -1224,7 +1152,6 @@ const deserializeAws_json1_1UpdateJobShipmentStateCommandError = async (output,
|
|
|
1224
1152
|
...output,
|
|
1225
1153
|
body: await parseBody(output.body, context),
|
|
1226
1154
|
};
|
|
1227
|
-
let response;
|
|
1228
1155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1156
|
switch (errorCode) {
|
|
1230
1157
|
case "InvalidJobStateException":
|
|
@@ -1235,14 +1162,12 @@ const deserializeAws_json1_1UpdateJobShipmentStateCommandError = async (output,
|
|
|
1235
1162
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1236
1163
|
default:
|
|
1237
1164
|
const parsedBody = parsedOutput.body;
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
$metadata,
|
|
1165
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1166
|
+
output,
|
|
1167
|
+
parsedBody,
|
|
1168
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
1169
|
+
errorCode,
|
|
1244
1170
|
});
|
|
1245
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1246
1171
|
}
|
|
1247
1172
|
};
|
|
1248
1173
|
const deserializeAws_json1_1UpdateLongTermPricingCommand = async (output, context) => {
|
|
@@ -1264,7 +1189,6 @@ const deserializeAws_json1_1UpdateLongTermPricingCommandError = async (output, c
|
|
|
1264
1189
|
...output,
|
|
1265
1190
|
body: await parseBody(output.body, context),
|
|
1266
1191
|
};
|
|
1267
|
-
let response;
|
|
1268
1192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1193
|
switch (errorCode) {
|
|
1270
1194
|
case "InvalidResourceException":
|
|
@@ -1272,14 +1196,12 @@ const deserializeAws_json1_1UpdateLongTermPricingCommandError = async (output, c
|
|
|
1272
1196
|
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1273
1197
|
default:
|
|
1274
1198
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
$metadata,
|
|
1199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
exceptionCtor: SnowballServiceException_1.SnowballServiceException,
|
|
1203
|
+
errorCode,
|
|
1281
1204
|
});
|
|
1282
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1205
|
}
|
|
1284
1206
|
};
|
|
1285
1207
|
const deserializeAws_json1_1ClusterLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1514,9 +1436,6 @@ const serializeAws_json1_1Ec2AmiResourceList = (input, context) => {
|
|
|
1514
1436
|
return input
|
|
1515
1437
|
.filter((e) => e != null)
|
|
1516
1438
|
.map((entry) => {
|
|
1517
|
-
if (entry === null) {
|
|
1518
|
-
return null;
|
|
1519
|
-
}
|
|
1520
1439
|
return serializeAws_json1_1Ec2AmiResource(entry, context);
|
|
1521
1440
|
});
|
|
1522
1441
|
};
|
|
@@ -1529,9 +1448,6 @@ const serializeAws_json1_1EventTriggerDefinitionList = (input, context) => {
|
|
|
1529
1448
|
return input
|
|
1530
1449
|
.filter((e) => e != null)
|
|
1531
1450
|
.map((entry) => {
|
|
1532
|
-
if (entry === null) {
|
|
1533
|
-
return null;
|
|
1534
|
-
}
|
|
1535
1451
|
return serializeAws_json1_1EventTriggerDefinition(entry, context);
|
|
1536
1452
|
});
|
|
1537
1453
|
};
|
|
@@ -1573,9 +1489,6 @@ const serializeAws_json1_1JobStateList = (input, context) => {
|
|
|
1573
1489
|
return input
|
|
1574
1490
|
.filter((e) => e != null)
|
|
1575
1491
|
.map((entry) => {
|
|
1576
|
-
if (entry === null) {
|
|
1577
|
-
return null;
|
|
1578
|
-
}
|
|
1579
1492
|
return entry;
|
|
1580
1493
|
});
|
|
1581
1494
|
};
|
|
@@ -1597,9 +1510,6 @@ const serializeAws_json1_1LambdaResourceList = (input, context) => {
|
|
|
1597
1510
|
return input
|
|
1598
1511
|
.filter((e) => e != null)
|
|
1599
1512
|
.map((entry) => {
|
|
1600
|
-
if (entry === null) {
|
|
1601
|
-
return null;
|
|
1602
|
-
}
|
|
1603
1513
|
return serializeAws_json1_1LambdaResource(entry, context);
|
|
1604
1514
|
});
|
|
1605
1515
|
};
|
|
@@ -1672,9 +1582,6 @@ const serializeAws_json1_1S3ResourceList = (input, context) => {
|
|
|
1672
1582
|
return input
|
|
1673
1583
|
.filter((e) => e != null)
|
|
1674
1584
|
.map((entry) => {
|
|
1675
|
-
if (entry === null) {
|
|
1676
|
-
return null;
|
|
1677
|
-
}
|
|
1678
1585
|
return serializeAws_json1_1S3Resource(entry, context);
|
|
1679
1586
|
});
|
|
1680
1587
|
};
|
|
@@ -1695,9 +1602,6 @@ const serializeAws_json1_1TargetOnDeviceServiceList = (input, context) => {
|
|
|
1695
1602
|
return input
|
|
1696
1603
|
.filter((e) => e != null)
|
|
1697
1604
|
.map((entry) => {
|
|
1698
|
-
if (entry === null) {
|
|
1699
|
-
return null;
|
|
1700
|
-
}
|
|
1701
1605
|
return serializeAws_json1_1TargetOnDeviceService(entry, context);
|
|
1702
1606
|
});
|
|
1703
1607
|
};
|