@aws-sdk/client-codecatalyst 3.927.0 → 3.929.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 +1472 -1749
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/CodeCatalystClient.js +2 -0
- package/dist-es/commands/CreateAccessTokenCommand.js +3 -10
- package/dist-es/commands/CreateDevEnvironmentCommand.js +3 -9
- package/dist-es/commands/CreateProjectCommand.js +3 -9
- package/dist-es/commands/CreateSourceRepositoryBranchCommand.js +3 -9
- package/dist-es/commands/CreateSourceRepositoryCommand.js +3 -9
- package/dist-es/commands/DeleteAccessTokenCommand.js +3 -9
- package/dist-es/commands/DeleteDevEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeleteProjectCommand.js +3 -9
- package/dist-es/commands/DeleteSourceRepositoryCommand.js +3 -9
- package/dist-es/commands/DeleteSpaceCommand.js +3 -9
- package/dist-es/commands/GetDevEnvironmentCommand.js +3 -9
- package/dist-es/commands/GetProjectCommand.js +3 -9
- package/dist-es/commands/GetSourceRepositoryCloneUrlsCommand.js +3 -9
- package/dist-es/commands/GetSourceRepositoryCommand.js +3 -9
- package/dist-es/commands/GetSpaceCommand.js +3 -9
- package/dist-es/commands/GetSubscriptionCommand.js +3 -9
- package/dist-es/commands/GetUserDetailsCommand.js +3 -9
- package/dist-es/commands/GetWorkflowCommand.js +3 -9
- package/dist-es/commands/GetWorkflowRunCommand.js +3 -9
- package/dist-es/commands/ListAccessTokensCommand.js +3 -9
- package/dist-es/commands/ListDevEnvironmentSessionsCommand.js +3 -9
- package/dist-es/commands/ListDevEnvironmentsCommand.js +3 -9
- package/dist-es/commands/ListEventLogsCommand.js +3 -9
- package/dist-es/commands/ListProjectsCommand.js +3 -9
- package/dist-es/commands/ListSourceRepositoriesCommand.js +3 -9
- package/dist-es/commands/ListSourceRepositoryBranchesCommand.js +3 -9
- package/dist-es/commands/ListSpacesCommand.js +3 -9
- package/dist-es/commands/ListWorkflowRunsCommand.js +3 -9
- package/dist-es/commands/ListWorkflowsCommand.js +3 -9
- package/dist-es/commands/StartDevEnvironmentCommand.js +3 -9
- package/dist-es/commands/StartDevEnvironmentSessionCommand.js +3 -10
- package/dist-es/commands/StartWorkflowRunCommand.js +3 -9
- package/dist-es/commands/StopDevEnvironmentCommand.js +3 -9
- package/dist-es/commands/StopDevEnvironmentSessionCommand.js +3 -9
- package/dist-es/commands/UpdateDevEnvironmentCommand.js +3 -9
- package/dist-es/commands/UpdateProjectCommand.js +3 -9
- package/dist-es/commands/UpdateSpaceCommand.js +3 -9
- package/dist-es/commands/VerifySessionCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -14
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1383 -0
- package/dist-types/CodeCatalystClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -12
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +175 -0
- package/dist-types/ts3.4/CodeCatalystClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -9
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +181 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -1455
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -344
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -461
|
@@ -1,1455 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { CodeCatalystServiceException as __BaseException } from "../models/CodeCatalystServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateAccessTokenCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/v1/accessTokens");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
expiresTime: (_) => __serializeDateTime(_),
|
|
16
|
-
name: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("PUT").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CreateDevEnvironmentCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments");
|
|
27
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
28
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
alias: [],
|
|
32
|
-
clientToken: [],
|
|
33
|
-
ides: (_) => _json(_),
|
|
34
|
-
inactivityTimeoutMinutes: [],
|
|
35
|
-
instanceType: [],
|
|
36
|
-
persistentStorage: (_) => _json(_),
|
|
37
|
-
repositories: (_) => _json(_),
|
|
38
|
-
vpcConnectionName: [],
|
|
39
|
-
}));
|
|
40
|
-
b.m("PUT").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
export const se_CreateProjectCommand = async (input, context) => {
|
|
44
|
-
const b = rb(input, context);
|
|
45
|
-
const headers = {
|
|
46
|
-
"content-type": "application/json",
|
|
47
|
-
};
|
|
48
|
-
b.bp("/v1/spaces/{spaceName}/projects");
|
|
49
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(take(input, {
|
|
52
|
-
description: [],
|
|
53
|
-
displayName: [],
|
|
54
|
-
}));
|
|
55
|
-
b.m("PUT").h(headers).b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
export const se_CreateSourceRepositoryCommand = async (input, context) => {
|
|
59
|
-
const b = rb(input, context);
|
|
60
|
-
const headers = {
|
|
61
|
-
"content-type": "application/json",
|
|
62
|
-
};
|
|
63
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
64
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
65
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
66
|
-
b.p("name", () => input.name, "{name}", false);
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify(take(input, {
|
|
69
|
-
description: [],
|
|
70
|
-
}));
|
|
71
|
-
b.m("PUT").h(headers).b(body);
|
|
72
|
-
return b.build();
|
|
73
|
-
};
|
|
74
|
-
export const se_CreateSourceRepositoryBranchCommand = async (input, context) => {
|
|
75
|
-
const b = rb(input, context);
|
|
76
|
-
const headers = {
|
|
77
|
-
"content-type": "application/json",
|
|
78
|
-
};
|
|
79
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}");
|
|
80
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
81
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
82
|
-
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
83
|
-
b.p("name", () => input.name, "{name}", false);
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(take(input, {
|
|
86
|
-
headCommitId: [],
|
|
87
|
-
}));
|
|
88
|
-
b.m("PUT").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteAccessTokenCommand = async (input, context) => {
|
|
92
|
-
const b = rb(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/v1/accessTokens/{id}");
|
|
95
|
-
b.p("id", () => input.id, "{id}", false);
|
|
96
|
-
let body;
|
|
97
|
-
b.m("DELETE").h(headers).b(body);
|
|
98
|
-
return b.build();
|
|
99
|
-
};
|
|
100
|
-
export const se_DeleteDevEnvironmentCommand = async (input, context) => {
|
|
101
|
-
const b = rb(input, context);
|
|
102
|
-
const headers = {};
|
|
103
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
104
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
105
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
106
|
-
b.p("id", () => input.id, "{id}", false);
|
|
107
|
-
let body;
|
|
108
|
-
b.m("DELETE").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
export const se_DeleteProjectCommand = async (input, context) => {
|
|
112
|
-
const b = rb(input, context);
|
|
113
|
-
const headers = {};
|
|
114
|
-
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
115
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
116
|
-
b.p("name", () => input.name, "{name}", false);
|
|
117
|
-
let body;
|
|
118
|
-
b.m("DELETE").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
export const se_DeleteSourceRepositoryCommand = async (input, context) => {
|
|
122
|
-
const b = rb(input, context);
|
|
123
|
-
const headers = {};
|
|
124
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
125
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
126
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
127
|
-
b.p("name", () => input.name, "{name}", false);
|
|
128
|
-
let body;
|
|
129
|
-
b.m("DELETE").h(headers).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
export const se_DeleteSpaceCommand = async (input, context) => {
|
|
133
|
-
const b = rb(input, context);
|
|
134
|
-
const headers = {};
|
|
135
|
-
b.bp("/v1/spaces/{name}");
|
|
136
|
-
b.p("name", () => input.name, "{name}", false);
|
|
137
|
-
let body;
|
|
138
|
-
b.m("DELETE").h(headers).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
export const se_GetDevEnvironmentCommand = async (input, context) => {
|
|
142
|
-
const b = rb(input, context);
|
|
143
|
-
const headers = {};
|
|
144
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
145
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
146
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
147
|
-
b.p("id", () => input.id, "{id}", false);
|
|
148
|
-
let body;
|
|
149
|
-
b.m("GET").h(headers).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
export const se_GetProjectCommand = async (input, context) => {
|
|
153
|
-
const b = rb(input, context);
|
|
154
|
-
const headers = {};
|
|
155
|
-
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
156
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
157
|
-
b.p("name", () => input.name, "{name}", false);
|
|
158
|
-
let body;
|
|
159
|
-
b.m("GET").h(headers).b(body);
|
|
160
|
-
return b.build();
|
|
161
|
-
};
|
|
162
|
-
export const se_GetSourceRepositoryCommand = async (input, context) => {
|
|
163
|
-
const b = rb(input, context);
|
|
164
|
-
const headers = {};
|
|
165
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
166
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
167
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
168
|
-
b.p("name", () => input.name, "{name}", false);
|
|
169
|
-
let body;
|
|
170
|
-
b.m("GET").h(headers).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
export const se_GetSourceRepositoryCloneUrlsCommand = async (input, context) => {
|
|
174
|
-
const b = rb(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls");
|
|
177
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
178
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
179
|
-
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
180
|
-
let body;
|
|
181
|
-
b.m("GET").h(headers).b(body);
|
|
182
|
-
return b.build();
|
|
183
|
-
};
|
|
184
|
-
export const se_GetSpaceCommand = async (input, context) => {
|
|
185
|
-
const b = rb(input, context);
|
|
186
|
-
const headers = {};
|
|
187
|
-
b.bp("/v1/spaces/{name}");
|
|
188
|
-
b.p("name", () => input.name, "{name}", false);
|
|
189
|
-
let body;
|
|
190
|
-
b.m("GET").h(headers).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
export const se_GetSubscriptionCommand = async (input, context) => {
|
|
194
|
-
const b = rb(input, context);
|
|
195
|
-
const headers = {};
|
|
196
|
-
b.bp("/v1/spaces/{spaceName}/subscription");
|
|
197
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
198
|
-
let body;
|
|
199
|
-
b.m("GET").h(headers).b(body);
|
|
200
|
-
return b.build();
|
|
201
|
-
};
|
|
202
|
-
export const se_GetUserDetailsCommand = async (input, context) => {
|
|
203
|
-
const b = rb(input, context);
|
|
204
|
-
const headers = {};
|
|
205
|
-
b.bp("/userDetails");
|
|
206
|
-
const query = map({
|
|
207
|
-
[_i]: [, input[_i]],
|
|
208
|
-
[_uN]: [, input[_uN]],
|
|
209
|
-
});
|
|
210
|
-
let body;
|
|
211
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
export const se_GetWorkflowCommand = async (input, context) => {
|
|
215
|
-
const b = rb(input, context);
|
|
216
|
-
const headers = {};
|
|
217
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}");
|
|
218
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
219
|
-
b.p("id", () => input.id, "{id}", false);
|
|
220
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
221
|
-
let body;
|
|
222
|
-
b.m("GET").h(headers).b(body);
|
|
223
|
-
return b.build();
|
|
224
|
-
};
|
|
225
|
-
export const se_GetWorkflowRunCommand = async (input, context) => {
|
|
226
|
-
const b = rb(input, context);
|
|
227
|
-
const headers = {};
|
|
228
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}");
|
|
229
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
230
|
-
b.p("id", () => input.id, "{id}", false);
|
|
231
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
232
|
-
let body;
|
|
233
|
-
b.m("GET").h(headers).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
export const se_ListAccessTokensCommand = async (input, context) => {
|
|
237
|
-
const b = rb(input, context);
|
|
238
|
-
const headers = {
|
|
239
|
-
"content-type": "application/json",
|
|
240
|
-
};
|
|
241
|
-
b.bp("/v1/accessTokens");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(take(input, {
|
|
244
|
-
maxResults: [],
|
|
245
|
-
nextToken: [],
|
|
246
|
-
}));
|
|
247
|
-
b.m("POST").h(headers).b(body);
|
|
248
|
-
return b.build();
|
|
249
|
-
};
|
|
250
|
-
export const se_ListDevEnvironmentsCommand = async (input, context) => {
|
|
251
|
-
const b = rb(input, context);
|
|
252
|
-
const headers = {
|
|
253
|
-
"content-type": "application/json",
|
|
254
|
-
};
|
|
255
|
-
b.bp("/v1/spaces/{spaceName}/devEnvironments");
|
|
256
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify(take(input, {
|
|
259
|
-
filters: (_) => _json(_),
|
|
260
|
-
maxResults: [],
|
|
261
|
-
nextToken: [],
|
|
262
|
-
projectName: [],
|
|
263
|
-
}));
|
|
264
|
-
b.m("POST").h(headers).b(body);
|
|
265
|
-
return b.build();
|
|
266
|
-
};
|
|
267
|
-
export const se_ListDevEnvironmentSessionsCommand = async (input, context) => {
|
|
268
|
-
const b = rb(input, context);
|
|
269
|
-
const headers = {
|
|
270
|
-
"content-type": "application/json",
|
|
271
|
-
};
|
|
272
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions");
|
|
273
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
274
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
275
|
-
b.p("devEnvironmentId", () => input.devEnvironmentId, "{devEnvironmentId}", false);
|
|
276
|
-
let body;
|
|
277
|
-
body = JSON.stringify(take(input, {
|
|
278
|
-
maxResults: [],
|
|
279
|
-
nextToken: [],
|
|
280
|
-
}));
|
|
281
|
-
b.m("POST").h(headers).b(body);
|
|
282
|
-
return b.build();
|
|
283
|
-
};
|
|
284
|
-
export const se_ListEventLogsCommand = async (input, context) => {
|
|
285
|
-
const b = rb(input, context);
|
|
286
|
-
const headers = {
|
|
287
|
-
"content-type": "application/json",
|
|
288
|
-
};
|
|
289
|
-
b.bp("/v1/spaces/{spaceName}/eventLogs");
|
|
290
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify(take(input, {
|
|
293
|
-
endTime: (_) => __serializeDateTime(_),
|
|
294
|
-
eventName: [],
|
|
295
|
-
maxResults: [],
|
|
296
|
-
nextToken: [],
|
|
297
|
-
startTime: (_) => __serializeDateTime(_),
|
|
298
|
-
}));
|
|
299
|
-
b.m("POST").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
export const se_ListProjectsCommand = async (input, context) => {
|
|
303
|
-
const b = rb(input, context);
|
|
304
|
-
const headers = {
|
|
305
|
-
"content-type": "application/json",
|
|
306
|
-
};
|
|
307
|
-
b.bp("/v1/spaces/{spaceName}/projects");
|
|
308
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(take(input, {
|
|
311
|
-
filters: (_) => _json(_),
|
|
312
|
-
maxResults: [],
|
|
313
|
-
nextToken: [],
|
|
314
|
-
}));
|
|
315
|
-
b.m("POST").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
export const se_ListSourceRepositoriesCommand = async (input, context) => {
|
|
319
|
-
const b = rb(input, context);
|
|
320
|
-
const headers = {
|
|
321
|
-
"content-type": "application/json",
|
|
322
|
-
};
|
|
323
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories");
|
|
324
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
325
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify(take(input, {
|
|
328
|
-
maxResults: [],
|
|
329
|
-
nextToken: [],
|
|
330
|
-
}));
|
|
331
|
-
b.m("POST").h(headers).b(body);
|
|
332
|
-
return b.build();
|
|
333
|
-
};
|
|
334
|
-
export const se_ListSourceRepositoryBranchesCommand = async (input, context) => {
|
|
335
|
-
const b = rb(input, context);
|
|
336
|
-
const headers = {
|
|
337
|
-
"content-type": "application/json",
|
|
338
|
-
};
|
|
339
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches");
|
|
340
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
341
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
342
|
-
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
343
|
-
let body;
|
|
344
|
-
body = JSON.stringify(take(input, {
|
|
345
|
-
maxResults: [],
|
|
346
|
-
nextToken: [],
|
|
347
|
-
}));
|
|
348
|
-
b.m("POST").h(headers).b(body);
|
|
349
|
-
return b.build();
|
|
350
|
-
};
|
|
351
|
-
export const se_ListSpacesCommand = async (input, context) => {
|
|
352
|
-
const b = rb(input, context);
|
|
353
|
-
const headers = {
|
|
354
|
-
"content-type": "application/json",
|
|
355
|
-
};
|
|
356
|
-
b.bp("/v1/spaces");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify(take(input, {
|
|
359
|
-
nextToken: [],
|
|
360
|
-
}));
|
|
361
|
-
b.m("POST").h(headers).b(body);
|
|
362
|
-
return b.build();
|
|
363
|
-
};
|
|
364
|
-
export const se_ListWorkflowRunsCommand = async (input, context) => {
|
|
365
|
-
const b = rb(input, context);
|
|
366
|
-
const headers = {
|
|
367
|
-
"content-type": "application/json",
|
|
368
|
-
};
|
|
369
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns");
|
|
370
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
371
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
372
|
-
const query = map({
|
|
373
|
-
[_wI]: [, input[_wI]],
|
|
374
|
-
[_nT]: [, input[_nT]],
|
|
375
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
376
|
-
});
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify(take(input, {
|
|
379
|
-
sortBy: (_) => _json(_),
|
|
380
|
-
}));
|
|
381
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
382
|
-
return b.build();
|
|
383
|
-
};
|
|
384
|
-
export const se_ListWorkflowsCommand = async (input, context) => {
|
|
385
|
-
const b = rb(input, context);
|
|
386
|
-
const headers = {
|
|
387
|
-
"content-type": "application/json",
|
|
388
|
-
};
|
|
389
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows");
|
|
390
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
391
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
392
|
-
const query = map({
|
|
393
|
-
[_nT]: [, input[_nT]],
|
|
394
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
395
|
-
});
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify(take(input, {
|
|
398
|
-
sortBy: (_) => _json(_),
|
|
399
|
-
}));
|
|
400
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
401
|
-
return b.build();
|
|
402
|
-
};
|
|
403
|
-
export const se_StartDevEnvironmentCommand = async (input, context) => {
|
|
404
|
-
const b = rb(input, context);
|
|
405
|
-
const headers = {
|
|
406
|
-
"content-type": "application/json",
|
|
407
|
-
};
|
|
408
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start");
|
|
409
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
410
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
411
|
-
b.p("id", () => input.id, "{id}", false);
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify(take(input, {
|
|
414
|
-
ides: (_) => _json(_),
|
|
415
|
-
inactivityTimeoutMinutes: [],
|
|
416
|
-
instanceType: [],
|
|
417
|
-
}));
|
|
418
|
-
b.m("PUT").h(headers).b(body);
|
|
419
|
-
return b.build();
|
|
420
|
-
};
|
|
421
|
-
export const se_StartDevEnvironmentSessionCommand = async (input, context) => {
|
|
422
|
-
const b = rb(input, context);
|
|
423
|
-
const headers = {
|
|
424
|
-
"content-type": "application/json",
|
|
425
|
-
};
|
|
426
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session");
|
|
427
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
428
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
429
|
-
b.p("id", () => input.id, "{id}", false);
|
|
430
|
-
let body;
|
|
431
|
-
body = JSON.stringify(take(input, {
|
|
432
|
-
sessionConfiguration: (_) => _json(_),
|
|
433
|
-
}));
|
|
434
|
-
b.m("PUT").h(headers).b(body);
|
|
435
|
-
return b.build();
|
|
436
|
-
};
|
|
437
|
-
export const se_StartWorkflowRunCommand = async (input, context) => {
|
|
438
|
-
const b = rb(input, context);
|
|
439
|
-
const headers = {
|
|
440
|
-
"content-type": "application/json",
|
|
441
|
-
};
|
|
442
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns");
|
|
443
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
444
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
445
|
-
const query = map({
|
|
446
|
-
[_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
|
|
447
|
-
});
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify(take(input, {
|
|
450
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
451
|
-
}));
|
|
452
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
453
|
-
return b.build();
|
|
454
|
-
};
|
|
455
|
-
export const se_StopDevEnvironmentCommand = async (input, context) => {
|
|
456
|
-
const b = rb(input, context);
|
|
457
|
-
const headers = {};
|
|
458
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop");
|
|
459
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
460
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
461
|
-
b.p("id", () => input.id, "{id}", false);
|
|
462
|
-
let body;
|
|
463
|
-
b.m("PUT").h(headers).b(body);
|
|
464
|
-
return b.build();
|
|
465
|
-
};
|
|
466
|
-
export const se_StopDevEnvironmentSessionCommand = async (input, context) => {
|
|
467
|
-
const b = rb(input, context);
|
|
468
|
-
const headers = {};
|
|
469
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}");
|
|
470
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
471
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
472
|
-
b.p("id", () => input.id, "{id}", false);
|
|
473
|
-
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
474
|
-
let body;
|
|
475
|
-
b.m("DELETE").h(headers).b(body);
|
|
476
|
-
return b.build();
|
|
477
|
-
};
|
|
478
|
-
export const se_UpdateDevEnvironmentCommand = async (input, context) => {
|
|
479
|
-
const b = rb(input, context);
|
|
480
|
-
const headers = {
|
|
481
|
-
"content-type": "application/json",
|
|
482
|
-
};
|
|
483
|
-
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
484
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
485
|
-
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
486
|
-
b.p("id", () => input.id, "{id}", false);
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify(take(input, {
|
|
489
|
-
alias: [],
|
|
490
|
-
clientToken: [],
|
|
491
|
-
ides: (_) => _json(_),
|
|
492
|
-
inactivityTimeoutMinutes: [],
|
|
493
|
-
instanceType: [],
|
|
494
|
-
}));
|
|
495
|
-
b.m("PATCH").h(headers).b(body);
|
|
496
|
-
return b.build();
|
|
497
|
-
};
|
|
498
|
-
export const se_UpdateProjectCommand = async (input, context) => {
|
|
499
|
-
const b = rb(input, context);
|
|
500
|
-
const headers = {
|
|
501
|
-
"content-type": "application/json",
|
|
502
|
-
};
|
|
503
|
-
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
504
|
-
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
505
|
-
b.p("name", () => input.name, "{name}", false);
|
|
506
|
-
let body;
|
|
507
|
-
body = JSON.stringify(take(input, {
|
|
508
|
-
description: [],
|
|
509
|
-
}));
|
|
510
|
-
b.m("PATCH").h(headers).b(body);
|
|
511
|
-
return b.build();
|
|
512
|
-
};
|
|
513
|
-
export const se_UpdateSpaceCommand = async (input, context) => {
|
|
514
|
-
const b = rb(input, context);
|
|
515
|
-
const headers = {
|
|
516
|
-
"content-type": "application/json",
|
|
517
|
-
};
|
|
518
|
-
b.bp("/v1/spaces/{name}");
|
|
519
|
-
b.p("name", () => input.name, "{name}", false);
|
|
520
|
-
let body;
|
|
521
|
-
body = JSON.stringify(take(input, {
|
|
522
|
-
description: [],
|
|
523
|
-
}));
|
|
524
|
-
b.m("PATCH").h(headers).b(body);
|
|
525
|
-
return b.build();
|
|
526
|
-
};
|
|
527
|
-
export const se_VerifySessionCommand = async (input, context) => {
|
|
528
|
-
const b = rb(input, context);
|
|
529
|
-
const headers = {};
|
|
530
|
-
b.bp("/session");
|
|
531
|
-
let body;
|
|
532
|
-
b.m("GET").h(headers).b(body);
|
|
533
|
-
return b.build();
|
|
534
|
-
};
|
|
535
|
-
export const de_CreateAccessTokenCommand = async (output, context) => {
|
|
536
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
537
|
-
return de_CommandError(output, context);
|
|
538
|
-
}
|
|
539
|
-
const contents = map({
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
});
|
|
542
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
543
|
-
const doc = take(data, {
|
|
544
|
-
accessTokenId: __expectString,
|
|
545
|
-
expiresTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
546
|
-
name: __expectString,
|
|
547
|
-
secret: __expectString,
|
|
548
|
-
});
|
|
549
|
-
Object.assign(contents, doc);
|
|
550
|
-
return contents;
|
|
551
|
-
};
|
|
552
|
-
export const de_CreateDevEnvironmentCommand = async (output, context) => {
|
|
553
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const contents = map({
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
});
|
|
559
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
560
|
-
const doc = take(data, {
|
|
561
|
-
id: __expectString,
|
|
562
|
-
projectName: __expectString,
|
|
563
|
-
spaceName: __expectString,
|
|
564
|
-
vpcConnectionName: __expectString,
|
|
565
|
-
});
|
|
566
|
-
Object.assign(contents, doc);
|
|
567
|
-
return contents;
|
|
568
|
-
};
|
|
569
|
-
export const de_CreateProjectCommand = async (output, context) => {
|
|
570
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
571
|
-
return de_CommandError(output, context);
|
|
572
|
-
}
|
|
573
|
-
const contents = map({
|
|
574
|
-
$metadata: deserializeMetadata(output),
|
|
575
|
-
});
|
|
576
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
577
|
-
const doc = take(data, {
|
|
578
|
-
description: __expectString,
|
|
579
|
-
displayName: __expectString,
|
|
580
|
-
name: __expectString,
|
|
581
|
-
spaceName: __expectString,
|
|
582
|
-
});
|
|
583
|
-
Object.assign(contents, doc);
|
|
584
|
-
return contents;
|
|
585
|
-
};
|
|
586
|
-
export const de_CreateSourceRepositoryCommand = async (output, context) => {
|
|
587
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const contents = map({
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
});
|
|
593
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
594
|
-
const doc = take(data, {
|
|
595
|
-
description: __expectString,
|
|
596
|
-
name: __expectString,
|
|
597
|
-
projectName: __expectString,
|
|
598
|
-
spaceName: __expectString,
|
|
599
|
-
});
|
|
600
|
-
Object.assign(contents, doc);
|
|
601
|
-
return contents;
|
|
602
|
-
};
|
|
603
|
-
export const de_CreateSourceRepositoryBranchCommand = async (output, context) => {
|
|
604
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
605
|
-
return de_CommandError(output, context);
|
|
606
|
-
}
|
|
607
|
-
const contents = map({
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
});
|
|
610
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
611
|
-
const doc = take(data, {
|
|
612
|
-
headCommitId: __expectString,
|
|
613
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
614
|
-
name: __expectString,
|
|
615
|
-
ref: __expectString,
|
|
616
|
-
});
|
|
617
|
-
Object.assign(contents, doc);
|
|
618
|
-
return contents;
|
|
619
|
-
};
|
|
620
|
-
export const de_DeleteAccessTokenCommand = async (output, context) => {
|
|
621
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return de_CommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const contents = map({
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
});
|
|
627
|
-
await collectBody(output.body, context);
|
|
628
|
-
return contents;
|
|
629
|
-
};
|
|
630
|
-
export const de_DeleteDevEnvironmentCommand = async (output, context) => {
|
|
631
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return de_CommandError(output, context);
|
|
633
|
-
}
|
|
634
|
-
const contents = map({
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
});
|
|
637
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
638
|
-
const doc = take(data, {
|
|
639
|
-
id: __expectString,
|
|
640
|
-
projectName: __expectString,
|
|
641
|
-
spaceName: __expectString,
|
|
642
|
-
});
|
|
643
|
-
Object.assign(contents, doc);
|
|
644
|
-
return contents;
|
|
645
|
-
};
|
|
646
|
-
export const de_DeleteProjectCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
const contents = map({
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
});
|
|
653
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
654
|
-
const doc = take(data, {
|
|
655
|
-
displayName: __expectString,
|
|
656
|
-
name: __expectString,
|
|
657
|
-
spaceName: __expectString,
|
|
658
|
-
});
|
|
659
|
-
Object.assign(contents, doc);
|
|
660
|
-
return contents;
|
|
661
|
-
};
|
|
662
|
-
export const de_DeleteSourceRepositoryCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
-
return de_CommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const contents = map({
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
});
|
|
669
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
670
|
-
const doc = take(data, {
|
|
671
|
-
name: __expectString,
|
|
672
|
-
projectName: __expectString,
|
|
673
|
-
spaceName: __expectString,
|
|
674
|
-
});
|
|
675
|
-
Object.assign(contents, doc);
|
|
676
|
-
return contents;
|
|
677
|
-
};
|
|
678
|
-
export const de_DeleteSpaceCommand = async (output, context) => {
|
|
679
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
-
return de_CommandError(output, context);
|
|
681
|
-
}
|
|
682
|
-
const contents = map({
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
});
|
|
685
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
686
|
-
const doc = take(data, {
|
|
687
|
-
displayName: __expectString,
|
|
688
|
-
name: __expectString,
|
|
689
|
-
});
|
|
690
|
-
Object.assign(contents, doc);
|
|
691
|
-
return contents;
|
|
692
|
-
};
|
|
693
|
-
export const de_GetDevEnvironmentCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return de_CommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const contents = map({
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
});
|
|
700
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
701
|
-
const doc = take(data, {
|
|
702
|
-
alias: __expectString,
|
|
703
|
-
creatorId: __expectString,
|
|
704
|
-
id: __expectString,
|
|
705
|
-
ides: _json,
|
|
706
|
-
inactivityTimeoutMinutes: __expectInt32,
|
|
707
|
-
instanceType: __expectString,
|
|
708
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
709
|
-
persistentStorage: _json,
|
|
710
|
-
projectName: __expectString,
|
|
711
|
-
repositories: _json,
|
|
712
|
-
spaceName: __expectString,
|
|
713
|
-
status: __expectString,
|
|
714
|
-
statusReason: __expectString,
|
|
715
|
-
vpcConnectionName: __expectString,
|
|
716
|
-
});
|
|
717
|
-
Object.assign(contents, doc);
|
|
718
|
-
return contents;
|
|
719
|
-
};
|
|
720
|
-
export const de_GetProjectCommand = async (output, context) => {
|
|
721
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
-
return de_CommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const contents = map({
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
});
|
|
727
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
728
|
-
const doc = take(data, {
|
|
729
|
-
description: __expectString,
|
|
730
|
-
displayName: __expectString,
|
|
731
|
-
name: __expectString,
|
|
732
|
-
spaceName: __expectString,
|
|
733
|
-
});
|
|
734
|
-
Object.assign(contents, doc);
|
|
735
|
-
return contents;
|
|
736
|
-
};
|
|
737
|
-
export const de_GetSourceRepositoryCommand = async (output, context) => {
|
|
738
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
|
-
return de_CommandError(output, context);
|
|
740
|
-
}
|
|
741
|
-
const contents = map({
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
});
|
|
744
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
745
|
-
const doc = take(data, {
|
|
746
|
-
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
747
|
-
description: __expectString,
|
|
748
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
749
|
-
name: __expectString,
|
|
750
|
-
projectName: __expectString,
|
|
751
|
-
spaceName: __expectString,
|
|
752
|
-
});
|
|
753
|
-
Object.assign(contents, doc);
|
|
754
|
-
return contents;
|
|
755
|
-
};
|
|
756
|
-
export const de_GetSourceRepositoryCloneUrlsCommand = async (output, context) => {
|
|
757
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
-
return de_CommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const contents = map({
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
});
|
|
763
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
764
|
-
const doc = take(data, {
|
|
765
|
-
https: __expectString,
|
|
766
|
-
});
|
|
767
|
-
Object.assign(contents, doc);
|
|
768
|
-
return contents;
|
|
769
|
-
};
|
|
770
|
-
export const de_GetSpaceCommand = async (output, context) => {
|
|
771
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
-
return de_CommandError(output, context);
|
|
773
|
-
}
|
|
774
|
-
const contents = map({
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
});
|
|
777
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
778
|
-
const doc = take(data, {
|
|
779
|
-
description: __expectString,
|
|
780
|
-
displayName: __expectString,
|
|
781
|
-
name: __expectString,
|
|
782
|
-
regionName: __expectString,
|
|
783
|
-
});
|
|
784
|
-
Object.assign(contents, doc);
|
|
785
|
-
return contents;
|
|
786
|
-
};
|
|
787
|
-
export const de_GetSubscriptionCommand = async (output, context) => {
|
|
788
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
-
return de_CommandError(output, context);
|
|
790
|
-
}
|
|
791
|
-
const contents = map({
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
});
|
|
794
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
795
|
-
const doc = take(data, {
|
|
796
|
-
awsAccountName: __expectString,
|
|
797
|
-
pendingSubscriptionStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
798
|
-
pendingSubscriptionType: __expectString,
|
|
799
|
-
subscriptionType: __expectString,
|
|
800
|
-
});
|
|
801
|
-
Object.assign(contents, doc);
|
|
802
|
-
return contents;
|
|
803
|
-
};
|
|
804
|
-
export const de_GetUserDetailsCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const contents = map({
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
});
|
|
811
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
812
|
-
const doc = take(data, {
|
|
813
|
-
displayName: __expectString,
|
|
814
|
-
primaryEmail: _json,
|
|
815
|
-
userId: __expectString,
|
|
816
|
-
userName: __expectString,
|
|
817
|
-
version: __expectString,
|
|
818
|
-
});
|
|
819
|
-
Object.assign(contents, doc);
|
|
820
|
-
return contents;
|
|
821
|
-
};
|
|
822
|
-
export const de_GetWorkflowCommand = async (output, context) => {
|
|
823
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return de_CommandError(output, context);
|
|
825
|
-
}
|
|
826
|
-
const contents = map({
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
});
|
|
829
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
830
|
-
const doc = take(data, {
|
|
831
|
-
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
832
|
-
definition: _json,
|
|
833
|
-
id: __expectString,
|
|
834
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
835
|
-
name: __expectString,
|
|
836
|
-
projectName: __expectString,
|
|
837
|
-
runMode: __expectString,
|
|
838
|
-
sourceBranchName: __expectString,
|
|
839
|
-
sourceRepositoryName: __expectString,
|
|
840
|
-
spaceName: __expectString,
|
|
841
|
-
status: __expectString,
|
|
842
|
-
});
|
|
843
|
-
Object.assign(contents, doc);
|
|
844
|
-
return contents;
|
|
845
|
-
};
|
|
846
|
-
export const de_GetWorkflowRunCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
-
return de_CommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const contents = map({
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
});
|
|
853
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
854
|
-
const doc = take(data, {
|
|
855
|
-
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
856
|
-
id: __expectString,
|
|
857
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
858
|
-
projectName: __expectString,
|
|
859
|
-
spaceName: __expectString,
|
|
860
|
-
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
861
|
-
status: __expectString,
|
|
862
|
-
statusReasons: _json,
|
|
863
|
-
workflowId: __expectString,
|
|
864
|
-
});
|
|
865
|
-
Object.assign(contents, doc);
|
|
866
|
-
return contents;
|
|
867
|
-
};
|
|
868
|
-
export const de_ListAccessTokensCommand = async (output, context) => {
|
|
869
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
870
|
-
return de_CommandError(output, context);
|
|
871
|
-
}
|
|
872
|
-
const contents = map({
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
});
|
|
875
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
876
|
-
const doc = take(data, {
|
|
877
|
-
items: (_) => de_AccessTokenSummaries(_, context),
|
|
878
|
-
nextToken: __expectString,
|
|
879
|
-
});
|
|
880
|
-
Object.assign(contents, doc);
|
|
881
|
-
return contents;
|
|
882
|
-
};
|
|
883
|
-
export const de_ListDevEnvironmentsCommand = async (output, context) => {
|
|
884
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
|
-
return de_CommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
const contents = map({
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
});
|
|
890
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
891
|
-
const doc = take(data, {
|
|
892
|
-
items: (_) => de_DevEnvironmentSummaryList(_, context),
|
|
893
|
-
nextToken: __expectString,
|
|
894
|
-
});
|
|
895
|
-
Object.assign(contents, doc);
|
|
896
|
-
return contents;
|
|
897
|
-
};
|
|
898
|
-
export const de_ListDevEnvironmentSessionsCommand = async (output, context) => {
|
|
899
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
900
|
-
return de_CommandError(output, context);
|
|
901
|
-
}
|
|
902
|
-
const contents = map({
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
});
|
|
905
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
906
|
-
const doc = take(data, {
|
|
907
|
-
items: (_) => de_DevEnvironmentSessionsSummaryList(_, context),
|
|
908
|
-
nextToken: __expectString,
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
return contents;
|
|
912
|
-
};
|
|
913
|
-
export const de_ListEventLogsCommand = async (output, context) => {
|
|
914
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return de_CommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const contents = map({
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
});
|
|
920
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
921
|
-
const doc = take(data, {
|
|
922
|
-
items: (_) => de_EventLogEntries(_, context),
|
|
923
|
-
nextToken: __expectString,
|
|
924
|
-
});
|
|
925
|
-
Object.assign(contents, doc);
|
|
926
|
-
return contents;
|
|
927
|
-
};
|
|
928
|
-
export const de_ListProjectsCommand = async (output, context) => {
|
|
929
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
|
-
return de_CommandError(output, context);
|
|
931
|
-
}
|
|
932
|
-
const contents = map({
|
|
933
|
-
$metadata: deserializeMetadata(output),
|
|
934
|
-
});
|
|
935
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
936
|
-
const doc = take(data, {
|
|
937
|
-
items: _json,
|
|
938
|
-
nextToken: __expectString,
|
|
939
|
-
});
|
|
940
|
-
Object.assign(contents, doc);
|
|
941
|
-
return contents;
|
|
942
|
-
};
|
|
943
|
-
export const de_ListSourceRepositoriesCommand = async (output, context) => {
|
|
944
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
-
return de_CommandError(output, context);
|
|
946
|
-
}
|
|
947
|
-
const contents = map({
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
});
|
|
950
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
951
|
-
const doc = take(data, {
|
|
952
|
-
items: (_) => de_ListSourceRepositoriesItems(_, context),
|
|
953
|
-
nextToken: __expectString,
|
|
954
|
-
});
|
|
955
|
-
Object.assign(contents, doc);
|
|
956
|
-
return contents;
|
|
957
|
-
};
|
|
958
|
-
export const de_ListSourceRepositoryBranchesCommand = async (output, context) => {
|
|
959
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
960
|
-
return de_CommandError(output, context);
|
|
961
|
-
}
|
|
962
|
-
const contents = map({
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
});
|
|
965
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
966
|
-
const doc = take(data, {
|
|
967
|
-
items: (_) => de_ListSourceRepositoryBranchesItems(_, context),
|
|
968
|
-
nextToken: __expectString,
|
|
969
|
-
});
|
|
970
|
-
Object.assign(contents, doc);
|
|
971
|
-
return contents;
|
|
972
|
-
};
|
|
973
|
-
export const de_ListSpacesCommand = async (output, context) => {
|
|
974
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
975
|
-
return de_CommandError(output, context);
|
|
976
|
-
}
|
|
977
|
-
const contents = map({
|
|
978
|
-
$metadata: deserializeMetadata(output),
|
|
979
|
-
});
|
|
980
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
981
|
-
const doc = take(data, {
|
|
982
|
-
items: _json,
|
|
983
|
-
nextToken: __expectString,
|
|
984
|
-
});
|
|
985
|
-
Object.assign(contents, doc);
|
|
986
|
-
return contents;
|
|
987
|
-
};
|
|
988
|
-
export const de_ListWorkflowRunsCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
-
return de_CommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const contents = map({
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
});
|
|
995
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
996
|
-
const doc = take(data, {
|
|
997
|
-
items: (_) => de_WorkflowRunSummaries(_, context),
|
|
998
|
-
nextToken: __expectString,
|
|
999
|
-
});
|
|
1000
|
-
Object.assign(contents, doc);
|
|
1001
|
-
return contents;
|
|
1002
|
-
};
|
|
1003
|
-
export const de_ListWorkflowsCommand = async (output, context) => {
|
|
1004
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
-
return de_CommandError(output, context);
|
|
1006
|
-
}
|
|
1007
|
-
const contents = map({
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
});
|
|
1010
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1011
|
-
const doc = take(data, {
|
|
1012
|
-
items: (_) => de_WorkflowSummaries(_, context),
|
|
1013
|
-
nextToken: __expectString,
|
|
1014
|
-
});
|
|
1015
|
-
Object.assign(contents, doc);
|
|
1016
|
-
return contents;
|
|
1017
|
-
};
|
|
1018
|
-
export const de_StartDevEnvironmentCommand = async (output, context) => {
|
|
1019
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
-
return de_CommandError(output, context);
|
|
1021
|
-
}
|
|
1022
|
-
const contents = map({
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
});
|
|
1025
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1026
|
-
const doc = take(data, {
|
|
1027
|
-
id: __expectString,
|
|
1028
|
-
projectName: __expectString,
|
|
1029
|
-
spaceName: __expectString,
|
|
1030
|
-
status: __expectString,
|
|
1031
|
-
});
|
|
1032
|
-
Object.assign(contents, doc);
|
|
1033
|
-
return contents;
|
|
1034
|
-
};
|
|
1035
|
-
export const de_StartDevEnvironmentSessionCommand = async (output, context) => {
|
|
1036
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return de_CommandError(output, context);
|
|
1038
|
-
}
|
|
1039
|
-
const contents = map({
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
});
|
|
1042
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1043
|
-
const doc = take(data, {
|
|
1044
|
-
accessDetails: _json,
|
|
1045
|
-
id: __expectString,
|
|
1046
|
-
projectName: __expectString,
|
|
1047
|
-
sessionId: __expectString,
|
|
1048
|
-
spaceName: __expectString,
|
|
1049
|
-
});
|
|
1050
|
-
Object.assign(contents, doc);
|
|
1051
|
-
return contents;
|
|
1052
|
-
};
|
|
1053
|
-
export const de_StartWorkflowRunCommand = async (output, context) => {
|
|
1054
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
|
-
return de_CommandError(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
|
-
id: __expectString,
|
|
1063
|
-
projectName: __expectString,
|
|
1064
|
-
spaceName: __expectString,
|
|
1065
|
-
workflowId: __expectString,
|
|
1066
|
-
});
|
|
1067
|
-
Object.assign(contents, doc);
|
|
1068
|
-
return contents;
|
|
1069
|
-
};
|
|
1070
|
-
export const de_StopDevEnvironmentCommand = async (output, context) => {
|
|
1071
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
-
return de_CommandError(output, context);
|
|
1073
|
-
}
|
|
1074
|
-
const contents = map({
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
});
|
|
1077
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1078
|
-
const doc = take(data, {
|
|
1079
|
-
id: __expectString,
|
|
1080
|
-
projectName: __expectString,
|
|
1081
|
-
spaceName: __expectString,
|
|
1082
|
-
status: __expectString,
|
|
1083
|
-
});
|
|
1084
|
-
Object.assign(contents, doc);
|
|
1085
|
-
return contents;
|
|
1086
|
-
};
|
|
1087
|
-
export const de_StopDevEnvironmentSessionCommand = async (output, context) => {
|
|
1088
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return de_CommandError(output, context);
|
|
1090
|
-
}
|
|
1091
|
-
const contents = map({
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
});
|
|
1094
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1095
|
-
const doc = take(data, {
|
|
1096
|
-
id: __expectString,
|
|
1097
|
-
projectName: __expectString,
|
|
1098
|
-
sessionId: __expectString,
|
|
1099
|
-
spaceName: __expectString,
|
|
1100
|
-
});
|
|
1101
|
-
Object.assign(contents, doc);
|
|
1102
|
-
return contents;
|
|
1103
|
-
};
|
|
1104
|
-
export const de_UpdateDevEnvironmentCommand = async (output, context) => {
|
|
1105
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
-
return de_CommandError(output, context);
|
|
1107
|
-
}
|
|
1108
|
-
const contents = map({
|
|
1109
|
-
$metadata: deserializeMetadata(output),
|
|
1110
|
-
});
|
|
1111
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1112
|
-
const doc = take(data, {
|
|
1113
|
-
alias: __expectString,
|
|
1114
|
-
clientToken: __expectString,
|
|
1115
|
-
id: __expectString,
|
|
1116
|
-
ides: _json,
|
|
1117
|
-
inactivityTimeoutMinutes: __expectInt32,
|
|
1118
|
-
instanceType: __expectString,
|
|
1119
|
-
projectName: __expectString,
|
|
1120
|
-
spaceName: __expectString,
|
|
1121
|
-
});
|
|
1122
|
-
Object.assign(contents, doc);
|
|
1123
|
-
return contents;
|
|
1124
|
-
};
|
|
1125
|
-
export const de_UpdateProjectCommand = async (output, context) => {
|
|
1126
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
-
return de_CommandError(output, context);
|
|
1128
|
-
}
|
|
1129
|
-
const contents = map({
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
});
|
|
1132
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1133
|
-
const doc = take(data, {
|
|
1134
|
-
description: __expectString,
|
|
1135
|
-
displayName: __expectString,
|
|
1136
|
-
name: __expectString,
|
|
1137
|
-
spaceName: __expectString,
|
|
1138
|
-
});
|
|
1139
|
-
Object.assign(contents, doc);
|
|
1140
|
-
return contents;
|
|
1141
|
-
};
|
|
1142
|
-
export const de_UpdateSpaceCommand = async (output, context) => {
|
|
1143
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return de_CommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const contents = map({
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
});
|
|
1149
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1150
|
-
const doc = take(data, {
|
|
1151
|
-
description: __expectString,
|
|
1152
|
-
displayName: __expectString,
|
|
1153
|
-
name: __expectString,
|
|
1154
|
-
});
|
|
1155
|
-
Object.assign(contents, doc);
|
|
1156
|
-
return contents;
|
|
1157
|
-
};
|
|
1158
|
-
export const de_VerifySessionCommand = async (output, context) => {
|
|
1159
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1160
|
-
return de_CommandError(output, context);
|
|
1161
|
-
}
|
|
1162
|
-
const contents = map({
|
|
1163
|
-
$metadata: deserializeMetadata(output),
|
|
1164
|
-
});
|
|
1165
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1166
|
-
const doc = take(data, {
|
|
1167
|
-
identity: __expectString,
|
|
1168
|
-
});
|
|
1169
|
-
Object.assign(contents, doc);
|
|
1170
|
-
return contents;
|
|
1171
|
-
};
|
|
1172
|
-
const de_CommandError = async (output, context) => {
|
|
1173
|
-
const parsedOutput = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseErrorBody(output.body, context),
|
|
1176
|
-
};
|
|
1177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
-
switch (errorCode) {
|
|
1179
|
-
case "AccessDeniedException":
|
|
1180
|
-
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1181
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ConflictException":
|
|
1183
|
-
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1184
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ServiceQuotaExceededException":
|
|
1189
|
-
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1190
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ThrottlingException":
|
|
1192
|
-
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1193
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ValidationException":
|
|
1195
|
-
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1196
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1197
|
-
default:
|
|
1198
|
-
const parsedBody = parsedOutput.body;
|
|
1199
|
-
return throwDefaultError({
|
|
1200
|
-
output,
|
|
1201
|
-
parsedBody,
|
|
1202
|
-
errorCode,
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1207
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1208
|
-
const contents = map({});
|
|
1209
|
-
const data = parsedOutput.body;
|
|
1210
|
-
const doc = take(data, {
|
|
1211
|
-
message: __expectString,
|
|
1212
|
-
});
|
|
1213
|
-
Object.assign(contents, doc);
|
|
1214
|
-
const exception = new AccessDeniedException({
|
|
1215
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1216
|
-
...contents,
|
|
1217
|
-
});
|
|
1218
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1219
|
-
};
|
|
1220
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1221
|
-
const contents = map({});
|
|
1222
|
-
const data = parsedOutput.body;
|
|
1223
|
-
const doc = take(data, {
|
|
1224
|
-
message: __expectString,
|
|
1225
|
-
});
|
|
1226
|
-
Object.assign(contents, doc);
|
|
1227
|
-
const exception = new ConflictException({
|
|
1228
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1229
|
-
...contents,
|
|
1230
|
-
});
|
|
1231
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1232
|
-
};
|
|
1233
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1234
|
-
const contents = map({});
|
|
1235
|
-
const data = parsedOutput.body;
|
|
1236
|
-
const doc = take(data, {
|
|
1237
|
-
message: __expectString,
|
|
1238
|
-
});
|
|
1239
|
-
Object.assign(contents, doc);
|
|
1240
|
-
const exception = new ResourceNotFoundException({
|
|
1241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1242
|
-
...contents,
|
|
1243
|
-
});
|
|
1244
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1245
|
-
};
|
|
1246
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1247
|
-
const contents = map({});
|
|
1248
|
-
const data = parsedOutput.body;
|
|
1249
|
-
const doc = take(data, {
|
|
1250
|
-
message: __expectString,
|
|
1251
|
-
});
|
|
1252
|
-
Object.assign(contents, doc);
|
|
1253
|
-
const exception = new ServiceQuotaExceededException({
|
|
1254
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
|
-
...contents,
|
|
1256
|
-
});
|
|
1257
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1258
|
-
};
|
|
1259
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1260
|
-
const contents = map({});
|
|
1261
|
-
const data = parsedOutput.body;
|
|
1262
|
-
const doc = take(data, {
|
|
1263
|
-
message: __expectString,
|
|
1264
|
-
});
|
|
1265
|
-
Object.assign(contents, doc);
|
|
1266
|
-
const exception = new ThrottlingException({
|
|
1267
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1268
|
-
...contents,
|
|
1269
|
-
});
|
|
1270
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1271
|
-
};
|
|
1272
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1273
|
-
const contents = map({});
|
|
1274
|
-
const data = parsedOutput.body;
|
|
1275
|
-
const doc = take(data, {
|
|
1276
|
-
message: __expectString,
|
|
1277
|
-
});
|
|
1278
|
-
Object.assign(contents, doc);
|
|
1279
|
-
const exception = new ValidationException({
|
|
1280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
|
-
...contents,
|
|
1282
|
-
});
|
|
1283
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1284
|
-
};
|
|
1285
|
-
const de_AccessTokenSummaries = (output, context) => {
|
|
1286
|
-
const retVal = (output || [])
|
|
1287
|
-
.filter((e) => e != null)
|
|
1288
|
-
.map((entry) => {
|
|
1289
|
-
return de_AccessTokenSummary(entry, context);
|
|
1290
|
-
});
|
|
1291
|
-
return retVal;
|
|
1292
|
-
};
|
|
1293
|
-
const de_AccessTokenSummary = (output, context) => {
|
|
1294
|
-
return take(output, {
|
|
1295
|
-
expiresTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1296
|
-
id: __expectString,
|
|
1297
|
-
name: __expectString,
|
|
1298
|
-
});
|
|
1299
|
-
};
|
|
1300
|
-
const de_DevEnvironmentSessionsSummaryList = (output, context) => {
|
|
1301
|
-
const retVal = (output || [])
|
|
1302
|
-
.filter((e) => e != null)
|
|
1303
|
-
.map((entry) => {
|
|
1304
|
-
return de_DevEnvironmentSessionSummary(entry, context);
|
|
1305
|
-
});
|
|
1306
|
-
return retVal;
|
|
1307
|
-
};
|
|
1308
|
-
const de_DevEnvironmentSessionSummary = (output, context) => {
|
|
1309
|
-
return take(output, {
|
|
1310
|
-
devEnvironmentId: __expectString,
|
|
1311
|
-
id: __expectString,
|
|
1312
|
-
projectName: __expectString,
|
|
1313
|
-
spaceName: __expectString,
|
|
1314
|
-
startedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1315
|
-
});
|
|
1316
|
-
};
|
|
1317
|
-
const de_DevEnvironmentSummary = (output, context) => {
|
|
1318
|
-
return take(output, {
|
|
1319
|
-
alias: __expectString,
|
|
1320
|
-
creatorId: __expectString,
|
|
1321
|
-
id: __expectString,
|
|
1322
|
-
ides: _json,
|
|
1323
|
-
inactivityTimeoutMinutes: __expectInt32,
|
|
1324
|
-
instanceType: __expectString,
|
|
1325
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1326
|
-
persistentStorage: _json,
|
|
1327
|
-
projectName: __expectString,
|
|
1328
|
-
repositories: _json,
|
|
1329
|
-
spaceName: __expectString,
|
|
1330
|
-
status: __expectString,
|
|
1331
|
-
statusReason: __expectString,
|
|
1332
|
-
vpcConnectionName: __expectString,
|
|
1333
|
-
});
|
|
1334
|
-
};
|
|
1335
|
-
const de_DevEnvironmentSummaryList = (output, context) => {
|
|
1336
|
-
const retVal = (output || [])
|
|
1337
|
-
.filter((e) => e != null)
|
|
1338
|
-
.map((entry) => {
|
|
1339
|
-
return de_DevEnvironmentSummary(entry, context);
|
|
1340
|
-
});
|
|
1341
|
-
return retVal;
|
|
1342
|
-
};
|
|
1343
|
-
const de_EventLogEntries = (output, context) => {
|
|
1344
|
-
const retVal = (output || [])
|
|
1345
|
-
.filter((e) => e != null)
|
|
1346
|
-
.map((entry) => {
|
|
1347
|
-
return de_EventLogEntry(entry, context);
|
|
1348
|
-
});
|
|
1349
|
-
return retVal;
|
|
1350
|
-
};
|
|
1351
|
-
const de_EventLogEntry = (output, context) => {
|
|
1352
|
-
return take(output, {
|
|
1353
|
-
errorCode: __expectString,
|
|
1354
|
-
eventCategory: __expectString,
|
|
1355
|
-
eventName: __expectString,
|
|
1356
|
-
eventSource: __expectString,
|
|
1357
|
-
eventTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1358
|
-
eventType: __expectString,
|
|
1359
|
-
id: __expectString,
|
|
1360
|
-
operationType: __expectString,
|
|
1361
|
-
projectInformation: _json,
|
|
1362
|
-
requestId: __expectString,
|
|
1363
|
-
requestPayload: _json,
|
|
1364
|
-
responsePayload: _json,
|
|
1365
|
-
sourceIpAddress: __expectString,
|
|
1366
|
-
userAgent: __expectString,
|
|
1367
|
-
userIdentity: _json,
|
|
1368
|
-
});
|
|
1369
|
-
};
|
|
1370
|
-
const de_ListSourceRepositoriesItem = (output, context) => {
|
|
1371
|
-
return take(output, {
|
|
1372
|
-
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1373
|
-
description: __expectString,
|
|
1374
|
-
id: __expectString,
|
|
1375
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1376
|
-
name: __expectString,
|
|
1377
|
-
});
|
|
1378
|
-
};
|
|
1379
|
-
const de_ListSourceRepositoriesItems = (output, context) => {
|
|
1380
|
-
const retVal = (output || [])
|
|
1381
|
-
.filter((e) => e != null)
|
|
1382
|
-
.map((entry) => {
|
|
1383
|
-
return de_ListSourceRepositoriesItem(entry, context);
|
|
1384
|
-
});
|
|
1385
|
-
return retVal;
|
|
1386
|
-
};
|
|
1387
|
-
const de_ListSourceRepositoryBranchesItem = (output, context) => {
|
|
1388
|
-
return take(output, {
|
|
1389
|
-
headCommitId: __expectString,
|
|
1390
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1391
|
-
name: __expectString,
|
|
1392
|
-
ref: __expectString,
|
|
1393
|
-
});
|
|
1394
|
-
};
|
|
1395
|
-
const de_ListSourceRepositoryBranchesItems = (output, context) => {
|
|
1396
|
-
const retVal = (output || [])
|
|
1397
|
-
.filter((e) => e != null)
|
|
1398
|
-
.map((entry) => {
|
|
1399
|
-
return de_ListSourceRepositoryBranchesItem(entry, context);
|
|
1400
|
-
});
|
|
1401
|
-
return retVal;
|
|
1402
|
-
};
|
|
1403
|
-
const de_WorkflowRunSummaries = (output, context) => {
|
|
1404
|
-
const retVal = (output || [])
|
|
1405
|
-
.filter((e) => e != null)
|
|
1406
|
-
.map((entry) => {
|
|
1407
|
-
return de_WorkflowRunSummary(entry, context);
|
|
1408
|
-
});
|
|
1409
|
-
return retVal;
|
|
1410
|
-
};
|
|
1411
|
-
const de_WorkflowRunSummary = (output, context) => {
|
|
1412
|
-
return take(output, {
|
|
1413
|
-
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1414
|
-
id: __expectString,
|
|
1415
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1416
|
-
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1417
|
-
status: __expectString,
|
|
1418
|
-
statusReasons: _json,
|
|
1419
|
-
workflowId: __expectString,
|
|
1420
|
-
workflowName: __expectString,
|
|
1421
|
-
});
|
|
1422
|
-
};
|
|
1423
|
-
const de_WorkflowSummaries = (output, context) => {
|
|
1424
|
-
const retVal = (output || [])
|
|
1425
|
-
.filter((e) => e != null)
|
|
1426
|
-
.map((entry) => {
|
|
1427
|
-
return de_WorkflowSummary(entry, context);
|
|
1428
|
-
});
|
|
1429
|
-
return retVal;
|
|
1430
|
-
};
|
|
1431
|
-
const de_WorkflowSummary = (output, context) => {
|
|
1432
|
-
return take(output, {
|
|
1433
|
-
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1434
|
-
definition: _json,
|
|
1435
|
-
id: __expectString,
|
|
1436
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1437
|
-
name: __expectString,
|
|
1438
|
-
runMode: __expectString,
|
|
1439
|
-
sourceBranchName: __expectString,
|
|
1440
|
-
sourceRepositoryName: __expectString,
|
|
1441
|
-
status: __expectString,
|
|
1442
|
-
});
|
|
1443
|
-
};
|
|
1444
|
-
const deserializeMetadata = (output) => ({
|
|
1445
|
-
httpStatusCode: output.statusCode,
|
|
1446
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1447
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1448
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1449
|
-
});
|
|
1450
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1451
|
-
const _i = "id";
|
|
1452
|
-
const _mR = "maxResults";
|
|
1453
|
-
const _nT = "nextToken";
|
|
1454
|
-
const _uN = "userName";
|
|
1455
|
-
const _wI = "workflowId";
|