@aws-sdk/client-appflow 3.474.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.
@@ -1,39 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateFlowCommand = exports.de_UpdateConnectorRegistrationCommand = exports.de_UpdateConnectorProfileCommand = exports.de_UntagResourceCommand = exports.de_UnregisterConnectorCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_ResetConnectorMetadataCacheCommand = exports.de_RegisterConnectorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListFlowsCommand = exports.de_ListConnectorsCommand = exports.de_ListConnectorEntitiesCommand = exports.de_DescribeFlowExecutionRecordsCommand = exports.de_DescribeFlowCommand = exports.de_DescribeConnectorsCommand = exports.de_DescribeConnectorProfilesCommand = exports.de_DescribeConnectorEntityCommand = exports.de_DescribeConnectorCommand = exports.de_DeleteFlowCommand = exports.de_DeleteConnectorProfileCommand = exports.de_CreateFlowCommand = exports.de_CreateConnectorProfileCommand = exports.de_CancelFlowExecutionsCommand = exports.se_UpdateFlowCommand = exports.se_UpdateConnectorRegistrationCommand = exports.se_UpdateConnectorProfileCommand = exports.se_UntagResourceCommand = exports.se_UnregisterConnectorCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_ResetConnectorMetadataCacheCommand = exports.se_RegisterConnectorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListFlowsCommand = exports.se_ListConnectorsCommand = exports.se_ListConnectorEntitiesCommand = exports.se_DescribeFlowExecutionRecordsCommand = exports.se_DescribeFlowCommand = exports.se_DescribeConnectorsCommand = exports.se_DescribeConnectorProfilesCommand = exports.se_DescribeConnectorEntityCommand = exports.se_DescribeConnectorCommand = exports.se_DeleteFlowCommand = exports.se_DeleteConnectorProfileCommand = exports.se_CreateFlowCommand = exports.se_CreateConnectorProfileCommand = exports.se_CancelFlowExecutionsCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const AppflowServiceException_1 = require("../models/AppflowServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CancelFlowExecutionsCommand = 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
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancel-flow-executions";
14
+ b.bp("/cancel-flow-executions");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  executionIds: (_) => (0, smithy_client_1._json)(_),
18
18
  flowName: [],
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_CancelFlowExecutionsCommand = se_CancelFlowExecutionsCommand;
31
24
  const se_CreateConnectorProfileCommand = 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 || ""}` + "/create-connector-profile";
29
+ b.bp("/create-connector-profile");
37
30
  let body;
38
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
39
32
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -44,23 +37,16 @@ const se_CreateConnectorProfileCommand = async (input, context) => {
44
37
  connectorType: [],
45
38
  kmsArn: [],
46
39
  }));
47
- return new protocol_http_1.HttpRequest({
48
- protocol,
49
- hostname,
50
- port,
51
- method: "POST",
52
- headers,
53
- path: resolvedPath,
54
- body,
55
- });
40
+ b.m("POST").h(headers).b(body);
41
+ return b.build();
56
42
  };
57
43
  exports.se_CreateConnectorProfileCommand = se_CreateConnectorProfileCommand;
58
44
  const se_CreateFlowCommand = async (input, context) => {
59
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = (0, core_1.requestBuilder)(input, context);
60
46
  const headers = {
61
47
  "content-type": "application/json",
62
48
  };
63
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-flow";
49
+ b.bp("/create-flow");
64
50
  let body;
65
51
  body = JSON.stringify((0, smithy_client_1.take)(input, {
66
52
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -74,89 +60,61 @@ const se_CreateFlowCommand = async (input, context) => {
74
60
  tasks: (_) => (0, smithy_client_1._json)(_),
75
61
  triggerConfig: (_) => se_TriggerConfig(_, context),
76
62
  }));
77
- return new protocol_http_1.HttpRequest({
78
- protocol,
79
- hostname,
80
- port,
81
- method: "POST",
82
- headers,
83
- path: resolvedPath,
84
- body,
85
- });
63
+ b.m("POST").h(headers).b(body);
64
+ return b.build();
86
65
  };
87
66
  exports.se_CreateFlowCommand = se_CreateFlowCommand;
88
67
  const se_DeleteConnectorProfileCommand = async (input, context) => {
89
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
+ const b = (0, core_1.requestBuilder)(input, context);
90
69
  const headers = {
91
70
  "content-type": "application/json",
92
71
  };
93
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-connector-profile";
72
+ b.bp("/delete-connector-profile");
94
73
  let body;
95
74
  body = JSON.stringify((0, smithy_client_1.take)(input, {
96
75
  connectorProfileName: [],
97
76
  forceDelete: [],
98
77
  }));
99
- return new protocol_http_1.HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "POST",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
78
+ b.m("POST").h(headers).b(body);
79
+ return b.build();
108
80
  };
109
81
  exports.se_DeleteConnectorProfileCommand = se_DeleteConnectorProfileCommand;
110
82
  const se_DeleteFlowCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
83
+ const b = (0, core_1.requestBuilder)(input, context);
112
84
  const headers = {
113
85
  "content-type": "application/json",
114
86
  };
115
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-flow";
87
+ b.bp("/delete-flow");
116
88
  let body;
117
89
  body = JSON.stringify((0, smithy_client_1.take)(input, {
118
90
  flowName: [],
119
91
  forceDelete: [],
120
92
  }));
121
- return new protocol_http_1.HttpRequest({
122
- protocol,
123
- hostname,
124
- port,
125
- method: "POST",
126
- headers,
127
- path: resolvedPath,
128
- body,
129
- });
93
+ b.m("POST").h(headers).b(body);
94
+ return b.build();
130
95
  };
131
96
  exports.se_DeleteFlowCommand = se_DeleteFlowCommand;
132
97
  const se_DescribeConnectorCommand = async (input, context) => {
133
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
+ const b = (0, core_1.requestBuilder)(input, context);
134
99
  const headers = {
135
100
  "content-type": "application/json",
136
101
  };
137
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector";
102
+ b.bp("/describe-connector");
138
103
  let body;
139
104
  body = JSON.stringify((0, smithy_client_1.take)(input, {
140
105
  connectorLabel: [],
141
106
  connectorType: [],
142
107
  }));
143
- return new protocol_http_1.HttpRequest({
144
- protocol,
145
- hostname,
146
- port,
147
- method: "POST",
148
- headers,
149
- path: resolvedPath,
150
- body,
151
- });
108
+ b.m("POST").h(headers).b(body);
109
+ return b.build();
152
110
  };
153
111
  exports.se_DescribeConnectorCommand = se_DescribeConnectorCommand;
154
112
  const se_DescribeConnectorEntityCommand = async (input, context) => {
155
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = (0, core_1.requestBuilder)(input, context);
156
114
  const headers = {
157
115
  "content-type": "application/json",
158
116
  };
159
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-entity";
117
+ b.bp("/describe-connector-entity");
160
118
  let body;
161
119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
162
120
  apiVersion: [],
@@ -164,23 +122,16 @@ const se_DescribeConnectorEntityCommand = async (input, context) => {
164
122
  connectorProfileName: [],
165
123
  connectorType: [],
166
124
  }));
167
- return new protocol_http_1.HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "POST",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
125
+ b.m("POST").h(headers).b(body);
126
+ return b.build();
176
127
  };
177
128
  exports.se_DescribeConnectorEntityCommand = se_DescribeConnectorEntityCommand;
178
129
  const se_DescribeConnectorProfilesCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = (0, core_1.requestBuilder)(input, context);
180
131
  const headers = {
181
132
  "content-type": "application/json",
182
133
  };
183
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-profiles";
134
+ b.bp("/describe-connector-profiles");
184
135
  let body;
185
136
  body = JSON.stringify((0, smithy_client_1.take)(input, {
186
137
  connectorLabel: [],
@@ -189,90 +140,62 @@ const se_DescribeConnectorProfilesCommand = async (input, context) => {
189
140
  maxResults: [],
190
141
  nextToken: [],
191
142
  }));
192
- return new protocol_http_1.HttpRequest({
193
- protocol,
194
- hostname,
195
- port,
196
- method: "POST",
197
- headers,
198
- path: resolvedPath,
199
- body,
200
- });
143
+ b.m("POST").h(headers).b(body);
144
+ return b.build();
201
145
  };
202
146
  exports.se_DescribeConnectorProfilesCommand = se_DescribeConnectorProfilesCommand;
203
147
  const se_DescribeConnectorsCommand = async (input, context) => {
204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = (0, core_1.requestBuilder)(input, context);
205
149
  const headers = {
206
150
  "content-type": "application/json",
207
151
  };
208
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connectors";
152
+ b.bp("/describe-connectors");
209
153
  let body;
210
154
  body = JSON.stringify((0, smithy_client_1.take)(input, {
211
155
  connectorTypes: (_) => (0, smithy_client_1._json)(_),
212
156
  maxResults: [],
213
157
  nextToken: [],
214
158
  }));
215
- return new protocol_http_1.HttpRequest({
216
- protocol,
217
- hostname,
218
- port,
219
- method: "POST",
220
- headers,
221
- path: resolvedPath,
222
- body,
223
- });
159
+ b.m("POST").h(headers).b(body);
160
+ return b.build();
224
161
  };
225
162
  exports.se_DescribeConnectorsCommand = se_DescribeConnectorsCommand;
226
163
  const se_DescribeFlowCommand = async (input, context) => {
227
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = (0, core_1.requestBuilder)(input, context);
228
165
  const headers = {
229
166
  "content-type": "application/json",
230
167
  };
231
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow";
168
+ b.bp("/describe-flow");
232
169
  let body;
233
170
  body = JSON.stringify((0, smithy_client_1.take)(input, {
234
171
  flowName: [],
235
172
  }));
236
- return new protocol_http_1.HttpRequest({
237
- protocol,
238
- hostname,
239
- port,
240
- method: "POST",
241
- headers,
242
- path: resolvedPath,
243
- body,
244
- });
173
+ b.m("POST").h(headers).b(body);
174
+ return b.build();
245
175
  };
246
176
  exports.se_DescribeFlowCommand = se_DescribeFlowCommand;
247
177
  const se_DescribeFlowExecutionRecordsCommand = async (input, context) => {
248
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
249
179
  const headers = {
250
180
  "content-type": "application/json",
251
181
  };
252
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow-execution-records";
182
+ b.bp("/describe-flow-execution-records");
253
183
  let body;
254
184
  body = JSON.stringify((0, smithy_client_1.take)(input, {
255
185
  flowName: [],
256
186
  maxResults: [],
257
187
  nextToken: [],
258
188
  }));
259
- return new protocol_http_1.HttpRequest({
260
- protocol,
261
- hostname,
262
- port,
263
- method: "POST",
264
- headers,
265
- path: resolvedPath,
266
- body,
267
- });
189
+ b.m("POST").h(headers).b(body);
190
+ return b.build();
268
191
  };
269
192
  exports.se_DescribeFlowExecutionRecordsCommand = se_DescribeFlowExecutionRecordsCommand;
270
193
  const se_ListConnectorEntitiesCommand = async (input, context) => {
271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
194
+ const b = (0, core_1.requestBuilder)(input, context);
272
195
  const headers = {
273
196
  "content-type": "application/json",
274
197
  };
275
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-connector-entities";
198
+ b.bp("/list-connector-entities");
276
199
  let body;
277
200
  body = JSON.stringify((0, smithy_client_1.take)(input, {
278
201
  apiVersion: [],
@@ -282,84 +205,56 @@ const se_ListConnectorEntitiesCommand = async (input, context) => {
282
205
  maxResults: [],
283
206
  nextToken: [],
284
207
  }));
285
- return new protocol_http_1.HttpRequest({
286
- protocol,
287
- hostname,
288
- port,
289
- method: "POST",
290
- headers,
291
- path: resolvedPath,
292
- body,
293
- });
208
+ b.m("POST").h(headers).b(body);
209
+ return b.build();
294
210
  };
295
211
  exports.se_ListConnectorEntitiesCommand = se_ListConnectorEntitiesCommand;
296
212
  const se_ListConnectorsCommand = async (input, context) => {
297
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
213
+ const b = (0, core_1.requestBuilder)(input, context);
298
214
  const headers = {
299
215
  "content-type": "application/json",
300
216
  };
301
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-connectors";
217
+ b.bp("/list-connectors");
302
218
  let body;
303
219
  body = JSON.stringify((0, smithy_client_1.take)(input, {
304
220
  maxResults: [],
305
221
  nextToken: [],
306
222
  }));
307
- return new protocol_http_1.HttpRequest({
308
- protocol,
309
- hostname,
310
- port,
311
- method: "POST",
312
- headers,
313
- path: resolvedPath,
314
- body,
315
- });
223
+ b.m("POST").h(headers).b(body);
224
+ return b.build();
316
225
  };
317
226
  exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
318
227
  const se_ListFlowsCommand = async (input, context) => {
319
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
+ const b = (0, core_1.requestBuilder)(input, context);
320
229
  const headers = {
321
230
  "content-type": "application/json",
322
231
  };
323
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-flows";
232
+ b.bp("/list-flows");
324
233
  let body;
325
234
  body = JSON.stringify((0, smithy_client_1.take)(input, {
326
235
  maxResults: [],
327
236
  nextToken: [],
328
237
  }));
329
- return new protocol_http_1.HttpRequest({
330
- protocol,
331
- hostname,
332
- port,
333
- method: "POST",
334
- headers,
335
- path: resolvedPath,
336
- body,
337
- });
238
+ b.m("POST").h(headers).b(body);
239
+ return b.build();
338
240
  };
339
241
  exports.se_ListFlowsCommand = se_ListFlowsCommand;
340
242
  const se_ListTagsForResourceCommand = async (input, context) => {
341
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
342
244
  const headers = {};
343
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
344
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
245
+ b.bp("/tags/{resourceArn}");
246
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
345
247
  let body;
346
- return new protocol_http_1.HttpRequest({
347
- protocol,
348
- hostname,
349
- port,
350
- method: "GET",
351
- headers,
352
- path: resolvedPath,
353
- body,
354
- });
248
+ b.m("GET").h(headers).b(body);
249
+ return b.build();
355
250
  };
356
251
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
357
252
  const se_RegisterConnectorCommand = async (input, context) => {
358
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = (0, core_1.requestBuilder)(input, context);
359
254
  const headers = {
360
255
  "content-type": "application/json",
361
256
  };
362
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector";
257
+ b.bp("/register-connector");
363
258
  let body;
364
259
  body = JSON.stringify((0, smithy_client_1.take)(input, {
365
260
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -368,23 +263,16 @@ const se_RegisterConnectorCommand = async (input, context) => {
368
263
  connectorProvisioningType: [],
369
264
  description: [],
370
265
  }));
371
- return new protocol_http_1.HttpRequest({
372
- protocol,
373
- hostname,
374
- port,
375
- method: "POST",
376
- headers,
377
- path: resolvedPath,
378
- body,
379
- });
266
+ b.m("POST").h(headers).b(body);
267
+ return b.build();
380
268
  };
381
269
  exports.se_RegisterConnectorCommand = se_RegisterConnectorCommand;
382
270
  const se_ResetConnectorMetadataCacheCommand = async (input, context) => {
383
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
+ const b = (0, core_1.requestBuilder)(input, context);
384
272
  const headers = {
385
273
  "content-type": "application/json",
386
274
  };
387
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-connector-metadata-cache";
275
+ b.bp("/reset-connector-metadata-cache");
388
276
  let body;
389
277
  body = JSON.stringify((0, smithy_client_1.take)(input, {
390
278
  apiVersion: [],
@@ -393,134 +281,91 @@ const se_ResetConnectorMetadataCacheCommand = async (input, context) => {
393
281
  connectorType: [],
394
282
  entitiesPath: [],
395
283
  }));
396
- return new protocol_http_1.HttpRequest({
397
- protocol,
398
- hostname,
399
- port,
400
- method: "POST",
401
- headers,
402
- path: resolvedPath,
403
- body,
404
- });
284
+ b.m("POST").h(headers).b(body);
285
+ return b.build();
405
286
  };
406
287
  exports.se_ResetConnectorMetadataCacheCommand = se_ResetConnectorMetadataCacheCommand;
407
288
  const se_StartFlowCommand = async (input, context) => {
408
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
+ const b = (0, core_1.requestBuilder)(input, context);
409
290
  const headers = {
410
291
  "content-type": "application/json",
411
292
  };
412
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-flow";
293
+ b.bp("/start-flow");
413
294
  let body;
414
295
  body = JSON.stringify((0, smithy_client_1.take)(input, {
415
296
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
416
297
  flowName: [],
417
298
  }));
418
- return new protocol_http_1.HttpRequest({
419
- protocol,
420
- hostname,
421
- port,
422
- method: "POST",
423
- headers,
424
- path: resolvedPath,
425
- body,
426
- });
299
+ b.m("POST").h(headers).b(body);
300
+ return b.build();
427
301
  };
428
302
  exports.se_StartFlowCommand = se_StartFlowCommand;
429
303
  const se_StopFlowCommand = async (input, context) => {
430
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
431
305
  const headers = {
432
306
  "content-type": "application/json",
433
307
  };
434
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-flow";
308
+ b.bp("/stop-flow");
435
309
  let body;
436
310
  body = JSON.stringify((0, smithy_client_1.take)(input, {
437
311
  flowName: [],
438
312
  }));
439
- return new protocol_http_1.HttpRequest({
440
- protocol,
441
- hostname,
442
- port,
443
- method: "POST",
444
- headers,
445
- path: resolvedPath,
446
- body,
447
- });
313
+ b.m("POST").h(headers).b(body);
314
+ return b.build();
448
315
  };
449
316
  exports.se_StopFlowCommand = se_StopFlowCommand;
450
317
  const se_TagResourceCommand = async (input, context) => {
451
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
+ const b = (0, core_1.requestBuilder)(input, context);
452
319
  const headers = {
453
320
  "content-type": "application/json",
454
321
  };
455
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
456
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
322
+ b.bp("/tags/{resourceArn}");
323
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
457
324
  let body;
458
325
  body = JSON.stringify((0, smithy_client_1.take)(input, {
459
326
  tags: (_) => (0, smithy_client_1._json)(_),
460
327
  }));
461
- return new protocol_http_1.HttpRequest({
462
- protocol,
463
- hostname,
464
- port,
465
- method: "POST",
466
- headers,
467
- path: resolvedPath,
468
- body,
469
- });
328
+ b.m("POST").h(headers).b(body);
329
+ return b.build();
470
330
  };
471
331
  exports.se_TagResourceCommand = se_TagResourceCommand;
472
332
  const se_UnregisterConnectorCommand = async (input, context) => {
473
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const b = (0, core_1.requestBuilder)(input, context);
474
334
  const headers = {
475
335
  "content-type": "application/json",
476
336
  };
477
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/unregister-connector";
337
+ b.bp("/unregister-connector");
478
338
  let body;
479
339
  body = JSON.stringify((0, smithy_client_1.take)(input, {
480
340
  connectorLabel: [],
481
341
  forceDelete: [],
482
342
  }));
483
- return new protocol_http_1.HttpRequest({
484
- protocol,
485
- hostname,
486
- port,
487
- method: "POST",
488
- headers,
489
- path: resolvedPath,
490
- body,
491
- });
343
+ b.m("POST").h(headers).b(body);
344
+ return b.build();
492
345
  };
493
346
  exports.se_UnregisterConnectorCommand = se_UnregisterConnectorCommand;
494
347
  const se_UntagResourceCommand = async (input, context) => {
495
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
348
+ const b = (0, core_1.requestBuilder)(input, context);
496
349
  const headers = {};
497
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
498
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
350
+ b.bp("/tags/{resourceArn}");
351
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
499
352
  const query = (0, smithy_client_1.map)({
500
- tagKeys: [
353
+ [_tK]: [
501
354
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
502
- () => (input.tagKeys || []).map((_entry) => _entry),
355
+ () => (input[_tK] || []).map((_entry) => _entry),
503
356
  ],
504
357
  });
505
358
  let body;
506
- return new protocol_http_1.HttpRequest({
507
- protocol,
508
- hostname,
509
- port,
510
- method: "DELETE",
511
- headers,
512
- path: resolvedPath,
513
- query,
514
- body,
515
- });
359
+ b.m("DELETE").h(headers).q(query).b(body);
360
+ return b.build();
516
361
  };
517
362
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
518
363
  const se_UpdateConnectorProfileCommand = async (input, context) => {
519
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const b = (0, core_1.requestBuilder)(input, context);
520
365
  const headers = {
521
366
  "content-type": "application/json",
522
367
  };
523
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-profile";
368
+ b.bp("/update-connector-profile");
524
369
  let body;
525
370
  body = JSON.stringify((0, smithy_client_1.take)(input, {
526
371
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -528,23 +373,16 @@ const se_UpdateConnectorProfileCommand = async (input, context) => {
528
373
  connectorProfileConfig: (_) => (0, smithy_client_1._json)(_),
529
374
  connectorProfileName: [],
530
375
  }));
531
- return new protocol_http_1.HttpRequest({
532
- protocol,
533
- hostname,
534
- port,
535
- method: "POST",
536
- headers,
537
- path: resolvedPath,
538
- body,
539
- });
376
+ b.m("POST").h(headers).b(body);
377
+ return b.build();
540
378
  };
541
379
  exports.se_UpdateConnectorProfileCommand = se_UpdateConnectorProfileCommand;
542
380
  const se_UpdateConnectorRegistrationCommand = async (input, context) => {
543
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = (0, core_1.requestBuilder)(input, context);
544
382
  const headers = {
545
383
  "content-type": "application/json",
546
384
  };
547
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration";
385
+ b.bp("/update-connector-registration");
548
386
  let body;
549
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
550
388
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -552,23 +390,16 @@ const se_UpdateConnectorRegistrationCommand = async (input, context) => {
552
390
  connectorProvisioningConfig: (_) => (0, smithy_client_1._json)(_),
553
391
  description: [],
554
392
  }));
555
- return new protocol_http_1.HttpRequest({
556
- protocol,
557
- hostname,
558
- port,
559
- method: "POST",
560
- headers,
561
- path: resolvedPath,
562
- body,
563
- });
393
+ b.m("POST").h(headers).b(body);
394
+ return b.build();
564
395
  };
565
396
  exports.se_UpdateConnectorRegistrationCommand = se_UpdateConnectorRegistrationCommand;
566
397
  const se_UpdateFlowCommand = async (input, context) => {
567
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
398
+ const b = (0, core_1.requestBuilder)(input, context);
568
399
  const headers = {
569
400
  "content-type": "application/json",
570
401
  };
571
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-flow";
402
+ b.bp("/update-flow");
572
403
  let body;
573
404
  body = JSON.stringify((0, smithy_client_1.take)(input, {
574
405
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -580,15 +411,8 @@ const se_UpdateFlowCommand = async (input, context) => {
580
411
  tasks: (_) => (0, smithy_client_1._json)(_),
581
412
  triggerConfig: (_) => se_TriggerConfig(_, context),
582
413
  }));
583
- return new protocol_http_1.HttpRequest({
584
- protocol,
585
- hostname,
586
- port,
587
- method: "POST",
588
- headers,
589
- path: resolvedPath,
590
- body,
591
- });
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
592
416
  };
593
417
  exports.se_UpdateFlowCommand = se_UpdateFlowCommand;
594
418
  const de_CancelFlowExecutionsCommand = async (output, context) => {
@@ -2061,6 +1885,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2061
1885
  value !== "" &&
2062
1886
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2063
1887
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1888
+ const _tK = "tagKeys";
2064
1889
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2065
1890
  if (encoded.length) {
2066
1891
  return JSON.parse(encoded);