@aws-sdk/client-codecatalyst 3.369.0 → 3.374.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.
Files changed (47) hide show
  1. package/README.md +110 -22
  2. package/dist-cjs/CodeCatalyst.js +14 -0
  3. package/dist-cjs/commands/CreateSourceRepositoryCommand.js +45 -0
  4. package/dist-cjs/commands/DeleteProjectCommand.js +45 -0
  5. package/dist-cjs/commands/DeleteSourceRepositoryCommand.js +45 -0
  6. package/dist-cjs/commands/DeleteSpaceCommand.js +45 -0
  7. package/dist-cjs/commands/GetSourceRepositoryCommand.js +45 -0
  8. package/dist-cjs/commands/UpdateProjectCommand.js +45 -0
  9. package/dist-cjs/commands/UpdateSpaceCommand.js +45 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +508 -2
  12. package/dist-es/CodeCatalyst.js +14 -0
  13. package/dist-es/commands/CreateSourceRepositoryCommand.js +41 -0
  14. package/dist-es/commands/DeleteProjectCommand.js +41 -0
  15. package/dist-es/commands/DeleteSourceRepositoryCommand.js +41 -0
  16. package/dist-es/commands/DeleteSpaceCommand.js +41 -0
  17. package/dist-es/commands/GetSourceRepositoryCommand.js +41 -0
  18. package/dist-es/commands/UpdateProjectCommand.js +41 -0
  19. package/dist-es/commands/UpdateSpaceCommand.js +41 -0
  20. package/dist-es/commands/index.js +7 -0
  21. package/dist-es/protocols/Aws_restJson1.js +492 -0
  22. package/dist-types/CodeCatalyst.d.ts +103 -22
  23. package/dist-types/CodeCatalystClient.d.ts +63 -24
  24. package/dist-types/commands/CreateSourceRepositoryCommand.d.ts +100 -0
  25. package/dist-types/commands/DeleteProjectCommand.d.ts +96 -0
  26. package/dist-types/commands/DeleteSourceRepositoryCommand.d.ts +97 -0
  27. package/dist-types/commands/DeleteSpaceCommand.d.ts +97 -0
  28. package/dist-types/commands/GetSourceRepositoryCommand.d.ts +100 -0
  29. package/dist-types/commands/UpdateProjectCommand.d.ts +98 -0
  30. package/dist-types/commands/UpdateSpaceCommand.d.ts +96 -0
  31. package/dist-types/commands/index.d.ts +7 -0
  32. package/dist-types/index.d.ts +54 -22
  33. package/dist-types/models/models_0.d.ts +250 -8
  34. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  35. package/dist-types/ts3.4/CodeCatalyst.d.ts +119 -0
  36. package/dist-types/ts3.4/CodeCatalystClient.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/CreateSourceRepositoryCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +38 -0
  39. package/dist-types/ts3.4/commands/DeleteSourceRepositoryCommand.d.ts +42 -0
  40. package/dist-types/ts3.4/commands/DeleteSpaceCommand.d.ts +35 -0
  41. package/dist-types/ts3.4/commands/GetSourceRepositoryCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
  43. package/dist-types/ts3.4/commands/UpdateSpaceCommand.d.ts +35 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +71 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  47. package/package.json +14 -15
@@ -74,6 +74,30 @@ export const se_CreateProjectCommand = async (input, context) => {
74
74
  body,
75
75
  });
76
76
  };
77
+ export const se_CreateSourceRepositoryCommand = async (input, context) => {
78
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const headers = {
80
+ "content-type": "application/json",
81
+ };
82
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
83
+ "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
84
+ resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
85
+ resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
86
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
87
+ let body;
88
+ body = JSON.stringify(take(input, {
89
+ description: [],
90
+ }));
91
+ return new __HttpRequest({
92
+ protocol,
93
+ hostname,
94
+ port,
95
+ method: "PUT",
96
+ headers,
97
+ path: resolvedPath,
98
+ body,
99
+ });
100
+ };
77
101
  export const se_CreateSourceRepositoryBranchCommand = async (input, context) => {
78
102
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
103
  const headers = {
@@ -134,6 +158,58 @@ export const se_DeleteDevEnvironmentCommand = async (input, context) => {
134
158
  body,
135
159
  });
136
160
  };
161
+ export const se_DeleteProjectCommand = async (input, context) => {
162
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const headers = {};
164
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
165
+ resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
166
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
167
+ let body;
168
+ return new __HttpRequest({
169
+ protocol,
170
+ hostname,
171
+ port,
172
+ method: "DELETE",
173
+ headers,
174
+ path: resolvedPath,
175
+ body,
176
+ });
177
+ };
178
+ export const se_DeleteSourceRepositoryCommand = async (input, context) => {
179
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
+ const headers = {};
181
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
182
+ "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
183
+ resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
184
+ resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
185
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
186
+ let body;
187
+ return new __HttpRequest({
188
+ protocol,
189
+ hostname,
190
+ port,
191
+ method: "DELETE",
192
+ headers,
193
+ path: resolvedPath,
194
+ body,
195
+ });
196
+ };
197
+ export const se_DeleteSpaceCommand = async (input, context) => {
198
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
+ const headers = {};
200
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
201
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
202
+ let body;
203
+ return new __HttpRequest({
204
+ protocol,
205
+ hostname,
206
+ port,
207
+ method: "DELETE",
208
+ headers,
209
+ path: resolvedPath,
210
+ body,
211
+ });
212
+ };
137
213
  export const se_GetDevEnvironmentCommand = async (input, context) => {
138
214
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
215
  const headers = {};
@@ -170,6 +246,25 @@ export const se_GetProjectCommand = async (input, context) => {
170
246
  body,
171
247
  });
172
248
  };
249
+ export const se_GetSourceRepositoryCommand = async (input, context) => {
250
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
251
+ const headers = {};
252
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
253
+ "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
254
+ resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
255
+ resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
256
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
257
+ let body;
258
+ return new __HttpRequest({
259
+ protocol,
260
+ hostname,
261
+ port,
262
+ method: "GET",
263
+ headers,
264
+ path: resolvedPath,
265
+ body,
266
+ });
267
+ };
173
268
  export const se_GetSourceRepositoryCloneUrlsCommand = async (input, context) => {
174
269
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
270
  const headers = {};
@@ -546,6 +641,49 @@ export const se_UpdateDevEnvironmentCommand = async (input, context) => {
546
641
  body,
547
642
  });
548
643
  };
644
+ export const se_UpdateProjectCommand = async (input, context) => {
645
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
+ const headers = {
647
+ "content-type": "application/json",
648
+ };
649
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
650
+ resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
651
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
652
+ let body;
653
+ body = JSON.stringify(take(input, {
654
+ description: [],
655
+ }));
656
+ return new __HttpRequest({
657
+ protocol,
658
+ hostname,
659
+ port,
660
+ method: "PATCH",
661
+ headers,
662
+ path: resolvedPath,
663
+ body,
664
+ });
665
+ };
666
+ export const se_UpdateSpaceCommand = async (input, context) => {
667
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
668
+ const headers = {
669
+ "content-type": "application/json",
670
+ };
671
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
672
+ resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
673
+ let body;
674
+ body = JSON.stringify(take(input, {
675
+ description: [],
676
+ }));
677
+ return new __HttpRequest({
678
+ protocol,
679
+ hostname,
680
+ port,
681
+ method: "PATCH",
682
+ headers,
683
+ path: resolvedPath,
684
+ body,
685
+ });
686
+ };
549
687
  export const se_VerifySessionCommand = async (input, context) => {
550
688
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
551
689
  const headers = {
@@ -716,6 +854,57 @@ const de_CreateProjectCommandError = async (output, context) => {
716
854
  });
717
855
  }
718
856
  };
857
+ export const de_CreateSourceRepositoryCommand = async (output, context) => {
858
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
859
+ return de_CreateSourceRepositoryCommandError(output, context);
860
+ }
861
+ const contents = map({
862
+ $metadata: deserializeMetadata(output),
863
+ });
864
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
865
+ const doc = take(data, {
866
+ description: __expectString,
867
+ name: __expectString,
868
+ projectName: __expectString,
869
+ spaceName: __expectString,
870
+ });
871
+ Object.assign(contents, doc);
872
+ return contents;
873
+ };
874
+ const de_CreateSourceRepositoryCommandError = async (output, context) => {
875
+ const parsedOutput = {
876
+ ...output,
877
+ body: await parseErrorBody(output.body, context),
878
+ };
879
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
880
+ switch (errorCode) {
881
+ case "AccessDeniedException":
882
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
883
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
884
+ case "ConflictException":
885
+ case "com.amazonaws.codecatalyst#ConflictException":
886
+ throw await de_ConflictExceptionRes(parsedOutput, context);
887
+ case "ResourceNotFoundException":
888
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
889
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
890
+ case "ServiceQuotaExceededException":
891
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
892
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
893
+ case "ThrottlingException":
894
+ case "com.amazonaws.codecatalyst#ThrottlingException":
895
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
896
+ case "ValidationException":
897
+ case "com.amazonaws.codecatalyst#ValidationException":
898
+ throw await de_ValidationExceptionRes(parsedOutput, context);
899
+ default:
900
+ const parsedBody = parsedOutput.body;
901
+ return throwDefaultError({
902
+ output,
903
+ parsedBody,
904
+ errorCode,
905
+ });
906
+ }
907
+ };
719
908
  export const de_CreateSourceRepositoryBranchCommand = async (output, context) => {
720
909
  if (output.statusCode !== 201 && output.statusCode >= 300) {
721
910
  return de_CreateSourceRepositoryBranchCommandError(output, context);
@@ -861,6 +1050,155 @@ const de_DeleteDevEnvironmentCommandError = async (output, context) => {
861
1050
  });
862
1051
  }
863
1052
  };
1053
+ export const de_DeleteProjectCommand = async (output, context) => {
1054
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
+ return de_DeleteProjectCommandError(output, context);
1056
+ }
1057
+ const contents = map({
1058
+ $metadata: deserializeMetadata(output),
1059
+ });
1060
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1061
+ const doc = take(data, {
1062
+ displayName: __expectString,
1063
+ name: __expectString,
1064
+ spaceName: __expectString,
1065
+ });
1066
+ Object.assign(contents, doc);
1067
+ return contents;
1068
+ };
1069
+ const de_DeleteProjectCommandError = async (output, context) => {
1070
+ const parsedOutput = {
1071
+ ...output,
1072
+ body: await parseErrorBody(output.body, context),
1073
+ };
1074
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1075
+ switch (errorCode) {
1076
+ case "AccessDeniedException":
1077
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
1078
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1079
+ case "ConflictException":
1080
+ case "com.amazonaws.codecatalyst#ConflictException":
1081
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1082
+ case "ResourceNotFoundException":
1083
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1084
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1085
+ case "ServiceQuotaExceededException":
1086
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1087
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1088
+ case "ThrottlingException":
1089
+ case "com.amazonaws.codecatalyst#ThrottlingException":
1090
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1091
+ case "ValidationException":
1092
+ case "com.amazonaws.codecatalyst#ValidationException":
1093
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1094
+ default:
1095
+ const parsedBody = parsedOutput.body;
1096
+ return throwDefaultError({
1097
+ output,
1098
+ parsedBody,
1099
+ errorCode,
1100
+ });
1101
+ }
1102
+ };
1103
+ export const de_DeleteSourceRepositoryCommand = async (output, context) => {
1104
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1105
+ return de_DeleteSourceRepositoryCommandError(output, context);
1106
+ }
1107
+ const contents = map({
1108
+ $metadata: deserializeMetadata(output),
1109
+ });
1110
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1111
+ const doc = take(data, {
1112
+ name: __expectString,
1113
+ projectName: __expectString,
1114
+ spaceName: __expectString,
1115
+ });
1116
+ Object.assign(contents, doc);
1117
+ return contents;
1118
+ };
1119
+ const de_DeleteSourceRepositoryCommandError = async (output, context) => {
1120
+ const parsedOutput = {
1121
+ ...output,
1122
+ body: await parseErrorBody(output.body, context),
1123
+ };
1124
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1125
+ switch (errorCode) {
1126
+ case "AccessDeniedException":
1127
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
1128
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1129
+ case "ConflictException":
1130
+ case "com.amazonaws.codecatalyst#ConflictException":
1131
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1132
+ case "ResourceNotFoundException":
1133
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1134
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1135
+ case "ServiceQuotaExceededException":
1136
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1137
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1138
+ case "ThrottlingException":
1139
+ case "com.amazonaws.codecatalyst#ThrottlingException":
1140
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1141
+ case "ValidationException":
1142
+ case "com.amazonaws.codecatalyst#ValidationException":
1143
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1144
+ default:
1145
+ const parsedBody = parsedOutput.body;
1146
+ return throwDefaultError({
1147
+ output,
1148
+ parsedBody,
1149
+ errorCode,
1150
+ });
1151
+ }
1152
+ };
1153
+ export const de_DeleteSpaceCommand = async (output, context) => {
1154
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1155
+ return de_DeleteSpaceCommandError(output, context);
1156
+ }
1157
+ const contents = map({
1158
+ $metadata: deserializeMetadata(output),
1159
+ });
1160
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1161
+ const doc = take(data, {
1162
+ displayName: __expectString,
1163
+ name: __expectString,
1164
+ });
1165
+ Object.assign(contents, doc);
1166
+ return contents;
1167
+ };
1168
+ const de_DeleteSpaceCommandError = async (output, context) => {
1169
+ const parsedOutput = {
1170
+ ...output,
1171
+ body: await parseErrorBody(output.body, context),
1172
+ };
1173
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1174
+ switch (errorCode) {
1175
+ case "AccessDeniedException":
1176
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
1177
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1178
+ case "ConflictException":
1179
+ case "com.amazonaws.codecatalyst#ConflictException":
1180
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1181
+ case "ResourceNotFoundException":
1182
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1183
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
+ case "ServiceQuotaExceededException":
1185
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1186
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1187
+ case "ThrottlingException":
1188
+ case "com.amazonaws.codecatalyst#ThrottlingException":
1189
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1190
+ case "ValidationException":
1191
+ case "com.amazonaws.codecatalyst#ValidationException":
1192
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1193
+ default:
1194
+ const parsedBody = parsedOutput.body;
1195
+ return throwDefaultError({
1196
+ output,
1197
+ parsedBody,
1198
+ errorCode,
1199
+ });
1200
+ }
1201
+ };
864
1202
  export const de_GetDevEnvironmentCommand = async (output, context) => {
865
1203
  if (output.statusCode !== 200 && output.statusCode >= 300) {
866
1204
  return de_GetDevEnvironmentCommandError(output, context);
@@ -972,6 +1310,59 @@ const de_GetProjectCommandError = async (output, context) => {
972
1310
  });
973
1311
  }
974
1312
  };
1313
+ export const de_GetSourceRepositoryCommand = async (output, context) => {
1314
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1315
+ return de_GetSourceRepositoryCommandError(output, context);
1316
+ }
1317
+ const contents = map({
1318
+ $metadata: deserializeMetadata(output),
1319
+ });
1320
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1321
+ const doc = take(data, {
1322
+ createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1323
+ description: __expectString,
1324
+ lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1325
+ name: __expectString,
1326
+ projectName: __expectString,
1327
+ spaceName: __expectString,
1328
+ });
1329
+ Object.assign(contents, doc);
1330
+ return contents;
1331
+ };
1332
+ const de_GetSourceRepositoryCommandError = async (output, context) => {
1333
+ const parsedOutput = {
1334
+ ...output,
1335
+ body: await parseErrorBody(output.body, context),
1336
+ };
1337
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1338
+ switch (errorCode) {
1339
+ case "AccessDeniedException":
1340
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
1341
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1342
+ case "ConflictException":
1343
+ case "com.amazonaws.codecatalyst#ConflictException":
1344
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1345
+ case "ResourceNotFoundException":
1346
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
1347
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1348
+ case "ServiceQuotaExceededException":
1349
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
1350
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1351
+ case "ThrottlingException":
1352
+ case "com.amazonaws.codecatalyst#ThrottlingException":
1353
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1354
+ case "ValidationException":
1355
+ case "com.amazonaws.codecatalyst#ValidationException":
1356
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1357
+ default:
1358
+ const parsedBody = parsedOutput.body;
1359
+ return throwDefaultError({
1360
+ output,
1361
+ parsedBody,
1362
+ errorCode,
1363
+ });
1364
+ }
1365
+ };
975
1366
  export const de_GetSourceRepositoryCloneUrlsCommand = async (output, context) => {
976
1367
  if (output.statusCode !== 200 && output.statusCode >= 300) {
977
1368
  return de_GetSourceRepositoryCloneUrlsCommandError(output, context);
@@ -1824,6 +2215,107 @@ const de_UpdateDevEnvironmentCommandError = async (output, context) => {
1824
2215
  });
1825
2216
  }
1826
2217
  };
2218
+ export const de_UpdateProjectCommand = async (output, context) => {
2219
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2220
+ return de_UpdateProjectCommandError(output, context);
2221
+ }
2222
+ const contents = map({
2223
+ $metadata: deserializeMetadata(output),
2224
+ });
2225
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2226
+ const doc = take(data, {
2227
+ description: __expectString,
2228
+ displayName: __expectString,
2229
+ name: __expectString,
2230
+ spaceName: __expectString,
2231
+ });
2232
+ Object.assign(contents, doc);
2233
+ return contents;
2234
+ };
2235
+ const de_UpdateProjectCommandError = async (output, context) => {
2236
+ const parsedOutput = {
2237
+ ...output,
2238
+ body: await parseErrorBody(output.body, context),
2239
+ };
2240
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2241
+ switch (errorCode) {
2242
+ case "AccessDeniedException":
2243
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
2244
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2245
+ case "ConflictException":
2246
+ case "com.amazonaws.codecatalyst#ConflictException":
2247
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2248
+ case "ResourceNotFoundException":
2249
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2250
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2251
+ case "ServiceQuotaExceededException":
2252
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2253
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2254
+ case "ThrottlingException":
2255
+ case "com.amazonaws.codecatalyst#ThrottlingException":
2256
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2257
+ case "ValidationException":
2258
+ case "com.amazonaws.codecatalyst#ValidationException":
2259
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2260
+ default:
2261
+ const parsedBody = parsedOutput.body;
2262
+ return throwDefaultError({
2263
+ output,
2264
+ parsedBody,
2265
+ errorCode,
2266
+ });
2267
+ }
2268
+ };
2269
+ export const de_UpdateSpaceCommand = async (output, context) => {
2270
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2271
+ return de_UpdateSpaceCommandError(output, context);
2272
+ }
2273
+ const contents = map({
2274
+ $metadata: deserializeMetadata(output),
2275
+ });
2276
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2277
+ const doc = take(data, {
2278
+ description: __expectString,
2279
+ displayName: __expectString,
2280
+ name: __expectString,
2281
+ });
2282
+ Object.assign(contents, doc);
2283
+ return contents;
2284
+ };
2285
+ const de_UpdateSpaceCommandError = async (output, context) => {
2286
+ const parsedOutput = {
2287
+ ...output,
2288
+ body: await parseErrorBody(output.body, context),
2289
+ };
2290
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2291
+ switch (errorCode) {
2292
+ case "AccessDeniedException":
2293
+ case "com.amazonaws.codecatalyst#AccessDeniedException":
2294
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2295
+ case "ConflictException":
2296
+ case "com.amazonaws.codecatalyst#ConflictException":
2297
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2298
+ case "ResourceNotFoundException":
2299
+ case "com.amazonaws.codecatalyst#ResourceNotFoundException":
2300
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2301
+ case "ServiceQuotaExceededException":
2302
+ case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
2303
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2304
+ case "ThrottlingException":
2305
+ case "com.amazonaws.codecatalyst#ThrottlingException":
2306
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2307
+ case "ValidationException":
2308
+ case "com.amazonaws.codecatalyst#ValidationException":
2309
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2310
+ default:
2311
+ const parsedBody = parsedOutput.body;
2312
+ return throwDefaultError({
2313
+ output,
2314
+ parsedBody,
2315
+ errorCode,
2316
+ });
2317
+ }
2318
+ };
1827
2319
  export const de_VerifySessionCommand = async (output, context) => {
1828
2320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1829
2321
  return de_VerifySessionCommandError(output, context);