@aws-sdk/client-iotthingsgraph 3.504.0 → 3.509.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 +74 -1005
- package/dist-es/protocols/Aws_json1_1.js +66 -997
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -623,7 +623,7 @@ var se_UploadEntityDefinitionsCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
623
623
|
}, "se_UploadEntityDefinitionsCommand");
|
|
624
624
|
var de_AssociateEntityToThingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
625
625
|
if (output.statusCode >= 300) {
|
|
626
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
627
627
|
}
|
|
628
628
|
const data = await parseBody(output.body, context);
|
|
629
629
|
let contents = {};
|
|
@@ -634,37 +634,9 @@ var de_AssociateEntityToThingCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
634
634
|
};
|
|
635
635
|
return response;
|
|
636
636
|
}, "de_AssociateEntityToThingCommand");
|
|
637
|
-
var de_AssociateEntityToThingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
638
|
-
const parsedOutput = {
|
|
639
|
-
...output,
|
|
640
|
-
body: await parseErrorBody(output.body, context)
|
|
641
|
-
};
|
|
642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
|
-
switch (errorCode) {
|
|
644
|
-
case "InternalFailureException":
|
|
645
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
646
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
647
|
-
case "InvalidRequestException":
|
|
648
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
649
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ResourceNotFoundException":
|
|
651
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
default:
|
|
657
|
-
const parsedBody = parsedOutput.body;
|
|
658
|
-
return throwDefaultError({
|
|
659
|
-
output,
|
|
660
|
-
parsedBody,
|
|
661
|
-
errorCode
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
}, "de_AssociateEntityToThingCommandError");
|
|
665
637
|
var de_CreateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
666
638
|
if (output.statusCode >= 300) {
|
|
667
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
668
640
|
}
|
|
669
641
|
const data = await parseBody(output.body, context);
|
|
670
642
|
let contents = {};
|
|
@@ -675,40 +647,9 @@ var de_CreateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
675
647
|
};
|
|
676
648
|
return response;
|
|
677
649
|
}, "de_CreateFlowTemplateCommand");
|
|
678
|
-
var de_CreateFlowTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context)
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "InternalFailureException":
|
|
686
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
687
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
688
|
-
case "InvalidRequestException":
|
|
689
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
690
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
691
|
-
case "LimitExceededException":
|
|
692
|
-
case "com.amazonaws.iotthingsgraph#LimitExceededException":
|
|
693
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ResourceAlreadyExistsException":
|
|
695
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
696
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ThrottlingException":
|
|
698
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
}, "de_CreateFlowTemplateCommandError");
|
|
709
650
|
var de_CreateSystemInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
710
651
|
if (output.statusCode >= 300) {
|
|
711
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
712
653
|
}
|
|
713
654
|
const data = await parseBody(output.body, context);
|
|
714
655
|
let contents = {};
|
|
@@ -719,40 +660,9 @@ var de_CreateSystemInstanceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
719
660
|
};
|
|
720
661
|
return response;
|
|
721
662
|
}, "de_CreateSystemInstanceCommand");
|
|
722
|
-
var de_CreateSystemInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context)
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "InternalFailureException":
|
|
730
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
731
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InvalidRequestException":
|
|
733
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
734
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
735
|
-
case "LimitExceededException":
|
|
736
|
-
case "com.amazonaws.iotthingsgraph#LimitExceededException":
|
|
737
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ResourceAlreadyExistsException":
|
|
739
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
740
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ThrottlingException":
|
|
742
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
}, "de_CreateSystemInstanceCommandError");
|
|
753
663
|
var de_CreateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
754
664
|
if (output.statusCode >= 300) {
|
|
755
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
756
666
|
}
|
|
757
667
|
const data = await parseBody(output.body, context);
|
|
758
668
|
let contents = {};
|
|
@@ -763,37 +673,9 @@ var de_CreateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
763
673
|
};
|
|
764
674
|
return response;
|
|
765
675
|
}, "de_CreateSystemTemplateCommand");
|
|
766
|
-
var de_CreateSystemTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
|
-
const parsedOutput = {
|
|
768
|
-
...output,
|
|
769
|
-
body: await parseErrorBody(output.body, context)
|
|
770
|
-
};
|
|
771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
-
switch (errorCode) {
|
|
773
|
-
case "InternalFailureException":
|
|
774
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
775
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
776
|
-
case "InvalidRequestException":
|
|
777
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
778
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ResourceAlreadyExistsException":
|
|
780
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
781
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ThrottlingException":
|
|
783
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
785
|
-
default:
|
|
786
|
-
const parsedBody = parsedOutput.body;
|
|
787
|
-
return throwDefaultError({
|
|
788
|
-
output,
|
|
789
|
-
parsedBody,
|
|
790
|
-
errorCode
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
}, "de_CreateSystemTemplateCommandError");
|
|
794
676
|
var de_DeleteFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
795
677
|
if (output.statusCode >= 300) {
|
|
796
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
797
679
|
}
|
|
798
680
|
const data = await parseBody(output.body, context);
|
|
799
681
|
let contents = {};
|
|
@@ -804,37 +686,9 @@ var de_DeleteFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
804
686
|
};
|
|
805
687
|
return response;
|
|
806
688
|
}, "de_DeleteFlowTemplateCommand");
|
|
807
|
-
var de_DeleteFlowTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
-
const parsedOutput = {
|
|
809
|
-
...output,
|
|
810
|
-
body: await parseErrorBody(output.body, context)
|
|
811
|
-
};
|
|
812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
-
switch (errorCode) {
|
|
814
|
-
case "InternalFailureException":
|
|
815
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
816
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
817
|
-
case "InvalidRequestException":
|
|
818
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
819
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ResourceInUseException":
|
|
821
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
822
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ThrottlingException":
|
|
824
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
}, "de_DeleteFlowTemplateCommandError");
|
|
835
689
|
var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
690
|
if (output.statusCode >= 300) {
|
|
837
|
-
return
|
|
691
|
+
return de_CommandError(output, context);
|
|
838
692
|
}
|
|
839
693
|
const data = await parseBody(output.body, context);
|
|
840
694
|
let contents = {};
|
|
@@ -845,31 +699,9 @@ var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
845
699
|
};
|
|
846
700
|
return response;
|
|
847
701
|
}, "de_DeleteNamespaceCommand");
|
|
848
|
-
var de_DeleteNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
|
-
const parsedOutput = {
|
|
850
|
-
...output,
|
|
851
|
-
body: await parseErrorBody(output.body, context)
|
|
852
|
-
};
|
|
853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "InternalFailureException":
|
|
856
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
857
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ThrottlingException":
|
|
859
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
860
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}, "de_DeleteNamespaceCommandError");
|
|
870
702
|
var de_DeleteSystemInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
703
|
if (output.statusCode >= 300) {
|
|
872
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
873
705
|
}
|
|
874
706
|
const data = await parseBody(output.body, context);
|
|
875
707
|
let contents = {};
|
|
@@ -880,37 +712,9 @@ var de_DeleteSystemInstanceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
880
712
|
};
|
|
881
713
|
return response;
|
|
882
714
|
}, "de_DeleteSystemInstanceCommand");
|
|
883
|
-
var de_DeleteSystemInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context)
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "InternalFailureException":
|
|
891
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
892
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InvalidRequestException":
|
|
894
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
895
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ResourceInUseException":
|
|
897
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
898
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ThrottlingException":
|
|
900
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
}, "de_DeleteSystemInstanceCommandError");
|
|
911
715
|
var de_DeleteSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
912
716
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
914
718
|
}
|
|
915
719
|
const data = await parseBody(output.body, context);
|
|
916
720
|
let contents = {};
|
|
@@ -921,37 +725,9 @@ var de_DeleteSystemTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
921
725
|
};
|
|
922
726
|
return response;
|
|
923
727
|
}, "de_DeleteSystemTemplateCommand");
|
|
924
|
-
var de_DeleteSystemTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context)
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "InternalFailureException":
|
|
932
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
933
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
934
|
-
case "InvalidRequestException":
|
|
935
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
936
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ResourceInUseException":
|
|
938
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
939
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ThrottlingException":
|
|
941
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
}, "de_DeleteSystemTemplateCommandError");
|
|
952
728
|
var de_DeploySystemInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
729
|
if (output.statusCode >= 300) {
|
|
954
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
955
731
|
}
|
|
956
732
|
const data = await parseBody(output.body, context);
|
|
957
733
|
let contents = {};
|
|
@@ -962,40 +738,9 @@ var de_DeploySystemInstanceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
962
738
|
};
|
|
963
739
|
return response;
|
|
964
740
|
}, "de_DeploySystemInstanceCommand");
|
|
965
|
-
var de_DeploySystemInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context)
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "InternalFailureException":
|
|
973
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
974
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
975
|
-
case "InvalidRequestException":
|
|
976
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
977
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ResourceInUseException":
|
|
979
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
980
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ResourceNotFoundException":
|
|
982
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
983
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ThrottlingException":
|
|
985
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
986
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
987
|
-
default:
|
|
988
|
-
const parsedBody = parsedOutput.body;
|
|
989
|
-
return throwDefaultError({
|
|
990
|
-
output,
|
|
991
|
-
parsedBody,
|
|
992
|
-
errorCode
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
}, "de_DeploySystemInstanceCommandError");
|
|
996
741
|
var de_DeprecateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
997
742
|
if (output.statusCode >= 300) {
|
|
998
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
999
744
|
}
|
|
1000
745
|
const data = await parseBody(output.body, context);
|
|
1001
746
|
let contents = {};
|
|
@@ -1006,78 +751,22 @@ var de_DeprecateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1006
751
|
};
|
|
1007
752
|
return response;
|
|
1008
753
|
}, "de_DeprecateFlowTemplateCommand");
|
|
1009
|
-
var
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
case "InvalidRequestException":
|
|
1020
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1021
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ResourceNotFoundException":
|
|
1023
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ThrottlingException":
|
|
1026
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
}, "de_DeprecateFlowTemplateCommandError");
|
|
1037
|
-
var de_DeprecateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
if (output.statusCode >= 300) {
|
|
1039
|
-
return de_DeprecateSystemTemplateCommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const data = await parseBody(output.body, context);
|
|
1042
|
-
let contents = {};
|
|
1043
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1044
|
-
const response = {
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
...contents
|
|
754
|
+
var de_DeprecateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
|
+
if (output.statusCode >= 300) {
|
|
756
|
+
return de_CommandError(output, context);
|
|
757
|
+
}
|
|
758
|
+
const data = await parseBody(output.body, context);
|
|
759
|
+
let contents = {};
|
|
760
|
+
contents = (0, import_smithy_client._json)(data);
|
|
761
|
+
const response = {
|
|
762
|
+
$metadata: deserializeMetadata(output),
|
|
763
|
+
...contents
|
|
1047
764
|
};
|
|
1048
765
|
return response;
|
|
1049
766
|
}, "de_DeprecateSystemTemplateCommand");
|
|
1050
|
-
var de_DeprecateSystemTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1051
|
-
const parsedOutput = {
|
|
1052
|
-
...output,
|
|
1053
|
-
body: await parseErrorBody(output.body, context)
|
|
1054
|
-
};
|
|
1055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
|
-
switch (errorCode) {
|
|
1057
|
-
case "InternalFailureException":
|
|
1058
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1059
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InvalidRequestException":
|
|
1061
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1062
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ResourceNotFoundException":
|
|
1064
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ThrottlingException":
|
|
1067
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
|
-
default:
|
|
1070
|
-
const parsedBody = parsedOutput.body;
|
|
1071
|
-
return throwDefaultError({
|
|
1072
|
-
output,
|
|
1073
|
-
parsedBody,
|
|
1074
|
-
errorCode
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
}, "de_DeprecateSystemTemplateCommandError");
|
|
1078
767
|
var de_DescribeNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1079
768
|
if (output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
1081
770
|
}
|
|
1082
771
|
const data = await parseBody(output.body, context);
|
|
1083
772
|
let contents = {};
|
|
@@ -1088,37 +777,9 @@ var de_DescribeNamespaceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1088
777
|
};
|
|
1089
778
|
return response;
|
|
1090
779
|
}, "de_DescribeNamespaceCommand");
|
|
1091
|
-
var de_DescribeNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1092
|
-
const parsedOutput = {
|
|
1093
|
-
...output,
|
|
1094
|
-
body: await parseErrorBody(output.body, context)
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "InternalFailureException":
|
|
1099
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1100
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "InvalidRequestException":
|
|
1102
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1103
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ResourceNotFoundException":
|
|
1105
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ThrottlingException":
|
|
1108
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1109
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
}, "de_DescribeNamespaceCommandError");
|
|
1119
780
|
var de_DissociateEntityFromThingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
781
|
if (output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
1122
783
|
}
|
|
1123
784
|
const data = await parseBody(output.body, context);
|
|
1124
785
|
let contents = {};
|
|
@@ -1129,37 +790,9 @@ var de_DissociateEntityFromThingCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1129
790
|
};
|
|
1130
791
|
return response;
|
|
1131
792
|
}, "de_DissociateEntityFromThingCommand");
|
|
1132
|
-
var de_DissociateEntityFromThingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
|
-
const parsedOutput = {
|
|
1134
|
-
...output,
|
|
1135
|
-
body: await parseErrorBody(output.body, context)
|
|
1136
|
-
};
|
|
1137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "InternalFailureException":
|
|
1140
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1141
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "InvalidRequestException":
|
|
1143
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1144
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ResourceNotFoundException":
|
|
1146
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ThrottlingException":
|
|
1149
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1150
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
}, "de_DissociateEntityFromThingCommandError");
|
|
1160
793
|
var de_GetEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
794
|
if (output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1163
796
|
}
|
|
1164
797
|
const data = await parseBody(output.body, context);
|
|
1165
798
|
let contents = {};
|
|
@@ -1170,37 +803,9 @@ var de_GetEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1170
803
|
};
|
|
1171
804
|
return response;
|
|
1172
805
|
}, "de_GetEntitiesCommand");
|
|
1173
|
-
var de_GetEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context)
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "InternalFailureException":
|
|
1181
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1182
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "InvalidRequestException":
|
|
1184
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1185
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "ResourceNotFoundException":
|
|
1187
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1188
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "ThrottlingException":
|
|
1190
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1191
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1192
|
-
default:
|
|
1193
|
-
const parsedBody = parsedOutput.body;
|
|
1194
|
-
return throwDefaultError({
|
|
1195
|
-
output,
|
|
1196
|
-
parsedBody,
|
|
1197
|
-
errorCode
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
}, "de_GetEntitiesCommandError");
|
|
1201
806
|
var de_GetFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1202
807
|
if (output.statusCode >= 300) {
|
|
1203
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
1204
809
|
}
|
|
1205
810
|
const data = await parseBody(output.body, context);
|
|
1206
811
|
let contents = {};
|
|
@@ -1211,37 +816,9 @@ var de_GetFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1211
816
|
};
|
|
1212
817
|
return response;
|
|
1213
818
|
}, "de_GetFlowTemplateCommand");
|
|
1214
|
-
var de_GetFlowTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1215
|
-
const parsedOutput = {
|
|
1216
|
-
...output,
|
|
1217
|
-
body: await parseErrorBody(output.body, context)
|
|
1218
|
-
};
|
|
1219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
-
switch (errorCode) {
|
|
1221
|
-
case "InternalFailureException":
|
|
1222
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1223
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "InvalidRequestException":
|
|
1225
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1226
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ResourceNotFoundException":
|
|
1228
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ThrottlingException":
|
|
1231
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1232
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1233
|
-
default:
|
|
1234
|
-
const parsedBody = parsedOutput.body;
|
|
1235
|
-
return throwDefaultError({
|
|
1236
|
-
output,
|
|
1237
|
-
parsedBody,
|
|
1238
|
-
errorCode
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
}, "de_GetFlowTemplateCommandError");
|
|
1242
819
|
var de_GetFlowTemplateRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1243
820
|
if (output.statusCode >= 300) {
|
|
1244
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1245
822
|
}
|
|
1246
823
|
const data = await parseBody(output.body, context);
|
|
1247
824
|
let contents = {};
|
|
@@ -1252,37 +829,9 @@ var de_GetFlowTemplateRevisionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1252
829
|
};
|
|
1253
830
|
return response;
|
|
1254
831
|
}, "de_GetFlowTemplateRevisionsCommand");
|
|
1255
|
-
var de_GetFlowTemplateRevisionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context)
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "InternalFailureException":
|
|
1263
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1264
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "InvalidRequestException":
|
|
1266
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1267
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ResourceNotFoundException":
|
|
1269
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1270
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ThrottlingException":
|
|
1272
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1273
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1274
|
-
default:
|
|
1275
|
-
const parsedBody = parsedOutput.body;
|
|
1276
|
-
return throwDefaultError({
|
|
1277
|
-
output,
|
|
1278
|
-
parsedBody,
|
|
1279
|
-
errorCode
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
}, "de_GetFlowTemplateRevisionsCommandError");
|
|
1283
832
|
var de_GetNamespaceDeletionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1284
833
|
if (output.statusCode >= 300) {
|
|
1285
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
1286
835
|
}
|
|
1287
836
|
const data = await parseBody(output.body, context);
|
|
1288
837
|
let contents = {};
|
|
@@ -1293,34 +842,9 @@ var de_GetNamespaceDeletionStatusCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1293
842
|
};
|
|
1294
843
|
return response;
|
|
1295
844
|
}, "de_GetNamespaceDeletionStatusCommand");
|
|
1296
|
-
var de_GetNamespaceDeletionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1297
|
-
const parsedOutput = {
|
|
1298
|
-
...output,
|
|
1299
|
-
body: await parseErrorBody(output.body, context)
|
|
1300
|
-
};
|
|
1301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
|
-
switch (errorCode) {
|
|
1303
|
-
case "InternalFailureException":
|
|
1304
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1305
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "InvalidRequestException":
|
|
1307
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1308
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ThrottlingException":
|
|
1310
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
|
-
default:
|
|
1313
|
-
const parsedBody = parsedOutput.body;
|
|
1314
|
-
return throwDefaultError({
|
|
1315
|
-
output,
|
|
1316
|
-
parsedBody,
|
|
1317
|
-
errorCode
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
}, "de_GetNamespaceDeletionStatusCommandError");
|
|
1321
845
|
var de_GetSystemInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1322
846
|
if (output.statusCode >= 300) {
|
|
1323
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1324
848
|
}
|
|
1325
849
|
const data = await parseBody(output.body, context);
|
|
1326
850
|
let contents = {};
|
|
@@ -1331,37 +855,9 @@ var de_GetSystemInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1331
855
|
};
|
|
1332
856
|
return response;
|
|
1333
857
|
}, "de_GetSystemInstanceCommand");
|
|
1334
|
-
var de_GetSystemInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1335
|
-
const parsedOutput = {
|
|
1336
|
-
...output,
|
|
1337
|
-
body: await parseErrorBody(output.body, context)
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "InternalFailureException":
|
|
1342
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1343
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "InvalidRequestException":
|
|
1345
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1346
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ResourceNotFoundException":
|
|
1348
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ThrottlingException":
|
|
1351
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1352
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
}, "de_GetSystemInstanceCommandError");
|
|
1362
858
|
var de_GetSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1363
859
|
if (output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
860
|
+
return de_CommandError(output, context);
|
|
1365
861
|
}
|
|
1366
862
|
const data = await parseBody(output.body, context);
|
|
1367
863
|
let contents = {};
|
|
@@ -1372,37 +868,9 @@ var de_GetSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1372
868
|
};
|
|
1373
869
|
return response;
|
|
1374
870
|
}, "de_GetSystemTemplateCommand");
|
|
1375
|
-
var de_GetSystemTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
|
-
const parsedOutput = {
|
|
1377
|
-
...output,
|
|
1378
|
-
body: await parseErrorBody(output.body, context)
|
|
1379
|
-
};
|
|
1380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
-
switch (errorCode) {
|
|
1382
|
-
case "InternalFailureException":
|
|
1383
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1384
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "InvalidRequestException":
|
|
1386
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1387
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ResourceNotFoundException":
|
|
1389
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "ThrottlingException":
|
|
1392
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1393
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1394
|
-
default:
|
|
1395
|
-
const parsedBody = parsedOutput.body;
|
|
1396
|
-
return throwDefaultError({
|
|
1397
|
-
output,
|
|
1398
|
-
parsedBody,
|
|
1399
|
-
errorCode
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
}, "de_GetSystemTemplateCommandError");
|
|
1403
871
|
var de_GetSystemTemplateRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1404
872
|
if (output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1406
874
|
}
|
|
1407
875
|
const data = await parseBody(output.body, context);
|
|
1408
876
|
let contents = {};
|
|
@@ -1413,37 +881,9 @@ var de_GetSystemTemplateRevisionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1413
881
|
};
|
|
1414
882
|
return response;
|
|
1415
883
|
}, "de_GetSystemTemplateRevisionsCommand");
|
|
1416
|
-
var de_GetSystemTemplateRevisionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1417
|
-
const parsedOutput = {
|
|
1418
|
-
...output,
|
|
1419
|
-
body: await parseErrorBody(output.body, context)
|
|
1420
|
-
};
|
|
1421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
-
switch (errorCode) {
|
|
1423
|
-
case "InternalFailureException":
|
|
1424
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1425
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "InvalidRequestException":
|
|
1427
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1428
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ResourceNotFoundException":
|
|
1430
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ThrottlingException":
|
|
1433
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1434
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1435
|
-
default:
|
|
1436
|
-
const parsedBody = parsedOutput.body;
|
|
1437
|
-
return throwDefaultError({
|
|
1438
|
-
output,
|
|
1439
|
-
parsedBody,
|
|
1440
|
-
errorCode
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
}, "de_GetSystemTemplateRevisionsCommandError");
|
|
1444
884
|
var de_GetUploadStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1445
885
|
if (output.statusCode >= 300) {
|
|
1446
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
1447
887
|
}
|
|
1448
888
|
const data = await parseBody(output.body, context);
|
|
1449
889
|
let contents = {};
|
|
@@ -1454,37 +894,9 @@ var de_GetUploadStatusCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1454
894
|
};
|
|
1455
895
|
return response;
|
|
1456
896
|
}, "de_GetUploadStatusCommand");
|
|
1457
|
-
var de_GetUploadStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1458
|
-
const parsedOutput = {
|
|
1459
|
-
...output,
|
|
1460
|
-
body: await parseErrorBody(output.body, context)
|
|
1461
|
-
};
|
|
1462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
case "InternalFailureException":
|
|
1465
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1466
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "InvalidRequestException":
|
|
1468
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1469
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ThrottlingException":
|
|
1474
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
}, "de_GetUploadStatusCommandError");
|
|
1485
897
|
var de_ListFlowExecutionMessagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
898
|
if (output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
1488
900
|
}
|
|
1489
901
|
const data = await parseBody(output.body, context);
|
|
1490
902
|
let contents = {};
|
|
@@ -1495,37 +907,9 @@ var de_ListFlowExecutionMessagesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1495
907
|
};
|
|
1496
908
|
return response;
|
|
1497
909
|
}, "de_ListFlowExecutionMessagesCommand");
|
|
1498
|
-
var de_ListFlowExecutionMessagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1499
|
-
const parsedOutput = {
|
|
1500
|
-
...output,
|
|
1501
|
-
body: await parseErrorBody(output.body, context)
|
|
1502
|
-
};
|
|
1503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
|
-
switch (errorCode) {
|
|
1505
|
-
case "InternalFailureException":
|
|
1506
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1507
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "InvalidRequestException":
|
|
1509
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1510
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ResourceNotFoundException":
|
|
1512
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "ThrottlingException":
|
|
1515
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1516
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1517
|
-
default:
|
|
1518
|
-
const parsedBody = parsedOutput.body;
|
|
1519
|
-
return throwDefaultError({
|
|
1520
|
-
output,
|
|
1521
|
-
parsedBody,
|
|
1522
|
-
errorCode
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
}, "de_ListFlowExecutionMessagesCommandError");
|
|
1526
910
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
911
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1529
913
|
}
|
|
1530
914
|
const data = await parseBody(output.body, context);
|
|
1531
915
|
let contents = {};
|
|
@@ -1536,116 +920,35 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1536
920
|
};
|
|
1537
921
|
return response;
|
|
1538
922
|
}, "de_ListTagsForResourceCommand");
|
|
1539
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
-
const parsedOutput = {
|
|
1541
|
-
...output,
|
|
1542
|
-
body: await parseErrorBody(output.body, context)
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "InternalFailureException":
|
|
1547
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1548
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "InvalidRequestException":
|
|
1550
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1551
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ResourceAlreadyExistsException":
|
|
1553
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
1554
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ThrottlingException":
|
|
1556
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1557
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1558
|
-
default:
|
|
1559
|
-
const parsedBody = parsedOutput.body;
|
|
1560
|
-
return throwDefaultError({
|
|
1561
|
-
output,
|
|
1562
|
-
parsedBody,
|
|
1563
|
-
errorCode
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1567
923
|
var de_SearchEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1568
924
|
if (output.statusCode >= 300) {
|
|
1569
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1570
926
|
}
|
|
1571
927
|
const data = await parseBody(output.body, context);
|
|
1572
928
|
let contents = {};
|
|
1573
929
|
contents = de_SearchEntitiesResponse(data, context);
|
|
1574
930
|
const response = {
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
...contents
|
|
1577
|
-
};
|
|
1578
|
-
return response;
|
|
1579
|
-
}, "de_SearchEntitiesCommand");
|
|
1580
|
-
var
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
body: await parseErrorBody(output.body, context)
|
|
1584
|
-
};
|
|
1585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
|
-
switch (errorCode) {
|
|
1587
|
-
case "InternalFailureException":
|
|
1588
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1589
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "InvalidRequestException":
|
|
1591
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1592
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ThrottlingException":
|
|
1594
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1596
|
-
default:
|
|
1597
|
-
const parsedBody = parsedOutput.body;
|
|
1598
|
-
return throwDefaultError({
|
|
1599
|
-
output,
|
|
1600
|
-
parsedBody,
|
|
1601
|
-
errorCode
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
}, "de_SearchEntitiesCommandError");
|
|
1605
|
-
var de_SearchFlowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1606
|
-
if (output.statusCode >= 300) {
|
|
1607
|
-
return de_SearchFlowExecutionsCommandError(output, context);
|
|
1608
|
-
}
|
|
1609
|
-
const data = await parseBody(output.body, context);
|
|
1610
|
-
let contents = {};
|
|
1611
|
-
contents = de_SearchFlowExecutionsResponse(data, context);
|
|
1612
|
-
const response = {
|
|
1613
|
-
$metadata: deserializeMetadata(output),
|
|
1614
|
-
...contents
|
|
1615
|
-
};
|
|
1616
|
-
return response;
|
|
1617
|
-
}, "de_SearchFlowExecutionsCommand");
|
|
1618
|
-
var de_SearchFlowExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
|
-
const parsedOutput = {
|
|
1620
|
-
...output,
|
|
1621
|
-
body: await parseErrorBody(output.body, context)
|
|
1622
|
-
};
|
|
1623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "InternalFailureException":
|
|
1626
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1627
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "InvalidRequestException":
|
|
1629
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1630
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ResourceNotFoundException":
|
|
1632
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "ThrottlingException":
|
|
1635
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1636
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1637
|
-
default:
|
|
1638
|
-
const parsedBody = parsedOutput.body;
|
|
1639
|
-
return throwDefaultError({
|
|
1640
|
-
output,
|
|
1641
|
-
parsedBody,
|
|
1642
|
-
errorCode
|
|
1643
|
-
});
|
|
931
|
+
$metadata: deserializeMetadata(output),
|
|
932
|
+
...contents
|
|
933
|
+
};
|
|
934
|
+
return response;
|
|
935
|
+
}, "de_SearchEntitiesCommand");
|
|
936
|
+
var de_SearchFlowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
|
+
if (output.statusCode >= 300) {
|
|
938
|
+
return de_CommandError(output, context);
|
|
1644
939
|
}
|
|
1645
|
-
|
|
940
|
+
const data = await parseBody(output.body, context);
|
|
941
|
+
let contents = {};
|
|
942
|
+
contents = de_SearchFlowExecutionsResponse(data, context);
|
|
943
|
+
const response = {
|
|
944
|
+
$metadata: deserializeMetadata(output),
|
|
945
|
+
...contents
|
|
946
|
+
};
|
|
947
|
+
return response;
|
|
948
|
+
}, "de_SearchFlowExecutionsCommand");
|
|
1646
949
|
var de_SearchFlowTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1647
950
|
if (output.statusCode >= 300) {
|
|
1648
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1649
952
|
}
|
|
1650
953
|
const data = await parseBody(output.body, context);
|
|
1651
954
|
let contents = {};
|
|
@@ -1656,34 +959,9 @@ var de_SearchFlowTemplatesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1656
959
|
};
|
|
1657
960
|
return response;
|
|
1658
961
|
}, "de_SearchFlowTemplatesCommand");
|
|
1659
|
-
var de_SearchFlowTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1660
|
-
const parsedOutput = {
|
|
1661
|
-
...output,
|
|
1662
|
-
body: await parseErrorBody(output.body, context)
|
|
1663
|
-
};
|
|
1664
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1665
|
-
switch (errorCode) {
|
|
1666
|
-
case "InternalFailureException":
|
|
1667
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1668
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "InvalidRequestException":
|
|
1670
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1671
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "ThrottlingException":
|
|
1673
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1674
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1675
|
-
default:
|
|
1676
|
-
const parsedBody = parsedOutput.body;
|
|
1677
|
-
return throwDefaultError({
|
|
1678
|
-
output,
|
|
1679
|
-
parsedBody,
|
|
1680
|
-
errorCode
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
}, "de_SearchFlowTemplatesCommandError");
|
|
1684
962
|
var de_SearchSystemInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
963
|
if (output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1687
965
|
}
|
|
1688
966
|
const data = await parseBody(output.body, context);
|
|
1689
967
|
let contents = {};
|
|
@@ -1694,34 +972,9 @@ var de_SearchSystemInstancesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1694
972
|
};
|
|
1695
973
|
return response;
|
|
1696
974
|
}, "de_SearchSystemInstancesCommand");
|
|
1697
|
-
var de_SearchSystemInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
|
-
const parsedOutput = {
|
|
1699
|
-
...output,
|
|
1700
|
-
body: await parseErrorBody(output.body, context)
|
|
1701
|
-
};
|
|
1702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
-
switch (errorCode) {
|
|
1704
|
-
case "InternalFailureException":
|
|
1705
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1706
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "InvalidRequestException":
|
|
1708
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1709
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ThrottlingException":
|
|
1711
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1712
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1713
|
-
default:
|
|
1714
|
-
const parsedBody = parsedOutput.body;
|
|
1715
|
-
return throwDefaultError({
|
|
1716
|
-
output,
|
|
1717
|
-
parsedBody,
|
|
1718
|
-
errorCode
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
}, "de_SearchSystemInstancesCommandError");
|
|
1722
975
|
var de_SearchSystemTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1723
976
|
if (output.statusCode >= 300) {
|
|
1724
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1725
978
|
}
|
|
1726
979
|
const data = await parseBody(output.body, context);
|
|
1727
980
|
let contents = {};
|
|
@@ -1732,34 +985,9 @@ var de_SearchSystemTemplatesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1732
985
|
};
|
|
1733
986
|
return response;
|
|
1734
987
|
}, "de_SearchSystemTemplatesCommand");
|
|
1735
|
-
var de_SearchSystemTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
|
-
const parsedOutput = {
|
|
1737
|
-
...output,
|
|
1738
|
-
body: await parseErrorBody(output.body, context)
|
|
1739
|
-
};
|
|
1740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
-
switch (errorCode) {
|
|
1742
|
-
case "InternalFailureException":
|
|
1743
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1744
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "InvalidRequestException":
|
|
1746
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1747
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ThrottlingException":
|
|
1749
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1750
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1751
|
-
default:
|
|
1752
|
-
const parsedBody = parsedOutput.body;
|
|
1753
|
-
return throwDefaultError({
|
|
1754
|
-
output,
|
|
1755
|
-
parsedBody,
|
|
1756
|
-
errorCode
|
|
1757
|
-
});
|
|
1758
|
-
}
|
|
1759
|
-
}, "de_SearchSystemTemplatesCommandError");
|
|
1760
988
|
var de_SearchThingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
989
|
if (output.statusCode >= 300) {
|
|
1762
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1763
991
|
}
|
|
1764
992
|
const data = await parseBody(output.body, context);
|
|
1765
993
|
let contents = {};
|
|
@@ -1770,37 +998,9 @@ var de_SearchThingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1770
998
|
};
|
|
1771
999
|
return response;
|
|
1772
1000
|
}, "de_SearchThingsCommand");
|
|
1773
|
-
var de_SearchThingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1774
|
-
const parsedOutput = {
|
|
1775
|
-
...output,
|
|
1776
|
-
body: await parseErrorBody(output.body, context)
|
|
1777
|
-
};
|
|
1778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
|
-
switch (errorCode) {
|
|
1780
|
-
case "InternalFailureException":
|
|
1781
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1782
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "InvalidRequestException":
|
|
1784
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1785
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "ResourceNotFoundException":
|
|
1787
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "ThrottlingException":
|
|
1790
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1791
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1792
|
-
default:
|
|
1793
|
-
const parsedBody = parsedOutput.body;
|
|
1794
|
-
return throwDefaultError({
|
|
1795
|
-
output,
|
|
1796
|
-
parsedBody,
|
|
1797
|
-
errorCode
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
}, "de_SearchThingsCommandError");
|
|
1801
1001
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1802
1002
|
if (output.statusCode >= 300) {
|
|
1803
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
1804
1004
|
}
|
|
1805
1005
|
const data = await parseBody(output.body, context);
|
|
1806
1006
|
let contents = {};
|
|
@@ -1811,37 +1011,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1811
1011
|
};
|
|
1812
1012
|
return response;
|
|
1813
1013
|
}, "de_TagResourceCommand");
|
|
1814
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1815
|
-
const parsedOutput = {
|
|
1816
|
-
...output,
|
|
1817
|
-
body: await parseErrorBody(output.body, context)
|
|
1818
|
-
};
|
|
1819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
-
switch (errorCode) {
|
|
1821
|
-
case "InternalFailureException":
|
|
1822
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1823
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "InvalidRequestException":
|
|
1825
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1826
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "ResourceAlreadyExistsException":
|
|
1828
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
1829
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ThrottlingException":
|
|
1831
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1832
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1833
|
-
default:
|
|
1834
|
-
const parsedBody = parsedOutput.body;
|
|
1835
|
-
return throwDefaultError({
|
|
1836
|
-
output,
|
|
1837
|
-
parsedBody,
|
|
1838
|
-
errorCode
|
|
1839
|
-
});
|
|
1840
|
-
}
|
|
1841
|
-
}, "de_TagResourceCommandError");
|
|
1842
1014
|
var de_UndeploySystemInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1843
1015
|
if (output.statusCode >= 300) {
|
|
1844
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1845
1017
|
}
|
|
1846
1018
|
const data = await parseBody(output.body, context);
|
|
1847
1019
|
let contents = {};
|
|
@@ -1852,40 +1024,9 @@ var de_UndeploySystemInstanceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1852
1024
|
};
|
|
1853
1025
|
return response;
|
|
1854
1026
|
}, "de_UndeploySystemInstanceCommand");
|
|
1855
|
-
var de_UndeploySystemInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1856
|
-
const parsedOutput = {
|
|
1857
|
-
...output,
|
|
1858
|
-
body: await parseErrorBody(output.body, context)
|
|
1859
|
-
};
|
|
1860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
|
-
switch (errorCode) {
|
|
1862
|
-
case "InternalFailureException":
|
|
1863
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1864
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "InvalidRequestException":
|
|
1866
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1867
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ResourceInUseException":
|
|
1869
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
1870
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "ResourceNotFoundException":
|
|
1872
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1873
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "ThrottlingException":
|
|
1875
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1876
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1877
|
-
default:
|
|
1878
|
-
const parsedBody = parsedOutput.body;
|
|
1879
|
-
return throwDefaultError({
|
|
1880
|
-
output,
|
|
1881
|
-
parsedBody,
|
|
1882
|
-
errorCode
|
|
1883
|
-
});
|
|
1884
|
-
}
|
|
1885
|
-
}, "de_UndeploySystemInstanceCommandError");
|
|
1886
1027
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1887
1028
|
if (output.statusCode >= 300) {
|
|
1888
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1889
1030
|
}
|
|
1890
1031
|
const data = await parseBody(output.body, context);
|
|
1891
1032
|
let contents = {};
|
|
@@ -1896,37 +1037,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1896
1037
|
};
|
|
1897
1038
|
return response;
|
|
1898
1039
|
}, "de_UntagResourceCommand");
|
|
1899
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1900
|
-
const parsedOutput = {
|
|
1901
|
-
...output,
|
|
1902
|
-
body: await parseErrorBody(output.body, context)
|
|
1903
|
-
};
|
|
1904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
|
-
switch (errorCode) {
|
|
1906
|
-
case "InternalFailureException":
|
|
1907
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1908
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "InvalidRequestException":
|
|
1910
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1911
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "ResourceAlreadyExistsException":
|
|
1913
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
1914
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ThrottlingException":
|
|
1916
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1917
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1918
|
-
default:
|
|
1919
|
-
const parsedBody = parsedOutput.body;
|
|
1920
|
-
return throwDefaultError({
|
|
1921
|
-
output,
|
|
1922
|
-
parsedBody,
|
|
1923
|
-
errorCode
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1926
|
-
}, "de_UntagResourceCommandError");
|
|
1927
1040
|
var de_UpdateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
1041
|
if (output.statusCode >= 300) {
|
|
1929
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1930
1043
|
}
|
|
1931
1044
|
const data = await parseBody(output.body, context);
|
|
1932
1045
|
let contents = {};
|
|
@@ -1937,37 +1050,9 @@ var de_UpdateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1937
1050
|
};
|
|
1938
1051
|
return response;
|
|
1939
1052
|
}, "de_UpdateFlowTemplateCommand");
|
|
1940
|
-
var de_UpdateFlowTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1941
|
-
const parsedOutput = {
|
|
1942
|
-
...output,
|
|
1943
|
-
body: await parseErrorBody(output.body, context)
|
|
1944
|
-
};
|
|
1945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
|
-
switch (errorCode) {
|
|
1947
|
-
case "InternalFailureException":
|
|
1948
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1949
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "InvalidRequestException":
|
|
1951
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1952
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "ResourceNotFoundException":
|
|
1954
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1955
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "ThrottlingException":
|
|
1957
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1958
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1959
|
-
default:
|
|
1960
|
-
const parsedBody = parsedOutput.body;
|
|
1961
|
-
return throwDefaultError({
|
|
1962
|
-
output,
|
|
1963
|
-
parsedBody,
|
|
1964
|
-
errorCode
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
}, "de_UpdateFlowTemplateCommandError");
|
|
1968
1053
|
var de_UpdateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1969
1054
|
if (output.statusCode >= 300) {
|
|
1970
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1971
1056
|
}
|
|
1972
1057
|
const data = await parseBody(output.body, context);
|
|
1973
1058
|
let contents = {};
|
|
@@ -1978,37 +1063,9 @@ var de_UpdateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1978
1063
|
};
|
|
1979
1064
|
return response;
|
|
1980
1065
|
}, "de_UpdateSystemTemplateCommand");
|
|
1981
|
-
var de_UpdateSystemTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1982
|
-
const parsedOutput = {
|
|
1983
|
-
...output,
|
|
1984
|
-
body: await parseErrorBody(output.body, context)
|
|
1985
|
-
};
|
|
1986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
-
switch (errorCode) {
|
|
1988
|
-
case "InternalFailureException":
|
|
1989
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1990
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "InvalidRequestException":
|
|
1992
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1993
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "ResourceNotFoundException":
|
|
1995
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "ThrottlingException":
|
|
1998
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1999
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2000
|
-
default:
|
|
2001
|
-
const parsedBody = parsedOutput.body;
|
|
2002
|
-
return throwDefaultError({
|
|
2003
|
-
output,
|
|
2004
|
-
parsedBody,
|
|
2005
|
-
errorCode
|
|
2006
|
-
});
|
|
2007
|
-
}
|
|
2008
|
-
}, "de_UpdateSystemTemplateCommandError");
|
|
2009
1066
|
var de_UploadEntityDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2010
1067
|
if (output.statusCode >= 300) {
|
|
2011
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
2012
1069
|
}
|
|
2013
1070
|
const data = await parseBody(output.body, context);
|
|
2014
1071
|
let contents = {};
|
|
@@ -2019,7 +1076,7 @@ var de_UploadEntityDefinitionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2019
1076
|
};
|
|
2020
1077
|
return response;
|
|
2021
1078
|
}, "de_UploadEntityDefinitionsCommand");
|
|
2022
|
-
var
|
|
1079
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2023
1080
|
const parsedOutput = {
|
|
2024
1081
|
...output,
|
|
2025
1082
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2032,9 +1089,21 @@ var de_UploadEntityDefinitionsCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
2032
1089
|
case "InvalidRequestException":
|
|
2033
1090
|
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2034
1091
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "ResourceNotFoundException":
|
|
1093
|
+
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2035
1095
|
case "ThrottlingException":
|
|
2036
1096
|
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2037
1097
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "LimitExceededException":
|
|
1099
|
+
case "com.amazonaws.iotthingsgraph#LimitExceededException":
|
|
1100
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1101
|
+
case "ResourceAlreadyExistsException":
|
|
1102
|
+
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
1103
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1104
|
+
case "ResourceInUseException":
|
|
1105
|
+
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
1106
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2038
1107
|
default:
|
|
2039
1108
|
const parsedBody = parsedOutput.body;
|
|
2040
1109
|
return throwDefaultError({
|
|
@@ -2043,7 +1112,7 @@ var de_UploadEntityDefinitionsCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
2043
1112
|
errorCode
|
|
2044
1113
|
});
|
|
2045
1114
|
}
|
|
2046
|
-
}, "
|
|
1115
|
+
}, "de_CommandError");
|
|
2047
1116
|
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2048
1117
|
const body = parsedOutput.body;
|
|
2049
1118
|
const deserialized = (0, import_smithy_client._json)(body);
|