@aws-sdk/client-codecatalyst 3.476.0 → 3.477.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/protocols/Aws_restJson1.js +241 -527
- package/dist-es/protocols/Aws_restJson1.js +242 -528
- package/package.json +3 -3
|
@@ -1,38 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CodeCatalystServiceException as __BaseException } from "../models/CodeCatalystServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateAccessTokenCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
b.bp("/v1/accessTokens");
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
expiresTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
15
15
|
name: [],
|
|
16
16
|
}));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "PUT",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
17
|
+
b.m("PUT").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
26
19
|
};
|
|
27
20
|
export const se_CreateDevEnvironmentCommand = async (input, context) => {
|
|
28
|
-
const
|
|
21
|
+
const b = rb(input, context);
|
|
29
22
|
const headers = {
|
|
30
23
|
"content-type": "application/json",
|
|
31
24
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
25
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments");
|
|
26
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
27
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
36
28
|
let body;
|
|
37
29
|
body = JSON.stringify(take(input, {
|
|
38
30
|
alias: [],
|
|
@@ -44,366 +36,223 @@ export const se_CreateDevEnvironmentCommand = async (input, context) => {
|
|
|
44
36
|
repositories: (_) => _json(_),
|
|
45
37
|
vpcConnectionName: [],
|
|
46
38
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
hostname,
|
|
50
|
-
port,
|
|
51
|
-
method: "PUT",
|
|
52
|
-
headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
39
|
+
b.m("PUT").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
56
41
|
};
|
|
57
42
|
export const se_CreateProjectCommand = async (input, context) => {
|
|
58
|
-
const
|
|
43
|
+
const b = rb(input, context);
|
|
59
44
|
const headers = {
|
|
60
45
|
"content-type": "application/json",
|
|
61
46
|
};
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
b.bp("/v1/spaces/{spaceName}/projects");
|
|
48
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
64
49
|
let body;
|
|
65
50
|
body = JSON.stringify(take(input, {
|
|
66
51
|
description: [],
|
|
67
52
|
displayName: [],
|
|
68
53
|
}));
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
hostname,
|
|
72
|
-
port,
|
|
73
|
-
method: "PUT",
|
|
74
|
-
headers,
|
|
75
|
-
path: resolvedPath,
|
|
76
|
-
body,
|
|
77
|
-
});
|
|
54
|
+
b.m("PUT").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
78
56
|
};
|
|
79
57
|
export const se_CreateSourceRepositoryCommand = async (input, context) => {
|
|
80
|
-
const
|
|
58
|
+
const b = rb(input, context);
|
|
81
59
|
const headers = {
|
|
82
60
|
"content-type": "application/json",
|
|
83
61
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
62
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
63
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
64
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
65
|
+
b.p("name", () => input.name, "{name}", false);
|
|
89
66
|
let body;
|
|
90
67
|
body = JSON.stringify(take(input, {
|
|
91
68
|
description: [],
|
|
92
69
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
hostname,
|
|
96
|
-
port,
|
|
97
|
-
method: "PUT",
|
|
98
|
-
headers,
|
|
99
|
-
path: resolvedPath,
|
|
100
|
-
body,
|
|
101
|
-
});
|
|
70
|
+
b.m("PUT").h(headers).b(body);
|
|
71
|
+
return b.build();
|
|
102
72
|
};
|
|
103
73
|
export const se_CreateSourceRepositoryBranchCommand = async (input, context) => {
|
|
104
|
-
const
|
|
74
|
+
const b = rb(input, context);
|
|
105
75
|
const headers = {
|
|
106
76
|
"content-type": "application/json",
|
|
107
77
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
78
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}");
|
|
79
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
80
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
81
|
+
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
82
|
+
b.p("name", () => input.name, "{name}", false);
|
|
114
83
|
let body;
|
|
115
84
|
body = JSON.stringify(take(input, {
|
|
116
85
|
headCommitId: [],
|
|
117
86
|
}));
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
hostname,
|
|
121
|
-
port,
|
|
122
|
-
method: "PUT",
|
|
123
|
-
headers,
|
|
124
|
-
path: resolvedPath,
|
|
125
|
-
body,
|
|
126
|
-
});
|
|
87
|
+
b.m("PUT").h(headers).b(body);
|
|
88
|
+
return b.build();
|
|
127
89
|
};
|
|
128
90
|
export const se_DeleteAccessTokenCommand = async (input, context) => {
|
|
129
|
-
const
|
|
91
|
+
const b = rb(input, context);
|
|
130
92
|
const headers = {};
|
|
131
|
-
|
|
132
|
-
|
|
93
|
+
b.bp("/v1/accessTokens/{id}");
|
|
94
|
+
b.p("id", () => input.id, "{id}", false);
|
|
133
95
|
let body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "DELETE",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
96
|
+
b.m("DELETE").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
143
98
|
};
|
|
144
99
|
export const se_DeleteDevEnvironmentCommand = async (input, context) => {
|
|
145
|
-
const
|
|
100
|
+
const b = rb(input, context);
|
|
146
101
|
const headers = {};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
102
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
103
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
104
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
105
|
+
b.p("id", () => input.id, "{id}", false);
|
|
152
106
|
let body;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
hostname,
|
|
156
|
-
port,
|
|
157
|
-
method: "DELETE",
|
|
158
|
-
headers,
|
|
159
|
-
path: resolvedPath,
|
|
160
|
-
body,
|
|
161
|
-
});
|
|
107
|
+
b.m("DELETE").h(headers).b(body);
|
|
108
|
+
return b.build();
|
|
162
109
|
};
|
|
163
110
|
export const se_DeleteProjectCommand = async (input, context) => {
|
|
164
|
-
const
|
|
111
|
+
const b = rb(input, context);
|
|
165
112
|
const headers = {};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
113
|
+
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
114
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
115
|
+
b.p("name", () => input.name, "{name}", false);
|
|
169
116
|
let body;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
hostname,
|
|
173
|
-
port,
|
|
174
|
-
method: "DELETE",
|
|
175
|
-
headers,
|
|
176
|
-
path: resolvedPath,
|
|
177
|
-
body,
|
|
178
|
-
});
|
|
117
|
+
b.m("DELETE").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
179
119
|
};
|
|
180
120
|
export const se_DeleteSourceRepositoryCommand = async (input, context) => {
|
|
181
|
-
const
|
|
121
|
+
const b = rb(input, context);
|
|
182
122
|
const headers = {};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
123
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
124
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
125
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
126
|
+
b.p("name", () => input.name, "{name}", false);
|
|
188
127
|
let body;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
hostname,
|
|
192
|
-
port,
|
|
193
|
-
method: "DELETE",
|
|
194
|
-
headers,
|
|
195
|
-
path: resolvedPath,
|
|
196
|
-
body,
|
|
197
|
-
});
|
|
128
|
+
b.m("DELETE").h(headers).b(body);
|
|
129
|
+
return b.build();
|
|
198
130
|
};
|
|
199
131
|
export const se_DeleteSpaceCommand = async (input, context) => {
|
|
200
|
-
const
|
|
132
|
+
const b = rb(input, context);
|
|
201
133
|
const headers = {};
|
|
202
|
-
|
|
203
|
-
|
|
134
|
+
b.bp("/v1/spaces/{name}");
|
|
135
|
+
b.p("name", () => input.name, "{name}", false);
|
|
204
136
|
let body;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
hostname,
|
|
208
|
-
port,
|
|
209
|
-
method: "DELETE",
|
|
210
|
-
headers,
|
|
211
|
-
path: resolvedPath,
|
|
212
|
-
body,
|
|
213
|
-
});
|
|
137
|
+
b.m("DELETE").h(headers).b(body);
|
|
138
|
+
return b.build();
|
|
214
139
|
};
|
|
215
140
|
export const se_GetDevEnvironmentCommand = async (input, context) => {
|
|
216
|
-
const
|
|
141
|
+
const b = rb(input, context);
|
|
217
142
|
const headers = {};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
143
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
144
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
145
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
146
|
+
b.p("id", () => input.id, "{id}", false);
|
|
223
147
|
let body;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
hostname,
|
|
227
|
-
port,
|
|
228
|
-
method: "GET",
|
|
229
|
-
headers,
|
|
230
|
-
path: resolvedPath,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
148
|
+
b.m("GET").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
233
150
|
};
|
|
234
151
|
export const se_GetProjectCommand = async (input, context) => {
|
|
235
|
-
const
|
|
152
|
+
const b = rb(input, context);
|
|
236
153
|
const headers = {};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
154
|
+
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
155
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
156
|
+
b.p("name", () => input.name, "{name}", false);
|
|
240
157
|
let body;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
hostname,
|
|
244
|
-
port,
|
|
245
|
-
method: "GET",
|
|
246
|
-
headers,
|
|
247
|
-
path: resolvedPath,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
158
|
+
b.m("GET").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
250
160
|
};
|
|
251
161
|
export const se_GetSourceRepositoryCommand = async (input, context) => {
|
|
252
|
-
const
|
|
162
|
+
const b = rb(input, context);
|
|
253
163
|
const headers = {};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
164
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
165
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
166
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
167
|
+
b.p("name", () => input.name, "{name}", false);
|
|
259
168
|
let body;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
hostname,
|
|
263
|
-
port,
|
|
264
|
-
method: "GET",
|
|
265
|
-
headers,
|
|
266
|
-
path: resolvedPath,
|
|
267
|
-
body,
|
|
268
|
-
});
|
|
169
|
+
b.m("GET").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
269
171
|
};
|
|
270
172
|
export const se_GetSourceRepositoryCloneUrlsCommand = async (input, context) => {
|
|
271
|
-
const
|
|
173
|
+
const b = rb(input, context);
|
|
272
174
|
const headers = {};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
175
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls");
|
|
176
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
177
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
178
|
+
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
278
179
|
let body;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
hostname,
|
|
282
|
-
port,
|
|
283
|
-
method: "GET",
|
|
284
|
-
headers,
|
|
285
|
-
path: resolvedPath,
|
|
286
|
-
body,
|
|
287
|
-
});
|
|
180
|
+
b.m("GET").h(headers).b(body);
|
|
181
|
+
return b.build();
|
|
288
182
|
};
|
|
289
183
|
export const se_GetSpaceCommand = async (input, context) => {
|
|
290
|
-
const
|
|
184
|
+
const b = rb(input, context);
|
|
291
185
|
const headers = {};
|
|
292
|
-
|
|
293
|
-
|
|
186
|
+
b.bp("/v1/spaces/{name}");
|
|
187
|
+
b.p("name", () => input.name, "{name}", false);
|
|
294
188
|
let body;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
hostname,
|
|
298
|
-
port,
|
|
299
|
-
method: "GET",
|
|
300
|
-
headers,
|
|
301
|
-
path: resolvedPath,
|
|
302
|
-
body,
|
|
303
|
-
});
|
|
189
|
+
b.m("GET").h(headers).b(body);
|
|
190
|
+
return b.build();
|
|
304
191
|
};
|
|
305
192
|
export const se_GetSubscriptionCommand = async (input, context) => {
|
|
306
|
-
const
|
|
193
|
+
const b = rb(input, context);
|
|
307
194
|
const headers = {};
|
|
308
|
-
|
|
309
|
-
|
|
195
|
+
b.bp("/v1/spaces/{spaceName}/subscription");
|
|
196
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
310
197
|
let body;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
hostname,
|
|
314
|
-
port,
|
|
315
|
-
method: "GET",
|
|
316
|
-
headers,
|
|
317
|
-
path: resolvedPath,
|
|
318
|
-
body,
|
|
319
|
-
});
|
|
198
|
+
b.m("GET").h(headers).b(body);
|
|
199
|
+
return b.build();
|
|
320
200
|
};
|
|
321
201
|
export const se_GetUserDetailsCommand = async (input, context) => {
|
|
322
|
-
const
|
|
202
|
+
const b = rb(input, context);
|
|
323
203
|
const headers = {};
|
|
324
|
-
|
|
204
|
+
b.bp("/userDetails");
|
|
325
205
|
const query = map({
|
|
326
|
-
|
|
327
|
-
|
|
206
|
+
[_i]: [, input[_i]],
|
|
207
|
+
[_uN]: [, input[_uN]],
|
|
328
208
|
});
|
|
329
209
|
let body;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
hostname,
|
|
333
|
-
port,
|
|
334
|
-
method: "GET",
|
|
335
|
-
headers,
|
|
336
|
-
path: resolvedPath,
|
|
337
|
-
query,
|
|
338
|
-
body,
|
|
339
|
-
});
|
|
210
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
211
|
+
return b.build();
|
|
340
212
|
};
|
|
341
213
|
export const se_GetWorkflowCommand = async (input, context) => {
|
|
342
|
-
const
|
|
214
|
+
const b = rb(input, context);
|
|
343
215
|
const headers = {};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
216
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}");
|
|
217
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
218
|
+
b.p("id", () => input.id, "{id}", false);
|
|
219
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
349
220
|
let body;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
hostname,
|
|
353
|
-
port,
|
|
354
|
-
method: "GET",
|
|
355
|
-
headers,
|
|
356
|
-
path: resolvedPath,
|
|
357
|
-
body,
|
|
358
|
-
});
|
|
221
|
+
b.m("GET").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
359
223
|
};
|
|
360
224
|
export const se_GetWorkflowRunCommand = async (input, context) => {
|
|
361
|
-
const
|
|
225
|
+
const b = rb(input, context);
|
|
362
226
|
const headers = {};
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
227
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}");
|
|
228
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
229
|
+
b.p("id", () => input.id, "{id}", false);
|
|
230
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
368
231
|
let body;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
hostname,
|
|
372
|
-
port,
|
|
373
|
-
method: "GET",
|
|
374
|
-
headers,
|
|
375
|
-
path: resolvedPath,
|
|
376
|
-
body,
|
|
377
|
-
});
|
|
232
|
+
b.m("GET").h(headers).b(body);
|
|
233
|
+
return b.build();
|
|
378
234
|
};
|
|
379
235
|
export const se_ListAccessTokensCommand = async (input, context) => {
|
|
380
|
-
const
|
|
236
|
+
const b = rb(input, context);
|
|
381
237
|
const headers = {
|
|
382
238
|
"content-type": "application/json",
|
|
383
239
|
};
|
|
384
|
-
|
|
240
|
+
b.bp("/v1/accessTokens");
|
|
385
241
|
let body;
|
|
386
242
|
body = JSON.stringify(take(input, {
|
|
387
243
|
maxResults: [],
|
|
388
244
|
nextToken: [],
|
|
389
245
|
}));
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
hostname,
|
|
393
|
-
port,
|
|
394
|
-
method: "POST",
|
|
395
|
-
headers,
|
|
396
|
-
path: resolvedPath,
|
|
397
|
-
body,
|
|
398
|
-
});
|
|
246
|
+
b.m("POST").h(headers).b(body);
|
|
247
|
+
return b.build();
|
|
399
248
|
};
|
|
400
249
|
export const se_ListDevEnvironmentsCommand = async (input, context) => {
|
|
401
|
-
const
|
|
250
|
+
const b = rb(input, context);
|
|
402
251
|
const headers = {
|
|
403
252
|
"content-type": "application/json",
|
|
404
253
|
};
|
|
405
|
-
|
|
406
|
-
|
|
254
|
+
b.bp("/v1/spaces/{spaceName}/devEnvironments");
|
|
255
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
407
256
|
let body;
|
|
408
257
|
body = JSON.stringify(take(input, {
|
|
409
258
|
filters: (_) => _json(_),
|
|
@@ -411,48 +260,33 @@ export const se_ListDevEnvironmentsCommand = async (input, context) => {
|
|
|
411
260
|
nextToken: [],
|
|
412
261
|
projectName: [],
|
|
413
262
|
}));
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
hostname,
|
|
417
|
-
port,
|
|
418
|
-
method: "POST",
|
|
419
|
-
headers,
|
|
420
|
-
path: resolvedPath,
|
|
421
|
-
body,
|
|
422
|
-
});
|
|
263
|
+
b.m("POST").h(headers).b(body);
|
|
264
|
+
return b.build();
|
|
423
265
|
};
|
|
424
266
|
export const se_ListDevEnvironmentSessionsCommand = async (input, context) => {
|
|
425
|
-
const
|
|
267
|
+
const b = rb(input, context);
|
|
426
268
|
const headers = {
|
|
427
269
|
"content-type": "application/json",
|
|
428
270
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "devEnvironmentId", () => input.devEnvironmentId, "{devEnvironmentId}", false);
|
|
271
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions");
|
|
272
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
273
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
274
|
+
b.p("devEnvironmentId", () => input.devEnvironmentId, "{devEnvironmentId}", false);
|
|
434
275
|
let body;
|
|
435
276
|
body = JSON.stringify(take(input, {
|
|
436
277
|
maxResults: [],
|
|
437
278
|
nextToken: [],
|
|
438
279
|
}));
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
hostname,
|
|
442
|
-
port,
|
|
443
|
-
method: "POST",
|
|
444
|
-
headers,
|
|
445
|
-
path: resolvedPath,
|
|
446
|
-
body,
|
|
447
|
-
});
|
|
280
|
+
b.m("POST").h(headers).b(body);
|
|
281
|
+
return b.build();
|
|
448
282
|
};
|
|
449
283
|
export const se_ListEventLogsCommand = async (input, context) => {
|
|
450
|
-
const
|
|
284
|
+
const b = rb(input, context);
|
|
451
285
|
const headers = {
|
|
452
286
|
"content-type": "application/json",
|
|
453
287
|
};
|
|
454
|
-
|
|
455
|
-
|
|
288
|
+
b.bp("/v1/spaces/{spaceName}/eventLogs");
|
|
289
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
456
290
|
let body;
|
|
457
291
|
body = JSON.stringify(take(input, {
|
|
458
292
|
endTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
@@ -461,291 +295,194 @@ export const se_ListEventLogsCommand = async (input, context) => {
|
|
|
461
295
|
nextToken: [],
|
|
462
296
|
startTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
463
297
|
}));
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
hostname,
|
|
467
|
-
port,
|
|
468
|
-
method: "POST",
|
|
469
|
-
headers,
|
|
470
|
-
path: resolvedPath,
|
|
471
|
-
body,
|
|
472
|
-
});
|
|
298
|
+
b.m("POST").h(headers).b(body);
|
|
299
|
+
return b.build();
|
|
473
300
|
};
|
|
474
301
|
export const se_ListProjectsCommand = async (input, context) => {
|
|
475
|
-
const
|
|
302
|
+
const b = rb(input, context);
|
|
476
303
|
const headers = {
|
|
477
304
|
"content-type": "application/json",
|
|
478
305
|
};
|
|
479
|
-
|
|
480
|
-
|
|
306
|
+
b.bp("/v1/spaces/{spaceName}/projects");
|
|
307
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
481
308
|
let body;
|
|
482
309
|
body = JSON.stringify(take(input, {
|
|
483
310
|
filters: (_) => _json(_),
|
|
484
311
|
maxResults: [],
|
|
485
312
|
nextToken: [],
|
|
486
313
|
}));
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
hostname,
|
|
490
|
-
port,
|
|
491
|
-
method: "POST",
|
|
492
|
-
headers,
|
|
493
|
-
path: resolvedPath,
|
|
494
|
-
body,
|
|
495
|
-
});
|
|
314
|
+
b.m("POST").h(headers).b(body);
|
|
315
|
+
return b.build();
|
|
496
316
|
};
|
|
497
317
|
export const se_ListSourceRepositoriesCommand = async (input, context) => {
|
|
498
|
-
const
|
|
318
|
+
const b = rb(input, context);
|
|
499
319
|
const headers = {
|
|
500
320
|
"content-type": "application/json",
|
|
501
321
|
};
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
322
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories");
|
|
323
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
324
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
506
325
|
let body;
|
|
507
326
|
body = JSON.stringify(take(input, {
|
|
508
327
|
maxResults: [],
|
|
509
328
|
nextToken: [],
|
|
510
329
|
}));
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
hostname,
|
|
514
|
-
port,
|
|
515
|
-
method: "POST",
|
|
516
|
-
headers,
|
|
517
|
-
path: resolvedPath,
|
|
518
|
-
body,
|
|
519
|
-
});
|
|
330
|
+
b.m("POST").h(headers).b(body);
|
|
331
|
+
return b.build();
|
|
520
332
|
};
|
|
521
333
|
export const se_ListSourceRepositoryBranchesCommand = async (input, context) => {
|
|
522
|
-
const
|
|
334
|
+
const b = rb(input, context);
|
|
523
335
|
const headers = {
|
|
524
336
|
"content-type": "application/json",
|
|
525
337
|
};
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
338
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches");
|
|
339
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
340
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
341
|
+
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
531
342
|
let body;
|
|
532
343
|
body = JSON.stringify(take(input, {
|
|
533
344
|
maxResults: [],
|
|
534
345
|
nextToken: [],
|
|
535
346
|
}));
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
hostname,
|
|
539
|
-
port,
|
|
540
|
-
method: "POST",
|
|
541
|
-
headers,
|
|
542
|
-
path: resolvedPath,
|
|
543
|
-
body,
|
|
544
|
-
});
|
|
347
|
+
b.m("POST").h(headers).b(body);
|
|
348
|
+
return b.build();
|
|
545
349
|
};
|
|
546
350
|
export const se_ListSpacesCommand = async (input, context) => {
|
|
547
|
-
const
|
|
351
|
+
const b = rb(input, context);
|
|
548
352
|
const headers = {
|
|
549
353
|
"content-type": "application/json",
|
|
550
354
|
};
|
|
551
|
-
|
|
355
|
+
b.bp("/v1/spaces");
|
|
552
356
|
let body;
|
|
553
357
|
body = JSON.stringify(take(input, {
|
|
554
358
|
nextToken: [],
|
|
555
359
|
}));
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
hostname,
|
|
559
|
-
port,
|
|
560
|
-
method: "POST",
|
|
561
|
-
headers,
|
|
562
|
-
path: resolvedPath,
|
|
563
|
-
body,
|
|
564
|
-
});
|
|
360
|
+
b.m("POST").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
565
362
|
};
|
|
566
363
|
export const se_ListWorkflowRunsCommand = async (input, context) => {
|
|
567
|
-
const
|
|
364
|
+
const b = rb(input, context);
|
|
568
365
|
const headers = {
|
|
569
366
|
"content-type": "application/json",
|
|
570
367
|
};
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
368
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns");
|
|
369
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
370
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
575
371
|
const query = map({
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
372
|
+
[_wI]: [, input[_wI]],
|
|
373
|
+
[_nT]: [, input[_nT]],
|
|
374
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
579
375
|
});
|
|
580
376
|
let body;
|
|
581
377
|
body = JSON.stringify(take(input, {
|
|
582
378
|
sortBy: (_) => _json(_),
|
|
583
379
|
}));
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
hostname,
|
|
587
|
-
port,
|
|
588
|
-
method: "POST",
|
|
589
|
-
headers,
|
|
590
|
-
path: resolvedPath,
|
|
591
|
-
query,
|
|
592
|
-
body,
|
|
593
|
-
});
|
|
380
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
381
|
+
return b.build();
|
|
594
382
|
};
|
|
595
383
|
export const se_ListWorkflowsCommand = async (input, context) => {
|
|
596
|
-
const
|
|
384
|
+
const b = rb(input, context);
|
|
597
385
|
const headers = {
|
|
598
386
|
"content-type": "application/json",
|
|
599
387
|
};
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
388
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows");
|
|
389
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
390
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
604
391
|
const query = map({
|
|
605
|
-
|
|
606
|
-
|
|
392
|
+
[_nT]: [, input[_nT]],
|
|
393
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
607
394
|
});
|
|
608
395
|
let body;
|
|
609
396
|
body = JSON.stringify(take(input, {
|
|
610
397
|
sortBy: (_) => _json(_),
|
|
611
398
|
}));
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
hostname,
|
|
615
|
-
port,
|
|
616
|
-
method: "POST",
|
|
617
|
-
headers,
|
|
618
|
-
path: resolvedPath,
|
|
619
|
-
query,
|
|
620
|
-
body,
|
|
621
|
-
});
|
|
399
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
400
|
+
return b.build();
|
|
622
401
|
};
|
|
623
402
|
export const se_StartDevEnvironmentCommand = async (input, context) => {
|
|
624
|
-
const
|
|
403
|
+
const b = rb(input, context);
|
|
625
404
|
const headers = {
|
|
626
405
|
"content-type": "application/json",
|
|
627
406
|
};
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
407
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start");
|
|
408
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
409
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
410
|
+
b.p("id", () => input.id, "{id}", false);
|
|
633
411
|
let body;
|
|
634
412
|
body = JSON.stringify(take(input, {
|
|
635
413
|
ides: (_) => _json(_),
|
|
636
414
|
inactivityTimeoutMinutes: [],
|
|
637
415
|
instanceType: [],
|
|
638
416
|
}));
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
hostname,
|
|
642
|
-
port,
|
|
643
|
-
method: "PUT",
|
|
644
|
-
headers,
|
|
645
|
-
path: resolvedPath,
|
|
646
|
-
body,
|
|
647
|
-
});
|
|
417
|
+
b.m("PUT").h(headers).b(body);
|
|
418
|
+
return b.build();
|
|
648
419
|
};
|
|
649
420
|
export const se_StartDevEnvironmentSessionCommand = async (input, context) => {
|
|
650
|
-
const
|
|
421
|
+
const b = rb(input, context);
|
|
651
422
|
const headers = {
|
|
652
423
|
"content-type": "application/json",
|
|
653
424
|
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
425
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session");
|
|
426
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
427
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
428
|
+
b.p("id", () => input.id, "{id}", false);
|
|
659
429
|
let body;
|
|
660
430
|
body = JSON.stringify(take(input, {
|
|
661
431
|
sessionConfiguration: (_) => _json(_),
|
|
662
432
|
}));
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
hostname,
|
|
666
|
-
port,
|
|
667
|
-
method: "PUT",
|
|
668
|
-
headers,
|
|
669
|
-
path: resolvedPath,
|
|
670
|
-
body,
|
|
671
|
-
});
|
|
433
|
+
b.m("PUT").h(headers).b(body);
|
|
434
|
+
return b.build();
|
|
672
435
|
};
|
|
673
436
|
export const se_StartWorkflowRunCommand = async (input, context) => {
|
|
674
|
-
const
|
|
437
|
+
const b = rb(input, context);
|
|
675
438
|
const headers = {
|
|
676
439
|
"content-type": "application/json",
|
|
677
440
|
};
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
441
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns");
|
|
442
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
443
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
682
444
|
const query = map({
|
|
683
|
-
|
|
445
|
+
[_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
|
|
684
446
|
});
|
|
685
447
|
let body;
|
|
686
448
|
body = JSON.stringify(take(input, {
|
|
687
449
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
688
450
|
}));
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
hostname,
|
|
692
|
-
port,
|
|
693
|
-
method: "PUT",
|
|
694
|
-
headers,
|
|
695
|
-
path: resolvedPath,
|
|
696
|
-
query,
|
|
697
|
-
body,
|
|
698
|
-
});
|
|
451
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
452
|
+
return b.build();
|
|
699
453
|
};
|
|
700
454
|
export const se_StopDevEnvironmentCommand = async (input, context) => {
|
|
701
|
-
const
|
|
455
|
+
const b = rb(input, context);
|
|
702
456
|
const headers = {};
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
457
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop");
|
|
458
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
459
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
460
|
+
b.p("id", () => input.id, "{id}", false);
|
|
708
461
|
let body;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
hostname,
|
|
712
|
-
port,
|
|
713
|
-
method: "PUT",
|
|
714
|
-
headers,
|
|
715
|
-
path: resolvedPath,
|
|
716
|
-
body,
|
|
717
|
-
});
|
|
462
|
+
b.m("PUT").h(headers).b(body);
|
|
463
|
+
return b.build();
|
|
718
464
|
};
|
|
719
465
|
export const se_StopDevEnvironmentSessionCommand = async (input, context) => {
|
|
720
|
-
const
|
|
466
|
+
const b = rb(input, context);
|
|
721
467
|
const headers = {};
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId, "{sessionId}", false);
|
|
468
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}");
|
|
469
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
470
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
471
|
+
b.p("id", () => input.id, "{id}", false);
|
|
472
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
728
473
|
let body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
hostname,
|
|
732
|
-
port,
|
|
733
|
-
method: "DELETE",
|
|
734
|
-
headers,
|
|
735
|
-
path: resolvedPath,
|
|
736
|
-
body,
|
|
737
|
-
});
|
|
474
|
+
b.m("DELETE").h(headers).b(body);
|
|
475
|
+
return b.build();
|
|
738
476
|
};
|
|
739
477
|
export const se_UpdateDevEnvironmentCommand = async (input, context) => {
|
|
740
|
-
const
|
|
478
|
+
const b = rb(input, context);
|
|
741
479
|
const headers = {
|
|
742
480
|
"content-type": "application/json",
|
|
743
481
|
};
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
482
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
483
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
484
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
485
|
+
b.p("id", () => input.id, "{id}", false);
|
|
749
486
|
let body;
|
|
750
487
|
body = JSON.stringify(take(input, {
|
|
751
488
|
alias: [],
|
|
@@ -754,76 +491,48 @@ export const se_UpdateDevEnvironmentCommand = async (input, context) => {
|
|
|
754
491
|
inactivityTimeoutMinutes: [],
|
|
755
492
|
instanceType: [],
|
|
756
493
|
}));
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
hostname,
|
|
760
|
-
port,
|
|
761
|
-
method: "PATCH",
|
|
762
|
-
headers,
|
|
763
|
-
path: resolvedPath,
|
|
764
|
-
body,
|
|
765
|
-
});
|
|
494
|
+
b.m("PATCH").h(headers).b(body);
|
|
495
|
+
return b.build();
|
|
766
496
|
};
|
|
767
497
|
export const se_UpdateProjectCommand = async (input, context) => {
|
|
768
|
-
const
|
|
498
|
+
const b = rb(input, context);
|
|
769
499
|
const headers = {
|
|
770
500
|
"content-type": "application/json",
|
|
771
501
|
};
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
502
|
+
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
503
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
504
|
+
b.p("name", () => input.name, "{name}", false);
|
|
775
505
|
let body;
|
|
776
506
|
body = JSON.stringify(take(input, {
|
|
777
507
|
description: [],
|
|
778
508
|
}));
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
hostname,
|
|
782
|
-
port,
|
|
783
|
-
method: "PATCH",
|
|
784
|
-
headers,
|
|
785
|
-
path: resolvedPath,
|
|
786
|
-
body,
|
|
787
|
-
});
|
|
509
|
+
b.m("PATCH").h(headers).b(body);
|
|
510
|
+
return b.build();
|
|
788
511
|
};
|
|
789
512
|
export const se_UpdateSpaceCommand = async (input, context) => {
|
|
790
|
-
const
|
|
513
|
+
const b = rb(input, context);
|
|
791
514
|
const headers = {
|
|
792
515
|
"content-type": "application/json",
|
|
793
516
|
};
|
|
794
|
-
|
|
795
|
-
|
|
517
|
+
b.bp("/v1/spaces/{name}");
|
|
518
|
+
b.p("name", () => input.name, "{name}", false);
|
|
796
519
|
let body;
|
|
797
520
|
body = JSON.stringify(take(input, {
|
|
798
521
|
description: [],
|
|
799
522
|
}));
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
hostname,
|
|
803
|
-
port,
|
|
804
|
-
method: "PATCH",
|
|
805
|
-
headers,
|
|
806
|
-
path: resolvedPath,
|
|
807
|
-
body,
|
|
808
|
-
});
|
|
523
|
+
b.m("PATCH").h(headers).b(body);
|
|
524
|
+
return b.build();
|
|
809
525
|
};
|
|
810
526
|
export const se_VerifySessionCommand = async (input, context) => {
|
|
811
|
-
const
|
|
527
|
+
const b = rb(input, context);
|
|
812
528
|
const headers = {
|
|
813
529
|
"content-type": "application/json",
|
|
814
530
|
};
|
|
815
|
-
|
|
531
|
+
b.bp("/session");
|
|
816
532
|
let body;
|
|
817
533
|
body = "";
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
hostname,
|
|
821
|
-
port,
|
|
822
|
-
method: "GET",
|
|
823
|
-
headers,
|
|
824
|
-
path: resolvedPath,
|
|
825
|
-
body,
|
|
826
|
-
});
|
|
534
|
+
b.m("GET").h(headers).b(body);
|
|
535
|
+
return b.build();
|
|
827
536
|
};
|
|
828
537
|
export const de_CreateAccessTokenCommand = async (output, context) => {
|
|
829
538
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3002,6 +2711,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3002
2711
|
value !== "" &&
|
|
3003
2712
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3004
2713
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2714
|
+
const _i = "id";
|
|
2715
|
+
const _mR = "maxResults";
|
|
2716
|
+
const _nT = "nextToken";
|
|
2717
|
+
const _uN = "userName";
|
|
2718
|
+
const _wI = "workflowId";
|
|
3005
2719
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3006
2720
|
if (encoded.length) {
|
|
3007
2721
|
return JSON.parse(encoded);
|