@aws-sdk/client-grafana 3.504.0 → 3.509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -907,7 +907,7 @@ var se_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input
907
907
  }, "se_UpdateWorkspaceConfigurationCommand");
908
908
  var de_AssociateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
909
909
  if (output.statusCode !== 202 && output.statusCode >= 300) {
910
- return de_AssociateLicenseCommandError(output, context);
910
+ return de_CommandError(output, context);
911
911
  }
912
912
  const contents = (0, import_smithy_client.map)({
913
913
  $metadata: deserializeMetadata(output)
@@ -919,40 +919,9 @@ var de_AssociateLicenseCommand = /* @__PURE__ */ __name(async (output, context)
919
919
  Object.assign(contents, doc);
920
920
  return contents;
921
921
  }, "de_AssociateLicenseCommand");
922
- var de_AssociateLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
923
- const parsedOutput = {
924
- ...output,
925
- body: await parseErrorBody(output.body, context)
926
- };
927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
- switch (errorCode) {
929
- case "AccessDeniedException":
930
- case "com.amazonaws.grafana#AccessDeniedException":
931
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
932
- case "InternalServerException":
933
- case "com.amazonaws.grafana#InternalServerException":
934
- throw await de_InternalServerExceptionRes(parsedOutput, context);
935
- case "ResourceNotFoundException":
936
- case "com.amazonaws.grafana#ResourceNotFoundException":
937
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
938
- case "ThrottlingException":
939
- case "com.amazonaws.grafana#ThrottlingException":
940
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
941
- case "ValidationException":
942
- case "com.amazonaws.grafana#ValidationException":
943
- throw await de_ValidationExceptionRes(parsedOutput, context);
944
- default:
945
- const parsedBody = parsedOutput.body;
946
- return throwDefaultError({
947
- output,
948
- parsedBody,
949
- errorCode
950
- });
951
- }
952
- }, "de_AssociateLicenseCommandError");
953
922
  var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
954
923
  if (output.statusCode !== 202 && output.statusCode >= 300) {
955
- return de_CreateWorkspaceCommandError(output, context);
924
+ return de_CommandError(output, context);
956
925
  }
957
926
  const contents = (0, import_smithy_client.map)({
958
927
  $metadata: deserializeMetadata(output)
@@ -964,43 +933,9 @@ var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
964
933
  Object.assign(contents, doc);
965
934
  return contents;
966
935
  }, "de_CreateWorkspaceCommand");
967
- var de_CreateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
968
- const parsedOutput = {
969
- ...output,
970
- body: await parseErrorBody(output.body, context)
971
- };
972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
- switch (errorCode) {
974
- case "AccessDeniedException":
975
- case "com.amazonaws.grafana#AccessDeniedException":
976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
977
- case "ConflictException":
978
- case "com.amazonaws.grafana#ConflictException":
979
- throw await de_ConflictExceptionRes(parsedOutput, context);
980
- case "InternalServerException":
981
- case "com.amazonaws.grafana#InternalServerException":
982
- throw await de_InternalServerExceptionRes(parsedOutput, context);
983
- case "ServiceQuotaExceededException":
984
- case "com.amazonaws.grafana#ServiceQuotaExceededException":
985
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
986
- case "ThrottlingException":
987
- case "com.amazonaws.grafana#ThrottlingException":
988
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
989
- case "ValidationException":
990
- case "com.amazonaws.grafana#ValidationException":
991
- throw await de_ValidationExceptionRes(parsedOutput, context);
992
- default:
993
- const parsedBody = parsedOutput.body;
994
- return throwDefaultError({
995
- output,
996
- parsedBody,
997
- errorCode
998
- });
999
- }
1000
- }, "de_CreateWorkspaceCommandError");
1001
936
  var de_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1002
937
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1003
- return de_CreateWorkspaceApiKeyCommandError(output, context);
938
+ return de_CommandError(output, context);
1004
939
  }
1005
940
  const contents = (0, import_smithy_client.map)({
1006
941
  $metadata: deserializeMetadata(output)
@@ -1014,46 +949,9 @@ var de_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, cont
1014
949
  Object.assign(contents, doc);
1015
950
  return contents;
1016
951
  }, "de_CreateWorkspaceApiKeyCommand");
1017
- var de_CreateWorkspaceApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1018
- const parsedOutput = {
1019
- ...output,
1020
- body: await parseErrorBody(output.body, context)
1021
- };
1022
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1023
- switch (errorCode) {
1024
- case "AccessDeniedException":
1025
- case "com.amazonaws.grafana#AccessDeniedException":
1026
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1027
- case "ConflictException":
1028
- case "com.amazonaws.grafana#ConflictException":
1029
- throw await de_ConflictExceptionRes(parsedOutput, context);
1030
- case "InternalServerException":
1031
- case "com.amazonaws.grafana#InternalServerException":
1032
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1033
- case "ResourceNotFoundException":
1034
- case "com.amazonaws.grafana#ResourceNotFoundException":
1035
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1036
- case "ServiceQuotaExceededException":
1037
- case "com.amazonaws.grafana#ServiceQuotaExceededException":
1038
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1039
- case "ThrottlingException":
1040
- case "com.amazonaws.grafana#ThrottlingException":
1041
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1042
- case "ValidationException":
1043
- case "com.amazonaws.grafana#ValidationException":
1044
- throw await de_ValidationExceptionRes(parsedOutput, context);
1045
- default:
1046
- const parsedBody = parsedOutput.body;
1047
- return throwDefaultError({
1048
- output,
1049
- parsedBody,
1050
- errorCode
1051
- });
1052
- }
1053
- }, "de_CreateWorkspaceApiKeyCommandError");
1054
952
  var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1055
953
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1056
- return de_DeleteWorkspaceCommandError(output, context);
954
+ return de_CommandError(output, context);
1057
955
  }
1058
956
  const contents = (0, import_smithy_client.map)({
1059
957
  $metadata: deserializeMetadata(output)
@@ -1065,43 +963,9 @@ var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1065
963
  Object.assign(contents, doc);
1066
964
  return contents;
1067
965
  }, "de_DeleteWorkspaceCommand");
1068
- var de_DeleteWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1069
- const parsedOutput = {
1070
- ...output,
1071
- body: await parseErrorBody(output.body, context)
1072
- };
1073
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1074
- switch (errorCode) {
1075
- case "AccessDeniedException":
1076
- case "com.amazonaws.grafana#AccessDeniedException":
1077
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1078
- case "ConflictException":
1079
- case "com.amazonaws.grafana#ConflictException":
1080
- throw await de_ConflictExceptionRes(parsedOutput, context);
1081
- case "InternalServerException":
1082
- case "com.amazonaws.grafana#InternalServerException":
1083
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1084
- case "ResourceNotFoundException":
1085
- case "com.amazonaws.grafana#ResourceNotFoundException":
1086
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1087
- case "ThrottlingException":
1088
- case "com.amazonaws.grafana#ThrottlingException":
1089
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1090
- case "ValidationException":
1091
- case "com.amazonaws.grafana#ValidationException":
1092
- throw await de_ValidationExceptionRes(parsedOutput, context);
1093
- default:
1094
- const parsedBody = parsedOutput.body;
1095
- return throwDefaultError({
1096
- output,
1097
- parsedBody,
1098
- errorCode
1099
- });
1100
- }
1101
- }, "de_DeleteWorkspaceCommandError");
1102
966
  var de_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1103
967
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
- return de_DeleteWorkspaceApiKeyCommandError(output, context);
968
+ return de_CommandError(output, context);
1105
969
  }
1106
970
  const contents = (0, import_smithy_client.map)({
1107
971
  $metadata: deserializeMetadata(output)
@@ -1114,43 +978,9 @@ var de_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, cont
1114
978
  Object.assign(contents, doc);
1115
979
  return contents;
1116
980
  }, "de_DeleteWorkspaceApiKeyCommand");
1117
- var de_DeleteWorkspaceApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1118
- const parsedOutput = {
1119
- ...output,
1120
- body: await parseErrorBody(output.body, context)
1121
- };
1122
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1123
- switch (errorCode) {
1124
- case "AccessDeniedException":
1125
- case "com.amazonaws.grafana#AccessDeniedException":
1126
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1127
- case "ConflictException":
1128
- case "com.amazonaws.grafana#ConflictException":
1129
- throw await de_ConflictExceptionRes(parsedOutput, context);
1130
- case "InternalServerException":
1131
- case "com.amazonaws.grafana#InternalServerException":
1132
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1133
- case "ResourceNotFoundException":
1134
- case "com.amazonaws.grafana#ResourceNotFoundException":
1135
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1136
- case "ThrottlingException":
1137
- case "com.amazonaws.grafana#ThrottlingException":
1138
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1139
- case "ValidationException":
1140
- case "com.amazonaws.grafana#ValidationException":
1141
- throw await de_ValidationExceptionRes(parsedOutput, context);
1142
- default:
1143
- const parsedBody = parsedOutput.body;
1144
- return throwDefaultError({
1145
- output,
1146
- parsedBody,
1147
- errorCode
1148
- });
1149
- }
1150
- }, "de_DeleteWorkspaceApiKeyCommandError");
1151
981
  var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
982
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1153
- return de_DescribeWorkspaceCommandError(output, context);
983
+ return de_CommandError(output, context);
1154
984
  }
1155
985
  const contents = (0, import_smithy_client.map)({
1156
986
  $metadata: deserializeMetadata(output)
@@ -1162,40 +992,9 @@ var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
1162
992
  Object.assign(contents, doc);
1163
993
  return contents;
1164
994
  }, "de_DescribeWorkspaceCommand");
1165
- var de_DescribeWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1166
- const parsedOutput = {
1167
- ...output,
1168
- body: await parseErrorBody(output.body, context)
1169
- };
1170
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
- switch (errorCode) {
1172
- case "AccessDeniedException":
1173
- case "com.amazonaws.grafana#AccessDeniedException":
1174
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1175
- case "InternalServerException":
1176
- case "com.amazonaws.grafana#InternalServerException":
1177
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1178
- case "ResourceNotFoundException":
1179
- case "com.amazonaws.grafana#ResourceNotFoundException":
1180
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1181
- case "ThrottlingException":
1182
- case "com.amazonaws.grafana#ThrottlingException":
1183
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1184
- case "ValidationException":
1185
- case "com.amazonaws.grafana#ValidationException":
1186
- throw await de_ValidationExceptionRes(parsedOutput, context);
1187
- default:
1188
- const parsedBody = parsedOutput.body;
1189
- return throwDefaultError({
1190
- output,
1191
- parsedBody,
1192
- errorCode
1193
- });
1194
- }
1195
- }, "de_DescribeWorkspaceCommandError");
1196
995
  var de_DescribeWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
1197
996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1198
- return de_DescribeWorkspaceAuthenticationCommandError(output, context);
997
+ return de_CommandError(output, context);
1199
998
  }
1200
999
  const contents = (0, import_smithy_client.map)({
1201
1000
  $metadata: deserializeMetadata(output)
@@ -1207,40 +1006,9 @@ var de_DescribeWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (ou
1207
1006
  Object.assign(contents, doc);
1208
1007
  return contents;
1209
1008
  }, "de_DescribeWorkspaceAuthenticationCommand");
1210
- var de_DescribeWorkspaceAuthenticationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1211
- const parsedOutput = {
1212
- ...output,
1213
- body: await parseErrorBody(output.body, context)
1214
- };
1215
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1216
- switch (errorCode) {
1217
- case "AccessDeniedException":
1218
- case "com.amazonaws.grafana#AccessDeniedException":
1219
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1220
- case "InternalServerException":
1221
- case "com.amazonaws.grafana#InternalServerException":
1222
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1223
- case "ResourceNotFoundException":
1224
- case "com.amazonaws.grafana#ResourceNotFoundException":
1225
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1226
- case "ThrottlingException":
1227
- case "com.amazonaws.grafana#ThrottlingException":
1228
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1229
- case "ValidationException":
1230
- case "com.amazonaws.grafana#ValidationException":
1231
- throw await de_ValidationExceptionRes(parsedOutput, context);
1232
- default:
1233
- const parsedBody = parsedOutput.body;
1234
- return throwDefaultError({
1235
- output,
1236
- parsedBody,
1237
- errorCode
1238
- });
1239
- }
1240
- }, "de_DescribeWorkspaceAuthenticationCommandError");
1241
1009
  var de_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
1010
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1243
- return de_DescribeWorkspaceConfigurationCommandError(output, context);
1011
+ return de_CommandError(output, context);
1244
1012
  }
1245
1013
  const contents = (0, import_smithy_client.map)({
1246
1014
  $metadata: deserializeMetadata(output)
@@ -1253,37 +1021,9 @@ var de_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (out
1253
1021
  Object.assign(contents, doc);
1254
1022
  return contents;
1255
1023
  }, "de_DescribeWorkspaceConfigurationCommand");
1256
- var de_DescribeWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1257
- const parsedOutput = {
1258
- ...output,
1259
- body: await parseErrorBody(output.body, context)
1260
- };
1261
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
- switch (errorCode) {
1263
- case "AccessDeniedException":
1264
- case "com.amazonaws.grafana#AccessDeniedException":
1265
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1266
- case "InternalServerException":
1267
- case "com.amazonaws.grafana#InternalServerException":
1268
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1269
- case "ResourceNotFoundException":
1270
- case "com.amazonaws.grafana#ResourceNotFoundException":
1271
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1272
- case "ThrottlingException":
1273
- case "com.amazonaws.grafana#ThrottlingException":
1274
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1275
- default:
1276
- const parsedBody = parsedOutput.body;
1277
- return throwDefaultError({
1278
- output,
1279
- parsedBody,
1280
- errorCode
1281
- });
1282
- }
1283
- }, "de_DescribeWorkspaceConfigurationCommandError");
1284
1024
  var de_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
1285
1025
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1286
- return de_DisassociateLicenseCommandError(output, context);
1026
+ return de_CommandError(output, context);
1287
1027
  }
1288
1028
  const contents = (0, import_smithy_client.map)({
1289
1029
  $metadata: deserializeMetadata(output)
@@ -1293,88 +1033,26 @@ var de_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (output, contex
1293
1033
  workspace: (_) => de_WorkspaceDescription(_, context)
1294
1034
  });
1295
1035
  Object.assign(contents, doc);
1296
- return contents;
1297
- }, "de_DisassociateLicenseCommand");
1298
- var de_DisassociateLicenseCommandError = /* @__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.grafana#AccessDeniedException":
1307
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1308
- case "InternalServerException":
1309
- case "com.amazonaws.grafana#InternalServerException":
1310
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1311
- case "ResourceNotFoundException":
1312
- case "com.amazonaws.grafana#ResourceNotFoundException":
1313
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1314
- case "ThrottlingException":
1315
- case "com.amazonaws.grafana#ThrottlingException":
1316
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1317
- case "ValidationException":
1318
- case "com.amazonaws.grafana#ValidationException":
1319
- throw await de_ValidationExceptionRes(parsedOutput, context);
1320
- default:
1321
- const parsedBody = parsedOutput.body;
1322
- return throwDefaultError({
1323
- output,
1324
- parsedBody,
1325
- errorCode
1326
- });
1327
- }
1328
- }, "de_DisassociateLicenseCommandError");
1329
- var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1330
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1331
- return de_ListPermissionsCommandError(output, context);
1332
- }
1333
- const contents = (0, import_smithy_client.map)({
1334
- $metadata: deserializeMetadata(output)
1335
- });
1336
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1337
- const doc = (0, import_smithy_client.take)(data, {
1338
- nextToken: import_smithy_client.expectString,
1339
- permissions: import_smithy_client._json
1340
- });
1341
- Object.assign(contents, doc);
1342
- return contents;
1343
- }, "de_ListPermissionsCommand");
1344
- var de_ListPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1345
- const parsedOutput = {
1346
- ...output,
1347
- body: await parseErrorBody(output.body, context)
1348
- };
1349
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1350
- switch (errorCode) {
1351
- case "AccessDeniedException":
1352
- case "com.amazonaws.grafana#AccessDeniedException":
1353
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1354
- case "InternalServerException":
1355
- case "com.amazonaws.grafana#InternalServerException":
1356
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1357
- case "ResourceNotFoundException":
1358
- case "com.amazonaws.grafana#ResourceNotFoundException":
1359
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1360
- case "ThrottlingException":
1361
- case "com.amazonaws.grafana#ThrottlingException":
1362
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1363
- case "ValidationException":
1364
- case "com.amazonaws.grafana#ValidationException":
1365
- throw await de_ValidationExceptionRes(parsedOutput, context);
1366
- default:
1367
- const parsedBody = parsedOutput.body;
1368
- return throwDefaultError({
1369
- output,
1370
- parsedBody,
1371
- errorCode
1372
- });
1036
+ return contents;
1037
+ }, "de_DisassociateLicenseCommand");
1038
+ var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1039
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1040
+ return de_CommandError(output, context);
1373
1041
  }
1374
- }, "de_ListPermissionsCommandError");
1042
+ const contents = (0, import_smithy_client.map)({
1043
+ $metadata: deserializeMetadata(output)
1044
+ });
1045
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1046
+ const doc = (0, import_smithy_client.take)(data, {
1047
+ nextToken: import_smithy_client.expectString,
1048
+ permissions: import_smithy_client._json
1049
+ });
1050
+ Object.assign(contents, doc);
1051
+ return contents;
1052
+ }, "de_ListPermissionsCommand");
1375
1053
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1376
1054
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1377
- return de_ListTagsForResourceCommandError(output, context);
1055
+ return de_CommandError(output, context);
1378
1056
  }
1379
1057
  const contents = (0, import_smithy_client.map)({
1380
1058
  $metadata: deserializeMetadata(output)
@@ -1386,40 +1064,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1386
1064
  Object.assign(contents, doc);
1387
1065
  return contents;
1388
1066
  }, "de_ListTagsForResourceCommand");
1389
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1390
- const parsedOutput = {
1391
- ...output,
1392
- body: await parseErrorBody(output.body, context)
1393
- };
1394
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1395
- switch (errorCode) {
1396
- case "AccessDeniedException":
1397
- case "com.amazonaws.grafana#AccessDeniedException":
1398
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1399
- case "InternalServerException":
1400
- case "com.amazonaws.grafana#InternalServerException":
1401
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1402
- case "ResourceNotFoundException":
1403
- case "com.amazonaws.grafana#ResourceNotFoundException":
1404
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1405
- case "ThrottlingException":
1406
- case "com.amazonaws.grafana#ThrottlingException":
1407
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1408
- case "ValidationException":
1409
- case "com.amazonaws.grafana#ValidationException":
1410
- throw await de_ValidationExceptionRes(parsedOutput, context);
1411
- default:
1412
- const parsedBody = parsedOutput.body;
1413
- return throwDefaultError({
1414
- output,
1415
- parsedBody,
1416
- errorCode
1417
- });
1418
- }
1419
- }, "de_ListTagsForResourceCommandError");
1420
1067
  var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1421
1068
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1422
- return de_ListVersionsCommandError(output, context);
1069
+ return de_CommandError(output, context);
1423
1070
  }
1424
1071
  const contents = (0, import_smithy_client.map)({
1425
1072
  $metadata: deserializeMetadata(output)
@@ -1432,40 +1079,9 @@ var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1432
1079
  Object.assign(contents, doc);
1433
1080
  return contents;
1434
1081
  }, "de_ListVersionsCommand");
1435
- var de_ListVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1436
- const parsedOutput = {
1437
- ...output,
1438
- body: await parseErrorBody(output.body, context)
1439
- };
1440
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1441
- switch (errorCode) {
1442
- case "AccessDeniedException":
1443
- case "com.amazonaws.grafana#AccessDeniedException":
1444
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1445
- case "InternalServerException":
1446
- case "com.amazonaws.grafana#InternalServerException":
1447
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1448
- case "ResourceNotFoundException":
1449
- case "com.amazonaws.grafana#ResourceNotFoundException":
1450
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1451
- case "ThrottlingException":
1452
- case "com.amazonaws.grafana#ThrottlingException":
1453
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1454
- case "ValidationException":
1455
- case "com.amazonaws.grafana#ValidationException":
1456
- throw await de_ValidationExceptionRes(parsedOutput, context);
1457
- default:
1458
- const parsedBody = parsedOutput.body;
1459
- return throwDefaultError({
1460
- output,
1461
- parsedBody,
1462
- errorCode
1463
- });
1464
- }
1465
- }, "de_ListVersionsCommandError");
1466
1082
  var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
1467
1083
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1468
- return de_ListWorkspacesCommandError(output, context);
1084
+ return de_CommandError(output, context);
1469
1085
  }
1470
1086
  const contents = (0, import_smithy_client.map)({
1471
1087
  $metadata: deserializeMetadata(output)
@@ -1478,34 +1094,9 @@ var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
1478
1094
  Object.assign(contents, doc);
1479
1095
  return contents;
1480
1096
  }, "de_ListWorkspacesCommand");
1481
- var de_ListWorkspacesCommandError = /* @__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.grafana#AccessDeniedException":
1490
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1491
- case "InternalServerException":
1492
- case "com.amazonaws.grafana#InternalServerException":
1493
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1494
- case "ThrottlingException":
1495
- case "com.amazonaws.grafana#ThrottlingException":
1496
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1497
- default:
1498
- const parsedBody = parsedOutput.body;
1499
- return throwDefaultError({
1500
- output,
1501
- parsedBody,
1502
- errorCode
1503
- });
1504
- }
1505
- }, "de_ListWorkspacesCommandError");
1506
1097
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1507
1098
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
- return de_TagResourceCommandError(output, context);
1099
+ return de_CommandError(output, context);
1509
1100
  }
1510
1101
  const contents = (0, import_smithy_client.map)({
1511
1102
  $metadata: deserializeMetadata(output)
@@ -1513,40 +1104,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1513
1104
  await (0, import_smithy_client.collectBody)(output.body, context);
1514
1105
  return contents;
1515
1106
  }, "de_TagResourceCommand");
1516
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1517
- const parsedOutput = {
1518
- ...output,
1519
- body: await parseErrorBody(output.body, context)
1520
- };
1521
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1522
- switch (errorCode) {
1523
- case "AccessDeniedException":
1524
- case "com.amazonaws.grafana#AccessDeniedException":
1525
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1526
- case "InternalServerException":
1527
- case "com.amazonaws.grafana#InternalServerException":
1528
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1529
- case "ResourceNotFoundException":
1530
- case "com.amazonaws.grafana#ResourceNotFoundException":
1531
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1532
- case "ThrottlingException":
1533
- case "com.amazonaws.grafana#ThrottlingException":
1534
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1535
- case "ValidationException":
1536
- case "com.amazonaws.grafana#ValidationException":
1537
- throw await de_ValidationExceptionRes(parsedOutput, context);
1538
- default:
1539
- const parsedBody = parsedOutput.body;
1540
- return throwDefaultError({
1541
- output,
1542
- parsedBody,
1543
- errorCode
1544
- });
1545
- }
1546
- }, "de_TagResourceCommandError");
1547
1107
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1548
1108
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1549
- return de_UntagResourceCommandError(output, context);
1109
+ return de_CommandError(output, context);
1550
1110
  }
1551
1111
  const contents = (0, import_smithy_client.map)({
1552
1112
  $metadata: deserializeMetadata(output)
@@ -1554,40 +1114,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1554
1114
  await (0, import_smithy_client.collectBody)(output.body, context);
1555
1115
  return contents;
1556
1116
  }, "de_UntagResourceCommand");
1557
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1558
- const parsedOutput = {
1559
- ...output,
1560
- body: await parseErrorBody(output.body, context)
1561
- };
1562
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1563
- switch (errorCode) {
1564
- case "AccessDeniedException":
1565
- case "com.amazonaws.grafana#AccessDeniedException":
1566
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1567
- case "InternalServerException":
1568
- case "com.amazonaws.grafana#InternalServerException":
1569
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1570
- case "ResourceNotFoundException":
1571
- case "com.amazonaws.grafana#ResourceNotFoundException":
1572
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1573
- case "ThrottlingException":
1574
- case "com.amazonaws.grafana#ThrottlingException":
1575
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1576
- case "ValidationException":
1577
- case "com.amazonaws.grafana#ValidationException":
1578
- throw await de_ValidationExceptionRes(parsedOutput, context);
1579
- default:
1580
- const parsedBody = parsedOutput.body;
1581
- return throwDefaultError({
1582
- output,
1583
- parsedBody,
1584
- errorCode
1585
- });
1586
- }
1587
- }, "de_UntagResourceCommandError");
1588
1117
  var de_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1589
1118
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1590
- return de_UpdatePermissionsCommandError(output, context);
1119
+ return de_CommandError(output, context);
1591
1120
  }
1592
1121
  const contents = (0, import_smithy_client.map)({
1593
1122
  $metadata: deserializeMetadata(output)
@@ -1599,40 +1128,9 @@ var de_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (output, context)
1599
1128
  Object.assign(contents, doc);
1600
1129
  return contents;
1601
1130
  }, "de_UpdatePermissionsCommand");
1602
- var de_UpdatePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1603
- const parsedOutput = {
1604
- ...output,
1605
- body: await parseErrorBody(output.body, context)
1606
- };
1607
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1608
- switch (errorCode) {
1609
- case "AccessDeniedException":
1610
- case "com.amazonaws.grafana#AccessDeniedException":
1611
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1612
- case "InternalServerException":
1613
- case "com.amazonaws.grafana#InternalServerException":
1614
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1615
- case "ResourceNotFoundException":
1616
- case "com.amazonaws.grafana#ResourceNotFoundException":
1617
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1618
- case "ThrottlingException":
1619
- case "com.amazonaws.grafana#ThrottlingException":
1620
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1621
- case "ValidationException":
1622
- case "com.amazonaws.grafana#ValidationException":
1623
- throw await de_ValidationExceptionRes(parsedOutput, context);
1624
- default:
1625
- const parsedBody = parsedOutput.body;
1626
- return throwDefaultError({
1627
- output,
1628
- parsedBody,
1629
- errorCode
1630
- });
1631
- }
1632
- }, "de_UpdatePermissionsCommandError");
1633
1131
  var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1634
1132
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1635
- return de_UpdateWorkspaceCommandError(output, context);
1133
+ return de_CommandError(output, context);
1636
1134
  }
1637
1135
  const contents = (0, import_smithy_client.map)({
1638
1136
  $metadata: deserializeMetadata(output)
@@ -1644,43 +1142,9 @@ var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1644
1142
  Object.assign(contents, doc);
1645
1143
  return contents;
1646
1144
  }, "de_UpdateWorkspaceCommand");
1647
- var de_UpdateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1648
- const parsedOutput = {
1649
- ...output,
1650
- body: await parseErrorBody(output.body, context)
1651
- };
1652
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1653
- switch (errorCode) {
1654
- case "AccessDeniedException":
1655
- case "com.amazonaws.grafana#AccessDeniedException":
1656
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1657
- case "ConflictException":
1658
- case "com.amazonaws.grafana#ConflictException":
1659
- throw await de_ConflictExceptionRes(parsedOutput, context);
1660
- case "InternalServerException":
1661
- case "com.amazonaws.grafana#InternalServerException":
1662
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1663
- case "ResourceNotFoundException":
1664
- case "com.amazonaws.grafana#ResourceNotFoundException":
1665
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1666
- case "ThrottlingException":
1667
- case "com.amazonaws.grafana#ThrottlingException":
1668
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1669
- case "ValidationException":
1670
- case "com.amazonaws.grafana#ValidationException":
1671
- throw await de_ValidationExceptionRes(parsedOutput, context);
1672
- default:
1673
- const parsedBody = parsedOutput.body;
1674
- return throwDefaultError({
1675
- output,
1676
- parsedBody,
1677
- errorCode
1678
- });
1679
- }
1680
- }, "de_UpdateWorkspaceCommandError");
1681
1145
  var de_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
1682
1146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1683
- return de_UpdateWorkspaceAuthenticationCommandError(output, context);
1147
+ return de_CommandError(output, context);
1684
1148
  }
1685
1149
  const contents = (0, import_smithy_client.map)({
1686
1150
  $metadata: deserializeMetadata(output)
@@ -1692,43 +1156,9 @@ var de_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (outp
1692
1156
  Object.assign(contents, doc);
1693
1157
  return contents;
1694
1158
  }, "de_UpdateWorkspaceAuthenticationCommand");
1695
- var de_UpdateWorkspaceAuthenticationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1696
- const parsedOutput = {
1697
- ...output,
1698
- body: await parseErrorBody(output.body, context)
1699
- };
1700
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1701
- switch (errorCode) {
1702
- case "AccessDeniedException":
1703
- case "com.amazonaws.grafana#AccessDeniedException":
1704
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1705
- case "ConflictException":
1706
- case "com.amazonaws.grafana#ConflictException":
1707
- throw await de_ConflictExceptionRes(parsedOutput, context);
1708
- case "InternalServerException":
1709
- case "com.amazonaws.grafana#InternalServerException":
1710
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1711
- case "ResourceNotFoundException":
1712
- case "com.amazonaws.grafana#ResourceNotFoundException":
1713
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1714
- case "ThrottlingException":
1715
- case "com.amazonaws.grafana#ThrottlingException":
1716
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1717
- case "ValidationException":
1718
- case "com.amazonaws.grafana#ValidationException":
1719
- throw await de_ValidationExceptionRes(parsedOutput, context);
1720
- default:
1721
- const parsedBody = parsedOutput.body;
1722
- return throwDefaultError({
1723
- output,
1724
- parsedBody,
1725
- errorCode
1726
- });
1727
- }
1728
- }, "de_UpdateWorkspaceAuthenticationCommandError");
1729
1159
  var de_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1730
1160
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1731
- return de_UpdateWorkspaceConfigurationCommandError(output, context);
1161
+ return de_CommandError(output, context);
1732
1162
  }
1733
1163
  const contents = (0, import_smithy_client.map)({
1734
1164
  $metadata: deserializeMetadata(output)
@@ -1736,7 +1166,7 @@ var de_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (outpu
1736
1166
  await (0, import_smithy_client.collectBody)(output.body, context);
1737
1167
  return contents;
1738
1168
  }, "de_UpdateWorkspaceConfigurationCommand");
1739
- var de_UpdateWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1169
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1740
1170
  const parsedOutput = {
1741
1171
  ...output,
1742
1172
  body: await parseErrorBody(output.body, context)
@@ -1746,9 +1176,6 @@ var de_UpdateWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (
1746
1176
  case "AccessDeniedException":
1747
1177
  case "com.amazonaws.grafana#AccessDeniedException":
1748
1178
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1749
- case "ConflictException":
1750
- case "com.amazonaws.grafana#ConflictException":
1751
- throw await de_ConflictExceptionRes(parsedOutput, context);
1752
1179
  case "InternalServerException":
1753
1180
  case "com.amazonaws.grafana#InternalServerException":
1754
1181
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1761,6 +1188,12 @@ var de_UpdateWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (
1761
1188
  case "ValidationException":
1762
1189
  case "com.amazonaws.grafana#ValidationException":
1763
1190
  throw await de_ValidationExceptionRes(parsedOutput, context);
1191
+ case "ConflictException":
1192
+ case "com.amazonaws.grafana#ConflictException":
1193
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1194
+ case "ServiceQuotaExceededException":
1195
+ case "com.amazonaws.grafana#ServiceQuotaExceededException":
1196
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1764
1197
  default:
1765
1198
  const parsedBody = parsedOutput.body;
1766
1199
  return throwDefaultError({
@@ -1769,7 +1202,7 @@ var de_UpdateWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (
1769
1202
  errorCode
1770
1203
  });
1771
1204
  }
1772
- }, "de_UpdateWorkspaceConfigurationCommandError");
1205
+ }, "de_CommandError");
1773
1206
  var throwDefaultError = (0, import_smithy_client.withBaseException)(GrafanaServiceException);
1774
1207
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1775
1208
  const contents = (0, import_smithy_client.map)({});