@aws-sdk/client-snow-device-management 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 +24 -372
- package/dist-es/protocols/Aws_restJson1.js +23 -371
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -503,7 +503,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
503
503
|
}, "se_UntagResourceCommand");
|
|
504
504
|
var de_CancelTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
505
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
|
-
return
|
|
506
|
+
return de_CommandError(output, context);
|
|
507
507
|
}
|
|
508
508
|
const contents = (0, import_smithy_client.map)({
|
|
509
509
|
$metadata: deserializeMetadata(output)
|
|
@@ -515,40 +515,9 @@ var de_CancelTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
515
515
|
Object.assign(contents, doc);
|
|
516
516
|
return contents;
|
|
517
517
|
}, "de_CancelTaskCommand");
|
|
518
|
-
var de_CancelTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
519
|
-
const parsedOutput = {
|
|
520
|
-
...output,
|
|
521
|
-
body: await parseErrorBody(output.body, context)
|
|
522
|
-
};
|
|
523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
|
-
switch (errorCode) {
|
|
525
|
-
case "AccessDeniedException":
|
|
526
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
527
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
528
|
-
case "InternalServerException":
|
|
529
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
530
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ResourceNotFoundException":
|
|
532
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
533
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ThrottlingException":
|
|
535
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
536
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ValidationException":
|
|
538
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
539
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
540
|
-
default:
|
|
541
|
-
const parsedBody = parsedOutput.body;
|
|
542
|
-
return throwDefaultError({
|
|
543
|
-
output,
|
|
544
|
-
parsedBody,
|
|
545
|
-
errorCode
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
}, "de_CancelTaskCommandError");
|
|
549
518
|
var de_CreateTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
|
-
return
|
|
520
|
+
return de_CommandError(output, context);
|
|
552
521
|
}
|
|
553
522
|
const contents = (0, import_smithy_client.map)({
|
|
554
523
|
$metadata: deserializeMetadata(output)
|
|
@@ -561,43 +530,9 @@ var de_CreateTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
561
530
|
Object.assign(contents, doc);
|
|
562
531
|
return contents;
|
|
563
532
|
}, "de_CreateTaskCommand");
|
|
564
|
-
var de_CreateTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
|
-
const parsedOutput = {
|
|
566
|
-
...output,
|
|
567
|
-
body: await parseErrorBody(output.body, context)
|
|
568
|
-
};
|
|
569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
-
switch (errorCode) {
|
|
571
|
-
case "AccessDeniedException":
|
|
572
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
573
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
574
|
-
case "InternalServerException":
|
|
575
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
576
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ResourceNotFoundException":
|
|
578
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
579
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ServiceQuotaExceededException":
|
|
581
|
-
case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
|
|
582
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ThrottlingException":
|
|
584
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
585
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ValidationException":
|
|
587
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
588
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
|
-
default:
|
|
590
|
-
const parsedBody = parsedOutput.body;
|
|
591
|
-
return throwDefaultError({
|
|
592
|
-
output,
|
|
593
|
-
parsedBody,
|
|
594
|
-
errorCode
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
}, "de_CreateTaskCommandError");
|
|
598
533
|
var de_DescribeDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
599
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
-
return
|
|
535
|
+
return de_CommandError(output, context);
|
|
601
536
|
}
|
|
602
537
|
const contents = (0, import_smithy_client.map)({
|
|
603
538
|
$metadata: deserializeMetadata(output)
|
|
@@ -619,40 +554,9 @@ var de_DescribeDeviceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
619
554
|
Object.assign(contents, doc);
|
|
620
555
|
return contents;
|
|
621
556
|
}, "de_DescribeDeviceCommand");
|
|
622
|
-
var de_DescribeDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
623
|
-
const parsedOutput = {
|
|
624
|
-
...output,
|
|
625
|
-
body: await parseErrorBody(output.body, context)
|
|
626
|
-
};
|
|
627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
-
switch (errorCode) {
|
|
629
|
-
case "AccessDeniedException":
|
|
630
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
632
|
-
case "InternalServerException":
|
|
633
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ResourceNotFoundException":
|
|
636
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ThrottlingException":
|
|
639
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ValidationException":
|
|
642
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
|
-
default:
|
|
645
|
-
const parsedBody = parsedOutput.body;
|
|
646
|
-
return throwDefaultError({
|
|
647
|
-
output,
|
|
648
|
-
parsedBody,
|
|
649
|
-
errorCode
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
}, "de_DescribeDeviceCommandError");
|
|
653
557
|
var de_DescribeDeviceEc2InstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
656
560
|
}
|
|
657
561
|
const contents = (0, import_smithy_client.map)({
|
|
658
562
|
$metadata: deserializeMetadata(output)
|
|
@@ -664,40 +568,9 @@ var de_DescribeDeviceEc2InstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
664
568
|
Object.assign(contents, doc);
|
|
665
569
|
return contents;
|
|
666
570
|
}, "de_DescribeDeviceEc2InstancesCommand");
|
|
667
|
-
var de_DescribeDeviceEc2InstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
-
const parsedOutput = {
|
|
669
|
-
...output,
|
|
670
|
-
body: await parseErrorBody(output.body, context)
|
|
671
|
-
};
|
|
672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
-
switch (errorCode) {
|
|
674
|
-
case "AccessDeniedException":
|
|
675
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
676
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
677
|
-
case "InternalServerException":
|
|
678
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
679
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ResourceNotFoundException":
|
|
681
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
682
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ThrottlingException":
|
|
684
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
685
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ValidationException":
|
|
687
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
688
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
689
|
-
default:
|
|
690
|
-
const parsedBody = parsedOutput.body;
|
|
691
|
-
return throwDefaultError({
|
|
692
|
-
output,
|
|
693
|
-
parsedBody,
|
|
694
|
-
errorCode
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
}, "de_DescribeDeviceEc2InstancesCommandError");
|
|
698
571
|
var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
701
574
|
}
|
|
702
575
|
const contents = (0, import_smithy_client.map)({
|
|
703
576
|
$metadata: deserializeMetadata(output)
|
|
@@ -714,40 +587,9 @@ var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
714
587
|
Object.assign(contents, doc);
|
|
715
588
|
return contents;
|
|
716
589
|
}, "de_DescribeExecutionCommand");
|
|
717
|
-
var de_DescribeExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context)
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "AccessDeniedException":
|
|
725
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
726
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
727
|
-
case "InternalServerException":
|
|
728
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
729
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ResourceNotFoundException":
|
|
731
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ThrottlingException":
|
|
734
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
735
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
}, "de_DescribeExecutionCommandError");
|
|
748
590
|
var de_DescribeTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return
|
|
592
|
+
return de_CommandError(output, context);
|
|
751
593
|
}
|
|
752
594
|
const contents = (0, import_smithy_client.map)({
|
|
753
595
|
$metadata: deserializeMetadata(output)
|
|
@@ -767,40 +609,9 @@ var de_DescribeTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
767
609
|
Object.assign(contents, doc);
|
|
768
610
|
return contents;
|
|
769
611
|
}, "de_DescribeTaskCommand");
|
|
770
|
-
var de_DescribeTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
771
|
-
const parsedOutput = {
|
|
772
|
-
...output,
|
|
773
|
-
body: await parseErrorBody(output.body, context)
|
|
774
|
-
};
|
|
775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
|
-
switch (errorCode) {
|
|
777
|
-
case "AccessDeniedException":
|
|
778
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
779
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
780
|
-
case "InternalServerException":
|
|
781
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
782
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ResourceNotFoundException":
|
|
784
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
785
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ThrottlingException":
|
|
787
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
788
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ValidationException":
|
|
790
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
791
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
}, "de_DescribeTaskCommandError");
|
|
801
612
|
var de_ListDeviceResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return
|
|
614
|
+
return de_CommandError(output, context);
|
|
804
615
|
}
|
|
805
616
|
const contents = (0, import_smithy_client.map)({
|
|
806
617
|
$metadata: deserializeMetadata(output)
|
|
@@ -813,40 +624,9 @@ var de_ListDeviceResourcesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
813
624
|
Object.assign(contents, doc);
|
|
814
625
|
return contents;
|
|
815
626
|
}, "de_ListDeviceResourcesCommand");
|
|
816
|
-
var de_ListDeviceResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
817
|
-
const parsedOutput = {
|
|
818
|
-
...output,
|
|
819
|
-
body: await parseErrorBody(output.body, context)
|
|
820
|
-
};
|
|
821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
|
-
switch (errorCode) {
|
|
823
|
-
case "AccessDeniedException":
|
|
824
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
825
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
826
|
-
case "InternalServerException":
|
|
827
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
828
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ResourceNotFoundException":
|
|
830
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
831
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ThrottlingException":
|
|
833
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
834
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ValidationException":
|
|
836
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
|
-
default:
|
|
839
|
-
const parsedBody = parsedOutput.body;
|
|
840
|
-
return throwDefaultError({
|
|
841
|
-
output,
|
|
842
|
-
parsedBody,
|
|
843
|
-
errorCode
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
}, "de_ListDeviceResourcesCommandError");
|
|
847
627
|
var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
850
630
|
}
|
|
851
631
|
const contents = (0, import_smithy_client.map)({
|
|
852
632
|
$metadata: deserializeMetadata(output)
|
|
@@ -859,37 +639,9 @@ var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
859
639
|
Object.assign(contents, doc);
|
|
860
640
|
return contents;
|
|
861
641
|
}, "de_ListDevicesCommand");
|
|
862
|
-
var de_ListDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
-
const parsedOutput = {
|
|
864
|
-
...output,
|
|
865
|
-
body: await parseErrorBody(output.body, context)
|
|
866
|
-
};
|
|
867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
-
switch (errorCode) {
|
|
869
|
-
case "AccessDeniedException":
|
|
870
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
871
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
872
|
-
case "InternalServerException":
|
|
873
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ThrottlingException":
|
|
876
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
877
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ValidationException":
|
|
879
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}, "de_ListDevicesCommandError");
|
|
890
642
|
var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
893
645
|
}
|
|
894
646
|
const contents = (0, import_smithy_client.map)({
|
|
895
647
|
$metadata: deserializeMetadata(output)
|
|
@@ -902,40 +654,9 @@ var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
902
654
|
Object.assign(contents, doc);
|
|
903
655
|
return contents;
|
|
904
656
|
}, "de_ListExecutionsCommand");
|
|
905
|
-
var de_ListExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context)
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "AccessDeniedException":
|
|
913
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
914
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
915
|
-
case "InternalServerException":
|
|
916
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
917
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ResourceNotFoundException":
|
|
919
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
920
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ThrottlingException":
|
|
922
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
923
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ValidationException":
|
|
925
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
926
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
927
|
-
default:
|
|
928
|
-
const parsedBody = parsedOutput.body;
|
|
929
|
-
return throwDefaultError({
|
|
930
|
-
output,
|
|
931
|
-
parsedBody,
|
|
932
|
-
errorCode
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
}, "de_ListExecutionsCommandError");
|
|
936
657
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
938
|
-
return
|
|
659
|
+
return de_CommandError(output, context);
|
|
939
660
|
}
|
|
940
661
|
const contents = (0, import_smithy_client.map)({
|
|
941
662
|
$metadata: deserializeMetadata(output)
|
|
@@ -947,34 +668,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
947
668
|
Object.assign(contents, doc);
|
|
948
669
|
return contents;
|
|
949
670
|
}, "de_ListTagsForResourceCommand");
|
|
950
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
-
const parsedOutput = {
|
|
952
|
-
...output,
|
|
953
|
-
body: await parseErrorBody(output.body, context)
|
|
954
|
-
};
|
|
955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
-
switch (errorCode) {
|
|
957
|
-
case "InternalServerException":
|
|
958
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
959
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ResourceNotFoundException":
|
|
961
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ValidationException":
|
|
964
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
965
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
966
|
-
default:
|
|
967
|
-
const parsedBody = parsedOutput.body;
|
|
968
|
-
return throwDefaultError({
|
|
969
|
-
output,
|
|
970
|
-
parsedBody,
|
|
971
|
-
errorCode
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
}, "de_ListTagsForResourceCommandError");
|
|
975
671
|
var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
-
return
|
|
673
|
+
return de_CommandError(output, context);
|
|
978
674
|
}
|
|
979
675
|
const contents = (0, import_smithy_client.map)({
|
|
980
676
|
$metadata: deserializeMetadata(output)
|
|
@@ -987,37 +683,9 @@ var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
987
683
|
Object.assign(contents, doc);
|
|
988
684
|
return contents;
|
|
989
685
|
}, "de_ListTasksCommand");
|
|
990
|
-
var de_ListTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
|
-
const parsedOutput = {
|
|
992
|
-
...output,
|
|
993
|
-
body: await parseErrorBody(output.body, context)
|
|
994
|
-
};
|
|
995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
-
switch (errorCode) {
|
|
997
|
-
case "AccessDeniedException":
|
|
998
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
999
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "InternalServerException":
|
|
1001
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
1002
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ThrottlingException":
|
|
1004
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
1005
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ValidationException":
|
|
1007
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
1008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}, "de_ListTasksCommandError");
|
|
1018
686
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
688
|
+
return de_CommandError(output, context);
|
|
1021
689
|
}
|
|
1022
690
|
const contents = (0, import_smithy_client.map)({
|
|
1023
691
|
$metadata: deserializeMetadata(output)
|
|
@@ -1025,34 +693,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1025
693
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1026
694
|
return contents;
|
|
1027
695
|
}, "de_TagResourceCommand");
|
|
1028
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
|
-
const parsedOutput = {
|
|
1030
|
-
...output,
|
|
1031
|
-
body: await parseErrorBody(output.body, context)
|
|
1032
|
-
};
|
|
1033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
-
switch (errorCode) {
|
|
1035
|
-
case "InternalServerException":
|
|
1036
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
1037
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ResourceNotFoundException":
|
|
1039
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
1040
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ValidationException":
|
|
1042
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
1043
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1044
|
-
default:
|
|
1045
|
-
const parsedBody = parsedOutput.body;
|
|
1046
|
-
return throwDefaultError({
|
|
1047
|
-
output,
|
|
1048
|
-
parsedBody,
|
|
1049
|
-
errorCode
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
}, "de_TagResourceCommandError");
|
|
1053
696
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
|
-
return
|
|
698
|
+
return de_CommandError(output, context);
|
|
1056
699
|
}
|
|
1057
700
|
const contents = (0, import_smithy_client.map)({
|
|
1058
701
|
$metadata: deserializeMetadata(output)
|
|
@@ -1060,22 +703,31 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1060
703
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1061
704
|
return contents;
|
|
1062
705
|
}, "de_UntagResourceCommand");
|
|
1063
|
-
var
|
|
706
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1064
707
|
const parsedOutput = {
|
|
1065
708
|
...output,
|
|
1066
709
|
body: await parseErrorBody(output.body, context)
|
|
1067
710
|
};
|
|
1068
711
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
712
|
switch (errorCode) {
|
|
713
|
+
case "AccessDeniedException":
|
|
714
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
715
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
716
|
case "InternalServerException":
|
|
1071
717
|
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
1072
718
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1073
719
|
case "ResourceNotFoundException":
|
|
1074
720
|
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
1075
721
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
722
|
+
case "ThrottlingException":
|
|
723
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
724
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
725
|
case "ValidationException":
|
|
1077
726
|
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
1078
727
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
728
|
+
case "ServiceQuotaExceededException":
|
|
729
|
+
case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
|
|
730
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1079
731
|
default:
|
|
1080
732
|
const parsedBody = parsedOutput.body;
|
|
1081
733
|
return throwDefaultError({
|
|
@@ -1084,7 +736,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1084
736
|
errorCode
|
|
1085
737
|
});
|
|
1086
738
|
}
|
|
1087
|
-
}, "
|
|
739
|
+
}, "de_CommandError");
|
|
1088
740
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SnowDeviceManagementServiceException);
|
|
1089
741
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1090
742
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -165,7 +165,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
165
165
|
};
|
|
166
166
|
export const de_CancelTaskCommand = async (output, context) => {
|
|
167
167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
168
|
-
return
|
|
168
|
+
return de_CommandError(output, context);
|
|
169
169
|
}
|
|
170
170
|
const contents = map({
|
|
171
171
|
$metadata: deserializeMetadata(output),
|
|
@@ -177,40 +177,9 @@ export const de_CancelTaskCommand = async (output, context) => {
|
|
|
177
177
|
Object.assign(contents, doc);
|
|
178
178
|
return contents;
|
|
179
179
|
};
|
|
180
|
-
const de_CancelTaskCommandError = async (output, context) => {
|
|
181
|
-
const parsedOutput = {
|
|
182
|
-
...output,
|
|
183
|
-
body: await parseErrorBody(output.body, context),
|
|
184
|
-
};
|
|
185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
186
|
-
switch (errorCode) {
|
|
187
|
-
case "AccessDeniedException":
|
|
188
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
189
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
190
|
-
case "InternalServerException":
|
|
191
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
192
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
193
|
-
case "ResourceNotFoundException":
|
|
194
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
196
|
-
case "ThrottlingException":
|
|
197
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
198
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
199
|
-
case "ValidationException":
|
|
200
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
201
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
202
|
-
default:
|
|
203
|
-
const parsedBody = parsedOutput.body;
|
|
204
|
-
return throwDefaultError({
|
|
205
|
-
output,
|
|
206
|
-
parsedBody,
|
|
207
|
-
errorCode,
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
180
|
export const de_CreateTaskCommand = async (output, context) => {
|
|
212
181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
213
|
-
return
|
|
182
|
+
return de_CommandError(output, context);
|
|
214
183
|
}
|
|
215
184
|
const contents = map({
|
|
216
185
|
$metadata: deserializeMetadata(output),
|
|
@@ -223,43 +192,9 @@ export const de_CreateTaskCommand = async (output, context) => {
|
|
|
223
192
|
Object.assign(contents, doc);
|
|
224
193
|
return contents;
|
|
225
194
|
};
|
|
226
|
-
const de_CreateTaskCommandError = async (output, context) => {
|
|
227
|
-
const parsedOutput = {
|
|
228
|
-
...output,
|
|
229
|
-
body: await parseErrorBody(output.body, context),
|
|
230
|
-
};
|
|
231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
232
|
-
switch (errorCode) {
|
|
233
|
-
case "AccessDeniedException":
|
|
234
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
235
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
236
|
-
case "InternalServerException":
|
|
237
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
238
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
239
|
-
case "ResourceNotFoundException":
|
|
240
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
242
|
-
case "ServiceQuotaExceededException":
|
|
243
|
-
case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
|
|
244
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
245
|
-
case "ThrottlingException":
|
|
246
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
247
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
248
|
-
case "ValidationException":
|
|
249
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
251
|
-
default:
|
|
252
|
-
const parsedBody = parsedOutput.body;
|
|
253
|
-
return throwDefaultError({
|
|
254
|
-
output,
|
|
255
|
-
parsedBody,
|
|
256
|
-
errorCode,
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
195
|
export const de_DescribeDeviceCommand = async (output, context) => {
|
|
261
196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
262
|
-
return
|
|
197
|
+
return de_CommandError(output, context);
|
|
263
198
|
}
|
|
264
199
|
const contents = map({
|
|
265
200
|
$metadata: deserializeMetadata(output),
|
|
@@ -281,40 +216,9 @@ export const de_DescribeDeviceCommand = async (output, context) => {
|
|
|
281
216
|
Object.assign(contents, doc);
|
|
282
217
|
return contents;
|
|
283
218
|
};
|
|
284
|
-
const de_DescribeDeviceCommandError = async (output, context) => {
|
|
285
|
-
const parsedOutput = {
|
|
286
|
-
...output,
|
|
287
|
-
body: await parseErrorBody(output.body, context),
|
|
288
|
-
};
|
|
289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
290
|
-
switch (errorCode) {
|
|
291
|
-
case "AccessDeniedException":
|
|
292
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
293
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
294
|
-
case "InternalServerException":
|
|
295
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
296
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
297
|
-
case "ResourceNotFoundException":
|
|
298
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
299
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
300
|
-
case "ThrottlingException":
|
|
301
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
302
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ValidationException":
|
|
304
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
305
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
306
|
-
default:
|
|
307
|
-
const parsedBody = parsedOutput.body;
|
|
308
|
-
return throwDefaultError({
|
|
309
|
-
output,
|
|
310
|
-
parsedBody,
|
|
311
|
-
errorCode,
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
219
|
export const de_DescribeDeviceEc2InstancesCommand = async (output, context) => {
|
|
316
220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
-
return
|
|
221
|
+
return de_CommandError(output, context);
|
|
318
222
|
}
|
|
319
223
|
const contents = map({
|
|
320
224
|
$metadata: deserializeMetadata(output),
|
|
@@ -326,40 +230,9 @@ export const de_DescribeDeviceEc2InstancesCommand = async (output, context) => {
|
|
|
326
230
|
Object.assign(contents, doc);
|
|
327
231
|
return contents;
|
|
328
232
|
};
|
|
329
|
-
const de_DescribeDeviceEc2InstancesCommandError = async (output, context) => {
|
|
330
|
-
const parsedOutput = {
|
|
331
|
-
...output,
|
|
332
|
-
body: await parseErrorBody(output.body, context),
|
|
333
|
-
};
|
|
334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
-
switch (errorCode) {
|
|
336
|
-
case "AccessDeniedException":
|
|
337
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
339
|
-
case "InternalServerException":
|
|
340
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
341
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
342
|
-
case "ResourceNotFoundException":
|
|
343
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
344
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
345
|
-
case "ThrottlingException":
|
|
346
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
347
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
348
|
-
case "ValidationException":
|
|
349
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
350
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
351
|
-
default:
|
|
352
|
-
const parsedBody = parsedOutput.body;
|
|
353
|
-
return throwDefaultError({
|
|
354
|
-
output,
|
|
355
|
-
parsedBody,
|
|
356
|
-
errorCode,
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
233
|
export const de_DescribeExecutionCommand = async (output, context) => {
|
|
361
234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
362
|
-
return
|
|
235
|
+
return de_CommandError(output, context);
|
|
363
236
|
}
|
|
364
237
|
const contents = map({
|
|
365
238
|
$metadata: deserializeMetadata(output),
|
|
@@ -376,40 +249,9 @@ export const de_DescribeExecutionCommand = async (output, context) => {
|
|
|
376
249
|
Object.assign(contents, doc);
|
|
377
250
|
return contents;
|
|
378
251
|
};
|
|
379
|
-
const de_DescribeExecutionCommandError = async (output, context) => {
|
|
380
|
-
const parsedOutput = {
|
|
381
|
-
...output,
|
|
382
|
-
body: await parseErrorBody(output.body, context),
|
|
383
|
-
};
|
|
384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
|
-
switch (errorCode) {
|
|
386
|
-
case "AccessDeniedException":
|
|
387
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
388
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
389
|
-
case "InternalServerException":
|
|
390
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ResourceNotFoundException":
|
|
393
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ThrottlingException":
|
|
396
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
397
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ValidationException":
|
|
399
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
401
|
-
default:
|
|
402
|
-
const parsedBody = parsedOutput.body;
|
|
403
|
-
return throwDefaultError({
|
|
404
|
-
output,
|
|
405
|
-
parsedBody,
|
|
406
|
-
errorCode,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
252
|
export const de_DescribeTaskCommand = async (output, context) => {
|
|
411
253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
412
|
-
return
|
|
254
|
+
return de_CommandError(output, context);
|
|
413
255
|
}
|
|
414
256
|
const contents = map({
|
|
415
257
|
$metadata: deserializeMetadata(output),
|
|
@@ -429,40 +271,9 @@ export const de_DescribeTaskCommand = async (output, context) => {
|
|
|
429
271
|
Object.assign(contents, doc);
|
|
430
272
|
return contents;
|
|
431
273
|
};
|
|
432
|
-
const de_DescribeTaskCommandError = async (output, context) => {
|
|
433
|
-
const parsedOutput = {
|
|
434
|
-
...output,
|
|
435
|
-
body: await parseErrorBody(output.body, context),
|
|
436
|
-
};
|
|
437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
-
switch (errorCode) {
|
|
439
|
-
case "AccessDeniedException":
|
|
440
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
441
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
442
|
-
case "InternalServerException":
|
|
443
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
444
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ResourceNotFoundException":
|
|
446
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ThrottlingException":
|
|
449
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
450
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ValidationException":
|
|
452
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
453
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
454
|
-
default:
|
|
455
|
-
const parsedBody = parsedOutput.body;
|
|
456
|
-
return throwDefaultError({
|
|
457
|
-
output,
|
|
458
|
-
parsedBody,
|
|
459
|
-
errorCode,
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
274
|
export const de_ListDeviceResourcesCommand = async (output, context) => {
|
|
464
275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
465
|
-
return
|
|
276
|
+
return de_CommandError(output, context);
|
|
466
277
|
}
|
|
467
278
|
const contents = map({
|
|
468
279
|
$metadata: deserializeMetadata(output),
|
|
@@ -475,40 +286,9 @@ export const de_ListDeviceResourcesCommand = async (output, context) => {
|
|
|
475
286
|
Object.assign(contents, doc);
|
|
476
287
|
return contents;
|
|
477
288
|
};
|
|
478
|
-
const de_ListDeviceResourcesCommandError = async (output, context) => {
|
|
479
|
-
const parsedOutput = {
|
|
480
|
-
...output,
|
|
481
|
-
body: await parseErrorBody(output.body, context),
|
|
482
|
-
};
|
|
483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
-
switch (errorCode) {
|
|
485
|
-
case "AccessDeniedException":
|
|
486
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
488
|
-
case "InternalServerException":
|
|
489
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
490
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
491
|
-
case "ResourceNotFoundException":
|
|
492
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
494
|
-
case "ThrottlingException":
|
|
495
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
496
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
497
|
-
case "ValidationException":
|
|
498
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
500
|
-
default:
|
|
501
|
-
const parsedBody = parsedOutput.body;
|
|
502
|
-
return throwDefaultError({
|
|
503
|
-
output,
|
|
504
|
-
parsedBody,
|
|
505
|
-
errorCode,
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
289
|
export const de_ListDevicesCommand = async (output, context) => {
|
|
510
290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
511
|
-
return
|
|
291
|
+
return de_CommandError(output, context);
|
|
512
292
|
}
|
|
513
293
|
const contents = map({
|
|
514
294
|
$metadata: deserializeMetadata(output),
|
|
@@ -521,37 +301,9 @@ export const de_ListDevicesCommand = async (output, context) => {
|
|
|
521
301
|
Object.assign(contents, doc);
|
|
522
302
|
return contents;
|
|
523
303
|
};
|
|
524
|
-
const de_ListDevicesCommandError = async (output, context) => {
|
|
525
|
-
const parsedOutput = {
|
|
526
|
-
...output,
|
|
527
|
-
body: await parseErrorBody(output.body, context),
|
|
528
|
-
};
|
|
529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
-
switch (errorCode) {
|
|
531
|
-
case "AccessDeniedException":
|
|
532
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
533
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
534
|
-
case "InternalServerException":
|
|
535
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
536
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ThrottlingException":
|
|
538
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
539
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
540
|
-
case "ValidationException":
|
|
541
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
542
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
543
|
-
default:
|
|
544
|
-
const parsedBody = parsedOutput.body;
|
|
545
|
-
return throwDefaultError({
|
|
546
|
-
output,
|
|
547
|
-
parsedBody,
|
|
548
|
-
errorCode,
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
304
|
export const de_ListExecutionsCommand = async (output, context) => {
|
|
553
305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
-
return
|
|
306
|
+
return de_CommandError(output, context);
|
|
555
307
|
}
|
|
556
308
|
const contents = map({
|
|
557
309
|
$metadata: deserializeMetadata(output),
|
|
@@ -564,40 +316,9 @@ export const de_ListExecutionsCommand = async (output, context) => {
|
|
|
564
316
|
Object.assign(contents, doc);
|
|
565
317
|
return contents;
|
|
566
318
|
};
|
|
567
|
-
const de_ListExecutionsCommandError = async (output, context) => {
|
|
568
|
-
const parsedOutput = {
|
|
569
|
-
...output,
|
|
570
|
-
body: await parseErrorBody(output.body, context),
|
|
571
|
-
};
|
|
572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
|
-
switch (errorCode) {
|
|
574
|
-
case "AccessDeniedException":
|
|
575
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
576
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
577
|
-
case "InternalServerException":
|
|
578
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
579
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ResourceNotFoundException":
|
|
581
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
582
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ThrottlingException":
|
|
584
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
585
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ValidationException":
|
|
587
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
588
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
|
-
default:
|
|
590
|
-
const parsedBody = parsedOutput.body;
|
|
591
|
-
return throwDefaultError({
|
|
592
|
-
output,
|
|
593
|
-
parsedBody,
|
|
594
|
-
errorCode,
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
319
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
599
320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
-
return
|
|
321
|
+
return de_CommandError(output, context);
|
|
601
322
|
}
|
|
602
323
|
const contents = map({
|
|
603
324
|
$metadata: deserializeMetadata(output),
|
|
@@ -609,34 +330,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
609
330
|
Object.assign(contents, doc);
|
|
610
331
|
return contents;
|
|
611
332
|
};
|
|
612
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
613
|
-
const parsedOutput = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseErrorBody(output.body, context),
|
|
616
|
-
};
|
|
617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
|
-
switch (errorCode) {
|
|
619
|
-
case "InternalServerException":
|
|
620
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
621
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
622
|
-
case "ResourceNotFoundException":
|
|
623
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
624
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ValidationException":
|
|
626
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
627
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
628
|
-
default:
|
|
629
|
-
const parsedBody = parsedOutput.body;
|
|
630
|
-
return throwDefaultError({
|
|
631
|
-
output,
|
|
632
|
-
parsedBody,
|
|
633
|
-
errorCode,
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
};
|
|
637
333
|
export const de_ListTasksCommand = async (output, context) => {
|
|
638
334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
-
return
|
|
335
|
+
return de_CommandError(output, context);
|
|
640
336
|
}
|
|
641
337
|
const contents = map({
|
|
642
338
|
$metadata: deserializeMetadata(output),
|
|
@@ -649,37 +345,9 @@ export const de_ListTasksCommand = async (output, context) => {
|
|
|
649
345
|
Object.assign(contents, doc);
|
|
650
346
|
return contents;
|
|
651
347
|
};
|
|
652
|
-
const de_ListTasksCommandError = async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context),
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "AccessDeniedException":
|
|
660
|
-
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InternalServerException":
|
|
663
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ThrottlingException":
|
|
666
|
-
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
667
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ValidationException":
|
|
669
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
670
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
348
|
export const de_TagResourceCommand = async (output, context) => {
|
|
681
349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
683
351
|
}
|
|
684
352
|
const contents = map({
|
|
685
353
|
$metadata: deserializeMetadata(output),
|
|
@@ -687,34 +355,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
687
355
|
await collectBody(output.body, context);
|
|
688
356
|
return contents;
|
|
689
357
|
};
|
|
690
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
691
|
-
const parsedOutput = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseErrorBody(output.body, context),
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "InternalServerException":
|
|
698
|
-
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ResourceNotFoundException":
|
|
701
|
-
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
702
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ValidationException":
|
|
704
|
-
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
705
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
706
|
-
default:
|
|
707
|
-
const parsedBody = parsedOutput.body;
|
|
708
|
-
return throwDefaultError({
|
|
709
|
-
output,
|
|
710
|
-
parsedBody,
|
|
711
|
-
errorCode,
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
358
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
716
359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return
|
|
360
|
+
return de_CommandError(output, context);
|
|
718
361
|
}
|
|
719
362
|
const contents = map({
|
|
720
363
|
$metadata: deserializeMetadata(output),
|
|
@@ -722,22 +365,31 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
722
365
|
await collectBody(output.body, context);
|
|
723
366
|
return contents;
|
|
724
367
|
};
|
|
725
|
-
const
|
|
368
|
+
const de_CommandError = async (output, context) => {
|
|
726
369
|
const parsedOutput = {
|
|
727
370
|
...output,
|
|
728
371
|
body: await parseErrorBody(output.body, context),
|
|
729
372
|
};
|
|
730
373
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
374
|
switch (errorCode) {
|
|
375
|
+
case "AccessDeniedException":
|
|
376
|
+
case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
|
|
377
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
378
|
case "InternalServerException":
|
|
733
379
|
case "com.amazonaws.snowdevicemanagement#InternalServerException":
|
|
734
380
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
381
|
case "ResourceNotFoundException":
|
|
736
382
|
case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
|
|
737
383
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
384
|
+
case "ThrottlingException":
|
|
385
|
+
case "com.amazonaws.snowdevicemanagement#ThrottlingException":
|
|
386
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
738
387
|
case "ValidationException":
|
|
739
388
|
case "com.amazonaws.snowdevicemanagement#ValidationException":
|
|
740
389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
390
|
+
case "ServiceQuotaExceededException":
|
|
391
|
+
case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
|
|
392
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
741
393
|
default:
|
|
742
394
|
const parsedBody = parsedOutput.body;
|
|
743
395
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-snow-device-management",
|
|
3
3
|
"description": "AWS SDK for JavaScript Snow Device Management Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-snow-device-management",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|