@aws-sdk/client-appflow 3.476.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +107 -282
- package/dist-es/protocols/Aws_restJson1.js +108 -283
- package/package.json +5 -4
|
@@ -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
|
|
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
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
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
|
-
|
|
21
|
-
|
|
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
|
|
25
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
26
|
const headers = {
|
|
34
27
|
"content-type": "application/json",
|
|
35
28
|
};
|
|
36
|
-
|
|
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
|
-
|
|
48
|
-
|
|
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
|
|
45
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
60
46
|
const headers = {
|
|
61
47
|
"content-type": "application/json",
|
|
62
48
|
};
|
|
63
|
-
|
|
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
|
-
|
|
78
|
-
|
|
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
|
|
68
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
90
69
|
const headers = {
|
|
91
70
|
"content-type": "application/json",
|
|
92
71
|
};
|
|
93
|
-
|
|
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
|
-
|
|
100
|
-
|
|
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
|
|
83
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
112
84
|
const headers = {
|
|
113
85
|
"content-type": "application/json",
|
|
114
86
|
};
|
|
115
|
-
|
|
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
|
-
|
|
122
|
-
|
|
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
|
|
98
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
134
99
|
const headers = {
|
|
135
100
|
"content-type": "application/json",
|
|
136
101
|
};
|
|
137
|
-
|
|
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
|
-
|
|
144
|
-
|
|
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
|
|
113
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
114
|
const headers = {
|
|
157
115
|
"content-type": "application/json",
|
|
158
116
|
};
|
|
159
|
-
|
|
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
|
-
|
|
168
|
-
|
|
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
|
|
130
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
180
131
|
const headers = {
|
|
181
132
|
"content-type": "application/json",
|
|
182
133
|
};
|
|
183
|
-
|
|
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
|
-
|
|
193
|
-
|
|
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
|
|
148
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
205
149
|
const headers = {
|
|
206
150
|
"content-type": "application/json",
|
|
207
151
|
};
|
|
208
|
-
|
|
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
|
-
|
|
216
|
-
|
|
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
|
|
164
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
228
165
|
const headers = {
|
|
229
166
|
"content-type": "application/json",
|
|
230
167
|
};
|
|
231
|
-
|
|
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
|
-
|
|
237
|
-
|
|
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
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
249
179
|
const headers = {
|
|
250
180
|
"content-type": "application/json",
|
|
251
181
|
};
|
|
252
|
-
|
|
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
|
-
|
|
260
|
-
|
|
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
|
|
194
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
272
195
|
const headers = {
|
|
273
196
|
"content-type": "application/json",
|
|
274
197
|
};
|
|
275
|
-
|
|
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
|
-
|
|
286
|
-
|
|
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
|
|
213
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
298
214
|
const headers = {
|
|
299
215
|
"content-type": "application/json",
|
|
300
216
|
};
|
|
301
|
-
|
|
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
|
-
|
|
308
|
-
|
|
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
|
|
228
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
320
229
|
const headers = {
|
|
321
230
|
"content-type": "application/json",
|
|
322
231
|
};
|
|
323
|
-
|
|
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
|
-
|
|
330
|
-
|
|
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
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
342
244
|
const headers = {};
|
|
343
|
-
|
|
344
|
-
|
|
245
|
+
b.bp("/tags/{resourceArn}");
|
|
246
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
345
247
|
let body;
|
|
346
|
-
|
|
347
|
-
|
|
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
|
|
253
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
359
254
|
const headers = {
|
|
360
255
|
"content-type": "application/json",
|
|
361
256
|
};
|
|
362
|
-
|
|
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
|
-
|
|
372
|
-
|
|
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
|
|
271
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
384
272
|
const headers = {
|
|
385
273
|
"content-type": "application/json",
|
|
386
274
|
};
|
|
387
|
-
|
|
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
|
-
|
|
397
|
-
|
|
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
|
|
289
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
290
|
const headers = {
|
|
410
291
|
"content-type": "application/json",
|
|
411
292
|
};
|
|
412
|
-
|
|
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
|
-
|
|
419
|
-
|
|
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
|
|
304
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
431
305
|
const headers = {
|
|
432
306
|
"content-type": "application/json",
|
|
433
307
|
};
|
|
434
|
-
|
|
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
|
-
|
|
440
|
-
|
|
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
|
|
318
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
452
319
|
const headers = {
|
|
453
320
|
"content-type": "application/json",
|
|
454
321
|
};
|
|
455
|
-
|
|
456
|
-
|
|
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
|
-
|
|
462
|
-
|
|
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
|
|
333
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
474
334
|
const headers = {
|
|
475
335
|
"content-type": "application/json",
|
|
476
336
|
};
|
|
477
|
-
|
|
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
|
-
|
|
484
|
-
|
|
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
|
|
348
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
496
349
|
const headers = {};
|
|
497
|
-
|
|
498
|
-
|
|
350
|
+
b.bp("/tags/{resourceArn}");
|
|
351
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
499
352
|
const query = (0, smithy_client_1.map)({
|
|
500
|
-
|
|
353
|
+
[_tK]: [
|
|
501
354
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
502
|
-
() => (input
|
|
355
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
503
356
|
],
|
|
504
357
|
});
|
|
505
358
|
let body;
|
|
506
|
-
|
|
507
|
-
|
|
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
|
|
364
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
520
365
|
const headers = {
|
|
521
366
|
"content-type": "application/json",
|
|
522
367
|
};
|
|
523
|
-
|
|
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
|
-
|
|
532
|
-
|
|
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
|
|
381
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
544
382
|
const headers = {
|
|
545
383
|
"content-type": "application/json",
|
|
546
384
|
};
|
|
547
|
-
|
|
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
|
-
|
|
556
|
-
|
|
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
|
|
398
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
568
399
|
const headers = {
|
|
569
400
|
"content-type": "application/json",
|
|
570
401
|
};
|
|
571
|
-
|
|
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
|
-
|
|
584
|
-
|
|
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);
|