@aws-sdk/client-application-discovery-service 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 +65 -932
- package/dist-es/protocols/Aws_json1_1.js +57 -924
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -662,7 +662,7 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
662
662
|
}, "se_UpdateApplicationCommand");
|
|
663
663
|
var de_AssociateConfigurationItemsToApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
664
664
|
if (output.statusCode >= 300) {
|
|
665
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
666
666
|
}
|
|
667
667
|
const data = await parseBody(output.body, context);
|
|
668
668
|
let contents = {};
|
|
@@ -673,40 +673,9 @@ var de_AssociateConfigurationItemsToApplicationCommand = /* @__PURE__ */ __name(
|
|
|
673
673
|
};
|
|
674
674
|
return response;
|
|
675
675
|
}, "de_AssociateConfigurationItemsToApplicationCommand");
|
|
676
|
-
var de_AssociateConfigurationItemsToApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context)
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "AuthorizationErrorException":
|
|
684
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
685
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
686
|
-
case "HomeRegionNotSetException":
|
|
687
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
688
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
689
|
-
case "InvalidParameterException":
|
|
690
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
691
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
692
|
-
case "InvalidParameterValueException":
|
|
693
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
694
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ServerInternalErrorException":
|
|
696
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
697
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
698
|
-
default:
|
|
699
|
-
const parsedBody = parsedOutput.body;
|
|
700
|
-
return throwDefaultError({
|
|
701
|
-
output,
|
|
702
|
-
parsedBody,
|
|
703
|
-
errorCode
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
}, "de_AssociateConfigurationItemsToApplicationCommandError");
|
|
707
676
|
var de_BatchDeleteAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
708
677
|
if (output.statusCode >= 300) {
|
|
709
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
710
679
|
}
|
|
711
680
|
const data = await parseBody(output.body, context);
|
|
712
681
|
let contents = {};
|
|
@@ -717,37 +686,9 @@ var de_BatchDeleteAgentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
717
686
|
};
|
|
718
687
|
return response;
|
|
719
688
|
}, "de_BatchDeleteAgentsCommand");
|
|
720
|
-
var de_BatchDeleteAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
721
|
-
const parsedOutput = {
|
|
722
|
-
...output,
|
|
723
|
-
body: await parseErrorBody(output.body, context)
|
|
724
|
-
};
|
|
725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
|
-
switch (errorCode) {
|
|
727
|
-
case "AuthorizationErrorException":
|
|
728
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
729
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
730
|
-
case "InvalidParameterException":
|
|
731
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
732
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
733
|
-
case "InvalidParameterValueException":
|
|
734
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
735
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ServerInternalErrorException":
|
|
737
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
738
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
}, "de_BatchDeleteAgentsCommandError");
|
|
748
689
|
var de_BatchDeleteImportDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
690
|
if (output.statusCode >= 300) {
|
|
750
|
-
return
|
|
691
|
+
return de_CommandError(output, context);
|
|
751
692
|
}
|
|
752
693
|
const data = await parseBody(output.body, context);
|
|
753
694
|
let contents = {};
|
|
@@ -758,40 +699,9 @@ var de_BatchDeleteImportDataCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
758
699
|
};
|
|
759
700
|
return response;
|
|
760
701
|
}, "de_BatchDeleteImportDataCommand");
|
|
761
|
-
var de_BatchDeleteImportDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context)
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "AuthorizationErrorException":
|
|
769
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
770
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
771
|
-
case "HomeRegionNotSetException":
|
|
772
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
773
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
774
|
-
case "InvalidParameterException":
|
|
775
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
776
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
777
|
-
case "InvalidParameterValueException":
|
|
778
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
779
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ServerInternalErrorException":
|
|
781
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
782
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
}, "de_BatchDeleteImportDataCommandError");
|
|
792
702
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
793
703
|
if (output.statusCode >= 300) {
|
|
794
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
795
705
|
}
|
|
796
706
|
const data = await parseBody(output.body, context);
|
|
797
707
|
let contents = {};
|
|
@@ -802,40 +712,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
802
712
|
};
|
|
803
713
|
return response;
|
|
804
714
|
}, "de_CreateApplicationCommand");
|
|
805
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context)
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "AuthorizationErrorException":
|
|
813
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
814
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
815
|
-
case "HomeRegionNotSetException":
|
|
816
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
817
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
818
|
-
case "InvalidParameterException":
|
|
819
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
820
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
821
|
-
case "InvalidParameterValueException":
|
|
822
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
823
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ServerInternalErrorException":
|
|
825
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
826
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
}, "de_CreateApplicationCommandError");
|
|
836
715
|
var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
716
|
if (output.statusCode >= 300) {
|
|
838
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
839
718
|
}
|
|
840
719
|
const data = await parseBody(output.body, context);
|
|
841
720
|
let contents = {};
|
|
@@ -846,43 +725,9 @@ var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
846
725
|
};
|
|
847
726
|
return response;
|
|
848
727
|
}, "de_CreateTagsCommand");
|
|
849
|
-
var de_CreateTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context)
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "AuthorizationErrorException":
|
|
857
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
858
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
859
|
-
case "HomeRegionNotSetException":
|
|
860
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
861
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
862
|
-
case "InvalidParameterException":
|
|
863
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
864
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
865
|
-
case "InvalidParameterValueException":
|
|
866
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
867
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ResourceNotFoundException":
|
|
869
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
870
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ServerInternalErrorException":
|
|
872
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
873
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
874
|
-
default:
|
|
875
|
-
const parsedBody = parsedOutput.body;
|
|
876
|
-
return throwDefaultError({
|
|
877
|
-
output,
|
|
878
|
-
parsedBody,
|
|
879
|
-
errorCode
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
}, "de_CreateTagsCommandError");
|
|
883
728
|
var de_DeleteApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
884
729
|
if (output.statusCode >= 300) {
|
|
885
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
886
731
|
}
|
|
887
732
|
const data = await parseBody(output.body, context);
|
|
888
733
|
let contents = {};
|
|
@@ -893,40 +738,9 @@ var de_DeleteApplicationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
893
738
|
};
|
|
894
739
|
return response;
|
|
895
740
|
}, "de_DeleteApplicationsCommand");
|
|
896
|
-
var de_DeleteApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context)
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "AuthorizationErrorException":
|
|
904
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
905
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
906
|
-
case "HomeRegionNotSetException":
|
|
907
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
908
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
909
|
-
case "InvalidParameterException":
|
|
910
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
911
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InvalidParameterValueException":
|
|
913
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
914
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ServerInternalErrorException":
|
|
916
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
917
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
}, "de_DeleteApplicationsCommandError");
|
|
927
741
|
var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
742
|
if (output.statusCode >= 300) {
|
|
929
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
930
744
|
}
|
|
931
745
|
const data = await parseBody(output.body, context);
|
|
932
746
|
let contents = {};
|
|
@@ -937,43 +751,9 @@ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
937
751
|
};
|
|
938
752
|
return response;
|
|
939
753
|
}, "de_DeleteTagsCommand");
|
|
940
|
-
var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context)
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "AuthorizationErrorException":
|
|
948
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
949
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
950
|
-
case "HomeRegionNotSetException":
|
|
951
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
952
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InvalidParameterException":
|
|
954
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
955
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InvalidParameterValueException":
|
|
957
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
958
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ResourceNotFoundException":
|
|
960
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
961
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ServerInternalErrorException":
|
|
963
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
964
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
}, "de_DeleteTagsCommandError");
|
|
974
754
|
var de_DescribeAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
755
|
if (output.statusCode >= 300) {
|
|
976
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
977
757
|
}
|
|
978
758
|
const data = await parseBody(output.body, context);
|
|
979
759
|
let contents = {};
|
|
@@ -984,40 +764,9 @@ var de_DescribeAgentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
984
764
|
};
|
|
985
765
|
return response;
|
|
986
766
|
}, "de_DescribeAgentsCommand");
|
|
987
|
-
var de_DescribeAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
988
|
-
const parsedOutput = {
|
|
989
|
-
...output,
|
|
990
|
-
body: await parseErrorBody(output.body, context)
|
|
991
|
-
};
|
|
992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
-
switch (errorCode) {
|
|
994
|
-
case "AuthorizationErrorException":
|
|
995
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
996
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
997
|
-
case "HomeRegionNotSetException":
|
|
998
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
999
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "InvalidParameterException":
|
|
1001
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1002
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "InvalidParameterValueException":
|
|
1004
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1005
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ServerInternalErrorException":
|
|
1007
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1008
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}, "de_DescribeAgentsCommandError");
|
|
1018
767
|
var de_DescribeBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
768
|
if (output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
1021
770
|
}
|
|
1022
771
|
const data = await parseBody(output.body, context);
|
|
1023
772
|
let contents = {};
|
|
@@ -1028,81 +777,22 @@ var de_DescribeBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(asyn
|
|
|
1028
777
|
};
|
|
1029
778
|
return response;
|
|
1030
779
|
}, "de_DescribeBatchDeleteConfigurationTaskCommand");
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
case "HomeRegionNotSetException":
|
|
1042
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1043
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "InvalidParameterValueException":
|
|
1045
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1046
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ServerInternalErrorException":
|
|
1048
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1049
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
}, "de_DescribeBatchDeleteConfigurationTaskCommandError");
|
|
1059
|
-
var de_DescribeConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
|
-
if (output.statusCode >= 300) {
|
|
1061
|
-
return de_DescribeConfigurationsCommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const data = await parseBody(output.body, context);
|
|
1064
|
-
let contents = {};
|
|
1065
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1066
|
-
const response = {
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
...contents
|
|
780
|
+
var de_DescribeConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
|
+
if (output.statusCode >= 300) {
|
|
782
|
+
return de_CommandError(output, context);
|
|
783
|
+
}
|
|
784
|
+
const data = await parseBody(output.body, context);
|
|
785
|
+
let contents = {};
|
|
786
|
+
contents = (0, import_smithy_client._json)(data);
|
|
787
|
+
const response = {
|
|
788
|
+
$metadata: deserializeMetadata(output),
|
|
789
|
+
...contents
|
|
1069
790
|
};
|
|
1070
791
|
return response;
|
|
1071
792
|
}, "de_DescribeConfigurationsCommand");
|
|
1072
|
-
var de_DescribeConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
-
const parsedOutput = {
|
|
1074
|
-
...output,
|
|
1075
|
-
body: await parseErrorBody(output.body, context)
|
|
1076
|
-
};
|
|
1077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
-
switch (errorCode) {
|
|
1079
|
-
case "AuthorizationErrorException":
|
|
1080
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1081
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "HomeRegionNotSetException":
|
|
1083
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1084
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InvalidParameterException":
|
|
1086
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1087
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "InvalidParameterValueException":
|
|
1089
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1090
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ServerInternalErrorException":
|
|
1092
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1093
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
return throwDefaultError({
|
|
1097
|
-
output,
|
|
1098
|
-
parsedBody,
|
|
1099
|
-
errorCode
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
}, "de_DescribeConfigurationsCommandError");
|
|
1103
793
|
var de_DescribeContinuousExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
794
|
if (output.statusCode >= 300) {
|
|
1105
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1106
796
|
}
|
|
1107
797
|
const data = await parseBody(output.body, context);
|
|
1108
798
|
let contents = {};
|
|
@@ -1113,46 +803,9 @@ var de_DescribeContinuousExportsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1113
803
|
};
|
|
1114
804
|
return response;
|
|
1115
805
|
}, "de_DescribeContinuousExportsCommand");
|
|
1116
|
-
var de_DescribeContinuousExportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
|
-
const parsedOutput = {
|
|
1118
|
-
...output,
|
|
1119
|
-
body: await parseErrorBody(output.body, context)
|
|
1120
|
-
};
|
|
1121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
-
switch (errorCode) {
|
|
1123
|
-
case "AuthorizationErrorException":
|
|
1124
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1125
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "HomeRegionNotSetException":
|
|
1127
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1128
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "InvalidParameterException":
|
|
1130
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1131
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "InvalidParameterValueException":
|
|
1133
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1134
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "OperationNotPermittedException":
|
|
1136
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1137
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "ResourceNotFoundException":
|
|
1139
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1140
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ServerInternalErrorException":
|
|
1142
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1143
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1144
|
-
default:
|
|
1145
|
-
const parsedBody = parsedOutput.body;
|
|
1146
|
-
return throwDefaultError({
|
|
1147
|
-
output,
|
|
1148
|
-
parsedBody,
|
|
1149
|
-
errorCode
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
}, "de_DescribeContinuousExportsCommandError");
|
|
1153
806
|
var de_DescribeExportConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
807
|
if (output.statusCode >= 300) {
|
|
1155
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
1156
809
|
}
|
|
1157
810
|
const data = await parseBody(output.body, context);
|
|
1158
811
|
let contents = {};
|
|
@@ -1163,43 +816,9 @@ var de_DescribeExportConfigurationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1163
816
|
};
|
|
1164
817
|
return response;
|
|
1165
818
|
}, "de_DescribeExportConfigurationsCommand");
|
|
1166
|
-
var de_DescribeExportConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context)
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "AuthorizationErrorException":
|
|
1174
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1175
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "HomeRegionNotSetException":
|
|
1177
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1178
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "InvalidParameterException":
|
|
1180
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1181
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "InvalidParameterValueException":
|
|
1183
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1184
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ServerInternalErrorException":
|
|
1189
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1190
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
}, "de_DescribeExportConfigurationsCommandError");
|
|
1200
819
|
var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
820
|
if (output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1203
822
|
}
|
|
1204
823
|
const data = await parseBody(output.body, context);
|
|
1205
824
|
let contents = {};
|
|
@@ -1210,40 +829,9 @@ var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1210
829
|
};
|
|
1211
830
|
return response;
|
|
1212
831
|
}, "de_DescribeExportTasksCommand");
|
|
1213
|
-
var de_DescribeExportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context)
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "AuthorizationErrorException":
|
|
1221
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1222
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "HomeRegionNotSetException":
|
|
1224
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1225
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "InvalidParameterException":
|
|
1227
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1228
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "InvalidParameterValueException":
|
|
1230
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1231
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ServerInternalErrorException":
|
|
1233
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1234
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
}, "de_DescribeExportTasksCommandError");
|
|
1244
832
|
var de_DescribeImportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1245
833
|
if (output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
1247
835
|
}
|
|
1248
836
|
const data = await parseBody(output.body, context);
|
|
1249
837
|
let contents = {};
|
|
@@ -1254,40 +842,9 @@ var de_DescribeImportTasksCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1254
842
|
};
|
|
1255
843
|
return response;
|
|
1256
844
|
}, "de_DescribeImportTasksCommand");
|
|
1257
|
-
var de_DescribeImportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context)
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "AuthorizationErrorException":
|
|
1265
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1266
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "HomeRegionNotSetException":
|
|
1268
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1269
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "InvalidParameterException":
|
|
1271
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1272
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "InvalidParameterValueException":
|
|
1274
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1275
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ServerInternalErrorException":
|
|
1277
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1278
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
}, "de_DescribeImportTasksCommandError");
|
|
1288
845
|
var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
846
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1291
848
|
}
|
|
1292
849
|
const data = await parseBody(output.body, context);
|
|
1293
850
|
let contents = {};
|
|
@@ -1298,43 +855,9 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1298
855
|
};
|
|
1299
856
|
return response;
|
|
1300
857
|
}, "de_DescribeTagsCommand");
|
|
1301
|
-
var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context)
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "AuthorizationErrorException":
|
|
1309
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1310
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "HomeRegionNotSetException":
|
|
1312
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1313
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "InvalidParameterException":
|
|
1315
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1316
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "InvalidParameterValueException":
|
|
1318
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1319
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ResourceNotFoundException":
|
|
1321
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ServerInternalErrorException":
|
|
1324
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1325
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1326
|
-
default:
|
|
1327
|
-
const parsedBody = parsedOutput.body;
|
|
1328
|
-
return throwDefaultError({
|
|
1329
|
-
output,
|
|
1330
|
-
parsedBody,
|
|
1331
|
-
errorCode
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
}, "de_DescribeTagsCommandError");
|
|
1335
858
|
var de_DisassociateConfigurationItemsFromApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1336
859
|
if (output.statusCode >= 300) {
|
|
1337
|
-
return
|
|
860
|
+
return de_CommandError(output, context);
|
|
1338
861
|
}
|
|
1339
862
|
const data = await parseBody(output.body, context);
|
|
1340
863
|
let contents = {};
|
|
@@ -1345,40 +868,9 @@ var de_DisassociateConfigurationItemsFromApplicationCommand = /* @__PURE__ */ __
|
|
|
1345
868
|
};
|
|
1346
869
|
return response;
|
|
1347
870
|
}, "de_DisassociateConfigurationItemsFromApplicationCommand");
|
|
1348
|
-
var de_DisassociateConfigurationItemsFromApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1349
|
-
const parsedOutput = {
|
|
1350
|
-
...output,
|
|
1351
|
-
body: await parseErrorBody(output.body, context)
|
|
1352
|
-
};
|
|
1353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
|
-
switch (errorCode) {
|
|
1355
|
-
case "AuthorizationErrorException":
|
|
1356
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1357
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "HomeRegionNotSetException":
|
|
1359
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1360
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "InvalidParameterException":
|
|
1362
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1363
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "InvalidParameterValueException":
|
|
1365
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1366
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ServerInternalErrorException":
|
|
1368
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1369
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1370
|
-
default:
|
|
1371
|
-
const parsedBody = parsedOutput.body;
|
|
1372
|
-
return throwDefaultError({
|
|
1373
|
-
output,
|
|
1374
|
-
parsedBody,
|
|
1375
|
-
errorCode
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
}, "de_DisassociateConfigurationItemsFromApplicationCommandError");
|
|
1379
871
|
var de_ExportConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1380
872
|
if (output.statusCode >= 300) {
|
|
1381
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1382
874
|
}
|
|
1383
875
|
const data = await parseBody(output.body, context);
|
|
1384
876
|
let contents = {};
|
|
@@ -1389,43 +881,9 @@ var de_ExportConfigurationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1389
881
|
};
|
|
1390
882
|
return response;
|
|
1391
883
|
}, "de_ExportConfigurationsCommand");
|
|
1392
|
-
var de_ExportConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1393
|
-
const parsedOutput = {
|
|
1394
|
-
...output,
|
|
1395
|
-
body: await parseErrorBody(output.body, context)
|
|
1396
|
-
};
|
|
1397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
-
switch (errorCode) {
|
|
1399
|
-
case "AuthorizationErrorException":
|
|
1400
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1401
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "HomeRegionNotSetException":
|
|
1403
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1404
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "InvalidParameterException":
|
|
1406
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1407
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "InvalidParameterValueException":
|
|
1409
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1410
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "OperationNotPermittedException":
|
|
1412
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1413
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ServerInternalErrorException":
|
|
1415
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1416
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1417
|
-
default:
|
|
1418
|
-
const parsedBody = parsedOutput.body;
|
|
1419
|
-
return throwDefaultError({
|
|
1420
|
-
output,
|
|
1421
|
-
parsedBody,
|
|
1422
|
-
errorCode
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
}, "de_ExportConfigurationsCommandError");
|
|
1426
884
|
var de_GetDiscoverySummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1427
885
|
if (output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
1429
887
|
}
|
|
1430
888
|
const data = await parseBody(output.body, context);
|
|
1431
889
|
let contents = {};
|
|
@@ -1436,40 +894,9 @@ var de_GetDiscoverySummaryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1436
894
|
};
|
|
1437
895
|
return response;
|
|
1438
896
|
}, "de_GetDiscoverySummaryCommand");
|
|
1439
|
-
var de_GetDiscoverySummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context)
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "AuthorizationErrorException":
|
|
1447
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1448
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "HomeRegionNotSetException":
|
|
1450
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1451
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "InvalidParameterException":
|
|
1453
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1454
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "InvalidParameterValueException":
|
|
1456
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1457
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ServerInternalErrorException":
|
|
1459
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1460
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
return throwDefaultError({
|
|
1464
|
-
output,
|
|
1465
|
-
parsedBody,
|
|
1466
|
-
errorCode
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
}, "de_GetDiscoverySummaryCommandError");
|
|
1470
897
|
var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1471
898
|
if (output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
1473
900
|
}
|
|
1474
901
|
const data = await parseBody(output.body, context);
|
|
1475
902
|
let contents = {};
|
|
@@ -1480,87 +907,22 @@ var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1480
907
|
};
|
|
1481
908
|
return response;
|
|
1482
909
|
}, "de_ListConfigurationsCommand");
|
|
1483
|
-
var
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
body: await parseErrorBody(output.body, context)
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "AuthorizationErrorException":
|
|
1491
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1492
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "HomeRegionNotSetException":
|
|
1494
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1495
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "InvalidParameterException":
|
|
1497
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1498
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "InvalidParameterValueException":
|
|
1500
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1501
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ResourceNotFoundException":
|
|
1503
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1504
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ServerInternalErrorException":
|
|
1506
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1507
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
}, "de_ListConfigurationsCommandError");
|
|
1517
|
-
var de_ListServerNeighborsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
|
-
if (output.statusCode >= 300) {
|
|
1519
|
-
return de_ListServerNeighborsCommandError(output, context);
|
|
1520
|
-
}
|
|
1521
|
-
const data = await parseBody(output.body, context);
|
|
1522
|
-
let contents = {};
|
|
1523
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1524
|
-
const response = {
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
...contents
|
|
1527
|
-
};
|
|
1528
|
-
return response;
|
|
1529
|
-
}, "de_ListServerNeighborsCommand");
|
|
1530
|
-
var de_ListServerNeighborsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context)
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "AuthorizationErrorException":
|
|
1538
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1539
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "HomeRegionNotSetException":
|
|
1541
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1542
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InvalidParameterException":
|
|
1544
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1545
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InvalidParameterValueException":
|
|
1547
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1548
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ServerInternalErrorException":
|
|
1550
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1551
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode
|
|
1558
|
-
});
|
|
910
|
+
var de_ListServerNeighborsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
911
|
+
if (output.statusCode >= 300) {
|
|
912
|
+
return de_CommandError(output, context);
|
|
1559
913
|
}
|
|
1560
|
-
|
|
914
|
+
const data = await parseBody(output.body, context);
|
|
915
|
+
let contents = {};
|
|
916
|
+
contents = (0, import_smithy_client._json)(data);
|
|
917
|
+
const response = {
|
|
918
|
+
$metadata: deserializeMetadata(output),
|
|
919
|
+
...contents
|
|
920
|
+
};
|
|
921
|
+
return response;
|
|
922
|
+
}, "de_ListServerNeighborsCommand");
|
|
1561
923
|
var de_StartBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
924
|
if (output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1564
926
|
}
|
|
1565
927
|
const data = await parseBody(output.body, context);
|
|
1566
928
|
let contents = {};
|
|
@@ -1571,43 +933,9 @@ var de_StartBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (
|
|
|
1571
933
|
};
|
|
1572
934
|
return response;
|
|
1573
935
|
}, "de_StartBatchDeleteConfigurationTaskCommand");
|
|
1574
|
-
var de_StartBatchDeleteConfigurationTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context)
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "AuthorizationErrorException":
|
|
1582
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1583
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "HomeRegionNotSetException":
|
|
1585
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1586
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "InvalidParameterValueException":
|
|
1588
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1589
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "LimitExceededException":
|
|
1591
|
-
case "com.amazonaws.applicationdiscoveryservice#LimitExceededException":
|
|
1592
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "OperationNotPermittedException":
|
|
1594
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1595
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "ServerInternalErrorException":
|
|
1597
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1598
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1599
|
-
default:
|
|
1600
|
-
const parsedBody = parsedOutput.body;
|
|
1601
|
-
return throwDefaultError({
|
|
1602
|
-
output,
|
|
1603
|
-
parsedBody,
|
|
1604
|
-
errorCode
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
|
-
}, "de_StartBatchDeleteConfigurationTaskCommandError");
|
|
1608
936
|
var de_StartContinuousExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1609
937
|
if (output.statusCode >= 300) {
|
|
1610
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
1611
939
|
}
|
|
1612
940
|
const data = await parseBody(output.body, context);
|
|
1613
941
|
let contents = {};
|
|
@@ -1618,49 +946,9 @@ var de_StartContinuousExportCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1618
946
|
};
|
|
1619
947
|
return response;
|
|
1620
948
|
}, "de_StartContinuousExportCommand");
|
|
1621
|
-
var de_StartContinuousExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
|
-
const parsedOutput = {
|
|
1623
|
-
...output,
|
|
1624
|
-
body: await parseErrorBody(output.body, context)
|
|
1625
|
-
};
|
|
1626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
-
switch (errorCode) {
|
|
1628
|
-
case "AuthorizationErrorException":
|
|
1629
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1630
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ConflictErrorException":
|
|
1632
|
-
case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException":
|
|
1633
|
-
throw await de_ConflictErrorExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "HomeRegionNotSetException":
|
|
1635
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1636
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "InvalidParameterException":
|
|
1638
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1639
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "InvalidParameterValueException":
|
|
1641
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1642
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "OperationNotPermittedException":
|
|
1644
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1645
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ResourceInUseException":
|
|
1647
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1648
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "ServerInternalErrorException":
|
|
1650
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1651
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1652
|
-
default:
|
|
1653
|
-
const parsedBody = parsedOutput.body;
|
|
1654
|
-
return throwDefaultError({
|
|
1655
|
-
output,
|
|
1656
|
-
parsedBody,
|
|
1657
|
-
errorCode
|
|
1658
|
-
});
|
|
1659
|
-
}
|
|
1660
|
-
}, "de_StartContinuousExportCommandError");
|
|
1661
949
|
var de_StartDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1662
950
|
if (output.statusCode >= 300) {
|
|
1663
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1664
952
|
}
|
|
1665
953
|
const data = await parseBody(output.body, context);
|
|
1666
954
|
let contents = {};
|
|
@@ -1671,40 +959,9 @@ var de_StartDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1671
959
|
};
|
|
1672
960
|
return response;
|
|
1673
961
|
}, "de_StartDataCollectionByAgentIdsCommand");
|
|
1674
|
-
var de_StartDataCollectionByAgentIdsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1675
|
-
const parsedOutput = {
|
|
1676
|
-
...output,
|
|
1677
|
-
body: await parseErrorBody(output.body, context)
|
|
1678
|
-
};
|
|
1679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1680
|
-
switch (errorCode) {
|
|
1681
|
-
case "AuthorizationErrorException":
|
|
1682
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1683
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "HomeRegionNotSetException":
|
|
1685
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1686
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "InvalidParameterException":
|
|
1688
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1689
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "InvalidParameterValueException":
|
|
1691
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1692
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ServerInternalErrorException":
|
|
1694
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1695
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1696
|
-
default:
|
|
1697
|
-
const parsedBody = parsedOutput.body;
|
|
1698
|
-
return throwDefaultError({
|
|
1699
|
-
output,
|
|
1700
|
-
parsedBody,
|
|
1701
|
-
errorCode
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
}, "de_StartDataCollectionByAgentIdsCommandError");
|
|
1705
962
|
var de_StartExportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1706
963
|
if (output.statusCode >= 300) {
|
|
1707
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1708
965
|
}
|
|
1709
966
|
const data = await parseBody(output.body, context);
|
|
1710
967
|
let contents = {};
|
|
@@ -1715,43 +972,9 @@ var de_StartExportTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1715
972
|
};
|
|
1716
973
|
return response;
|
|
1717
974
|
}, "de_StartExportTaskCommand");
|
|
1718
|
-
var de_StartExportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1719
|
-
const parsedOutput = {
|
|
1720
|
-
...output,
|
|
1721
|
-
body: await parseErrorBody(output.body, context)
|
|
1722
|
-
};
|
|
1723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
|
-
switch (errorCode) {
|
|
1725
|
-
case "AuthorizationErrorException":
|
|
1726
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1727
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "HomeRegionNotSetException":
|
|
1729
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1730
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "InvalidParameterException":
|
|
1732
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1733
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "InvalidParameterValueException":
|
|
1735
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1736
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "OperationNotPermittedException":
|
|
1738
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1739
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1740
|
-
case "ServerInternalErrorException":
|
|
1741
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1742
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1743
|
-
default:
|
|
1744
|
-
const parsedBody = parsedOutput.body;
|
|
1745
|
-
return throwDefaultError({
|
|
1746
|
-
output,
|
|
1747
|
-
parsedBody,
|
|
1748
|
-
errorCode
|
|
1749
|
-
});
|
|
1750
|
-
}
|
|
1751
|
-
}, "de_StartExportTaskCommandError");
|
|
1752
975
|
var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1753
976
|
if (output.statusCode >= 300) {
|
|
1754
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1755
978
|
}
|
|
1756
979
|
const data = await parseBody(output.body, context);
|
|
1757
980
|
let contents = {};
|
|
@@ -1762,43 +985,9 @@ var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1762
985
|
};
|
|
1763
986
|
return response;
|
|
1764
987
|
}, "de_StartImportTaskCommand");
|
|
1765
|
-
var de_StartImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1766
|
-
const parsedOutput = {
|
|
1767
|
-
...output,
|
|
1768
|
-
body: await parseErrorBody(output.body, context)
|
|
1769
|
-
};
|
|
1770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
-
switch (errorCode) {
|
|
1772
|
-
case "AuthorizationErrorException":
|
|
1773
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1774
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "HomeRegionNotSetException":
|
|
1776
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1777
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "InvalidParameterException":
|
|
1779
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1780
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "InvalidParameterValueException":
|
|
1782
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1783
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ResourceInUseException":
|
|
1785
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1786
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ServerInternalErrorException":
|
|
1788
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1789
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
}, "de_StartImportTaskCommandError");
|
|
1799
988
|
var de_StopContinuousExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
989
|
if (output.statusCode >= 300) {
|
|
1801
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1802
991
|
}
|
|
1803
992
|
const data = await parseBody(output.body, context);
|
|
1804
993
|
let contents = {};
|
|
@@ -1809,49 +998,9 @@ var de_StopContinuousExportCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1809
998
|
};
|
|
1810
999
|
return response;
|
|
1811
1000
|
}, "de_StopContinuousExportCommand");
|
|
1812
|
-
var de_StopContinuousExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1813
|
-
const parsedOutput = {
|
|
1814
|
-
...output,
|
|
1815
|
-
body: await parseErrorBody(output.body, context)
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "AuthorizationErrorException":
|
|
1820
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1821
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "HomeRegionNotSetException":
|
|
1823
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1824
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "InvalidParameterException":
|
|
1826
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1827
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "InvalidParameterValueException":
|
|
1829
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1830
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "OperationNotPermittedException":
|
|
1832
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1833
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ResourceInUseException":
|
|
1835
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1836
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ResourceNotFoundException":
|
|
1838
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1839
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "ServerInternalErrorException":
|
|
1841
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1842
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}, "de_StopContinuousExportCommandError");
|
|
1852
1001
|
var de_StopDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
1002
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
1855
1004
|
}
|
|
1856
1005
|
const data = await parseBody(output.body, context);
|
|
1857
1006
|
let contents = {};
|
|
@@ -1862,40 +1011,9 @@ var de_StopDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1862
1011
|
};
|
|
1863
1012
|
return response;
|
|
1864
1013
|
}, "de_StopDataCollectionByAgentIdsCommand");
|
|
1865
|
-
var de_StopDataCollectionByAgentIdsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "AuthorizationErrorException":
|
|
1873
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1874
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "HomeRegionNotSetException":
|
|
1876
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1877
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "InvalidParameterException":
|
|
1879
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1880
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "InvalidParameterValueException":
|
|
1882
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1883
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "ServerInternalErrorException":
|
|
1885
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1886
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1887
|
-
default:
|
|
1888
|
-
const parsedBody = parsedOutput.body;
|
|
1889
|
-
return throwDefaultError({
|
|
1890
|
-
output,
|
|
1891
|
-
parsedBody,
|
|
1892
|
-
errorCode
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
}, "de_StopDataCollectionByAgentIdsCommandError");
|
|
1896
1014
|
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1897
1015
|
if (output.statusCode >= 300) {
|
|
1898
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1899
1017
|
}
|
|
1900
1018
|
const data = await parseBody(output.body, context);
|
|
1901
1019
|
let contents = {};
|
|
@@ -1906,7 +1024,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1906
1024
|
};
|
|
1907
1025
|
return response;
|
|
1908
1026
|
}, "de_UpdateApplicationCommand");
|
|
1909
|
-
var
|
|
1027
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1910
1028
|
const parsedOutput = {
|
|
1911
1029
|
...output,
|
|
1912
1030
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1928,6 +1046,21 @@ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1928
1046
|
case "ServerInternalErrorException":
|
|
1929
1047
|
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1930
1048
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1049
|
+
case "ResourceNotFoundException":
|
|
1050
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1051
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1052
|
+
case "OperationNotPermittedException":
|
|
1053
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1054
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "LimitExceededException":
|
|
1056
|
+
case "com.amazonaws.applicationdiscoveryservice#LimitExceededException":
|
|
1057
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "ConflictErrorException":
|
|
1059
|
+
case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException":
|
|
1060
|
+
throw await de_ConflictErrorExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "ResourceInUseException":
|
|
1062
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1063
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1931
1064
|
default:
|
|
1932
1065
|
const parsedBody = parsedOutput.body;
|
|
1933
1066
|
return throwDefaultError({
|
|
@@ -1936,7 +1069,7 @@ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1936
1069
|
errorCode
|
|
1937
1070
|
});
|
|
1938
1071
|
}
|
|
1939
|
-
}, "
|
|
1072
|
+
}, "de_CommandError");
|
|
1940
1073
|
var de_AuthorizationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1941
1074
|
const body = parsedOutput.body;
|
|
1942
1075
|
const deserialized = (0, import_smithy_client._json)(body);
|