@aws-sdk/client-databrew 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.
@@ -2,38 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_CreateRecipeJobCommand = exports.de_CreateRecipeCommand = exports.de_CreateProjectCommand = exports.de_CreateProfileJobCommand = exports.de_CreateDatasetCommand = exports.de_BatchDeleteRecipeVersionCommand = exports.se_UpdateScheduleCommand = exports.se_UpdateRulesetCommand = exports.se_UpdateRecipeJobCommand = exports.se_UpdateRecipeCommand = exports.se_UpdateProjectCommand = exports.se_UpdateProfileJobCommand = exports.se_UpdateDatasetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopJobRunCommand = exports.se_StartProjectSessionCommand = exports.se_StartJobRunCommand = exports.se_SendProjectSessionActionCommand = exports.se_PublishRecipeCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchedulesCommand = exports.se_ListRulesetsCommand = exports.se_ListRecipeVersionsCommand = exports.se_ListRecipesCommand = exports.se_ListProjectsCommand = exports.se_ListJobsCommand = exports.se_ListJobRunsCommand = exports.se_ListDatasetsCommand = exports.se_DescribeScheduleCommand = exports.se_DescribeRulesetCommand = exports.se_DescribeRecipeCommand = exports.se_DescribeProjectCommand = exports.se_DescribeJobRunCommand = exports.se_DescribeJobCommand = exports.se_DescribeDatasetCommand = exports.se_DeleteScheduleCommand = exports.se_DeleteRulesetCommand = exports.se_DeleteRecipeVersionCommand = exports.se_DeleteProjectCommand = exports.se_DeleteJobCommand = exports.se_DeleteDatasetCommand = exports.se_CreateScheduleCommand = exports.se_CreateRulesetCommand = exports.se_CreateRecipeJobCommand = exports.se_CreateRecipeCommand = exports.se_CreateProjectCommand = exports.se_CreateProfileJobCommand = exports.se_CreateDatasetCommand = exports.se_BatchDeleteRecipeVersionCommand = void 0;
4
4
  exports.de_UpdateScheduleCommand = exports.de_UpdateRulesetCommand = exports.de_UpdateRecipeJobCommand = exports.de_UpdateRecipeCommand = exports.de_UpdateProjectCommand = exports.de_UpdateProfileJobCommand = exports.de_UpdateDatasetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopJobRunCommand = exports.de_StartProjectSessionCommand = exports.de_StartJobRunCommand = exports.de_SendProjectSessionActionCommand = exports.de_PublishRecipeCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchedulesCommand = exports.de_ListRulesetsCommand = exports.de_ListRecipeVersionsCommand = exports.de_ListRecipesCommand = exports.de_ListProjectsCommand = exports.de_ListJobsCommand = exports.de_ListJobRunsCommand = exports.de_ListDatasetsCommand = exports.de_DescribeScheduleCommand = exports.de_DescribeRulesetCommand = exports.de_DescribeRecipeCommand = exports.de_DescribeProjectCommand = exports.de_DescribeJobRunCommand = exports.de_DescribeJobCommand = exports.de_DescribeDatasetCommand = exports.de_DeleteScheduleCommand = exports.de_DeleteRulesetCommand = exports.de_DeleteRecipeVersionCommand = exports.de_DeleteProjectCommand = exports.de_DeleteJobCommand = exports.de_DeleteDatasetCommand = exports.de_CreateScheduleCommand = exports.de_CreateRulesetCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const DataBrewServiceException_1 = require("../models/DataBrewServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_BatchDeleteRecipeVersionCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/batchDeleteRecipeVersion";
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
14
+ b.bp("/recipes/{Name}/batchDeleteRecipeVersion");
15
+ b.p("Name", () => input.Name, "{Name}", false);
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  RecipeVersions: (_) => (0, smithy_client_1._json)(_),
19
19
  }));
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  exports.se_BatchDeleteRecipeVersionCommand = se_BatchDeleteRecipeVersionCommand;
31
24
  const se_CreateDatasetCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
33
26
  const headers = {
34
27
  "content-type": "application/json",
35
28
  };
36
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
29
+ b.bp("/datasets");
37
30
  let body;
38
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
39
32
  Format: [],
@@ -43,23 +36,16 @@ const se_CreateDatasetCommand = async (input, context) => {
43
36
  PathOptions: (_) => (0, smithy_client_1._json)(_),
44
37
  Tags: (_) => (0, smithy_client_1._json)(_),
45
38
  }));
46
- return new protocol_http_1.HttpRequest({
47
- protocol,
48
- hostname,
49
- port,
50
- method: "POST",
51
- headers,
52
- path: resolvedPath,
53
- body,
54
- });
39
+ b.m("POST").h(headers).b(body);
40
+ return b.build();
55
41
  };
56
42
  exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
57
43
  const se_CreateProfileJobCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
+ const b = (0, core_1.requestBuilder)(input, context);
59
45
  const headers = {
60
46
  "content-type": "application/json",
61
47
  };
62
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs";
48
+ b.bp("/profileJobs");
63
49
  let body;
64
50
  body = JSON.stringify((0, smithy_client_1.take)(input, {
65
51
  Configuration: (_) => (0, smithy_client_1._json)(_),
@@ -77,23 +63,16 @@ const se_CreateProfileJobCommand = async (input, context) => {
77
63
  Timeout: [],
78
64
  ValidationConfigurations: (_) => (0, smithy_client_1._json)(_),
79
65
  }));
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "POST",
85
- headers,
86
- path: resolvedPath,
87
- body,
88
- });
66
+ b.m("POST").h(headers).b(body);
67
+ return b.build();
89
68
  };
90
69
  exports.se_CreateProfileJobCommand = se_CreateProfileJobCommand;
91
70
  const se_CreateProjectCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = (0, core_1.requestBuilder)(input, context);
93
72
  const headers = {
94
73
  "content-type": "application/json",
95
74
  };
96
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
75
+ b.bp("/projects");
97
76
  let body;
98
77
  body = JSON.stringify((0, smithy_client_1.take)(input, {
99
78
  DatasetName: [],
@@ -103,23 +82,16 @@ const se_CreateProjectCommand = async (input, context) => {
103
82
  Sample: (_) => (0, smithy_client_1._json)(_),
104
83
  Tags: (_) => (0, smithy_client_1._json)(_),
105
84
  }));
106
- return new protocol_http_1.HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "POST",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
115
87
  };
116
88
  exports.se_CreateProjectCommand = se_CreateProjectCommand;
117
89
  const se_CreateRecipeCommand = async (input, context) => {
118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
119
91
  const headers = {
120
92
  "content-type": "application/json",
121
93
  };
122
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
94
+ b.bp("/recipes");
123
95
  let body;
124
96
  body = JSON.stringify((0, smithy_client_1.take)(input, {
125
97
  Description: [],
@@ -127,23 +99,16 @@ const se_CreateRecipeCommand = async (input, context) => {
127
99
  Steps: (_) => (0, smithy_client_1._json)(_),
128
100
  Tags: (_) => (0, smithy_client_1._json)(_),
129
101
  }));
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
139
104
  };
140
105
  exports.se_CreateRecipeCommand = se_CreateRecipeCommand;
141
106
  const se_CreateRecipeJobCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
143
108
  const headers = {
144
109
  "content-type": "application/json",
145
110
  };
146
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs";
111
+ b.bp("/recipeJobs");
147
112
  let body;
148
113
  body = JSON.stringify((0, smithy_client_1.take)(input, {
149
114
  DataCatalogOutputs: (_) => (0, smithy_client_1._json)(_),
@@ -162,23 +127,16 @@ const se_CreateRecipeJobCommand = async (input, context) => {
162
127
  Tags: (_) => (0, smithy_client_1._json)(_),
163
128
  Timeout: [],
164
129
  }));
165
- return new protocol_http_1.HttpRequest({
166
- protocol,
167
- hostname,
168
- port,
169
- method: "POST",
170
- headers,
171
- path: resolvedPath,
172
- body,
173
- });
130
+ b.m("POST").h(headers).b(body);
131
+ return b.build();
174
132
  };
175
133
  exports.se_CreateRecipeJobCommand = se_CreateRecipeJobCommand;
176
134
  const se_CreateRulesetCommand = async (input, context) => {
177
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_1.requestBuilder)(input, context);
178
136
  const headers = {
179
137
  "content-type": "application/json",
180
138
  };
181
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
139
+ b.bp("/rulesets");
182
140
  let body;
183
141
  body = JSON.stringify((0, smithy_client_1.take)(input, {
184
142
  Description: [],
@@ -187,23 +145,16 @@ const se_CreateRulesetCommand = async (input, context) => {
187
145
  Tags: (_) => (0, smithy_client_1._json)(_),
188
146
  TargetArn: [],
189
147
  }));
190
- return new protocol_http_1.HttpRequest({
191
- protocol,
192
- hostname,
193
- port,
194
- method: "POST",
195
- headers,
196
- path: resolvedPath,
197
- body,
198
- });
148
+ b.m("POST").h(headers).b(body);
149
+ return b.build();
199
150
  };
200
151
  exports.se_CreateRulesetCommand = se_CreateRulesetCommand;
201
152
  const se_CreateScheduleCommand = async (input, context) => {
202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
203
154
  const headers = {
204
155
  "content-type": "application/json",
205
156
  };
206
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
157
+ b.bp("/schedules");
207
158
  let body;
208
159
  body = JSON.stringify((0, smithy_client_1.take)(input, {
209
160
  CronExpression: [],
@@ -211,466 +162,288 @@ const se_CreateScheduleCommand = async (input, context) => {
211
162
  Name: [],
212
163
  Tags: (_) => (0, smithy_client_1._json)(_),
213
164
  }));
214
- return new protocol_http_1.HttpRequest({
215
- protocol,
216
- hostname,
217
- port,
218
- method: "POST",
219
- headers,
220
- path: resolvedPath,
221
- body,
222
- });
165
+ b.m("POST").h(headers).b(body);
166
+ return b.build();
223
167
  };
224
168
  exports.se_CreateScheduleCommand = se_CreateScheduleCommand;
225
169
  const se_DeleteDatasetCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
170
+ const b = (0, core_1.requestBuilder)(input, context);
227
171
  const headers = {};
228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
229
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
172
+ b.bp("/datasets/{Name}");
173
+ b.p("Name", () => input.Name, "{Name}", false);
230
174
  let body;
231
- return new protocol_http_1.HttpRequest({
232
- protocol,
233
- hostname,
234
- port,
235
- method: "DELETE",
236
- headers,
237
- path: resolvedPath,
238
- body,
239
- });
175
+ b.m("DELETE").h(headers).b(body);
176
+ return b.build();
240
177
  };
241
178
  exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
242
179
  const se_DeleteJobCommand = async (input, context) => {
243
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
+ const b = (0, core_1.requestBuilder)(input, context);
244
181
  const headers = {};
245
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}";
246
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
182
+ b.bp("/jobs/{Name}");
183
+ b.p("Name", () => input.Name, "{Name}", false);
247
184
  let body;
248
- return new protocol_http_1.HttpRequest({
249
- protocol,
250
- hostname,
251
- port,
252
- method: "DELETE",
253
- headers,
254
- path: resolvedPath,
255
- body,
256
- });
185
+ b.m("DELETE").h(headers).b(body);
186
+ return b.build();
257
187
  };
258
188
  exports.se_DeleteJobCommand = se_DeleteJobCommand;
259
189
  const se_DeleteProjectCommand = async (input, context) => {
260
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
190
+ const b = (0, core_1.requestBuilder)(input, context);
261
191
  const headers = {};
262
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
263
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
192
+ b.bp("/projects/{Name}");
193
+ b.p("Name", () => input.Name, "{Name}", false);
264
194
  let body;
265
- return new protocol_http_1.HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "DELETE",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
195
+ b.m("DELETE").h(headers).b(body);
196
+ return b.build();
274
197
  };
275
198
  exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
276
199
  const se_DeleteRecipeVersionCommand = async (input, context) => {
277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const b = (0, core_1.requestBuilder)(input, context);
278
201
  const headers = {};
279
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
280
- "/recipes/{Name}/recipeVersion/{RecipeVersion}";
281
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
282
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecipeVersion", () => input.RecipeVersion, "{RecipeVersion}", false);
202
+ b.bp("/recipes/{Name}/recipeVersion/{RecipeVersion}");
203
+ b.p("Name", () => input.Name, "{Name}", false);
204
+ b.p("RecipeVersion", () => input.RecipeVersion, "{RecipeVersion}", false);
283
205
  let body;
284
- return new protocol_http_1.HttpRequest({
285
- protocol,
286
- hostname,
287
- port,
288
- method: "DELETE",
289
- headers,
290
- path: resolvedPath,
291
- body,
292
- });
206
+ b.m("DELETE").h(headers).b(body);
207
+ return b.build();
293
208
  };
294
209
  exports.se_DeleteRecipeVersionCommand = se_DeleteRecipeVersionCommand;
295
210
  const se_DeleteRulesetCommand = async (input, context) => {
296
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = (0, core_1.requestBuilder)(input, context);
297
212
  const headers = {};
298
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
299
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
213
+ b.bp("/rulesets/{Name}");
214
+ b.p("Name", () => input.Name, "{Name}", false);
300
215
  let body;
301
- return new protocol_http_1.HttpRequest({
302
- protocol,
303
- hostname,
304
- port,
305
- method: "DELETE",
306
- headers,
307
- path: resolvedPath,
308
- body,
309
- });
216
+ b.m("DELETE").h(headers).b(body);
217
+ return b.build();
310
218
  };
311
219
  exports.se_DeleteRulesetCommand = se_DeleteRulesetCommand;
312
220
  const se_DeleteScheduleCommand = async (input, context) => {
313
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
+ const b = (0, core_1.requestBuilder)(input, context);
314
222
  const headers = {};
315
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
316
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
223
+ b.bp("/schedules/{Name}");
224
+ b.p("Name", () => input.Name, "{Name}", false);
317
225
  let body;
318
- return new protocol_http_1.HttpRequest({
319
- protocol,
320
- hostname,
321
- port,
322
- method: "DELETE",
323
- headers,
324
- path: resolvedPath,
325
- body,
326
- });
226
+ b.m("DELETE").h(headers).b(body);
227
+ return b.build();
327
228
  };
328
229
  exports.se_DeleteScheduleCommand = se_DeleteScheduleCommand;
329
230
  const se_DescribeDatasetCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_1.requestBuilder)(input, context);
331
232
  const headers = {};
332
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
233
+ b.bp("/datasets/{Name}");
234
+ b.p("Name", () => input.Name, "{Name}", false);
334
235
  let body;
335
- return new protocol_http_1.HttpRequest({
336
- protocol,
337
- hostname,
338
- port,
339
- method: "GET",
340
- headers,
341
- path: resolvedPath,
342
- body,
343
- });
236
+ b.m("GET").h(headers).b(body);
237
+ return b.build();
344
238
  };
345
239
  exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
346
240
  const se_DescribeJobCommand = async (input, context) => {
347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
241
+ const b = (0, core_1.requestBuilder)(input, context);
348
242
  const headers = {};
349
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}";
350
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
243
+ b.bp("/jobs/{Name}");
244
+ b.p("Name", () => input.Name, "{Name}", false);
351
245
  let body;
352
- return new protocol_http_1.HttpRequest({
353
- protocol,
354
- hostname,
355
- port,
356
- method: "GET",
357
- headers,
358
- path: resolvedPath,
359
- body,
360
- });
246
+ b.m("GET").h(headers).b(body);
247
+ return b.build();
361
248
  };
362
249
  exports.se_DescribeJobCommand = se_DescribeJobCommand;
363
250
  const se_DescribeJobRunCommand = async (input, context) => {
364
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
251
+ const b = (0, core_1.requestBuilder)(input, context);
365
252
  const headers = {};
366
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}";
367
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
368
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
253
+ b.bp("/jobs/{Name}/jobRun/{RunId}");
254
+ b.p("Name", () => input.Name, "{Name}", false);
255
+ b.p("RunId", () => input.RunId, "{RunId}", false);
369
256
  let body;
370
- return new protocol_http_1.HttpRequest({
371
- protocol,
372
- hostname,
373
- port,
374
- method: "GET",
375
- headers,
376
- path: resolvedPath,
377
- body,
378
- });
257
+ b.m("GET").h(headers).b(body);
258
+ return b.build();
379
259
  };
380
260
  exports.se_DescribeJobRunCommand = se_DescribeJobRunCommand;
381
261
  const se_DescribeProjectCommand = async (input, context) => {
382
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = (0, core_1.requestBuilder)(input, context);
383
263
  const headers = {};
384
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
385
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
264
+ b.bp("/projects/{Name}");
265
+ b.p("Name", () => input.Name, "{Name}", false);
386
266
  let body;
387
- return new protocol_http_1.HttpRequest({
388
- protocol,
389
- hostname,
390
- port,
391
- method: "GET",
392
- headers,
393
- path: resolvedPath,
394
- body,
395
- });
267
+ b.m("GET").h(headers).b(body);
268
+ return b.build();
396
269
  };
397
270
  exports.se_DescribeProjectCommand = se_DescribeProjectCommand;
398
271
  const se_DescribeRecipeCommand = async (input, context) => {
399
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = (0, core_1.requestBuilder)(input, context);
400
273
  const headers = {};
401
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
402
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
274
+ b.bp("/recipes/{Name}");
275
+ b.p("Name", () => input.Name, "{Name}", false);
403
276
  const query = (0, smithy_client_1.map)({
404
- recipeVersion: [, input.RecipeVersion],
277
+ [_rV]: [, input[_RV]],
405
278
  });
406
279
  let body;
407
- return new protocol_http_1.HttpRequest({
408
- protocol,
409
- hostname,
410
- port,
411
- method: "GET",
412
- headers,
413
- path: resolvedPath,
414
- query,
415
- body,
416
- });
280
+ b.m("GET").h(headers).q(query).b(body);
281
+ return b.build();
417
282
  };
418
283
  exports.se_DescribeRecipeCommand = se_DescribeRecipeCommand;
419
284
  const se_DescribeRulesetCommand = async (input, context) => {
420
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
285
+ const b = (0, core_1.requestBuilder)(input, context);
421
286
  const headers = {};
422
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
423
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
287
+ b.bp("/rulesets/{Name}");
288
+ b.p("Name", () => input.Name, "{Name}", false);
424
289
  let body;
425
- return new protocol_http_1.HttpRequest({
426
- protocol,
427
- hostname,
428
- port,
429
- method: "GET",
430
- headers,
431
- path: resolvedPath,
432
- body,
433
- });
290
+ b.m("GET").h(headers).b(body);
291
+ return b.build();
434
292
  };
435
293
  exports.se_DescribeRulesetCommand = se_DescribeRulesetCommand;
436
294
  const se_DescribeScheduleCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
295
+ const b = (0, core_1.requestBuilder)(input, context);
438
296
  const headers = {};
439
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
440
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
297
+ b.bp("/schedules/{Name}");
298
+ b.p("Name", () => input.Name, "{Name}", false);
441
299
  let body;
442
- return new protocol_http_1.HttpRequest({
443
- protocol,
444
- hostname,
445
- port,
446
- method: "GET",
447
- headers,
448
- path: resolvedPath,
449
- body,
450
- });
300
+ b.m("GET").h(headers).b(body);
301
+ return b.build();
451
302
  };
452
303
  exports.se_DescribeScheduleCommand = se_DescribeScheduleCommand;
453
304
  const se_ListDatasetsCommand = async (input, context) => {
454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
305
+ const b = (0, core_1.requestBuilder)(input, context);
455
306
  const headers = {};
456
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
307
+ b.bp("/datasets");
457
308
  const query = (0, smithy_client_1.map)({
458
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
459
- nextToken: [, input.NextToken],
309
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
310
+ [_nT]: [, input[_NT]],
460
311
  });
461
312
  let body;
462
- return new protocol_http_1.HttpRequest({
463
- protocol,
464
- hostname,
465
- port,
466
- method: "GET",
467
- headers,
468
- path: resolvedPath,
469
- query,
470
- body,
471
- });
313
+ b.m("GET").h(headers).q(query).b(body);
314
+ return b.build();
472
315
  };
473
316
  exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
474
317
  const se_ListJobRunsCommand = async (input, context) => {
475
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
+ const b = (0, core_1.requestBuilder)(input, context);
476
319
  const headers = {};
477
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRuns";
478
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
320
+ b.bp("/jobs/{Name}/jobRuns");
321
+ b.p("Name", () => input.Name, "{Name}", false);
479
322
  const query = (0, smithy_client_1.map)({
480
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
481
- nextToken: [, input.NextToken],
323
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
324
+ [_nT]: [, input[_NT]],
482
325
  });
483
326
  let body;
484
- return new protocol_http_1.HttpRequest({
485
- protocol,
486
- hostname,
487
- port,
488
- method: "GET",
489
- headers,
490
- path: resolvedPath,
491
- query,
492
- body,
493
- });
327
+ b.m("GET").h(headers).q(query).b(body);
328
+ return b.build();
494
329
  };
495
330
  exports.se_ListJobRunsCommand = se_ListJobRunsCommand;
496
331
  const se_ListJobsCommand = async (input, context) => {
497
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
+ const b = (0, core_1.requestBuilder)(input, context);
498
333
  const headers = {};
499
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
334
+ b.bp("/jobs");
500
335
  const query = (0, smithy_client_1.map)({
501
- datasetName: [, input.DatasetName],
502
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
503
- nextToken: [, input.NextToken],
504
- projectName: [, input.ProjectName],
336
+ [_dN]: [, input[_DN]],
337
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
338
+ [_nT]: [, input[_NT]],
339
+ [_pN]: [, input[_PN]],
505
340
  });
506
341
  let body;
507
- return new protocol_http_1.HttpRequest({
508
- protocol,
509
- hostname,
510
- port,
511
- method: "GET",
512
- headers,
513
- path: resolvedPath,
514
- query,
515
- body,
516
- });
342
+ b.m("GET").h(headers).q(query).b(body);
343
+ return b.build();
517
344
  };
518
345
  exports.se_ListJobsCommand = se_ListJobsCommand;
519
346
  const se_ListProjectsCommand = async (input, context) => {
520
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
+ const b = (0, core_1.requestBuilder)(input, context);
521
348
  const headers = {};
522
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
349
+ b.bp("/projects");
523
350
  const query = (0, smithy_client_1.map)({
524
- nextToken: [, input.NextToken],
525
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
351
+ [_nT]: [, input[_NT]],
352
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
526
353
  });
527
354
  let body;
528
- return new protocol_http_1.HttpRequest({
529
- protocol,
530
- hostname,
531
- port,
532
- method: "GET",
533
- headers,
534
- path: resolvedPath,
535
- query,
536
- body,
537
- });
355
+ b.m("GET").h(headers).q(query).b(body);
356
+ return b.build();
538
357
  };
539
358
  exports.se_ListProjectsCommand = se_ListProjectsCommand;
540
359
  const se_ListRecipesCommand = async (input, context) => {
541
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
360
+ const b = (0, core_1.requestBuilder)(input, context);
542
361
  const headers = {};
543
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
362
+ b.bp("/recipes");
544
363
  const query = (0, smithy_client_1.map)({
545
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
546
- nextToken: [, input.NextToken],
547
- recipeVersion: [, input.RecipeVersion],
364
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
365
+ [_nT]: [, input[_NT]],
366
+ [_rV]: [, input[_RV]],
548
367
  });
549
368
  let body;
550
- return new protocol_http_1.HttpRequest({
551
- protocol,
552
- hostname,
553
- port,
554
- method: "GET",
555
- headers,
556
- path: resolvedPath,
557
- query,
558
- body,
559
- });
369
+ b.m("GET").h(headers).q(query).b(body);
370
+ return b.build();
560
371
  };
561
372
  exports.se_ListRecipesCommand = se_ListRecipesCommand;
562
373
  const se_ListRecipeVersionsCommand = async (input, context) => {
563
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
374
+ const b = (0, core_1.requestBuilder)(input, context);
564
375
  const headers = {};
565
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeVersions";
376
+ b.bp("/recipeVersions");
566
377
  const query = (0, smithy_client_1.map)({
567
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
568
- nextToken: [, input.NextToken],
569
- name: [, (0, smithy_client_1.expectNonNull)(input.Name, `Name`)],
378
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
379
+ [_nT]: [, input[_NT]],
380
+ [_n]: [, (0, smithy_client_1.expectNonNull)(input[_N], `Name`)],
570
381
  });
571
382
  let body;
572
- return new protocol_http_1.HttpRequest({
573
- protocol,
574
- hostname,
575
- port,
576
- method: "GET",
577
- headers,
578
- path: resolvedPath,
579
- query,
580
- body,
581
- });
383
+ b.m("GET").h(headers).q(query).b(body);
384
+ return b.build();
582
385
  };
583
386
  exports.se_ListRecipeVersionsCommand = se_ListRecipeVersionsCommand;
584
387
  const se_ListRulesetsCommand = async (input, context) => {
585
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
388
+ const b = (0, core_1.requestBuilder)(input, context);
586
389
  const headers = {};
587
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
390
+ b.bp("/rulesets");
588
391
  const query = (0, smithy_client_1.map)({
589
- targetArn: [, input.TargetArn],
590
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
591
- nextToken: [, input.NextToken],
392
+ [_tA]: [, input[_TA]],
393
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
394
+ [_nT]: [, input[_NT]],
592
395
  });
593
396
  let body;
594
- return new protocol_http_1.HttpRequest({
595
- protocol,
596
- hostname,
597
- port,
598
- method: "GET",
599
- headers,
600
- path: resolvedPath,
601
- query,
602
- body,
603
- });
397
+ b.m("GET").h(headers).q(query).b(body);
398
+ return b.build();
604
399
  };
605
400
  exports.se_ListRulesetsCommand = se_ListRulesetsCommand;
606
401
  const se_ListSchedulesCommand = async (input, context) => {
607
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
+ const b = (0, core_1.requestBuilder)(input, context);
608
403
  const headers = {};
609
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
404
+ b.bp("/schedules");
610
405
  const query = (0, smithy_client_1.map)({
611
- jobName: [, input.JobName],
612
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
613
- nextToken: [, input.NextToken],
406
+ [_jN]: [, input[_JN]],
407
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
408
+ [_nT]: [, input[_NT]],
614
409
  });
615
410
  let body;
616
- return new protocol_http_1.HttpRequest({
617
- protocol,
618
- hostname,
619
- port,
620
- method: "GET",
621
- headers,
622
- path: resolvedPath,
623
- query,
624
- body,
625
- });
411
+ b.m("GET").h(headers).q(query).b(body);
412
+ return b.build();
626
413
  };
627
414
  exports.se_ListSchedulesCommand = se_ListSchedulesCommand;
628
415
  const se_ListTagsForResourceCommand = async (input, context) => {
629
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
+ const b = (0, core_1.requestBuilder)(input, context);
630
417
  const headers = {};
631
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
632
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
418
+ b.bp("/tags/{ResourceArn}");
419
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
633
420
  let body;
634
- return new protocol_http_1.HttpRequest({
635
- protocol,
636
- hostname,
637
- port,
638
- method: "GET",
639
- headers,
640
- path: resolvedPath,
641
- body,
642
- });
421
+ b.m("GET").h(headers).b(body);
422
+ return b.build();
643
423
  };
644
424
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
645
425
  const se_PublishRecipeCommand = async (input, context) => {
646
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
426
+ const b = (0, core_1.requestBuilder)(input, context);
647
427
  const headers = {
648
428
  "content-type": "application/json",
649
429
  };
650
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/publishRecipe";
651
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
430
+ b.bp("/recipes/{Name}/publishRecipe");
431
+ b.p("Name", () => input.Name, "{Name}", false);
652
432
  let body;
653
433
  body = JSON.stringify((0, smithy_client_1.take)(input, {
654
434
  Description: [],
655
435
  }));
656
- return new protocol_http_1.HttpRequest({
657
- protocol,
658
- hostname,
659
- port,
660
- method: "POST",
661
- headers,
662
- path: resolvedPath,
663
- body,
664
- });
436
+ b.m("POST").h(headers).b(body);
437
+ return b.build();
665
438
  };
666
439
  exports.se_PublishRecipeCommand = se_PublishRecipeCommand;
667
440
  const se_SendProjectSessionActionCommand = async (input, context) => {
668
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
441
+ const b = (0, core_1.requestBuilder)(input, context);
669
442
  const headers = {
670
443
  "content-type": "application/json",
671
444
  };
672
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/sendProjectSessionAction";
673
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
445
+ b.bp("/projects/{Name}/sendProjectSessionAction");
446
+ b.p("Name", () => input.Name, "{Name}", false);
674
447
  let body;
675
448
  body = JSON.stringify((0, smithy_client_1.take)(input, {
676
449
  ClientSessionId: [],
@@ -679,127 +452,84 @@ const se_SendProjectSessionActionCommand = async (input, context) => {
679
452
  StepIndex: [],
680
453
  ViewFrame: (_) => (0, smithy_client_1._json)(_),
681
454
  }));
682
- return new protocol_http_1.HttpRequest({
683
- protocol,
684
- hostname,
685
- port,
686
- method: "PUT",
687
- headers,
688
- path: resolvedPath,
689
- body,
690
- });
455
+ b.m("PUT").h(headers).b(body);
456
+ return b.build();
691
457
  };
692
458
  exports.se_SendProjectSessionActionCommand = se_SendProjectSessionActionCommand;
693
459
  const se_StartJobRunCommand = async (input, context) => {
694
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
460
+ const b = (0, core_1.requestBuilder)(input, context);
695
461
  const headers = {};
696
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/startJobRun";
697
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
462
+ b.bp("/jobs/{Name}/startJobRun");
463
+ b.p("Name", () => input.Name, "{Name}", false);
698
464
  let body;
699
- return new protocol_http_1.HttpRequest({
700
- protocol,
701
- hostname,
702
- port,
703
- method: "POST",
704
- headers,
705
- path: resolvedPath,
706
- body,
707
- });
465
+ b.m("POST").h(headers).b(body);
466
+ return b.build();
708
467
  };
709
468
  exports.se_StartJobRunCommand = se_StartJobRunCommand;
710
469
  const se_StartProjectSessionCommand = async (input, context) => {
711
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
470
+ const b = (0, core_1.requestBuilder)(input, context);
712
471
  const headers = {
713
472
  "content-type": "application/json",
714
473
  };
715
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/startProjectSession";
716
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
474
+ b.bp("/projects/{Name}/startProjectSession");
475
+ b.p("Name", () => input.Name, "{Name}", false);
717
476
  let body;
718
477
  body = JSON.stringify((0, smithy_client_1.take)(input, {
719
478
  AssumeControl: [],
720
479
  }));
721
- return new protocol_http_1.HttpRequest({
722
- protocol,
723
- hostname,
724
- port,
725
- method: "PUT",
726
- headers,
727
- path: resolvedPath,
728
- body,
729
- });
480
+ b.m("PUT").h(headers).b(body);
481
+ return b.build();
730
482
  };
731
483
  exports.se_StartProjectSessionCommand = se_StartProjectSessionCommand;
732
484
  const se_StopJobRunCommand = async (input, context) => {
733
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
485
+ const b = (0, core_1.requestBuilder)(input, context);
734
486
  const headers = {};
735
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}/stopJobRun";
736
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
737
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
487
+ b.bp("/jobs/{Name}/jobRun/{RunId}/stopJobRun");
488
+ b.p("Name", () => input.Name, "{Name}", false);
489
+ b.p("RunId", () => input.RunId, "{RunId}", false);
738
490
  let body;
739
- return new protocol_http_1.HttpRequest({
740
- protocol,
741
- hostname,
742
- port,
743
- method: "POST",
744
- headers,
745
- path: resolvedPath,
746
- body,
747
- });
491
+ b.m("POST").h(headers).b(body);
492
+ return b.build();
748
493
  };
749
494
  exports.se_StopJobRunCommand = se_StopJobRunCommand;
750
495
  const se_TagResourceCommand = async (input, context) => {
751
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
496
+ const b = (0, core_1.requestBuilder)(input, context);
752
497
  const headers = {
753
498
  "content-type": "application/json",
754
499
  };
755
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
756
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
500
+ b.bp("/tags/{ResourceArn}");
501
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
757
502
  let body;
758
503
  body = JSON.stringify((0, smithy_client_1.take)(input, {
759
504
  Tags: (_) => (0, smithy_client_1._json)(_),
760
505
  }));
761
- return new protocol_http_1.HttpRequest({
762
- protocol,
763
- hostname,
764
- port,
765
- method: "POST",
766
- headers,
767
- path: resolvedPath,
768
- body,
769
- });
506
+ b.m("POST").h(headers).b(body);
507
+ return b.build();
770
508
  };
771
509
  exports.se_TagResourceCommand = se_TagResourceCommand;
772
510
  const se_UntagResourceCommand = async (input, context) => {
773
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
511
+ const b = (0, core_1.requestBuilder)(input, context);
774
512
  const headers = {};
775
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
776
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
513
+ b.bp("/tags/{ResourceArn}");
514
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
777
515
  const query = (0, smithy_client_1.map)({
778
- tagKeys: [
516
+ [_tK]: [
779
517
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
780
- () => (input.TagKeys || []).map((_entry) => _entry),
518
+ () => (input[_TK] || []).map((_entry) => _entry),
781
519
  ],
782
520
  });
783
521
  let body;
784
- return new protocol_http_1.HttpRequest({
785
- protocol,
786
- hostname,
787
- port,
788
- method: "DELETE",
789
- headers,
790
- path: resolvedPath,
791
- query,
792
- body,
793
- });
522
+ b.m("DELETE").h(headers).q(query).b(body);
523
+ return b.build();
794
524
  };
795
525
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
796
526
  const se_UpdateDatasetCommand = async (input, context) => {
797
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
+ const b = (0, core_1.requestBuilder)(input, context);
798
528
  const headers = {
799
529
  "content-type": "application/json",
800
530
  };
801
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
802
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
531
+ b.bp("/datasets/{Name}");
532
+ b.p("Name", () => input.Name, "{Name}", false);
803
533
  let body;
804
534
  body = JSON.stringify((0, smithy_client_1.take)(input, {
805
535
  Format: [],
@@ -807,24 +537,17 @@ const se_UpdateDatasetCommand = async (input, context) => {
807
537
  Input: (_) => (0, smithy_client_1._json)(_),
808
538
  PathOptions: (_) => (0, smithy_client_1._json)(_),
809
539
  }));
810
- return new protocol_http_1.HttpRequest({
811
- protocol,
812
- hostname,
813
- port,
814
- method: "PUT",
815
- headers,
816
- path: resolvedPath,
817
- body,
818
- });
540
+ b.m("PUT").h(headers).b(body);
541
+ return b.build();
819
542
  };
820
543
  exports.se_UpdateDatasetCommand = se_UpdateDatasetCommand;
821
544
  const se_UpdateProfileJobCommand = async (input, context) => {
822
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
+ const b = (0, core_1.requestBuilder)(input, context);
823
546
  const headers = {
824
547
  "content-type": "application/json",
825
548
  };
826
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs/{Name}";
827
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
549
+ b.bp("/profileJobs/{Name}");
550
+ b.p("Name", () => input.Name, "{Name}", false);
828
551
  let body;
829
552
  body = JSON.stringify((0, smithy_client_1.take)(input, {
830
553
  Configuration: (_) => (0, smithy_client_1._json)(_),
@@ -839,70 +562,49 @@ const se_UpdateProfileJobCommand = async (input, context) => {
839
562
  Timeout: [],
840
563
  ValidationConfigurations: (_) => (0, smithy_client_1._json)(_),
841
564
  }));
842
- return new protocol_http_1.HttpRequest({
843
- protocol,
844
- hostname,
845
- port,
846
- method: "PUT",
847
- headers,
848
- path: resolvedPath,
849
- body,
850
- });
565
+ b.m("PUT").h(headers).b(body);
566
+ return b.build();
851
567
  };
852
568
  exports.se_UpdateProfileJobCommand = se_UpdateProfileJobCommand;
853
569
  const se_UpdateProjectCommand = async (input, context) => {
854
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
570
+ const b = (0, core_1.requestBuilder)(input, context);
855
571
  const headers = {
856
572
  "content-type": "application/json",
857
573
  };
858
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
859
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
574
+ b.bp("/projects/{Name}");
575
+ b.p("Name", () => input.Name, "{Name}", false);
860
576
  let body;
861
577
  body = JSON.stringify((0, smithy_client_1.take)(input, {
862
578
  RoleArn: [],
863
579
  Sample: (_) => (0, smithy_client_1._json)(_),
864
580
  }));
865
- return new protocol_http_1.HttpRequest({
866
- protocol,
867
- hostname,
868
- port,
869
- method: "PUT",
870
- headers,
871
- path: resolvedPath,
872
- body,
873
- });
581
+ b.m("PUT").h(headers).b(body);
582
+ return b.build();
874
583
  };
875
584
  exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
876
585
  const se_UpdateRecipeCommand = async (input, context) => {
877
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
586
+ const b = (0, core_1.requestBuilder)(input, context);
878
587
  const headers = {
879
588
  "content-type": "application/json",
880
589
  };
881
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
882
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
590
+ b.bp("/recipes/{Name}");
591
+ b.p("Name", () => input.Name, "{Name}", false);
883
592
  let body;
884
593
  body = JSON.stringify((0, smithy_client_1.take)(input, {
885
594
  Description: [],
886
595
  Steps: (_) => (0, smithy_client_1._json)(_),
887
596
  }));
888
- return new protocol_http_1.HttpRequest({
889
- protocol,
890
- hostname,
891
- port,
892
- method: "PUT",
893
- headers,
894
- path: resolvedPath,
895
- body,
896
- });
597
+ b.m("PUT").h(headers).b(body);
598
+ return b.build();
897
599
  };
898
600
  exports.se_UpdateRecipeCommand = se_UpdateRecipeCommand;
899
601
  const se_UpdateRecipeJobCommand = async (input, context) => {
900
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ const b = (0, core_1.requestBuilder)(input, context);
901
603
  const headers = {
902
604
  "content-type": "application/json",
903
605
  };
904
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs/{Name}";
905
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
606
+ b.bp("/recipeJobs/{Name}");
607
+ b.p("Name", () => input.Name, "{Name}", false);
906
608
  let body;
907
609
  body = JSON.stringify((0, smithy_client_1.take)(input, {
908
610
  DataCatalogOutputs: (_) => (0, smithy_client_1._json)(_),
@@ -916,61 +618,40 @@ const se_UpdateRecipeJobCommand = async (input, context) => {
916
618
  RoleArn: [],
917
619
  Timeout: [],
918
620
  }));
919
- return new protocol_http_1.HttpRequest({
920
- protocol,
921
- hostname,
922
- port,
923
- method: "PUT",
924
- headers,
925
- path: resolvedPath,
926
- body,
927
- });
621
+ b.m("PUT").h(headers).b(body);
622
+ return b.build();
928
623
  };
929
624
  exports.se_UpdateRecipeJobCommand = se_UpdateRecipeJobCommand;
930
625
  const se_UpdateRulesetCommand = async (input, context) => {
931
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
+ const b = (0, core_1.requestBuilder)(input, context);
932
627
  const headers = {
933
628
  "content-type": "application/json",
934
629
  };
935
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
936
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
630
+ b.bp("/rulesets/{Name}");
631
+ b.p("Name", () => input.Name, "{Name}", false);
937
632
  let body;
938
633
  body = JSON.stringify((0, smithy_client_1.take)(input, {
939
634
  Description: [],
940
635
  Rules: (_) => se_RuleList(_, context),
941
636
  }));
942
- return new protocol_http_1.HttpRequest({
943
- protocol,
944
- hostname,
945
- port,
946
- method: "PUT",
947
- headers,
948
- path: resolvedPath,
949
- body,
950
- });
637
+ b.m("PUT").h(headers).b(body);
638
+ return b.build();
951
639
  };
952
640
  exports.se_UpdateRulesetCommand = se_UpdateRulesetCommand;
953
641
  const se_UpdateScheduleCommand = async (input, context) => {
954
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
642
+ const b = (0, core_1.requestBuilder)(input, context);
955
643
  const headers = {
956
644
  "content-type": "application/json",
957
645
  };
958
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
959
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
646
+ b.bp("/schedules/{Name}");
647
+ b.p("Name", () => input.Name, "{Name}", false);
960
648
  let body;
961
649
  body = JSON.stringify((0, smithy_client_1.take)(input, {
962
650
  CronExpression: [],
963
651
  JobNames: (_) => (0, smithy_client_1._json)(_),
964
652
  }));
965
- return new protocol_http_1.HttpRequest({
966
- protocol,
967
- hostname,
968
- port,
969
- method: "PUT",
970
- headers,
971
- path: resolvedPath,
972
- body,
973
- });
653
+ b.m("PUT").h(headers).b(body);
654
+ return b.build();
974
655
  };
975
656
  exports.se_UpdateScheduleCommand = se_UpdateScheduleCommand;
976
657
  const de_BatchDeleteRecipeVersionCommand = async (output, context) => {
@@ -3106,6 +2787,24 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3106
2787
  value !== "" &&
3107
2788
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3108
2789
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2790
+ const _DN = "DatasetName";
2791
+ const _JN = "JobName";
2792
+ const _MR = "MaxResults";
2793
+ const _N = "Name";
2794
+ const _NT = "NextToken";
2795
+ const _PN = "ProjectName";
2796
+ const _RV = "RecipeVersion";
2797
+ const _TA = "TargetArn";
2798
+ const _TK = "TagKeys";
2799
+ const _dN = "datasetName";
2800
+ const _jN = "jobName";
2801
+ const _mR = "maxResults";
2802
+ const _n = "name";
2803
+ const _nT = "nextToken";
2804
+ const _pN = "projectName";
2805
+ const _rV = "recipeVersion";
2806
+ const _tA = "targetArn";
2807
+ const _tK = "tagKeys";
3109
2808
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3110
2809
  if (encoded.length) {
3111
2810
  return JSON.parse(encoded);