@aws-sdk/client-pca-connector-ad 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +51 -822
- package/dist-es/protocols/Aws_restJson1.js +42 -813
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -876,7 +876,7 @@ var se_UpdateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(asy
|
|
|
876
876
|
}, "se_UpdateTemplateGroupAccessControlEntryCommand");
|
|
877
877
|
var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
878
878
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
879
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
880
880
|
}
|
|
881
881
|
const contents = (0, import_smithy_client.map)({
|
|
882
882
|
$metadata: deserializeMetadata(output)
|
|
@@ -888,46 +888,9 @@ var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
888
888
|
Object.assign(contents, doc);
|
|
889
889
|
return contents;
|
|
890
890
|
}, "de_CreateConnectorCommand");
|
|
891
|
-
var de_CreateConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context)
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "AccessDeniedException":
|
|
899
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
900
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ConflictException":
|
|
902
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
903
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
904
|
-
case "InternalServerException":
|
|
905
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
906
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ResourceNotFoundException":
|
|
908
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ServiceQuotaExceededException":
|
|
911
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
912
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ThrottlingException":
|
|
914
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
915
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ValidationException":
|
|
917
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
918
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
|
-
default:
|
|
920
|
-
const parsedBody = parsedOutput.body;
|
|
921
|
-
return throwDefaultError({
|
|
922
|
-
output,
|
|
923
|
-
parsedBody,
|
|
924
|
-
errorCode
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
}, "de_CreateConnectorCommandError");
|
|
928
891
|
var de_CreateDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
929
892
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
930
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
931
894
|
}
|
|
932
895
|
const contents = (0, import_smithy_client.map)({
|
|
933
896
|
$metadata: deserializeMetadata(output)
|
|
@@ -939,43 +902,9 @@ var de_CreateDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output
|
|
|
939
902
|
Object.assign(contents, doc);
|
|
940
903
|
return contents;
|
|
941
904
|
}, "de_CreateDirectoryRegistrationCommand");
|
|
942
|
-
var de_CreateDirectoryRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
|
-
const parsedOutput = {
|
|
944
|
-
...output,
|
|
945
|
-
body: await parseErrorBody(output.body, context)
|
|
946
|
-
};
|
|
947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
|
-
switch (errorCode) {
|
|
949
|
-
case "AccessDeniedException":
|
|
950
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
951
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ConflictException":
|
|
953
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
954
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InternalServerException":
|
|
956
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
957
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ResourceNotFoundException":
|
|
959
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
960
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ThrottlingException":
|
|
962
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
963
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ValidationException":
|
|
965
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
966
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
967
|
-
default:
|
|
968
|
-
const parsedBody = parsedOutput.body;
|
|
969
|
-
return throwDefaultError({
|
|
970
|
-
output,
|
|
971
|
-
parsedBody,
|
|
972
|
-
errorCode
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
}, "de_CreateDirectoryRegistrationCommandError");
|
|
976
905
|
var de_CreateServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
906
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
978
|
-
return
|
|
907
|
+
return de_CommandError(output, context);
|
|
979
908
|
}
|
|
980
909
|
const contents = (0, import_smithy_client.map)({
|
|
981
910
|
$metadata: deserializeMetadata(output)
|
|
@@ -983,43 +912,9 @@ var de_CreateServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output,
|
|
|
983
912
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
984
913
|
return contents;
|
|
985
914
|
}, "de_CreateServicePrincipalNameCommand");
|
|
986
|
-
var de_CreateServicePrincipalNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context)
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "AccessDeniedException":
|
|
994
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ConflictException":
|
|
997
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
998
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
999
|
-
case "InternalServerException":
|
|
1000
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ThrottlingException":
|
|
1006
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1007
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ValidationException":
|
|
1009
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
}, "de_CreateServicePrincipalNameCommandError");
|
|
1020
915
|
var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1021
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1023
918
|
}
|
|
1024
919
|
const contents = (0, import_smithy_client.map)({
|
|
1025
920
|
$metadata: deserializeMetadata(output)
|
|
@@ -1031,46 +926,9 @@ var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1031
926
|
Object.assign(contents, doc);
|
|
1032
927
|
return contents;
|
|
1033
928
|
}, "de_CreateTemplateCommand");
|
|
1034
|
-
var de_CreateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
|
-
const parsedOutput = {
|
|
1036
|
-
...output,
|
|
1037
|
-
body: await parseErrorBody(output.body, context)
|
|
1038
|
-
};
|
|
1039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
-
switch (errorCode) {
|
|
1041
|
-
case "AccessDeniedException":
|
|
1042
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1043
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ConflictException":
|
|
1045
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1046
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "InternalServerException":
|
|
1048
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1049
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ResourceNotFoundException":
|
|
1051
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ServiceQuotaExceededException":
|
|
1054
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
1055
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ThrottlingException":
|
|
1057
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1058
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ValidationException":
|
|
1060
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1062
|
-
default:
|
|
1063
|
-
const parsedBody = parsedOutput.body;
|
|
1064
|
-
return throwDefaultError({
|
|
1065
|
-
output,
|
|
1066
|
-
parsedBody,
|
|
1067
|
-
errorCode
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
}, "de_CreateTemplateCommandError");
|
|
1071
929
|
var de_CreateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1072
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1074
932
|
}
|
|
1075
933
|
const contents = (0, import_smithy_client.map)({
|
|
1076
934
|
$metadata: deserializeMetadata(output)
|
|
@@ -1078,46 +936,9 @@ var de_CreateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(asy
|
|
|
1078
936
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1079
937
|
return contents;
|
|
1080
938
|
}, "de_CreateTemplateGroupAccessControlEntryCommand");
|
|
1081
|
-
var de_CreateTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
|
-
const parsedOutput = {
|
|
1083
|
-
...output,
|
|
1084
|
-
body: await parseErrorBody(output.body, context)
|
|
1085
|
-
};
|
|
1086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
|
-
switch (errorCode) {
|
|
1088
|
-
case "AccessDeniedException":
|
|
1089
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1090
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ConflictException":
|
|
1092
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1093
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InternalServerException":
|
|
1095
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1096
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ResourceNotFoundException":
|
|
1098
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1099
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ServiceQuotaExceededException":
|
|
1101
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
1102
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ThrottlingException":
|
|
1104
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1105
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ValidationException":
|
|
1107
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1108
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1109
|
-
default:
|
|
1110
|
-
const parsedBody = parsedOutput.body;
|
|
1111
|
-
return throwDefaultError({
|
|
1112
|
-
output,
|
|
1113
|
-
parsedBody,
|
|
1114
|
-
errorCode
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
}, "de_CreateTemplateGroupAccessControlEntryCommandError");
|
|
1118
939
|
var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1119
940
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1120
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1121
942
|
}
|
|
1122
943
|
const contents = (0, import_smithy_client.map)({
|
|
1123
944
|
$metadata: deserializeMetadata(output)
|
|
@@ -1125,43 +946,9 @@ var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1125
946
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1126
947
|
return contents;
|
|
1127
948
|
}, "de_DeleteConnectorCommand");
|
|
1128
|
-
var de_DeleteConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1129
|
-
const parsedOutput = {
|
|
1130
|
-
...output,
|
|
1131
|
-
body: await parseErrorBody(output.body, context)
|
|
1132
|
-
};
|
|
1133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
|
-
switch (errorCode) {
|
|
1135
|
-
case "AccessDeniedException":
|
|
1136
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1137
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "ConflictException":
|
|
1139
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1140
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "InternalServerException":
|
|
1142
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1143
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ResourceNotFoundException":
|
|
1145
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1146
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "ThrottlingException":
|
|
1148
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1149
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ValidationException":
|
|
1151
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1152
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1153
|
-
default:
|
|
1154
|
-
const parsedBody = parsedOutput.body;
|
|
1155
|
-
return throwDefaultError({
|
|
1156
|
-
output,
|
|
1157
|
-
parsedBody,
|
|
1158
|
-
errorCode
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
}, "de_DeleteConnectorCommandError");
|
|
1162
949
|
var de_DeleteDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1163
950
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1165
952
|
}
|
|
1166
953
|
const contents = (0, import_smithy_client.map)({
|
|
1167
954
|
$metadata: deserializeMetadata(output)
|
|
@@ -1169,40 +956,9 @@ var de_DeleteDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1169
956
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1170
957
|
return contents;
|
|
1171
958
|
}, "de_DeleteDirectoryRegistrationCommand");
|
|
1172
|
-
var de_DeleteDirectoryRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1173
|
-
const parsedOutput = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseErrorBody(output.body, context)
|
|
1176
|
-
};
|
|
1177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
-
switch (errorCode) {
|
|
1179
|
-
case "AccessDeniedException":
|
|
1180
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1181
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ConflictException":
|
|
1183
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1184
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "InternalServerException":
|
|
1186
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1187
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ThrottlingException":
|
|
1189
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1190
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ValidationException":
|
|
1192
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
}, "de_DeleteDirectoryRegistrationCommandError");
|
|
1203
959
|
var de_DeleteServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
960
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
961
|
+
return de_CommandError(output, context);
|
|
1206
962
|
}
|
|
1207
963
|
const contents = (0, import_smithy_client.map)({
|
|
1208
964
|
$metadata: deserializeMetadata(output)
|
|
@@ -1210,40 +966,9 @@ var de_DeleteServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1210
966
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1211
967
|
return contents;
|
|
1212
968
|
}, "de_DeleteServicePrincipalNameCommand");
|
|
1213
|
-
var de_DeleteServicePrincipalNameCommandError = /* @__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 "AccessDeniedException":
|
|
1221
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1222
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ConflictException":
|
|
1224
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1225
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "InternalServerException":
|
|
1227
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1228
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ThrottlingException":
|
|
1230
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1231
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ValidationException":
|
|
1233
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1234
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
}, "de_DeleteServicePrincipalNameCommandError");
|
|
1244
969
|
var de_DeleteTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1245
970
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1247
972
|
}
|
|
1248
973
|
const contents = (0, import_smithy_client.map)({
|
|
1249
974
|
$metadata: deserializeMetadata(output)
|
|
@@ -1251,43 +976,9 @@ var de_DeleteTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1251
976
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1252
977
|
return contents;
|
|
1253
978
|
}, "de_DeleteTemplateCommand");
|
|
1254
|
-
var de_DeleteTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context)
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "AccessDeniedException":
|
|
1262
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ConflictException":
|
|
1265
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1266
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "InternalServerException":
|
|
1268
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1269
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ResourceNotFoundException":
|
|
1271
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1272
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ThrottlingException":
|
|
1274
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ValidationException":
|
|
1277
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
}, "de_DeleteTemplateCommandError");
|
|
1288
979
|
var de_DeleteTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
980
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
1291
982
|
}
|
|
1292
983
|
const contents = (0, import_smithy_client.map)({
|
|
1293
984
|
$metadata: deserializeMetadata(output)
|
|
@@ -1295,43 +986,9 @@ var de_DeleteTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(asy
|
|
|
1295
986
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1296
987
|
return contents;
|
|
1297
988
|
}, "de_DeleteTemplateGroupAccessControlEntryCommand");
|
|
1298
|
-
var de_DeleteTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1299
|
-
const parsedOutput = {
|
|
1300
|
-
...output,
|
|
1301
|
-
body: await parseErrorBody(output.body, context)
|
|
1302
|
-
};
|
|
1303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
-
switch (errorCode) {
|
|
1305
|
-
case "AccessDeniedException":
|
|
1306
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ConflictException":
|
|
1309
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1310
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "InternalServerException":
|
|
1312
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ResourceNotFoundException":
|
|
1315
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1316
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ThrottlingException":
|
|
1318
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1319
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ValidationException":
|
|
1321
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody,
|
|
1328
|
-
errorCode
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
}, "de_DeleteTemplateGroupAccessControlEntryCommandError");
|
|
1332
989
|
var de_GetConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1333
990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
991
|
+
return de_CommandError(output, context);
|
|
1335
992
|
}
|
|
1336
993
|
const contents = (0, import_smithy_client.map)({
|
|
1337
994
|
$metadata: deserializeMetadata(output)
|
|
@@ -1343,40 +1000,9 @@ var de_GetConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1343
1000
|
Object.assign(contents, doc);
|
|
1344
1001
|
return contents;
|
|
1345
1002
|
}, "de_GetConnectorCommand");
|
|
1346
|
-
var de_GetConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1347
|
-
const parsedOutput = {
|
|
1348
|
-
...output,
|
|
1349
|
-
body: await parseErrorBody(output.body, context)
|
|
1350
|
-
};
|
|
1351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
-
switch (errorCode) {
|
|
1353
|
-
case "AccessDeniedException":
|
|
1354
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "InternalServerException":
|
|
1357
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1358
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ResourceNotFoundException":
|
|
1360
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1361
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ThrottlingException":
|
|
1363
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1364
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ValidationException":
|
|
1366
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1368
|
-
default:
|
|
1369
|
-
const parsedBody = parsedOutput.body;
|
|
1370
|
-
return throwDefaultError({
|
|
1371
|
-
output,
|
|
1372
|
-
parsedBody,
|
|
1373
|
-
errorCode
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
}, "de_GetConnectorCommandError");
|
|
1377
1003
|
var de_GetDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1378
1004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1379
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1380
1006
|
}
|
|
1381
1007
|
const contents = (0, import_smithy_client.map)({
|
|
1382
1008
|
$metadata: deserializeMetadata(output)
|
|
@@ -1388,40 +1014,9 @@ var de_GetDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1388
1014
|
Object.assign(contents, doc);
|
|
1389
1015
|
return contents;
|
|
1390
1016
|
}, "de_GetDirectoryRegistrationCommand");
|
|
1391
|
-
var de_GetDirectoryRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1392
|
-
const parsedOutput = {
|
|
1393
|
-
...output,
|
|
1394
|
-
body: await parseErrorBody(output.body, context)
|
|
1395
|
-
};
|
|
1396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
|
-
switch (errorCode) {
|
|
1398
|
-
case "AccessDeniedException":
|
|
1399
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1400
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "InternalServerException":
|
|
1402
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1403
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ResourceNotFoundException":
|
|
1405
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ThrottlingException":
|
|
1408
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1409
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ValidationException":
|
|
1411
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1412
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1413
|
-
default:
|
|
1414
|
-
const parsedBody = parsedOutput.body;
|
|
1415
|
-
return throwDefaultError({
|
|
1416
|
-
output,
|
|
1417
|
-
parsedBody,
|
|
1418
|
-
errorCode
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
}, "de_GetDirectoryRegistrationCommandError");
|
|
1422
1017
|
var de_GetServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1423
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1424
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1425
1020
|
}
|
|
1426
1021
|
const contents = (0, import_smithy_client.map)({
|
|
1427
1022
|
$metadata: deserializeMetadata(output)
|
|
@@ -1433,40 +1028,9 @@ var de_GetServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1433
1028
|
Object.assign(contents, doc);
|
|
1434
1029
|
return contents;
|
|
1435
1030
|
}, "de_GetServicePrincipalNameCommand");
|
|
1436
|
-
var de_GetServicePrincipalNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1437
|
-
const parsedOutput = {
|
|
1438
|
-
...output,
|
|
1439
|
-
body: await parseErrorBody(output.body, context)
|
|
1440
|
-
};
|
|
1441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
-
switch (errorCode) {
|
|
1443
|
-
case "AccessDeniedException":
|
|
1444
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1445
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "InternalServerException":
|
|
1447
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1448
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ResourceNotFoundException":
|
|
1450
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ThrottlingException":
|
|
1453
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1454
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ValidationException":
|
|
1456
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1457
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1458
|
-
default:
|
|
1459
|
-
const parsedBody = parsedOutput.body;
|
|
1460
|
-
return throwDefaultError({
|
|
1461
|
-
output,
|
|
1462
|
-
parsedBody,
|
|
1463
|
-
errorCode
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
}, "de_GetServicePrincipalNameCommandError");
|
|
1467
1031
|
var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1468
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1469
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1470
1034
|
}
|
|
1471
1035
|
const contents = (0, import_smithy_client.map)({
|
|
1472
1036
|
$metadata: deserializeMetadata(output)
|
|
@@ -1478,128 +1042,38 @@ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1478
1042
|
Object.assign(contents, doc);
|
|
1479
1043
|
return contents;
|
|
1480
1044
|
}, "de_GetTemplateCommand");
|
|
1481
|
-
var de_GetTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1482
|
-
const parsedOutput = {
|
|
1483
|
-
...output,
|
|
1484
|
-
body: await parseErrorBody(output.body, context)
|
|
1485
|
-
};
|
|
1486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
-
switch (errorCode) {
|
|
1488
|
-
case "AccessDeniedException":
|
|
1489
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1490
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InternalServerException":
|
|
1492
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1493
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ResourceNotFoundException":
|
|
1495
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ThrottlingException":
|
|
1498
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1499
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "ValidationException":
|
|
1501
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1502
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1503
|
-
default:
|
|
1504
|
-
const parsedBody = parsedOutput.body;
|
|
1505
|
-
return throwDefaultError({
|
|
1506
|
-
output,
|
|
1507
|
-
parsedBody,
|
|
1508
|
-
errorCode
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
}, "de_GetTemplateCommandError");
|
|
1512
1045
|
var de_GetTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1513
1046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1514
|
-
return
|
|
1515
|
-
}
|
|
1516
|
-
const contents = (0, import_smithy_client.map)({
|
|
1517
|
-
$metadata: deserializeMetadata(output)
|
|
1518
|
-
});
|
|
1519
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1520
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1521
|
-
AccessControlEntry: (_) => de_AccessControlEntry(_, context)
|
|
1522
|
-
});
|
|
1523
|
-
Object.assign(contents, doc);
|
|
1524
|
-
return contents;
|
|
1525
|
-
}, "de_GetTemplateGroupAccessControlEntryCommand");
|
|
1526
|
-
var de_GetTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
|
-
const parsedOutput = {
|
|
1528
|
-
...output,
|
|
1529
|
-
body: await parseErrorBody(output.body, context)
|
|
1530
|
-
};
|
|
1531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
-
switch (errorCode) {
|
|
1533
|
-
case "AccessDeniedException":
|
|
1534
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1535
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InternalServerException":
|
|
1537
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1538
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "ResourceNotFoundException":
|
|
1540
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "ThrottlingException":
|
|
1543
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1544
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "ValidationException":
|
|
1546
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1547
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
}, "de_GetTemplateGroupAccessControlEntryCommandError");
|
|
1557
|
-
var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1559
|
-
return de_ListConnectorsCommandError(output, context);
|
|
1047
|
+
return de_CommandError(output, context);
|
|
1560
1048
|
}
|
|
1561
1049
|
const contents = (0, import_smithy_client.map)({
|
|
1562
1050
|
$metadata: deserializeMetadata(output)
|
|
1563
|
-
});
|
|
1564
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1565
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
...output,
|
|
1575
|
-
body: await parseErrorBody(output.body, context)
|
|
1576
|
-
};
|
|
1577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
|
-
switch (errorCode) {
|
|
1579
|
-
case "AccessDeniedException":
|
|
1580
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1581
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "InternalServerException":
|
|
1583
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1584
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ThrottlingException":
|
|
1586
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ValidationException":
|
|
1589
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1590
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1591
|
-
default:
|
|
1592
|
-
const parsedBody = parsedOutput.body;
|
|
1593
|
-
return throwDefaultError({
|
|
1594
|
-
output,
|
|
1595
|
-
parsedBody,
|
|
1596
|
-
errorCode
|
|
1597
|
-
});
|
|
1051
|
+
});
|
|
1052
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1054
|
+
AccessControlEntry: (_) => de_AccessControlEntry(_, context)
|
|
1055
|
+
});
|
|
1056
|
+
Object.assign(contents, doc);
|
|
1057
|
+
return contents;
|
|
1058
|
+
}, "de_GetTemplateGroupAccessControlEntryCommand");
|
|
1059
|
+
var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1598
1062
|
}
|
|
1599
|
-
|
|
1063
|
+
const contents = (0, import_smithy_client.map)({
|
|
1064
|
+
$metadata: deserializeMetadata(output)
|
|
1065
|
+
});
|
|
1066
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1067
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1068
|
+
Connectors: (_) => de_ConnectorList(_, context),
|
|
1069
|
+
NextToken: import_smithy_client.expectString
|
|
1070
|
+
});
|
|
1071
|
+
Object.assign(contents, doc);
|
|
1072
|
+
return contents;
|
|
1073
|
+
}, "de_ListConnectorsCommand");
|
|
1600
1074
|
var de_ListDirectoryRegistrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1601
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1603
1077
|
}
|
|
1604
1078
|
const contents = (0, import_smithy_client.map)({
|
|
1605
1079
|
$metadata: deserializeMetadata(output)
|
|
@@ -1612,37 +1086,9 @@ var de_ListDirectoryRegistrationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1612
1086
|
Object.assign(contents, doc);
|
|
1613
1087
|
return contents;
|
|
1614
1088
|
}, "de_ListDirectoryRegistrationsCommand");
|
|
1615
|
-
var de_ListDirectoryRegistrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1616
|
-
const parsedOutput = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseErrorBody(output.body, context)
|
|
1619
|
-
};
|
|
1620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
|
-
switch (errorCode) {
|
|
1622
|
-
case "AccessDeniedException":
|
|
1623
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1624
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "InternalServerException":
|
|
1626
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1627
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ThrottlingException":
|
|
1629
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1630
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ValidationException":
|
|
1632
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1634
|
-
default:
|
|
1635
|
-
const parsedBody = parsedOutput.body;
|
|
1636
|
-
return throwDefaultError({
|
|
1637
|
-
output,
|
|
1638
|
-
parsedBody,
|
|
1639
|
-
errorCode
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
}, "de_ListDirectoryRegistrationsCommandError");
|
|
1643
1089
|
var de_ListServicePrincipalNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1644
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1645
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1646
1092
|
}
|
|
1647
1093
|
const contents = (0, import_smithy_client.map)({
|
|
1648
1094
|
$metadata: deserializeMetadata(output)
|
|
@@ -1655,40 +1101,9 @@ var de_ListServicePrincipalNamesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1655
1101
|
Object.assign(contents, doc);
|
|
1656
1102
|
return contents;
|
|
1657
1103
|
}, "de_ListServicePrincipalNamesCommand");
|
|
1658
|
-
var de_ListServicePrincipalNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1659
|
-
const parsedOutput = {
|
|
1660
|
-
...output,
|
|
1661
|
-
body: await parseErrorBody(output.body, context)
|
|
1662
|
-
};
|
|
1663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
-
switch (errorCode) {
|
|
1665
|
-
case "AccessDeniedException":
|
|
1666
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "InternalServerException":
|
|
1669
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1670
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ResourceNotFoundException":
|
|
1672
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1673
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ThrottlingException":
|
|
1675
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "ValidationException":
|
|
1678
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1680
|
-
default:
|
|
1681
|
-
const parsedBody = parsedOutput.body;
|
|
1682
|
-
return throwDefaultError({
|
|
1683
|
-
output,
|
|
1684
|
-
parsedBody,
|
|
1685
|
-
errorCode
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
}, "de_ListServicePrincipalNamesCommandError");
|
|
1689
1104
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1690
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1691
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1692
1107
|
}
|
|
1693
1108
|
const contents = (0, import_smithy_client.map)({
|
|
1694
1109
|
$metadata: deserializeMetadata(output)
|
|
@@ -1700,40 +1115,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1700
1115
|
Object.assign(contents, doc);
|
|
1701
1116
|
return contents;
|
|
1702
1117
|
}, "de_ListTagsForResourceCommand");
|
|
1703
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
|
-
const parsedOutput = {
|
|
1705
|
-
...output,
|
|
1706
|
-
body: await parseErrorBody(output.body, context)
|
|
1707
|
-
};
|
|
1708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
-
switch (errorCode) {
|
|
1710
|
-
case "AccessDeniedException":
|
|
1711
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "InternalServerException":
|
|
1714
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1715
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "ResourceNotFoundException":
|
|
1717
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "ThrottlingException":
|
|
1720
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1721
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "ValidationException":
|
|
1723
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1725
|
-
default:
|
|
1726
|
-
const parsedBody = parsedOutput.body;
|
|
1727
|
-
return throwDefaultError({
|
|
1728
|
-
output,
|
|
1729
|
-
parsedBody,
|
|
1730
|
-
errorCode
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1734
1118
|
var de_ListTemplateGroupAccessControlEntriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1735
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
1737
1121
|
}
|
|
1738
1122
|
const contents = (0, import_smithy_client.map)({
|
|
1739
1123
|
$metadata: deserializeMetadata(output)
|
|
@@ -1746,40 +1130,9 @@ var de_ListTemplateGroupAccessControlEntriesCommand = /* @__PURE__ */ __name(asy
|
|
|
1746
1130
|
Object.assign(contents, doc);
|
|
1747
1131
|
return contents;
|
|
1748
1132
|
}, "de_ListTemplateGroupAccessControlEntriesCommand");
|
|
1749
|
-
var de_ListTemplateGroupAccessControlEntriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1750
|
-
const parsedOutput = {
|
|
1751
|
-
...output,
|
|
1752
|
-
body: await parseErrorBody(output.body, context)
|
|
1753
|
-
};
|
|
1754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
|
-
switch (errorCode) {
|
|
1756
|
-
case "AccessDeniedException":
|
|
1757
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1758
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "InternalServerException":
|
|
1760
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ResourceNotFoundException":
|
|
1763
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ThrottlingException":
|
|
1766
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ValidationException":
|
|
1769
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1771
|
-
default:
|
|
1772
|
-
const parsedBody = parsedOutput.body;
|
|
1773
|
-
return throwDefaultError({
|
|
1774
|
-
output,
|
|
1775
|
-
parsedBody,
|
|
1776
|
-
errorCode
|
|
1777
|
-
});
|
|
1778
|
-
}
|
|
1779
|
-
}, "de_ListTemplateGroupAccessControlEntriesCommandError");
|
|
1780
1133
|
var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
1134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1782
|
-
return
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1783
1136
|
}
|
|
1784
1137
|
const contents = (0, import_smithy_client.map)({
|
|
1785
1138
|
$metadata: deserializeMetadata(output)
|
|
@@ -1792,40 +1145,9 @@ var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1792
1145
|
Object.assign(contents, doc);
|
|
1793
1146
|
return contents;
|
|
1794
1147
|
}, "de_ListTemplatesCommand");
|
|
1795
|
-
var de_ListTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context)
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "AccessDeniedException":
|
|
1803
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "InternalServerException":
|
|
1806
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1807
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ResourceNotFoundException":
|
|
1809
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "ThrottlingException":
|
|
1812
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1813
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ValidationException":
|
|
1815
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1817
|
-
default:
|
|
1818
|
-
const parsedBody = parsedOutput.body;
|
|
1819
|
-
return throwDefaultError({
|
|
1820
|
-
output,
|
|
1821
|
-
parsedBody,
|
|
1822
|
-
errorCode
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
}, "de_ListTemplatesCommandError");
|
|
1826
1148
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1827
1149
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1828
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1829
1151
|
}
|
|
1830
1152
|
const contents = (0, import_smithy_client.map)({
|
|
1831
1153
|
$metadata: deserializeMetadata(output)
|
|
@@ -1833,40 +1155,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1833
1155
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1834
1156
|
return contents;
|
|
1835
1157
|
}, "de_TagResourceCommand");
|
|
1836
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1837
|
-
const parsedOutput = {
|
|
1838
|
-
...output,
|
|
1839
|
-
body: await parseErrorBody(output.body, context)
|
|
1840
|
-
};
|
|
1841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
-
switch (errorCode) {
|
|
1843
|
-
case "AccessDeniedException":
|
|
1844
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1845
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "InternalServerException":
|
|
1847
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "ResourceNotFoundException":
|
|
1850
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ThrottlingException":
|
|
1853
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1854
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ValidationException":
|
|
1856
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
}, "de_TagResourceCommandError");
|
|
1867
1158
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1868
1159
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
1160
|
+
return de_CommandError(output, context);
|
|
1870
1161
|
}
|
|
1871
1162
|
const contents = (0, import_smithy_client.map)({
|
|
1872
1163
|
$metadata: deserializeMetadata(output)
|
|
@@ -1874,40 +1165,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1874
1165
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1875
1166
|
return contents;
|
|
1876
1167
|
}, "de_UntagResourceCommand");
|
|
1877
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1878
|
-
const parsedOutput = {
|
|
1879
|
-
...output,
|
|
1880
|
-
body: await parseErrorBody(output.body, context)
|
|
1881
|
-
};
|
|
1882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
-
switch (errorCode) {
|
|
1884
|
-
case "AccessDeniedException":
|
|
1885
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "InternalServerException":
|
|
1888
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ResourceNotFoundException":
|
|
1891
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ThrottlingException":
|
|
1894
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ValidationException":
|
|
1897
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1899
|
-
default:
|
|
1900
|
-
const parsedBody = parsedOutput.body;
|
|
1901
|
-
return throwDefaultError({
|
|
1902
|
-
output,
|
|
1903
|
-
parsedBody,
|
|
1904
|
-
errorCode
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
}, "de_UntagResourceCommandError");
|
|
1908
1168
|
var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1909
1169
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1910
|
-
return
|
|
1170
|
+
return de_CommandError(output, context);
|
|
1911
1171
|
}
|
|
1912
1172
|
const contents = (0, import_smithy_client.map)({
|
|
1913
1173
|
$metadata: deserializeMetadata(output)
|
|
@@ -1915,43 +1175,9 @@ var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1915
1175
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1916
1176
|
return contents;
|
|
1917
1177
|
}, "de_UpdateTemplateCommand");
|
|
1918
|
-
var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1919
|
-
const parsedOutput = {
|
|
1920
|
-
...output,
|
|
1921
|
-
body: await parseErrorBody(output.body, context)
|
|
1922
|
-
};
|
|
1923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
-
switch (errorCode) {
|
|
1925
|
-
case "AccessDeniedException":
|
|
1926
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ConflictException":
|
|
1929
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1930
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "InternalServerException":
|
|
1932
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ResourceNotFoundException":
|
|
1935
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "ThrottlingException":
|
|
1938
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ValidationException":
|
|
1941
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1943
|
-
default:
|
|
1944
|
-
const parsedBody = parsedOutput.body;
|
|
1945
|
-
return throwDefaultError({
|
|
1946
|
-
output,
|
|
1947
|
-
parsedBody,
|
|
1948
|
-
errorCode
|
|
1949
|
-
});
|
|
1950
|
-
}
|
|
1951
|
-
}, "de_UpdateTemplateCommandError");
|
|
1952
1178
|
var de_UpdateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1953
1179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1954
|
-
return
|
|
1180
|
+
return de_CommandError(output, context);
|
|
1955
1181
|
}
|
|
1956
1182
|
const contents = (0, import_smithy_client.map)({
|
|
1957
1183
|
$metadata: deserializeMetadata(output)
|
|
@@ -1959,7 +1185,7 @@ var de_UpdateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(asy
|
|
|
1959
1185
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1960
1186
|
return contents;
|
|
1961
1187
|
}, "de_UpdateTemplateGroupAccessControlEntryCommand");
|
|
1962
|
-
var
|
|
1188
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1963
1189
|
const parsedOutput = {
|
|
1964
1190
|
...output,
|
|
1965
1191
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1978,6 +1204,9 @@ var de_UpdateTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __nam
|
|
|
1978
1204
|
case "ResourceNotFoundException":
|
|
1979
1205
|
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1980
1206
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1207
|
+
case "ServiceQuotaExceededException":
|
|
1208
|
+
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
1209
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1981
1210
|
case "ThrottlingException":
|
|
1982
1211
|
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1983
1212
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1992,7 +1221,7 @@ var de_UpdateTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __nam
|
|
|
1992
1221
|
errorCode
|
|
1993
1222
|
});
|
|
1994
1223
|
}
|
|
1995
|
-
}, "
|
|
1224
|
+
}, "de_CommandError");
|
|
1996
1225
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(PcaConnectorAdServiceException);
|
|
1997
1226
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1998
1227
|
const contents = (0, import_smithy_client.map)({});
|