@aws-sdk/client-codecatalyst 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-cjs/pagination/ListAccessTokensPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListDevEnvironmentSessionsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListEventLogsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListSpacesPaginator.js +2 -23
  9. package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  11. package/dist-cjs/protocols/Aws_restJson1.js +241 -527
  12. package/dist-es/pagination/ListAccessTokensPaginator.js +2 -23
  13. package/dist-es/pagination/ListDevEnvironmentSessionsPaginator.js +2 -23
  14. package/dist-es/pagination/ListDevEnvironmentsPaginator.js +2 -23
  15. package/dist-es/pagination/ListEventLogsPaginator.js +2 -23
  16. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  17. package/dist-es/pagination/ListSourceRepositoriesPaginator.js +2 -23
  18. package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +2 -23
  19. package/dist-es/pagination/ListSpacesPaginator.js +2 -22
  20. package/dist-es/pagination/ListWorkflowRunsPaginator.js +2 -23
  21. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +242 -528
  23. package/dist-types/pagination/ListAccessTokensPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListDevEnvironmentSessionsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListEventLogsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListSpacesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListDevEnvironmentSessionsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  43. package/package.json +6 -6
@@ -1,38 +1,30 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/accessTokens";
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
- return new __HttpRequest({
18
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
21
+ const b = rb(input, context);
29
22
  const headers = {
30
23
  "content-type": "application/json",
31
24
  };
32
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
33
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments";
34
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- return new __HttpRequest({
48
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = rb(input, context);
59
44
  const headers = {
60
45
  "content-type": "application/json",
61
46
  };
62
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects";
63
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- return new __HttpRequest({
70
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
+ const b = rb(input, context);
81
59
  const headers = {
82
60
  "content-type": "application/json",
83
61
  };
84
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
85
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
86
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
87
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
94
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
74
+ const b = rb(input, context);
105
75
  const headers = {
106
76
  "content-type": "application/json",
107
77
  };
108
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
109
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}";
110
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
111
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
112
- resolvedPath = __resolvedPath(resolvedPath, input, "sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
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
- return new __HttpRequest({
119
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = rb(input, context);
130
92
  const headers = {};
131
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/accessTokens/{id}";
132
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
93
+ b.bp("/v1/accessTokens/{id}");
94
+ b.p("id", () => input.id, "{id}", false);
133
95
  let body;
134
- return new __HttpRequest({
135
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
+ const b = rb(input, context);
146
101
  const headers = {};
147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
148
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}";
149
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
150
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
154
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const b = rb(input, context);
165
112
  const headers = {};
166
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
167
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
168
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
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
- return new __HttpRequest({
171
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = rb(input, context);
182
122
  const headers = {};
183
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
184
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
185
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
186
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
190
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = rb(input, context);
201
133
  const headers = {};
202
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
203
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
134
+ b.bp("/v1/spaces/{name}");
135
+ b.p("name", () => input.name, "{name}", false);
204
136
  let body;
205
- return new __HttpRequest({
206
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const b = rb(input, context);
217
142
  const headers = {};
218
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
219
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}";
220
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
221
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
225
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const b = rb(input, context);
236
153
  const headers = {};
237
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
238
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
239
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
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
- return new __HttpRequest({
242
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = rb(input, context);
253
163
  const headers = {};
254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
255
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}";
256
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
257
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
261
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = rb(input, context);
272
174
  const headers = {};
273
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
274
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls";
275
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
276
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
280
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
184
+ const b = rb(input, context);
291
185
  const headers = {};
292
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
293
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
186
+ b.bp("/v1/spaces/{name}");
187
+ b.p("name", () => input.name, "{name}", false);
294
188
  let body;
295
- return new __HttpRequest({
296
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = rb(input, context);
307
194
  const headers = {};
308
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/subscription";
309
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
195
+ b.bp("/v1/spaces/{spaceName}/subscription");
196
+ b.p("spaceName", () => input.spaceName, "{spaceName}", false);
310
197
  let body;
311
- return new __HttpRequest({
312
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = rb(input, context);
323
203
  const headers = {};
324
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userDetails";
204
+ b.bp("/userDetails");
325
205
  const query = map({
326
- id: [, input.id],
327
- userName: [, input.userName],
206
+ [_i]: [, input[_i]],
207
+ [_uN]: [, input[_uN]],
328
208
  });
329
209
  let body;
330
- return new __HttpRequest({
331
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = rb(input, context);
343
215
  const headers = {};
344
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
345
- "/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}";
346
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
347
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
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
- return new __HttpRequest({
351
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = rb(input, context);
362
226
  const headers = {};
363
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
364
- "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}";
365
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
366
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
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
- return new __HttpRequest({
370
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
236
+ const b = rb(input, context);
381
237
  const headers = {
382
238
  "content-type": "application/json",
383
239
  };
384
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/accessTokens";
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
- return new __HttpRequest({
391
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
+ const b = rb(input, context);
402
251
  const headers = {
403
252
  "content-type": "application/json",
404
253
  };
405
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/devEnvironments";
406
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- return new __HttpRequest({
415
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
426
268
  const headers = {
427
269
  "content-type": "application/json",
428
270
  };
429
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
430
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions";
431
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
432
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
440
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
+ const b = rb(input, context);
451
285
  const headers = {
452
286
  "content-type": "application/json",
453
287
  };
454
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/eventLogs";
455
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- return new __HttpRequest({
465
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
+ const b = rb(input, context);
476
303
  const headers = {
477
304
  "content-type": "application/json",
478
305
  };
479
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects";
480
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- return new __HttpRequest({
488
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
+ const b = rb(input, context);
499
319
  const headers = {
500
320
  "content-type": "application/json",
501
321
  };
502
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
503
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories";
504
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- return new __HttpRequest({
512
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const b = rb(input, context);
523
335
  const headers = {
524
336
  "content-type": "application/json",
525
337
  };
526
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
527
- "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches";
528
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
529
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
537
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
+ const b = rb(input, context);
548
352
  const headers = {
549
353
  "content-type": "application/json",
550
354
  };
551
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces";
355
+ b.bp("/v1/spaces");
552
356
  let body;
553
357
  body = JSON.stringify(take(input, {
554
358
  nextToken: [],
555
359
  }));
556
- return new __HttpRequest({
557
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const b = rb(input, context);
568
365
  const headers = {
569
366
  "content-type": "application/json",
570
367
  };
571
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
572
- "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns";
573
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- workflowId: [, input.workflowId],
577
- nextToken: [, input.nextToken],
578
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
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
- return new __HttpRequest({
585
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
384
+ const b = rb(input, context);
597
385
  const headers = {
598
386
  "content-type": "application/json",
599
387
  };
600
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
601
- "/v1/spaces/{spaceName}/projects/{projectName}/workflows";
602
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- nextToken: [, input.nextToken],
606
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
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
- return new __HttpRequest({
613
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
403
+ const b = rb(input, context);
625
404
  const headers = {
626
405
  "content-type": "application/json",
627
406
  };
628
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
629
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start";
630
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
631
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
640
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
421
+ const b = rb(input, context);
651
422
  const headers = {
652
423
  "content-type": "application/json",
653
424
  };
654
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
655
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session";
656
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
657
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
664
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
+ const b = rb(input, context);
675
438
  const headers = {
676
439
  "content-type": "application/json",
677
440
  };
678
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
679
- "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns";
680
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
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
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
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
- return new __HttpRequest({
690
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = rb(input, context);
702
456
  const headers = {};
703
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
704
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop";
705
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
706
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
710
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
466
+ const b = rb(input, context);
721
467
  const headers = {};
722
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
723
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}";
724
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
725
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
726
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
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
- return new __HttpRequest({
730
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
+ const b = rb(input, context);
741
479
  const headers = {
742
480
  "content-type": "application/json",
743
481
  };
744
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
745
- "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}";
746
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
747
- resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
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
- return new __HttpRequest({
758
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
498
+ const b = rb(input, context);
769
499
  const headers = {
770
500
  "content-type": "application/json",
771
501
  };
772
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}";
773
- resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
774
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
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
- return new __HttpRequest({
780
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
513
+ const b = rb(input, context);
791
514
  const headers = {
792
515
  "content-type": "application/json",
793
516
  };
794
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}";
795
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
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
- return new __HttpRequest({
801
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
+ const b = rb(input, context);
812
528
  const headers = {
813
529
  "content-type": "application/json",
814
530
  };
815
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/session";
531
+ b.bp("/session");
816
532
  let body;
817
533
  body = "";
818
- return new __HttpRequest({
819
- protocol,
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);