@aws-sdk/client-appflow 3.312.0 → 3.316.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/Appflow.js +27 -322
- package/dist-cjs/protocols/Aws_restJson1.js +497 -2620
- package/dist-es/Appflow.js +27 -322
- package/dist-es/protocols/Aws_restJson1.js +464 -2587
- package/dist-types/Appflow.d.ts +64 -124
- package/dist-types/commands/CreateConnectorProfileCommand.d.ts +1 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +1 -0
- package/dist-types/commands/RegisterConnectorCommand.d.ts +1 -0
- package/dist-types/commands/StartFlowCommand.d.ts +1 -0
- package/dist-types/commands/UpdateConnectorProfileCommand.d.ts +1 -0
- package/dist-types/commands/UpdateConnectorRegistrationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateFlowCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +94 -0
- package/dist-types/ts3.4/Appflow.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/package.json +9 -7
package/dist-cjs/Appflow.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Appflow = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AppflowClient_1 = require("./AppflowClient");
|
|
5
6
|
const CreateConnectorProfileCommand_1 = require("./commands/CreateConnectorProfileCommand");
|
|
6
7
|
const CreateFlowCommand_1 = require("./commands/CreateFlowCommand");
|
|
@@ -25,328 +26,32 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
25
26
|
const UpdateConnectorProfileCommand_1 = require("./commands/UpdateConnectorProfileCommand");
|
|
26
27
|
const UpdateConnectorRegistrationCommand_1 = require("./commands/UpdateConnectorRegistrationCommand");
|
|
27
28
|
const UpdateFlowCommand_1 = require("./commands/UpdateFlowCommand");
|
|
29
|
+
const commands = {
|
|
30
|
+
CreateConnectorProfileCommand: CreateConnectorProfileCommand_1.CreateConnectorProfileCommand,
|
|
31
|
+
CreateFlowCommand: CreateFlowCommand_1.CreateFlowCommand,
|
|
32
|
+
DeleteConnectorProfileCommand: DeleteConnectorProfileCommand_1.DeleteConnectorProfileCommand,
|
|
33
|
+
DeleteFlowCommand: DeleteFlowCommand_1.DeleteFlowCommand,
|
|
34
|
+
DescribeConnectorCommand: DescribeConnectorCommand_1.DescribeConnectorCommand,
|
|
35
|
+
DescribeConnectorEntityCommand: DescribeConnectorEntityCommand_1.DescribeConnectorEntityCommand,
|
|
36
|
+
DescribeConnectorProfilesCommand: DescribeConnectorProfilesCommand_1.DescribeConnectorProfilesCommand,
|
|
37
|
+
DescribeConnectorsCommand: DescribeConnectorsCommand_1.DescribeConnectorsCommand,
|
|
38
|
+
DescribeFlowCommand: DescribeFlowCommand_1.DescribeFlowCommand,
|
|
39
|
+
DescribeFlowExecutionRecordsCommand: DescribeFlowExecutionRecordsCommand_1.DescribeFlowExecutionRecordsCommand,
|
|
40
|
+
ListConnectorEntitiesCommand: ListConnectorEntitiesCommand_1.ListConnectorEntitiesCommand,
|
|
41
|
+
ListConnectorsCommand: ListConnectorsCommand_1.ListConnectorsCommand,
|
|
42
|
+
ListFlowsCommand: ListFlowsCommand_1.ListFlowsCommand,
|
|
43
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
44
|
+
RegisterConnectorCommand: RegisterConnectorCommand_1.RegisterConnectorCommand,
|
|
45
|
+
StartFlowCommand: StartFlowCommand_1.StartFlowCommand,
|
|
46
|
+
StopFlowCommand: StopFlowCommand_1.StopFlowCommand,
|
|
47
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
48
|
+
UnregisterConnectorCommand: UnregisterConnectorCommand_1.UnregisterConnectorCommand,
|
|
49
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
50
|
+
UpdateConnectorProfileCommand: UpdateConnectorProfileCommand_1.UpdateConnectorProfileCommand,
|
|
51
|
+
UpdateConnectorRegistrationCommand: UpdateConnectorRegistrationCommand_1.UpdateConnectorRegistrationCommand,
|
|
52
|
+
UpdateFlowCommand: UpdateFlowCommand_1.UpdateFlowCommand,
|
|
53
|
+
};
|
|
28
54
|
class Appflow extends AppflowClient_1.AppflowClient {
|
|
29
|
-
createConnectorProfile(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new CreateConnectorProfileCommand_1.CreateConnectorProfileCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
createFlow(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new CreateFlowCommand_1.CreateFlowCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
deleteConnectorProfile(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DeleteConnectorProfileCommand_1.DeleteConnectorProfileCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
deleteFlow(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new DeleteFlowCommand_1.DeleteFlowCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
describeConnector(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DescribeConnectorCommand_1.DescribeConnectorCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
describeConnectorEntity(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new DescribeConnectorEntityCommand_1.DescribeConnectorEntityCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
describeConnectorProfiles(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new DescribeConnectorProfilesCommand_1.DescribeConnectorProfilesCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
describeConnectors(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new DescribeConnectorsCommand_1.DescribeConnectorsCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
describeFlow(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new DescribeFlowCommand_1.DescribeFlowCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
describeFlowExecutionRecords(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new DescribeFlowExecutionRecordsCommand_1.DescribeFlowExecutionRecordsCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
listConnectorEntities(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new ListConnectorEntitiesCommand_1.ListConnectorEntitiesCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
listConnectors(args, optionsOrCb, cb) {
|
|
184
|
-
const command = new ListConnectorsCommand_1.ListConnectorsCommand(args);
|
|
185
|
-
if (typeof optionsOrCb === "function") {
|
|
186
|
-
this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
else if (typeof cb === "function") {
|
|
189
|
-
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
return this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
listFlows(args, optionsOrCb, cb) {
|
|
198
|
-
const command = new ListFlowsCommand_1.ListFlowsCommand(args);
|
|
199
|
-
if (typeof optionsOrCb === "function") {
|
|
200
|
-
this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
else if (typeof cb === "function") {
|
|
203
|
-
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
return this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
212
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
213
|
-
if (typeof optionsOrCb === "function") {
|
|
214
|
-
this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
else if (typeof cb === "function") {
|
|
217
|
-
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
return this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
registerConnector(args, optionsOrCb, cb) {
|
|
226
|
-
const command = new RegisterConnectorCommand_1.RegisterConnectorCommand(args);
|
|
227
|
-
if (typeof optionsOrCb === "function") {
|
|
228
|
-
this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
else if (typeof cb === "function") {
|
|
231
|
-
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
return this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
startFlow(args, optionsOrCb, cb) {
|
|
240
|
-
const command = new StartFlowCommand_1.StartFlowCommand(args);
|
|
241
|
-
if (typeof optionsOrCb === "function") {
|
|
242
|
-
this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
else if (typeof cb === "function") {
|
|
245
|
-
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
return this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
stopFlow(args, optionsOrCb, cb) {
|
|
254
|
-
const command = new StopFlowCommand_1.StopFlowCommand(args);
|
|
255
|
-
if (typeof optionsOrCb === "function") {
|
|
256
|
-
this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
else if (typeof cb === "function") {
|
|
259
|
-
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
return this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
tagResource(args, optionsOrCb, cb) {
|
|
268
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
269
|
-
if (typeof optionsOrCb === "function") {
|
|
270
|
-
this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
else if (typeof cb === "function") {
|
|
273
|
-
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
unregisterConnector(args, optionsOrCb, cb) {
|
|
282
|
-
const command = new UnregisterConnectorCommand_1.UnregisterConnectorCommand(args);
|
|
283
|
-
if (typeof optionsOrCb === "function") {
|
|
284
|
-
this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
else if (typeof cb === "function") {
|
|
287
|
-
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
return this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
untagResource(args, optionsOrCb, cb) {
|
|
296
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
297
|
-
if (typeof optionsOrCb === "function") {
|
|
298
|
-
this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
else if (typeof cb === "function") {
|
|
301
|
-
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
return this.send(command, optionsOrCb);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
updateConnectorProfile(args, optionsOrCb, cb) {
|
|
310
|
-
const command = new UpdateConnectorProfileCommand_1.UpdateConnectorProfileCommand(args);
|
|
311
|
-
if (typeof optionsOrCb === "function") {
|
|
312
|
-
this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
else if (typeof cb === "function") {
|
|
315
|
-
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
return this.send(command, optionsOrCb);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
updateConnectorRegistration(args, optionsOrCb, cb) {
|
|
324
|
-
const command = new UpdateConnectorRegistrationCommand_1.UpdateConnectorRegistrationCommand(args);
|
|
325
|
-
if (typeof optionsOrCb === "function") {
|
|
326
|
-
this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
else if (typeof cb === "function") {
|
|
329
|
-
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
return this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
updateFlow(args, optionsOrCb, cb) {
|
|
338
|
-
const command = new UpdateFlowCommand_1.UpdateFlowCommand(args);
|
|
339
|
-
if (typeof optionsOrCb === "function") {
|
|
340
|
-
this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
else if (typeof cb === "function") {
|
|
343
|
-
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
return this.send(command, optionsOrCb);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
55
|
}
|
|
352
56
|
exports.Appflow = Appflow;
|
|
57
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Appflow);
|