@aws-sdk/client-ssm-sap 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +26 -451
- package/dist-es/protocols/Aws_restJson1.js +25 -450
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -718,7 +718,7 @@ var se_UpdateApplicationSettingsCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
718
718
|
}, "se_UpdateApplicationSettingsCommand");
|
|
719
719
|
var de_DeleteResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
-
return
|
|
721
|
+
return de_CommandError(output, context);
|
|
722
722
|
}
|
|
723
723
|
const contents = (0, import_smithy_client.map)({
|
|
724
724
|
$metadata: deserializeMetadata(output)
|
|
@@ -730,34 +730,9 @@ var de_DeleteResourcePermissionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
730
730
|
Object.assign(contents, doc);
|
|
731
731
|
return contents;
|
|
732
732
|
}, "de_DeleteResourcePermissionCommand");
|
|
733
|
-
var de_DeleteResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
734
|
-
const parsedOutput = {
|
|
735
|
-
...output,
|
|
736
|
-
body: await parseErrorBody(output.body, context)
|
|
737
|
-
};
|
|
738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
-
switch (errorCode) {
|
|
740
|
-
case "InternalServerException":
|
|
741
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
742
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ResourceNotFoundException":
|
|
744
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ValidationException":
|
|
747
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
748
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
749
|
-
default:
|
|
750
|
-
const parsedBody = parsedOutput.body;
|
|
751
|
-
return throwDefaultError({
|
|
752
|
-
output,
|
|
753
|
-
parsedBody,
|
|
754
|
-
errorCode
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
}, "de_DeleteResourcePermissionCommandError");
|
|
758
733
|
var de_DeregisterApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
759
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
|
-
return
|
|
735
|
+
return de_CommandError(output, context);
|
|
761
736
|
}
|
|
762
737
|
const contents = (0, import_smithy_client.map)({
|
|
763
738
|
$metadata: deserializeMetadata(output)
|
|
@@ -765,34 +740,9 @@ var de_DeregisterApplicationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
765
740
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
766
741
|
return contents;
|
|
767
742
|
}, "de_DeregisterApplicationCommand");
|
|
768
|
-
var de_DeregisterApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context)
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "InternalServerException":
|
|
776
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
777
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
778
|
-
case "UnauthorizedException":
|
|
779
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
780
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ValidationException":
|
|
782
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
783
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
|
-
default:
|
|
785
|
-
const parsedBody = parsedOutput.body;
|
|
786
|
-
return throwDefaultError({
|
|
787
|
-
output,
|
|
788
|
-
parsedBody,
|
|
789
|
-
errorCode
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
}, "de_DeregisterApplicationCommandError");
|
|
793
743
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
796
746
|
}
|
|
797
747
|
const contents = (0, import_smithy_client.map)({
|
|
798
748
|
$metadata: deserializeMetadata(output)
|
|
@@ -805,31 +755,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
805
755
|
Object.assign(contents, doc);
|
|
806
756
|
return contents;
|
|
807
757
|
}, "de_GetApplicationCommand");
|
|
808
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
|
-
const parsedOutput = {
|
|
810
|
-
...output,
|
|
811
|
-
body: await parseErrorBody(output.body, context)
|
|
812
|
-
};
|
|
813
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
-
switch (errorCode) {
|
|
815
|
-
case "InternalServerException":
|
|
816
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
817
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ValidationException":
|
|
819
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
820
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
}, "de_GetApplicationCommandError");
|
|
830
758
|
var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return
|
|
760
|
+
return de_CommandError(output, context);
|
|
833
761
|
}
|
|
834
762
|
const contents = (0, import_smithy_client.map)({
|
|
835
763
|
$metadata: deserializeMetadata(output)
|
|
@@ -842,34 +770,9 @@ var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
842
770
|
Object.assign(contents, doc);
|
|
843
771
|
return contents;
|
|
844
772
|
}, "de_GetComponentCommand");
|
|
845
|
-
var de_GetComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
-
const parsedOutput = {
|
|
847
|
-
...output,
|
|
848
|
-
body: await parseErrorBody(output.body, context)
|
|
849
|
-
};
|
|
850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
switch (errorCode) {
|
|
852
|
-
case "InternalServerException":
|
|
853
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
854
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
855
|
-
case "UnauthorizedException":
|
|
856
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
857
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ValidationException":
|
|
859
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}, "de_GetComponentCommandError");
|
|
870
773
|
var de_GetDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
873
776
|
}
|
|
874
777
|
const contents = (0, import_smithy_client.map)({
|
|
875
778
|
$metadata: deserializeMetadata(output)
|
|
@@ -882,31 +785,9 @@ var de_GetDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
882
785
|
Object.assign(contents, doc);
|
|
883
786
|
return contents;
|
|
884
787
|
}, "de_GetDatabaseCommand");
|
|
885
|
-
var de_GetDatabaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
-
const parsedOutput = {
|
|
887
|
-
...output,
|
|
888
|
-
body: await parseErrorBody(output.body, context)
|
|
889
|
-
};
|
|
890
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
-
switch (errorCode) {
|
|
892
|
-
case "InternalServerException":
|
|
893
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
894
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
895
|
-
case "ValidationException":
|
|
896
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
897
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
|
-
default:
|
|
899
|
-
const parsedBody = parsedOutput.body;
|
|
900
|
-
return throwDefaultError({
|
|
901
|
-
output,
|
|
902
|
-
parsedBody,
|
|
903
|
-
errorCode
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
}, "de_GetDatabaseCommandError");
|
|
907
788
|
var de_GetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
908
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
|
-
return
|
|
790
|
+
return de_CommandError(output, context);
|
|
910
791
|
}
|
|
911
792
|
const contents = (0, import_smithy_client.map)({
|
|
912
793
|
$metadata: deserializeMetadata(output)
|
|
@@ -918,31 +799,9 @@ var de_GetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
918
799
|
Object.assign(contents, doc);
|
|
919
800
|
return contents;
|
|
920
801
|
}, "de_GetOperationCommand");
|
|
921
|
-
var de_GetOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context)
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ValidationException":
|
|
932
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
933
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
934
|
-
default:
|
|
935
|
-
const parsedBody = parsedOutput.body;
|
|
936
|
-
return throwDefaultError({
|
|
937
|
-
output,
|
|
938
|
-
parsedBody,
|
|
939
|
-
errorCode
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
}, "de_GetOperationCommandError");
|
|
943
802
|
var de_GetResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
-
return
|
|
804
|
+
return de_CommandError(output, context);
|
|
946
805
|
}
|
|
947
806
|
const contents = (0, import_smithy_client.map)({
|
|
948
807
|
$metadata: deserializeMetadata(output)
|
|
@@ -954,34 +813,9 @@ var de_GetResourcePermissionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
954
813
|
Object.assign(contents, doc);
|
|
955
814
|
return contents;
|
|
956
815
|
}, "de_GetResourcePermissionCommand");
|
|
957
|
-
var de_GetResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context)
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "InternalServerException":
|
|
965
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
966
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ResourceNotFoundException":
|
|
968
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ValidationException":
|
|
971
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}, "de_GetResourcePermissionCommandError");
|
|
982
816
|
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return
|
|
818
|
+
return de_CommandError(output, context);
|
|
985
819
|
}
|
|
986
820
|
const contents = (0, import_smithy_client.map)({
|
|
987
821
|
$metadata: deserializeMetadata(output)
|
|
@@ -994,34 +828,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
994
828
|
Object.assign(contents, doc);
|
|
995
829
|
return contents;
|
|
996
830
|
}, "de_ListApplicationsCommand");
|
|
997
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
|
-
const parsedOutput = {
|
|
999
|
-
...output,
|
|
1000
|
-
body: await parseErrorBody(output.body, context)
|
|
1001
|
-
};
|
|
1002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
-
switch (errorCode) {
|
|
1004
|
-
case "InternalServerException":
|
|
1005
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1006
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ResourceNotFoundException":
|
|
1008
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1009
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ValidationException":
|
|
1011
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1012
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
|
-
default:
|
|
1014
|
-
const parsedBody = parsedOutput.body;
|
|
1015
|
-
return throwDefaultError({
|
|
1016
|
-
output,
|
|
1017
|
-
parsedBody,
|
|
1018
|
-
errorCode
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
}, "de_ListApplicationsCommandError");
|
|
1022
831
|
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1025
834
|
}
|
|
1026
835
|
const contents = (0, import_smithy_client.map)({
|
|
1027
836
|
$metadata: deserializeMetadata(output)
|
|
@@ -1034,37 +843,9 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1034
843
|
Object.assign(contents, doc);
|
|
1035
844
|
return contents;
|
|
1036
845
|
}, "de_ListComponentsCommand");
|
|
1037
|
-
var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
const parsedOutput = {
|
|
1039
|
-
...output,
|
|
1040
|
-
body: await parseErrorBody(output.body, context)
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "InternalServerException":
|
|
1045
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1046
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ResourceNotFoundException":
|
|
1048
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1049
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "UnauthorizedException":
|
|
1051
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
1052
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ValidationException":
|
|
1054
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1055
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody,
|
|
1061
|
-
errorCode
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
}, "de_ListComponentsCommandError");
|
|
1065
846
|
var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
848
|
+
return de_CommandError(output, context);
|
|
1068
849
|
}
|
|
1069
850
|
const contents = (0, import_smithy_client.map)({
|
|
1070
851
|
$metadata: deserializeMetadata(output)
|
|
@@ -1077,34 +858,9 @@ var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1077
858
|
Object.assign(contents, doc);
|
|
1078
859
|
return contents;
|
|
1079
860
|
}, "de_ListDatabasesCommand");
|
|
1080
|
-
var de_ListDatabasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context)
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
-
switch (errorCode) {
|
|
1087
|
-
case "InternalServerException":
|
|
1088
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1089
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ResourceNotFoundException":
|
|
1091
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1092
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ValidationException":
|
|
1094
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
}, "de_ListDatabasesCommandError");
|
|
1105
861
|
var de_ListOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
1108
864
|
}
|
|
1109
865
|
const contents = (0, import_smithy_client.map)({
|
|
1110
866
|
$metadata: deserializeMetadata(output)
|
|
@@ -1117,31 +873,9 @@ var de_ListOperationsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1117
873
|
Object.assign(contents, doc);
|
|
1118
874
|
return contents;
|
|
1119
875
|
}, "de_ListOperationsCommand");
|
|
1120
|
-
var de_ListOperationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await parseErrorBody(output.body, context)
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "InternalServerException":
|
|
1128
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1129
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ValidationException":
|
|
1131
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1132
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1133
|
-
default:
|
|
1134
|
-
const parsedBody = parsedOutput.body;
|
|
1135
|
-
return throwDefaultError({
|
|
1136
|
-
output,
|
|
1137
|
-
parsedBody,
|
|
1138
|
-
errorCode
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
}, "de_ListOperationsCommandError");
|
|
1142
876
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return
|
|
878
|
+
return de_CommandError(output, context);
|
|
1145
879
|
}
|
|
1146
880
|
const contents = (0, import_smithy_client.map)({
|
|
1147
881
|
$metadata: deserializeMetadata(output)
|
|
@@ -1153,34 +887,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1153
887
|
Object.assign(contents, doc);
|
|
1154
888
|
return contents;
|
|
1155
889
|
}, "de_ListTagsForResourceCommand");
|
|
1156
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context)
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "ConflictException":
|
|
1164
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
1165
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ResourceNotFoundException":
|
|
1167
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1168
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ValidationException":
|
|
1170
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1171
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1172
|
-
default:
|
|
1173
|
-
const parsedBody = parsedOutput.body;
|
|
1174
|
-
return throwDefaultError({
|
|
1175
|
-
output,
|
|
1176
|
-
parsedBody,
|
|
1177
|
-
errorCode
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1181
890
|
var de_PutResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1182
891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1184
893
|
}
|
|
1185
894
|
const contents = (0, import_smithy_client.map)({
|
|
1186
895
|
$metadata: deserializeMetadata(output)
|
|
@@ -1192,34 +901,9 @@ var de_PutResourcePermissionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1192
901
|
Object.assign(contents, doc);
|
|
1193
902
|
return contents;
|
|
1194
903
|
}, "de_PutResourcePermissionCommand");
|
|
1195
|
-
var de_PutResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
|
-
const parsedOutput = {
|
|
1197
|
-
...output,
|
|
1198
|
-
body: await parseErrorBody(output.body, context)
|
|
1199
|
-
};
|
|
1200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
-
switch (errorCode) {
|
|
1202
|
-
case "InternalServerException":
|
|
1203
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1204
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "ResourceNotFoundException":
|
|
1206
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ValidationException":
|
|
1209
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1210
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1211
|
-
default:
|
|
1212
|
-
const parsedBody = parsedOutput.body;
|
|
1213
|
-
return throwDefaultError({
|
|
1214
|
-
output,
|
|
1215
|
-
parsedBody,
|
|
1216
|
-
errorCode
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
}, "de_PutResourcePermissionCommandError");
|
|
1220
904
|
var de_RegisterApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
906
|
+
return de_CommandError(output, context);
|
|
1223
907
|
}
|
|
1224
908
|
const contents = (0, import_smithy_client.map)({
|
|
1225
909
|
$metadata: deserializeMetadata(output)
|
|
@@ -1232,37 +916,9 @@ var de_RegisterApplicationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1232
916
|
Object.assign(contents, doc);
|
|
1233
917
|
return contents;
|
|
1234
918
|
}, "de_RegisterApplicationCommand");
|
|
1235
|
-
var de_RegisterApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1236
|
-
const parsedOutput = {
|
|
1237
|
-
...output,
|
|
1238
|
-
body: await parseErrorBody(output.body, context)
|
|
1239
|
-
};
|
|
1240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
-
switch (errorCode) {
|
|
1242
|
-
case "ConflictException":
|
|
1243
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
1244
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "InternalServerException":
|
|
1246
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ResourceNotFoundException":
|
|
1249
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ValidationException":
|
|
1252
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
}, "de_RegisterApplicationCommandError");
|
|
1263
919
|
var de_StartApplicationRefreshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1264
920
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
921
|
+
return de_CommandError(output, context);
|
|
1266
922
|
}
|
|
1267
923
|
const contents = (0, import_smithy_client.map)({
|
|
1268
924
|
$metadata: deserializeMetadata(output)
|
|
@@ -1274,40 +930,9 @@ var de_StartApplicationRefreshCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1274
930
|
Object.assign(contents, doc);
|
|
1275
931
|
return contents;
|
|
1276
932
|
}, "de_StartApplicationRefreshCommand");
|
|
1277
|
-
var de_StartApplicationRefreshCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1278
|
-
const parsedOutput = {
|
|
1279
|
-
...output,
|
|
1280
|
-
body: await parseErrorBody(output.body, context)
|
|
1281
|
-
};
|
|
1282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
|
-
switch (errorCode) {
|
|
1284
|
-
case "ConflictException":
|
|
1285
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
1286
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "InternalServerException":
|
|
1288
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1289
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ResourceNotFoundException":
|
|
1291
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "UnauthorizedException":
|
|
1294
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
1295
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ValidationException":
|
|
1297
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
-
default:
|
|
1300
|
-
const parsedBody = parsedOutput.body;
|
|
1301
|
-
return throwDefaultError({
|
|
1302
|
-
output,
|
|
1303
|
-
parsedBody,
|
|
1304
|
-
errorCode
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
}, "de_StartApplicationRefreshCommandError");
|
|
1308
933
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
-
return
|
|
935
|
+
return de_CommandError(output, context);
|
|
1311
936
|
}
|
|
1312
937
|
const contents = (0, import_smithy_client.map)({
|
|
1313
938
|
$metadata: deserializeMetadata(output)
|
|
@@ -1315,34 +940,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1315
940
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1316
941
|
return contents;
|
|
1317
942
|
}, "de_TagResourceCommand");
|
|
1318
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context)
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "ConflictException":
|
|
1326
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
1327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ResourceNotFoundException":
|
|
1329
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ValidationException":
|
|
1332
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
}, "de_TagResourceCommandError");
|
|
1343
943
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1346
946
|
}
|
|
1347
947
|
const contents = (0, import_smithy_client.map)({
|
|
1348
948
|
$metadata: deserializeMetadata(output)
|
|
@@ -1350,34 +950,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1350
950
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1351
951
|
return contents;
|
|
1352
952
|
}, "de_UntagResourceCommand");
|
|
1353
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context)
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "ConflictException":
|
|
1361
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
1362
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "ResourceNotFoundException":
|
|
1364
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1365
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ValidationException":
|
|
1367
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
1368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
}, "de_UntagResourceCommandError");
|
|
1378
953
|
var de_UpdateApplicationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1381
956
|
}
|
|
1382
957
|
const contents = (0, import_smithy_client.map)({
|
|
1383
958
|
$metadata: deserializeMetadata(output)
|
|
@@ -1390,28 +965,28 @@ var de_UpdateApplicationSettingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1390
965
|
Object.assign(contents, doc);
|
|
1391
966
|
return contents;
|
|
1392
967
|
}, "de_UpdateApplicationSettingsCommand");
|
|
1393
|
-
var
|
|
968
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1394
969
|
const parsedOutput = {
|
|
1395
970
|
...output,
|
|
1396
971
|
body: await parseErrorBody(output.body, context)
|
|
1397
972
|
};
|
|
1398
973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
974
|
switch (errorCode) {
|
|
1400
|
-
case "ConflictException":
|
|
1401
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
1402
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1403
975
|
case "InternalServerException":
|
|
1404
976
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1405
977
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1406
978
|
case "ResourceNotFoundException":
|
|
1407
979
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1408
980
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "UnauthorizedException":
|
|
1410
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
1411
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1412
981
|
case "ValidationException":
|
|
1413
982
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
1414
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
+
case "UnauthorizedException":
|
|
985
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
986
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
987
|
+
case "ConflictException":
|
|
988
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
989
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1415
990
|
default:
|
|
1416
991
|
const parsedBody = parsedOutput.body;
|
|
1417
992
|
return throwDefaultError({
|
|
@@ -1420,7 +995,7 @@ var de_UpdateApplicationSettingsCommandError = /* @__PURE__ */ __name(async (out
|
|
|
1420
995
|
errorCode
|
|
1421
996
|
});
|
|
1422
997
|
}
|
|
1423
|
-
}, "
|
|
998
|
+
}, "de_CommandError");
|
|
1424
999
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SsmSapServiceException);
|
|
1425
1000
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1426
1001
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -269,7 +269,7 @@ export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
269
269
|
};
|
|
270
270
|
export const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
271
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
272
|
-
return
|
|
272
|
+
return de_CommandError(output, context);
|
|
273
273
|
}
|
|
274
274
|
const contents = map({
|
|
275
275
|
$metadata: deserializeMetadata(output),
|
|
@@ -281,34 +281,9 @@ export const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
|
281
281
|
Object.assign(contents, doc);
|
|
282
282
|
return contents;
|
|
283
283
|
};
|
|
284
|
-
const de_DeleteResourcePermissionCommandError = async (output, context) => {
|
|
285
|
-
const parsedOutput = {
|
|
286
|
-
...output,
|
|
287
|
-
body: await parseErrorBody(output.body, context),
|
|
288
|
-
};
|
|
289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
290
|
-
switch (errorCode) {
|
|
291
|
-
case "InternalServerException":
|
|
292
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
293
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
294
|
-
case "ResourceNotFoundException":
|
|
295
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
297
|
-
case "ValidationException":
|
|
298
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
299
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
300
|
-
default:
|
|
301
|
-
const parsedBody = parsedOutput.body;
|
|
302
|
-
return throwDefaultError({
|
|
303
|
-
output,
|
|
304
|
-
parsedBody,
|
|
305
|
-
errorCode,
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
284
|
export const de_DeregisterApplicationCommand = async (output, context) => {
|
|
310
285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
311
|
-
return
|
|
286
|
+
return de_CommandError(output, context);
|
|
312
287
|
}
|
|
313
288
|
const contents = map({
|
|
314
289
|
$metadata: deserializeMetadata(output),
|
|
@@ -316,34 +291,9 @@ export const de_DeregisterApplicationCommand = async (output, context) => {
|
|
|
316
291
|
await collectBody(output.body, context);
|
|
317
292
|
return contents;
|
|
318
293
|
};
|
|
319
|
-
const de_DeregisterApplicationCommandError = async (output, context) => {
|
|
320
|
-
const parsedOutput = {
|
|
321
|
-
...output,
|
|
322
|
-
body: await parseErrorBody(output.body, context),
|
|
323
|
-
};
|
|
324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
|
-
switch (errorCode) {
|
|
326
|
-
case "InternalServerException":
|
|
327
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
328
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
329
|
-
case "UnauthorizedException":
|
|
330
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
331
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
332
|
-
case "ValidationException":
|
|
333
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
334
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
335
|
-
default:
|
|
336
|
-
const parsedBody = parsedOutput.body;
|
|
337
|
-
return throwDefaultError({
|
|
338
|
-
output,
|
|
339
|
-
parsedBody,
|
|
340
|
-
errorCode,
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
294
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
345
295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
346
|
-
return
|
|
296
|
+
return de_CommandError(output, context);
|
|
347
297
|
}
|
|
348
298
|
const contents = map({
|
|
349
299
|
$metadata: deserializeMetadata(output),
|
|
@@ -356,31 +306,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
356
306
|
Object.assign(contents, doc);
|
|
357
307
|
return contents;
|
|
358
308
|
};
|
|
359
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
360
|
-
const parsedOutput = {
|
|
361
|
-
...output,
|
|
362
|
-
body: await parseErrorBody(output.body, context),
|
|
363
|
-
};
|
|
364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
|
-
switch (errorCode) {
|
|
366
|
-
case "InternalServerException":
|
|
367
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
369
|
-
case "ValidationException":
|
|
370
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
309
|
export const de_GetComponentCommand = async (output, context) => {
|
|
382
310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
383
|
-
return
|
|
311
|
+
return de_CommandError(output, context);
|
|
384
312
|
}
|
|
385
313
|
const contents = map({
|
|
386
314
|
$metadata: deserializeMetadata(output),
|
|
@@ -393,34 +321,9 @@ export const de_GetComponentCommand = async (output, context) => {
|
|
|
393
321
|
Object.assign(contents, doc);
|
|
394
322
|
return contents;
|
|
395
323
|
};
|
|
396
|
-
const de_GetComponentCommandError = async (output, context) => {
|
|
397
|
-
const parsedOutput = {
|
|
398
|
-
...output,
|
|
399
|
-
body: await parseErrorBody(output.body, context),
|
|
400
|
-
};
|
|
401
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
402
|
-
switch (errorCode) {
|
|
403
|
-
case "InternalServerException":
|
|
404
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
405
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
406
|
-
case "UnauthorizedException":
|
|
407
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
408
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
409
|
-
case "ValidationException":
|
|
410
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
412
|
-
default:
|
|
413
|
-
const parsedBody = parsedOutput.body;
|
|
414
|
-
return throwDefaultError({
|
|
415
|
-
output,
|
|
416
|
-
parsedBody,
|
|
417
|
-
errorCode,
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
324
|
export const de_GetDatabaseCommand = async (output, context) => {
|
|
422
325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
423
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
424
327
|
}
|
|
425
328
|
const contents = map({
|
|
426
329
|
$metadata: deserializeMetadata(output),
|
|
@@ -433,31 +336,9 @@ export const de_GetDatabaseCommand = async (output, context) => {
|
|
|
433
336
|
Object.assign(contents, doc);
|
|
434
337
|
return contents;
|
|
435
338
|
};
|
|
436
|
-
const de_GetDatabaseCommandError = async (output, context) => {
|
|
437
|
-
const parsedOutput = {
|
|
438
|
-
...output,
|
|
439
|
-
body: await parseErrorBody(output.body, context),
|
|
440
|
-
};
|
|
441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
|
-
switch (errorCode) {
|
|
443
|
-
case "InternalServerException":
|
|
444
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
445
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ValidationException":
|
|
447
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
449
|
-
default:
|
|
450
|
-
const parsedBody = parsedOutput.body;
|
|
451
|
-
return throwDefaultError({
|
|
452
|
-
output,
|
|
453
|
-
parsedBody,
|
|
454
|
-
errorCode,
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
339
|
export const de_GetOperationCommand = async (output, context) => {
|
|
459
340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return
|
|
341
|
+
return de_CommandError(output, context);
|
|
461
342
|
}
|
|
462
343
|
const contents = map({
|
|
463
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -469,31 +350,9 @@ export const de_GetOperationCommand = async (output, context) => {
|
|
|
469
350
|
Object.assign(contents, doc);
|
|
470
351
|
return contents;
|
|
471
352
|
};
|
|
472
|
-
const de_GetOperationCommandError = async (output, context) => {
|
|
473
|
-
const parsedOutput = {
|
|
474
|
-
...output,
|
|
475
|
-
body: await parseErrorBody(output.body, context),
|
|
476
|
-
};
|
|
477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
478
|
-
switch (errorCode) {
|
|
479
|
-
case "InternalServerException":
|
|
480
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
481
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
482
|
-
case "ValidationException":
|
|
483
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
484
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
485
|
-
default:
|
|
486
|
-
const parsedBody = parsedOutput.body;
|
|
487
|
-
return throwDefaultError({
|
|
488
|
-
output,
|
|
489
|
-
parsedBody,
|
|
490
|
-
errorCode,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
353
|
export const de_GetResourcePermissionCommand = async (output, context) => {
|
|
495
354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
-
return
|
|
355
|
+
return de_CommandError(output, context);
|
|
497
356
|
}
|
|
498
357
|
const contents = map({
|
|
499
358
|
$metadata: deserializeMetadata(output),
|
|
@@ -505,34 +364,9 @@ export const de_GetResourcePermissionCommand = async (output, context) => {
|
|
|
505
364
|
Object.assign(contents, doc);
|
|
506
365
|
return contents;
|
|
507
366
|
};
|
|
508
|
-
const de_GetResourcePermissionCommandError = async (output, context) => {
|
|
509
|
-
const parsedOutput = {
|
|
510
|
-
...output,
|
|
511
|
-
body: await parseErrorBody(output.body, context),
|
|
512
|
-
};
|
|
513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
514
|
-
switch (errorCode) {
|
|
515
|
-
case "InternalServerException":
|
|
516
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
517
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ResourceNotFoundException":
|
|
519
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
520
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ValidationException":
|
|
522
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
524
|
-
default:
|
|
525
|
-
const parsedBody = parsedOutput.body;
|
|
526
|
-
return throwDefaultError({
|
|
527
|
-
output,
|
|
528
|
-
parsedBody,
|
|
529
|
-
errorCode,
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
367
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
534
368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
-
return
|
|
369
|
+
return de_CommandError(output, context);
|
|
536
370
|
}
|
|
537
371
|
const contents = map({
|
|
538
372
|
$metadata: deserializeMetadata(output),
|
|
@@ -545,34 +379,9 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
545
379
|
Object.assign(contents, doc);
|
|
546
380
|
return contents;
|
|
547
381
|
};
|
|
548
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
549
|
-
const parsedOutput = {
|
|
550
|
-
...output,
|
|
551
|
-
body: await parseErrorBody(output.body, context),
|
|
552
|
-
};
|
|
553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
-
switch (errorCode) {
|
|
555
|
-
case "InternalServerException":
|
|
556
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ResourceNotFoundException":
|
|
559
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
560
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ValidationException":
|
|
562
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
564
|
-
default:
|
|
565
|
-
const parsedBody = parsedOutput.body;
|
|
566
|
-
return throwDefaultError({
|
|
567
|
-
output,
|
|
568
|
-
parsedBody,
|
|
569
|
-
errorCode,
|
|
570
|
-
});
|
|
571
|
-
}
|
|
572
|
-
};
|
|
573
382
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
574
383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
-
return
|
|
384
|
+
return de_CommandError(output, context);
|
|
576
385
|
}
|
|
577
386
|
const contents = map({
|
|
578
387
|
$metadata: deserializeMetadata(output),
|
|
@@ -585,37 +394,9 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
585
394
|
Object.assign(contents, doc);
|
|
586
395
|
return contents;
|
|
587
396
|
};
|
|
588
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
589
|
-
const parsedOutput = {
|
|
590
|
-
...output,
|
|
591
|
-
body: await parseErrorBody(output.body, context),
|
|
592
|
-
};
|
|
593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
|
-
switch (errorCode) {
|
|
595
|
-
case "InternalServerException":
|
|
596
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
597
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ResourceNotFoundException":
|
|
599
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
601
|
-
case "UnauthorizedException":
|
|
602
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
603
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
604
|
-
case "ValidationException":
|
|
605
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
606
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
return throwDefaultError({
|
|
610
|
-
output,
|
|
611
|
-
parsedBody,
|
|
612
|
-
errorCode,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
397
|
export const de_ListDatabasesCommand = async (output, context) => {
|
|
617
398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
|
-
return
|
|
399
|
+
return de_CommandError(output, context);
|
|
619
400
|
}
|
|
620
401
|
const contents = map({
|
|
621
402
|
$metadata: deserializeMetadata(output),
|
|
@@ -628,34 +409,9 @@ export const de_ListDatabasesCommand = async (output, context) => {
|
|
|
628
409
|
Object.assign(contents, doc);
|
|
629
410
|
return contents;
|
|
630
411
|
};
|
|
631
|
-
const de_ListDatabasesCommandError = async (output, context) => {
|
|
632
|
-
const parsedOutput = {
|
|
633
|
-
...output,
|
|
634
|
-
body: await parseErrorBody(output.body, context),
|
|
635
|
-
};
|
|
636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
|
-
switch (errorCode) {
|
|
638
|
-
case "InternalServerException":
|
|
639
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
640
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ResourceNotFoundException":
|
|
642
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ValidationException":
|
|
645
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
646
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
647
|
-
default:
|
|
648
|
-
const parsedBody = parsedOutput.body;
|
|
649
|
-
return throwDefaultError({
|
|
650
|
-
output,
|
|
651
|
-
parsedBody,
|
|
652
|
-
errorCode,
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
412
|
export const de_ListOperationsCommand = async (output, context) => {
|
|
657
413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
-
return
|
|
414
|
+
return de_CommandError(output, context);
|
|
659
415
|
}
|
|
660
416
|
const contents = map({
|
|
661
417
|
$metadata: deserializeMetadata(output),
|
|
@@ -668,31 +424,9 @@ export const de_ListOperationsCommand = async (output, context) => {
|
|
|
668
424
|
Object.assign(contents, doc);
|
|
669
425
|
return contents;
|
|
670
426
|
};
|
|
671
|
-
const de_ListOperationsCommandError = async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context),
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "InternalServerException":
|
|
679
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ValidationException":
|
|
682
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
683
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
|
-
default:
|
|
685
|
-
const parsedBody = parsedOutput.body;
|
|
686
|
-
return throwDefaultError({
|
|
687
|
-
output,
|
|
688
|
-
parsedBody,
|
|
689
|
-
errorCode,
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
427
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
694
428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return
|
|
429
|
+
return de_CommandError(output, context);
|
|
696
430
|
}
|
|
697
431
|
const contents = map({
|
|
698
432
|
$metadata: deserializeMetadata(output),
|
|
@@ -704,34 +438,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
704
438
|
Object.assign(contents, doc);
|
|
705
439
|
return contents;
|
|
706
440
|
};
|
|
707
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
708
|
-
const parsedOutput = {
|
|
709
|
-
...output,
|
|
710
|
-
body: await parseErrorBody(output.body, context),
|
|
711
|
-
};
|
|
712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
|
-
switch (errorCode) {
|
|
714
|
-
case "ConflictException":
|
|
715
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
716
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ResourceNotFoundException":
|
|
718
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ValidationException":
|
|
721
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
722
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
723
|
-
default:
|
|
724
|
-
const parsedBody = parsedOutput.body;
|
|
725
|
-
return throwDefaultError({
|
|
726
|
-
output,
|
|
727
|
-
parsedBody,
|
|
728
|
-
errorCode,
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
441
|
export const de_PutResourcePermissionCommand = async (output, context) => {
|
|
733
442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return
|
|
443
|
+
return de_CommandError(output, context);
|
|
735
444
|
}
|
|
736
445
|
const contents = map({
|
|
737
446
|
$metadata: deserializeMetadata(output),
|
|
@@ -743,34 +452,9 @@ export const de_PutResourcePermissionCommand = async (output, context) => {
|
|
|
743
452
|
Object.assign(contents, doc);
|
|
744
453
|
return contents;
|
|
745
454
|
};
|
|
746
|
-
const de_PutResourcePermissionCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "InternalServerException":
|
|
754
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ResourceNotFoundException":
|
|
757
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ValidationException":
|
|
760
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
761
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
762
|
-
default:
|
|
763
|
-
const parsedBody = parsedOutput.body;
|
|
764
|
-
return throwDefaultError({
|
|
765
|
-
output,
|
|
766
|
-
parsedBody,
|
|
767
|
-
errorCode,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
};
|
|
771
455
|
export const de_RegisterApplicationCommand = async (output, context) => {
|
|
772
456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
773
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
774
458
|
}
|
|
775
459
|
const contents = map({
|
|
776
460
|
$metadata: deserializeMetadata(output),
|
|
@@ -783,37 +467,9 @@ export const de_RegisterApplicationCommand = async (output, context) => {
|
|
|
783
467
|
Object.assign(contents, doc);
|
|
784
468
|
return contents;
|
|
785
469
|
};
|
|
786
|
-
const de_RegisterApplicationCommandError = async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context),
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "ConflictException":
|
|
794
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
795
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InternalServerException":
|
|
797
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
798
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ResourceNotFoundException":
|
|
800
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
801
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ValidationException":
|
|
803
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
804
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode,
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
470
|
export const de_StartApplicationRefreshCommand = async (output, context) => {
|
|
815
471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
-
return
|
|
472
|
+
return de_CommandError(output, context);
|
|
817
473
|
}
|
|
818
474
|
const contents = map({
|
|
819
475
|
$metadata: deserializeMetadata(output),
|
|
@@ -825,40 +481,9 @@ export const de_StartApplicationRefreshCommand = async (output, context) => {
|
|
|
825
481
|
Object.assign(contents, doc);
|
|
826
482
|
return contents;
|
|
827
483
|
};
|
|
828
|
-
const de_StartApplicationRefreshCommandError = async (output, context) => {
|
|
829
|
-
const parsedOutput = {
|
|
830
|
-
...output,
|
|
831
|
-
body: await parseErrorBody(output.body, context),
|
|
832
|
-
};
|
|
833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
-
switch (errorCode) {
|
|
835
|
-
case "ConflictException":
|
|
836
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
837
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InternalServerException":
|
|
839
|
-
case "com.amazonaws.ssmsap#InternalServerException":
|
|
840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ResourceNotFoundException":
|
|
842
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
844
|
-
case "UnauthorizedException":
|
|
845
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
846
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ValidationException":
|
|
848
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
849
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
850
|
-
default:
|
|
851
|
-
const parsedBody = parsedOutput.body;
|
|
852
|
-
return throwDefaultError({
|
|
853
|
-
output,
|
|
854
|
-
parsedBody,
|
|
855
|
-
errorCode,
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
484
|
export const de_TagResourceCommand = async (output, context) => {
|
|
860
485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return
|
|
486
|
+
return de_CommandError(output, context);
|
|
862
487
|
}
|
|
863
488
|
const contents = map({
|
|
864
489
|
$metadata: deserializeMetadata(output),
|
|
@@ -866,34 +491,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
866
491
|
await collectBody(output.body, context);
|
|
867
492
|
return contents;
|
|
868
493
|
};
|
|
869
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
870
|
-
const parsedOutput = {
|
|
871
|
-
...output,
|
|
872
|
-
body: await parseErrorBody(output.body, context),
|
|
873
|
-
};
|
|
874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
-
switch (errorCode) {
|
|
876
|
-
case "ConflictException":
|
|
877
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
878
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ResourceNotFoundException":
|
|
880
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
881
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ValidationException":
|
|
883
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
884
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
885
|
-
default:
|
|
886
|
-
const parsedBody = parsedOutput.body;
|
|
887
|
-
return throwDefaultError({
|
|
888
|
-
output,
|
|
889
|
-
parsedBody,
|
|
890
|
-
errorCode,
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
};
|
|
894
494
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
895
495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
896
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
897
497
|
}
|
|
898
498
|
const contents = map({
|
|
899
499
|
$metadata: deserializeMetadata(output),
|
|
@@ -901,34 +501,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
901
501
|
await collectBody(output.body, context);
|
|
902
502
|
return contents;
|
|
903
503
|
};
|
|
904
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context),
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "ConflictException":
|
|
912
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
913
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ResourceNotFoundException":
|
|
915
|
-
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ValidationException":
|
|
918
|
-
case "com.amazonaws.ssmsap#ValidationException":
|
|
919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
504
|
export const de_UpdateApplicationSettingsCommand = async (output, context) => {
|
|
930
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
-
return
|
|
506
|
+
return de_CommandError(output, context);
|
|
932
507
|
}
|
|
933
508
|
const contents = map({
|
|
934
509
|
$metadata: deserializeMetadata(output),
|
|
@@ -941,28 +516,28 @@ export const de_UpdateApplicationSettingsCommand = async (output, context) => {
|
|
|
941
516
|
Object.assign(contents, doc);
|
|
942
517
|
return contents;
|
|
943
518
|
};
|
|
944
|
-
const
|
|
519
|
+
const de_CommandError = async (output, context) => {
|
|
945
520
|
const parsedOutput = {
|
|
946
521
|
...output,
|
|
947
522
|
body: await parseErrorBody(output.body, context),
|
|
948
523
|
};
|
|
949
524
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
525
|
switch (errorCode) {
|
|
951
|
-
case "ConflictException":
|
|
952
|
-
case "com.amazonaws.ssmsap#ConflictException":
|
|
953
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
954
526
|
case "InternalServerException":
|
|
955
527
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
956
528
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
957
529
|
case "ResourceNotFoundException":
|
|
958
530
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
959
531
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
960
|
-
case "UnauthorizedException":
|
|
961
|
-
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
962
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
963
532
|
case "ValidationException":
|
|
964
533
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
965
534
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
535
|
+
case "UnauthorizedException":
|
|
536
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
537
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
538
|
+
case "ConflictException":
|
|
539
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
540
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
966
541
|
default:
|
|
967
542
|
const parsedBody = parsedOutput.body;
|
|
968
543
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-sap",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Sap Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ssm-sap",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|