@aws-sdk/client-codecatalyst 3.370.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.
- package/README.md +110 -22
- package/dist-cjs/CodeCatalyst.js +14 -0
- package/dist-cjs/commands/CreateSourceRepositoryCommand.js +45 -0
- package/dist-cjs/commands/DeleteProjectCommand.js +45 -0
- package/dist-cjs/commands/DeleteSourceRepositoryCommand.js +45 -0
- package/dist-cjs/commands/DeleteSpaceCommand.js +45 -0
- package/dist-cjs/commands/GetSourceRepositoryCommand.js +45 -0
- package/dist-cjs/commands/UpdateProjectCommand.js +45 -0
- package/dist-cjs/commands/UpdateSpaceCommand.js +45 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +508 -2
- package/dist-es/CodeCatalyst.js +14 -0
- package/dist-es/commands/CreateSourceRepositoryCommand.js +41 -0
- package/dist-es/commands/DeleteProjectCommand.js +41 -0
- package/dist-es/commands/DeleteSourceRepositoryCommand.js +41 -0
- package/dist-es/commands/DeleteSpaceCommand.js +41 -0
- package/dist-es/commands/GetSourceRepositoryCommand.js +41 -0
- package/dist-es/commands/UpdateProjectCommand.js +41 -0
- package/dist-es/commands/UpdateSpaceCommand.js +41 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +492 -0
- package/dist-types/CodeCatalyst.d.ts +103 -22
- package/dist-types/CodeCatalystClient.d.ts +63 -24
- package/dist-types/commands/CreateSourceRepositoryCommand.d.ts +100 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +96 -0
- package/dist-types/commands/DeleteSourceRepositoryCommand.d.ts +97 -0
- package/dist-types/commands/DeleteSpaceCommand.d.ts +97 -0
- package/dist-types/commands/GetSourceRepositoryCommand.d.ts +100 -0
- package/dist-types/commands/UpdateProjectCommand.d.ts +98 -0
- package/dist-types/commands/UpdateSpaceCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +54 -22
- package/dist-types/models/models_0.d.ts +250 -8
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/CodeCatalyst.d.ts +119 -0
- package/dist-types/ts3.4/CodeCatalystClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateSourceRepositoryCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteSourceRepositoryCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteSpaceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetSourceRepositoryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateSpaceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +71 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_VerifySessionCommand = exports.de_UpdateDevEnvironmentCommand = void 0;
|
|
3
|
+
exports.de_GetUserDetailsCommand = exports.de_GetSubscriptionCommand = exports.de_GetSpaceCommand = exports.de_GetSourceRepositoryCloneUrlsCommand = exports.de_GetSourceRepositoryCommand = exports.de_GetProjectCommand = exports.de_GetDevEnvironmentCommand = exports.de_DeleteSpaceCommand = exports.de_DeleteSourceRepositoryCommand = exports.de_DeleteProjectCommand = exports.de_DeleteDevEnvironmentCommand = exports.de_DeleteAccessTokenCommand = exports.de_CreateSourceRepositoryBranchCommand = exports.de_CreateSourceRepositoryCommand = exports.de_CreateProjectCommand = exports.de_CreateDevEnvironmentCommand = exports.de_CreateAccessTokenCommand = exports.se_VerifySessionCommand = exports.se_UpdateSpaceCommand = exports.se_UpdateProjectCommand = exports.se_UpdateDevEnvironmentCommand = exports.se_StopDevEnvironmentSessionCommand = exports.se_StopDevEnvironmentCommand = exports.se_StartDevEnvironmentSessionCommand = exports.se_StartDevEnvironmentCommand = exports.se_ListSpacesCommand = exports.se_ListSourceRepositoryBranchesCommand = exports.se_ListSourceRepositoriesCommand = exports.se_ListProjectsCommand = exports.se_ListEventLogsCommand = exports.se_ListDevEnvironmentSessionsCommand = exports.se_ListDevEnvironmentsCommand = exports.se_ListAccessTokensCommand = exports.se_GetUserDetailsCommand = exports.se_GetSubscriptionCommand = exports.se_GetSpaceCommand = exports.se_GetSourceRepositoryCloneUrlsCommand = exports.se_GetSourceRepositoryCommand = exports.se_GetProjectCommand = exports.se_GetDevEnvironmentCommand = exports.se_DeleteSpaceCommand = exports.se_DeleteSourceRepositoryCommand = exports.se_DeleteProjectCommand = exports.se_DeleteDevEnvironmentCommand = exports.se_DeleteAccessTokenCommand = exports.se_CreateSourceRepositoryBranchCommand = exports.se_CreateSourceRepositoryCommand = exports.se_CreateProjectCommand = exports.se_CreateDevEnvironmentCommand = exports.se_CreateAccessTokenCommand = void 0;
|
|
4
|
+
exports.de_VerifySessionCommand = exports.de_UpdateSpaceCommand = exports.de_UpdateProjectCommand = exports.de_UpdateDevEnvironmentCommand = exports.de_StopDevEnvironmentSessionCommand = exports.de_StopDevEnvironmentCommand = exports.de_StartDevEnvironmentSessionCommand = exports.de_StartDevEnvironmentCommand = exports.de_ListSpacesCommand = exports.de_ListSourceRepositoryBranchesCommand = exports.de_ListSourceRepositoriesCommand = exports.de_ListProjectsCommand = exports.de_ListEventLogsCommand = exports.de_ListDevEnvironmentSessionsCommand = exports.de_ListDevEnvironmentsCommand = exports.de_ListAccessTokensCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const CodeCatalystServiceException_1 = require("../models/CodeCatalystServiceException");
|
|
@@ -81,6 +81,31 @@ const se_CreateProjectCommand = async (input, context) => {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
exports.se_CreateProjectCommand = se_CreateProjectCommand;
|
|
84
|
+
const se_CreateSourceRepositoryCommand = async (input, context) => {
|
|
85
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
|
+
const headers = {
|
|
87
|
+
"content-type": "application/json",
|
|
88
|
+
};
|
|
89
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
90
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
|
|
91
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
92
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
93
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
96
|
+
description: [],
|
|
97
|
+
}));
|
|
98
|
+
return new protocol_http_1.HttpRequest({
|
|
99
|
+
protocol,
|
|
100
|
+
hostname,
|
|
101
|
+
port,
|
|
102
|
+
method: "PUT",
|
|
103
|
+
headers,
|
|
104
|
+
path: resolvedPath,
|
|
105
|
+
body,
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
exports.se_CreateSourceRepositoryCommand = se_CreateSourceRepositoryCommand;
|
|
84
109
|
const se_CreateSourceRepositoryBranchCommand = async (input, context) => {
|
|
85
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
111
|
const headers = {
|
|
@@ -144,6 +169,61 @@ const se_DeleteDevEnvironmentCommand = async (input, context) => {
|
|
|
144
169
|
});
|
|
145
170
|
};
|
|
146
171
|
exports.se_DeleteDevEnvironmentCommand = se_DeleteDevEnvironmentCommand;
|
|
172
|
+
const se_DeleteProjectCommand = async (input, context) => {
|
|
173
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
|
+
const headers = {};
|
|
175
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
|
|
176
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
177
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
178
|
+
let body;
|
|
179
|
+
return new protocol_http_1.HttpRequest({
|
|
180
|
+
protocol,
|
|
181
|
+
hostname,
|
|
182
|
+
port,
|
|
183
|
+
method: "DELETE",
|
|
184
|
+
headers,
|
|
185
|
+
path: resolvedPath,
|
|
186
|
+
body,
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
|
|
190
|
+
const se_DeleteSourceRepositoryCommand = async (input, context) => {
|
|
191
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
192
|
+
const headers = {};
|
|
193
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
194
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
|
|
195
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
196
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
197
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
198
|
+
let body;
|
|
199
|
+
return new protocol_http_1.HttpRequest({
|
|
200
|
+
protocol,
|
|
201
|
+
hostname,
|
|
202
|
+
port,
|
|
203
|
+
method: "DELETE",
|
|
204
|
+
headers,
|
|
205
|
+
path: resolvedPath,
|
|
206
|
+
body,
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
exports.se_DeleteSourceRepositoryCommand = se_DeleteSourceRepositoryCommand;
|
|
210
|
+
const se_DeleteSpaceCommand = async (input, context) => {
|
|
211
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
|
+
const headers = {};
|
|
213
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
|
|
214
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
215
|
+
let body;
|
|
216
|
+
return new protocol_http_1.HttpRequest({
|
|
217
|
+
protocol,
|
|
218
|
+
hostname,
|
|
219
|
+
port,
|
|
220
|
+
method: "DELETE",
|
|
221
|
+
headers,
|
|
222
|
+
path: resolvedPath,
|
|
223
|
+
body,
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
exports.se_DeleteSpaceCommand = se_DeleteSpaceCommand;
|
|
147
227
|
const se_GetDevEnvironmentCommand = async (input, context) => {
|
|
148
228
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
229
|
const headers = {};
|
|
@@ -182,6 +262,26 @@ const se_GetProjectCommand = async (input, context) => {
|
|
|
182
262
|
});
|
|
183
263
|
};
|
|
184
264
|
exports.se_GetProjectCommand = se_GetProjectCommand;
|
|
265
|
+
const se_GetSourceRepositoryCommand = async (input, context) => {
|
|
266
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
|
+
const headers = {};
|
|
268
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
269
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
|
|
270
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
271
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
272
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
273
|
+
let body;
|
|
274
|
+
return new protocol_http_1.HttpRequest({
|
|
275
|
+
protocol,
|
|
276
|
+
hostname,
|
|
277
|
+
port,
|
|
278
|
+
method: "GET",
|
|
279
|
+
headers,
|
|
280
|
+
path: resolvedPath,
|
|
281
|
+
body,
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
exports.se_GetSourceRepositoryCommand = se_GetSourceRepositoryCommand;
|
|
185
285
|
const se_GetSourceRepositoryCloneUrlsCommand = async (input, context) => {
|
|
186
286
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
187
287
|
const headers = {};
|
|
@@ -575,6 +675,51 @@ const se_UpdateDevEnvironmentCommand = async (input, context) => {
|
|
|
575
675
|
});
|
|
576
676
|
};
|
|
577
677
|
exports.se_UpdateDevEnvironmentCommand = se_UpdateDevEnvironmentCommand;
|
|
678
|
+
const se_UpdateProjectCommand = async (input, context) => {
|
|
679
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
680
|
+
const headers = {
|
|
681
|
+
"content-type": "application/json",
|
|
682
|
+
};
|
|
683
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
|
|
684
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
685
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
686
|
+
let body;
|
|
687
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
688
|
+
description: [],
|
|
689
|
+
}));
|
|
690
|
+
return new protocol_http_1.HttpRequest({
|
|
691
|
+
protocol,
|
|
692
|
+
hostname,
|
|
693
|
+
port,
|
|
694
|
+
method: "PATCH",
|
|
695
|
+
headers,
|
|
696
|
+
path: resolvedPath,
|
|
697
|
+
body,
|
|
698
|
+
});
|
|
699
|
+
};
|
|
700
|
+
exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
|
|
701
|
+
const se_UpdateSpaceCommand = async (input, context) => {
|
|
702
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
703
|
+
const headers = {
|
|
704
|
+
"content-type": "application/json",
|
|
705
|
+
};
|
|
706
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
|
|
707
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
708
|
+
let body;
|
|
709
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
710
|
+
description: [],
|
|
711
|
+
}));
|
|
712
|
+
return new protocol_http_1.HttpRequest({
|
|
713
|
+
protocol,
|
|
714
|
+
hostname,
|
|
715
|
+
port,
|
|
716
|
+
method: "PATCH",
|
|
717
|
+
headers,
|
|
718
|
+
path: resolvedPath,
|
|
719
|
+
body,
|
|
720
|
+
});
|
|
721
|
+
};
|
|
722
|
+
exports.se_UpdateSpaceCommand = se_UpdateSpaceCommand;
|
|
578
723
|
const se_VerifySessionCommand = async (input, context) => {
|
|
579
724
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
580
725
|
const headers = {
|
|
@@ -749,6 +894,58 @@ const de_CreateProjectCommandError = async (output, context) => {
|
|
|
749
894
|
});
|
|
750
895
|
}
|
|
751
896
|
};
|
|
897
|
+
const de_CreateSourceRepositoryCommand = async (output, context) => {
|
|
898
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
899
|
+
return de_CreateSourceRepositoryCommandError(output, context);
|
|
900
|
+
}
|
|
901
|
+
const contents = (0, smithy_client_1.map)({
|
|
902
|
+
$metadata: deserializeMetadata(output),
|
|
903
|
+
});
|
|
904
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
905
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
906
|
+
description: smithy_client_1.expectString,
|
|
907
|
+
name: smithy_client_1.expectString,
|
|
908
|
+
projectName: smithy_client_1.expectString,
|
|
909
|
+
spaceName: smithy_client_1.expectString,
|
|
910
|
+
});
|
|
911
|
+
Object.assign(contents, doc);
|
|
912
|
+
return contents;
|
|
913
|
+
};
|
|
914
|
+
exports.de_CreateSourceRepositoryCommand = de_CreateSourceRepositoryCommand;
|
|
915
|
+
const de_CreateSourceRepositoryCommandError = async (output, context) => {
|
|
916
|
+
const parsedOutput = {
|
|
917
|
+
...output,
|
|
918
|
+
body: await parseErrorBody(output.body, context),
|
|
919
|
+
};
|
|
920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
+
switch (errorCode) {
|
|
922
|
+
case "AccessDeniedException":
|
|
923
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
924
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
925
|
+
case "ConflictException":
|
|
926
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
927
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
928
|
+
case "ResourceNotFoundException":
|
|
929
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
930
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
931
|
+
case "ServiceQuotaExceededException":
|
|
932
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
933
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
934
|
+
case "ThrottlingException":
|
|
935
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
936
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
+
case "ValidationException":
|
|
938
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
939
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
+
default:
|
|
941
|
+
const parsedBody = parsedOutput.body;
|
|
942
|
+
return throwDefaultError({
|
|
943
|
+
output,
|
|
944
|
+
parsedBody,
|
|
945
|
+
errorCode,
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
};
|
|
752
949
|
const de_CreateSourceRepositoryBranchCommand = async (output, context) => {
|
|
753
950
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
754
951
|
return de_CreateSourceRepositoryBranchCommandError(output, context);
|
|
@@ -897,6 +1094,158 @@ const de_DeleteDevEnvironmentCommandError = async (output, context) => {
|
|
|
897
1094
|
});
|
|
898
1095
|
}
|
|
899
1096
|
};
|
|
1097
|
+
const de_DeleteProjectCommand = async (output, context) => {
|
|
1098
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
+
return de_DeleteProjectCommandError(output, context);
|
|
1100
|
+
}
|
|
1101
|
+
const contents = (0, smithy_client_1.map)({
|
|
1102
|
+
$metadata: deserializeMetadata(output),
|
|
1103
|
+
});
|
|
1104
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1105
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1106
|
+
displayName: smithy_client_1.expectString,
|
|
1107
|
+
name: smithy_client_1.expectString,
|
|
1108
|
+
spaceName: smithy_client_1.expectString,
|
|
1109
|
+
});
|
|
1110
|
+
Object.assign(contents, doc);
|
|
1111
|
+
return contents;
|
|
1112
|
+
};
|
|
1113
|
+
exports.de_DeleteProjectCommand = de_DeleteProjectCommand;
|
|
1114
|
+
const de_DeleteProjectCommandError = async (output, context) => {
|
|
1115
|
+
const parsedOutput = {
|
|
1116
|
+
...output,
|
|
1117
|
+
body: await parseErrorBody(output.body, context),
|
|
1118
|
+
};
|
|
1119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
+
switch (errorCode) {
|
|
1121
|
+
case "AccessDeniedException":
|
|
1122
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1123
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "ConflictException":
|
|
1125
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1126
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "ResourceNotFoundException":
|
|
1128
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "ServiceQuotaExceededException":
|
|
1131
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1132
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "ThrottlingException":
|
|
1134
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1135
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1136
|
+
case "ValidationException":
|
|
1137
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1138
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1139
|
+
default:
|
|
1140
|
+
const parsedBody = parsedOutput.body;
|
|
1141
|
+
return throwDefaultError({
|
|
1142
|
+
output,
|
|
1143
|
+
parsedBody,
|
|
1144
|
+
errorCode,
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
const de_DeleteSourceRepositoryCommand = async (output, context) => {
|
|
1149
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
+
return de_DeleteSourceRepositoryCommandError(output, context);
|
|
1151
|
+
}
|
|
1152
|
+
const contents = (0, smithy_client_1.map)({
|
|
1153
|
+
$metadata: deserializeMetadata(output),
|
|
1154
|
+
});
|
|
1155
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1156
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1157
|
+
name: smithy_client_1.expectString,
|
|
1158
|
+
projectName: smithy_client_1.expectString,
|
|
1159
|
+
spaceName: smithy_client_1.expectString,
|
|
1160
|
+
});
|
|
1161
|
+
Object.assign(contents, doc);
|
|
1162
|
+
return contents;
|
|
1163
|
+
};
|
|
1164
|
+
exports.de_DeleteSourceRepositoryCommand = de_DeleteSourceRepositoryCommand;
|
|
1165
|
+
const de_DeleteSourceRepositoryCommandError = 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.codecatalyst#AccessDeniedException":
|
|
1174
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "ConflictException":
|
|
1176
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1177
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "ResourceNotFoundException":
|
|
1179
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1180
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1181
|
+
case "ServiceQuotaExceededException":
|
|
1182
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1183
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1184
|
+
case "ThrottlingException":
|
|
1185
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1186
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1187
|
+
case "ValidationException":
|
|
1188
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1189
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1190
|
+
default:
|
|
1191
|
+
const parsedBody = parsedOutput.body;
|
|
1192
|
+
return throwDefaultError({
|
|
1193
|
+
output,
|
|
1194
|
+
parsedBody,
|
|
1195
|
+
errorCode,
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
const de_DeleteSpaceCommand = async (output, context) => {
|
|
1200
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1201
|
+
return de_DeleteSpaceCommandError(output, context);
|
|
1202
|
+
}
|
|
1203
|
+
const contents = (0, smithy_client_1.map)({
|
|
1204
|
+
$metadata: deserializeMetadata(output),
|
|
1205
|
+
});
|
|
1206
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1207
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1208
|
+
displayName: smithy_client_1.expectString,
|
|
1209
|
+
name: smithy_client_1.expectString,
|
|
1210
|
+
});
|
|
1211
|
+
Object.assign(contents, doc);
|
|
1212
|
+
return contents;
|
|
1213
|
+
};
|
|
1214
|
+
exports.de_DeleteSpaceCommand = de_DeleteSpaceCommand;
|
|
1215
|
+
const de_DeleteSpaceCommandError = async (output, context) => {
|
|
1216
|
+
const parsedOutput = {
|
|
1217
|
+
...output,
|
|
1218
|
+
body: await parseErrorBody(output.body, context),
|
|
1219
|
+
};
|
|
1220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
|
+
switch (errorCode) {
|
|
1222
|
+
case "AccessDeniedException":
|
|
1223
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1224
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1225
|
+
case "ConflictException":
|
|
1226
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1227
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1228
|
+
case "ResourceNotFoundException":
|
|
1229
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1230
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1231
|
+
case "ServiceQuotaExceededException":
|
|
1232
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1233
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1234
|
+
case "ThrottlingException":
|
|
1235
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1236
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1237
|
+
case "ValidationException":
|
|
1238
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1239
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1240
|
+
default:
|
|
1241
|
+
const parsedBody = parsedOutput.body;
|
|
1242
|
+
return throwDefaultError({
|
|
1243
|
+
output,
|
|
1244
|
+
parsedBody,
|
|
1245
|
+
errorCode,
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
900
1249
|
const de_GetDevEnvironmentCommand = async (output, context) => {
|
|
901
1250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
1251
|
return de_GetDevEnvironmentCommandError(output, context);
|
|
@@ -1010,6 +1359,60 @@ const de_GetProjectCommandError = async (output, context) => {
|
|
|
1010
1359
|
});
|
|
1011
1360
|
}
|
|
1012
1361
|
};
|
|
1362
|
+
const de_GetSourceRepositoryCommand = async (output, context) => {
|
|
1363
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
+
return de_GetSourceRepositoryCommandError(output, context);
|
|
1365
|
+
}
|
|
1366
|
+
const contents = (0, smithy_client_1.map)({
|
|
1367
|
+
$metadata: deserializeMetadata(output),
|
|
1368
|
+
});
|
|
1369
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1370
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1371
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1372
|
+
description: smithy_client_1.expectString,
|
|
1373
|
+
lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1374
|
+
name: smithy_client_1.expectString,
|
|
1375
|
+
projectName: smithy_client_1.expectString,
|
|
1376
|
+
spaceName: smithy_client_1.expectString,
|
|
1377
|
+
});
|
|
1378
|
+
Object.assign(contents, doc);
|
|
1379
|
+
return contents;
|
|
1380
|
+
};
|
|
1381
|
+
exports.de_GetSourceRepositoryCommand = de_GetSourceRepositoryCommand;
|
|
1382
|
+
const de_GetSourceRepositoryCommandError = async (output, context) => {
|
|
1383
|
+
const parsedOutput = {
|
|
1384
|
+
...output,
|
|
1385
|
+
body: await parseErrorBody(output.body, context),
|
|
1386
|
+
};
|
|
1387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
+
switch (errorCode) {
|
|
1389
|
+
case "AccessDeniedException":
|
|
1390
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1391
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1392
|
+
case "ConflictException":
|
|
1393
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1394
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1395
|
+
case "ResourceNotFoundException":
|
|
1396
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1397
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1398
|
+
case "ServiceQuotaExceededException":
|
|
1399
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1400
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1401
|
+
case "ThrottlingException":
|
|
1402
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1403
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1404
|
+
case "ValidationException":
|
|
1405
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1406
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1407
|
+
default:
|
|
1408
|
+
const parsedBody = parsedOutput.body;
|
|
1409
|
+
return throwDefaultError({
|
|
1410
|
+
output,
|
|
1411
|
+
parsedBody,
|
|
1412
|
+
errorCode,
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1013
1416
|
const de_GetSourceRepositoryCloneUrlsCommand = async (output, context) => {
|
|
1014
1417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1015
1418
|
return de_GetSourceRepositoryCloneUrlsCommandError(output, context);
|
|
@@ -1879,6 +2282,109 @@ const de_UpdateDevEnvironmentCommandError = async (output, context) => {
|
|
|
1879
2282
|
});
|
|
1880
2283
|
}
|
|
1881
2284
|
};
|
|
2285
|
+
const de_UpdateProjectCommand = async (output, context) => {
|
|
2286
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
|
+
return de_UpdateProjectCommandError(output, context);
|
|
2288
|
+
}
|
|
2289
|
+
const contents = (0, smithy_client_1.map)({
|
|
2290
|
+
$metadata: deserializeMetadata(output),
|
|
2291
|
+
});
|
|
2292
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2293
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2294
|
+
description: smithy_client_1.expectString,
|
|
2295
|
+
displayName: smithy_client_1.expectString,
|
|
2296
|
+
name: smithy_client_1.expectString,
|
|
2297
|
+
spaceName: smithy_client_1.expectString,
|
|
2298
|
+
});
|
|
2299
|
+
Object.assign(contents, doc);
|
|
2300
|
+
return contents;
|
|
2301
|
+
};
|
|
2302
|
+
exports.de_UpdateProjectCommand = de_UpdateProjectCommand;
|
|
2303
|
+
const de_UpdateProjectCommandError = async (output, context) => {
|
|
2304
|
+
const parsedOutput = {
|
|
2305
|
+
...output,
|
|
2306
|
+
body: await parseErrorBody(output.body, context),
|
|
2307
|
+
};
|
|
2308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2309
|
+
switch (errorCode) {
|
|
2310
|
+
case "AccessDeniedException":
|
|
2311
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
2312
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2313
|
+
case "ConflictException":
|
|
2314
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
2315
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2316
|
+
case "ResourceNotFoundException":
|
|
2317
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
2318
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2319
|
+
case "ServiceQuotaExceededException":
|
|
2320
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
2321
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2322
|
+
case "ThrottlingException":
|
|
2323
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
2324
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2325
|
+
case "ValidationException":
|
|
2326
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
2327
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2328
|
+
default:
|
|
2329
|
+
const parsedBody = parsedOutput.body;
|
|
2330
|
+
return throwDefaultError({
|
|
2331
|
+
output,
|
|
2332
|
+
parsedBody,
|
|
2333
|
+
errorCode,
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
};
|
|
2337
|
+
const de_UpdateSpaceCommand = async (output, context) => {
|
|
2338
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2339
|
+
return de_UpdateSpaceCommandError(output, context);
|
|
2340
|
+
}
|
|
2341
|
+
const contents = (0, smithy_client_1.map)({
|
|
2342
|
+
$metadata: deserializeMetadata(output),
|
|
2343
|
+
});
|
|
2344
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2345
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2346
|
+
description: smithy_client_1.expectString,
|
|
2347
|
+
displayName: smithy_client_1.expectString,
|
|
2348
|
+
name: smithy_client_1.expectString,
|
|
2349
|
+
});
|
|
2350
|
+
Object.assign(contents, doc);
|
|
2351
|
+
return contents;
|
|
2352
|
+
};
|
|
2353
|
+
exports.de_UpdateSpaceCommand = de_UpdateSpaceCommand;
|
|
2354
|
+
const de_UpdateSpaceCommandError = async (output, context) => {
|
|
2355
|
+
const parsedOutput = {
|
|
2356
|
+
...output,
|
|
2357
|
+
body: await parseErrorBody(output.body, context),
|
|
2358
|
+
};
|
|
2359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
+
switch (errorCode) {
|
|
2361
|
+
case "AccessDeniedException":
|
|
2362
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
2363
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2364
|
+
case "ConflictException":
|
|
2365
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
2366
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2367
|
+
case "ResourceNotFoundException":
|
|
2368
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
2369
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2370
|
+
case "ServiceQuotaExceededException":
|
|
2371
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
2372
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2373
|
+
case "ThrottlingException":
|
|
2374
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
2375
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2376
|
+
case "ValidationException":
|
|
2377
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
2378
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2379
|
+
default:
|
|
2380
|
+
const parsedBody = parsedOutput.body;
|
|
2381
|
+
return throwDefaultError({
|
|
2382
|
+
output,
|
|
2383
|
+
parsedBody,
|
|
2384
|
+
errorCode,
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2387
|
+
};
|
|
1882
2388
|
const de_VerifySessionCommand = async (output, context) => {
|
|
1883
2389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1884
2390
|
return de_VerifySessionCommandError(output, context);
|
package/dist-es/CodeCatalyst.js
CHANGED
|
@@ -4,11 +4,16 @@ import { CreateAccessTokenCommand, } from "./commands/CreateAccessTokenCommand";
|
|
|
4
4
|
import { CreateDevEnvironmentCommand, } from "./commands/CreateDevEnvironmentCommand";
|
|
5
5
|
import { CreateProjectCommand, } from "./commands/CreateProjectCommand";
|
|
6
6
|
import { CreateSourceRepositoryBranchCommand, } from "./commands/CreateSourceRepositoryBranchCommand";
|
|
7
|
+
import { CreateSourceRepositoryCommand, } from "./commands/CreateSourceRepositoryCommand";
|
|
7
8
|
import { DeleteAccessTokenCommand, } from "./commands/DeleteAccessTokenCommand";
|
|
8
9
|
import { DeleteDevEnvironmentCommand, } from "./commands/DeleteDevEnvironmentCommand";
|
|
10
|
+
import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
|
|
11
|
+
import { DeleteSourceRepositoryCommand, } from "./commands/DeleteSourceRepositoryCommand";
|
|
12
|
+
import { DeleteSpaceCommand } from "./commands/DeleteSpaceCommand";
|
|
9
13
|
import { GetDevEnvironmentCommand, } from "./commands/GetDevEnvironmentCommand";
|
|
10
14
|
import { GetProjectCommand } from "./commands/GetProjectCommand";
|
|
11
15
|
import { GetSourceRepositoryCloneUrlsCommand, } from "./commands/GetSourceRepositoryCloneUrlsCommand";
|
|
16
|
+
import { GetSourceRepositoryCommand, } from "./commands/GetSourceRepositoryCommand";
|
|
12
17
|
import { GetSpaceCommand } from "./commands/GetSpaceCommand";
|
|
13
18
|
import { GetSubscriptionCommand, } from "./commands/GetSubscriptionCommand";
|
|
14
19
|
import { GetUserDetailsCommand, } from "./commands/GetUserDetailsCommand";
|
|
@@ -25,16 +30,23 @@ import { StartDevEnvironmentSessionCommand, } from "./commands/StartDevEnvironme
|
|
|
25
30
|
import { StopDevEnvironmentCommand, } from "./commands/StopDevEnvironmentCommand";
|
|
26
31
|
import { StopDevEnvironmentSessionCommand, } from "./commands/StopDevEnvironmentSessionCommand";
|
|
27
32
|
import { UpdateDevEnvironmentCommand, } from "./commands/UpdateDevEnvironmentCommand";
|
|
33
|
+
import { UpdateProjectCommand, } from "./commands/UpdateProjectCommand";
|
|
34
|
+
import { UpdateSpaceCommand } from "./commands/UpdateSpaceCommand";
|
|
28
35
|
import { VerifySessionCommand, } from "./commands/VerifySessionCommand";
|
|
29
36
|
const commands = {
|
|
30
37
|
CreateAccessTokenCommand,
|
|
31
38
|
CreateDevEnvironmentCommand,
|
|
32
39
|
CreateProjectCommand,
|
|
40
|
+
CreateSourceRepositoryCommand,
|
|
33
41
|
CreateSourceRepositoryBranchCommand,
|
|
34
42
|
DeleteAccessTokenCommand,
|
|
35
43
|
DeleteDevEnvironmentCommand,
|
|
44
|
+
DeleteProjectCommand,
|
|
45
|
+
DeleteSourceRepositoryCommand,
|
|
46
|
+
DeleteSpaceCommand,
|
|
36
47
|
GetDevEnvironmentCommand,
|
|
37
48
|
GetProjectCommand,
|
|
49
|
+
GetSourceRepositoryCommand,
|
|
38
50
|
GetSourceRepositoryCloneUrlsCommand,
|
|
39
51
|
GetSpaceCommand,
|
|
40
52
|
GetSubscriptionCommand,
|
|
@@ -52,6 +64,8 @@ const commands = {
|
|
|
52
64
|
StopDevEnvironmentCommand,
|
|
53
65
|
StopDevEnvironmentSessionCommand,
|
|
54
66
|
UpdateDevEnvironmentCommand,
|
|
67
|
+
UpdateProjectCommand,
|
|
68
|
+
UpdateSpaceCommand,
|
|
55
69
|
VerifySessionCommand,
|
|
56
70
|
};
|
|
57
71
|
export class CodeCatalyst extends CodeCatalystClient {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_CreateSourceRepositoryCommand, se_CreateSourceRepositoryCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateSourceRepositoryCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateSourceRepositoryCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "CodeCatalystClient";
|
|
24
|
+
const commandName = "CreateSourceRepositoryCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_CreateSourceRepositoryCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_CreateSourceRepositoryCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|