@aws-sdk/client-appflow 3.315.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.
@@ -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);
@@ -14,7 +14,7 @@ const se_CreateConnectorProfileCommand = async (input, context) => {
14
14
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-connector-profile";
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
17
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
18
18
  connectionMode: [],
19
19
  connectorLabel: [],
20
20
  connectorProfileConfig: (_) => (0, smithy_client_1._json)(_),
@@ -41,7 +41,7 @@ const se_CreateFlowCommand = async (input, context) => {
41
41
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-flow";
42
42
  let body;
43
43
  body = JSON.stringify((0, smithy_client_1.take)(input, {
44
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
44
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
45
45
  description: [],
46
46
  destinationFlowConfigList: (_) => (0, smithy_client_1._json)(_),
47
47
  flowName: [],
@@ -340,7 +340,7 @@ const se_RegisterConnectorCommand = async (input, context) => {
340
340
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector";
341
341
  let body;
342
342
  body = JSON.stringify((0, smithy_client_1.take)(input, {
343
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
343
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
344
344
  connectorLabel: [],
345
345
  connectorProvisioningConfig: (_) => (0, smithy_client_1._json)(_),
346
346
  connectorProvisioningType: [],
@@ -365,7 +365,7 @@ const se_StartFlowCommand = async (input, context) => {
365
365
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-flow";
366
366
  let body;
367
367
  body = JSON.stringify((0, smithy_client_1.take)(input, {
368
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
368
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
369
369
  flowName: [],
370
370
  }));
371
371
  return new protocol_http_1.HttpRequest({
@@ -476,7 +476,7 @@ const se_UpdateConnectorProfileCommand = async (input, context) => {
476
476
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-profile";
477
477
  let body;
478
478
  body = JSON.stringify((0, smithy_client_1.take)(input, {
479
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
479
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
480
480
  connectionMode: [],
481
481
  connectorProfileConfig: (_) => (0, smithy_client_1._json)(_),
482
482
  connectorProfileName: [],
@@ -500,7 +500,7 @@ const se_UpdateConnectorRegistrationCommand = async (input, context) => {
500
500
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration";
501
501
  let body;
502
502
  body = JSON.stringify((0, smithy_client_1.take)(input, {
503
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
503
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
504
504
  connectorLabel: [],
505
505
  connectorProvisioningConfig: (_) => (0, smithy_client_1._json)(_),
506
506
  description: [],
@@ -524,7 +524,7 @@ const se_UpdateFlowCommand = async (input, context) => {
524
524
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-flow";
525
525
  let body;
526
526
  body = JSON.stringify((0, smithy_client_1.take)(input, {
527
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
527
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
528
528
  description: [],
529
529
  destinationFlowConfigList: (_) => (0, smithy_client_1._json)(_),
530
530
  flowName: [],
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AppflowClient } from "./AppflowClient";
2
3
  import { CreateConnectorProfileCommand, } from "./commands/CreateConnectorProfileCommand";
3
4
  import { CreateFlowCommand } from "./commands/CreateFlowCommand";
@@ -22,327 +23,31 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
23
  import { UpdateConnectorProfileCommand, } from "./commands/UpdateConnectorProfileCommand";
23
24
  import { UpdateConnectorRegistrationCommand, } from "./commands/UpdateConnectorRegistrationCommand";
24
25
  import { UpdateFlowCommand } from "./commands/UpdateFlowCommand";
26
+ const commands = {
27
+ CreateConnectorProfileCommand,
28
+ CreateFlowCommand,
29
+ DeleteConnectorProfileCommand,
30
+ DeleteFlowCommand,
31
+ DescribeConnectorCommand,
32
+ DescribeConnectorEntityCommand,
33
+ DescribeConnectorProfilesCommand,
34
+ DescribeConnectorsCommand,
35
+ DescribeFlowCommand,
36
+ DescribeFlowExecutionRecordsCommand,
37
+ ListConnectorEntitiesCommand,
38
+ ListConnectorsCommand,
39
+ ListFlowsCommand,
40
+ ListTagsForResourceCommand,
41
+ RegisterConnectorCommand,
42
+ StartFlowCommand,
43
+ StopFlowCommand,
44
+ TagResourceCommand,
45
+ UnregisterConnectorCommand,
46
+ UntagResourceCommand,
47
+ UpdateConnectorProfileCommand,
48
+ UpdateConnectorRegistrationCommand,
49
+ UpdateFlowCommand,
50
+ };
25
51
  export class Appflow extends AppflowClient {
26
- createConnectorProfile(args, optionsOrCb, cb) {
27
- const command = new CreateConnectorProfileCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- createFlow(args, optionsOrCb, cb) {
41
- const command = new CreateFlowCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- deleteConnectorProfile(args, optionsOrCb, cb) {
55
- const command = new DeleteConnectorProfileCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- deleteFlow(args, optionsOrCb, cb) {
69
- const command = new DeleteFlowCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- describeConnector(args, optionsOrCb, cb) {
83
- const command = new DescribeConnectorCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
- describeConnectorEntity(args, optionsOrCb, cb) {
97
- const command = new DescribeConnectorEntityCommand(args);
98
- if (typeof optionsOrCb === "function") {
99
- this.send(command, optionsOrCb);
100
- }
101
- else if (typeof cb === "function") {
102
- if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
- this.send(command, optionsOrCb || {}, cb);
105
- }
106
- else {
107
- return this.send(command, optionsOrCb);
108
- }
109
- }
110
- describeConnectorProfiles(args, optionsOrCb, cb) {
111
- const command = new DescribeConnectorProfilesCommand(args);
112
- if (typeof optionsOrCb === "function") {
113
- this.send(command, optionsOrCb);
114
- }
115
- else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
- this.send(command, optionsOrCb || {}, cb);
119
- }
120
- else {
121
- return this.send(command, optionsOrCb);
122
- }
123
- }
124
- describeConnectors(args, optionsOrCb, cb) {
125
- const command = new DescribeConnectorsCommand(args);
126
- if (typeof optionsOrCb === "function") {
127
- this.send(command, optionsOrCb);
128
- }
129
- else if (typeof cb === "function") {
130
- if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
- this.send(command, optionsOrCb || {}, cb);
133
- }
134
- else {
135
- return this.send(command, optionsOrCb);
136
- }
137
- }
138
- describeFlow(args, optionsOrCb, cb) {
139
- const command = new DescribeFlowCommand(args);
140
- if (typeof optionsOrCb === "function") {
141
- this.send(command, optionsOrCb);
142
- }
143
- else if (typeof cb === "function") {
144
- if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
- this.send(command, optionsOrCb || {}, cb);
147
- }
148
- else {
149
- return this.send(command, optionsOrCb);
150
- }
151
- }
152
- describeFlowExecutionRecords(args, optionsOrCb, cb) {
153
- const command = new DescribeFlowExecutionRecordsCommand(args);
154
- if (typeof optionsOrCb === "function") {
155
- this.send(command, optionsOrCb);
156
- }
157
- else if (typeof cb === "function") {
158
- if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
- this.send(command, optionsOrCb || {}, cb);
161
- }
162
- else {
163
- return this.send(command, optionsOrCb);
164
- }
165
- }
166
- listConnectorEntities(args, optionsOrCb, cb) {
167
- const command = new ListConnectorEntitiesCommand(args);
168
- if (typeof optionsOrCb === "function") {
169
- this.send(command, optionsOrCb);
170
- }
171
- else if (typeof cb === "function") {
172
- if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
- this.send(command, optionsOrCb || {}, cb);
175
- }
176
- else {
177
- return this.send(command, optionsOrCb);
178
- }
179
- }
180
- listConnectors(args, optionsOrCb, cb) {
181
- const command = new ListConnectorsCommand(args);
182
- if (typeof optionsOrCb === "function") {
183
- this.send(command, optionsOrCb);
184
- }
185
- else if (typeof cb === "function") {
186
- if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
188
- this.send(command, optionsOrCb || {}, cb);
189
- }
190
- else {
191
- return this.send(command, optionsOrCb);
192
- }
193
- }
194
- listFlows(args, optionsOrCb, cb) {
195
- const command = new ListFlowsCommand(args);
196
- if (typeof optionsOrCb === "function") {
197
- this.send(command, optionsOrCb);
198
- }
199
- else if (typeof cb === "function") {
200
- if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- }
204
- else {
205
- return this.send(command, optionsOrCb);
206
- }
207
- }
208
- listTagsForResource(args, optionsOrCb, cb) {
209
- const command = new ListTagsForResourceCommand(args);
210
- if (typeof optionsOrCb === "function") {
211
- this.send(command, optionsOrCb);
212
- }
213
- else if (typeof cb === "function") {
214
- if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
- this.send(command, optionsOrCb || {}, cb);
217
- }
218
- else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
- registerConnector(args, optionsOrCb, cb) {
223
- const command = new RegisterConnectorCommand(args);
224
- if (typeof optionsOrCb === "function") {
225
- this.send(command, optionsOrCb);
226
- }
227
- else if (typeof cb === "function") {
228
- if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
- this.send(command, optionsOrCb || {}, cb);
231
- }
232
- else {
233
- return this.send(command, optionsOrCb);
234
- }
235
- }
236
- startFlow(args, optionsOrCb, cb) {
237
- const command = new StartFlowCommand(args);
238
- if (typeof optionsOrCb === "function") {
239
- this.send(command, optionsOrCb);
240
- }
241
- else if (typeof cb === "function") {
242
- if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
- this.send(command, optionsOrCb || {}, cb);
245
- }
246
- else {
247
- return this.send(command, optionsOrCb);
248
- }
249
- }
250
- stopFlow(args, optionsOrCb, cb) {
251
- const command = new StopFlowCommand(args);
252
- if (typeof optionsOrCb === "function") {
253
- this.send(command, optionsOrCb);
254
- }
255
- else if (typeof cb === "function") {
256
- if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
- this.send(command, optionsOrCb || {}, cb);
259
- }
260
- else {
261
- return this.send(command, optionsOrCb);
262
- }
263
- }
264
- tagResource(args, optionsOrCb, cb) {
265
- const command = new TagResourceCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- }
269
- else if (typeof cb === "function") {
270
- if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- }
274
- else {
275
- return this.send(command, optionsOrCb);
276
- }
277
- }
278
- unregisterConnector(args, optionsOrCb, cb) {
279
- const command = new UnregisterConnectorCommand(args);
280
- if (typeof optionsOrCb === "function") {
281
- this.send(command, optionsOrCb);
282
- }
283
- else if (typeof cb === "function") {
284
- if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
286
- this.send(command, optionsOrCb || {}, cb);
287
- }
288
- else {
289
- return this.send(command, optionsOrCb);
290
- }
291
- }
292
- untagResource(args, optionsOrCb, cb) {
293
- const command = new UntagResourceCommand(args);
294
- if (typeof optionsOrCb === "function") {
295
- this.send(command, optionsOrCb);
296
- }
297
- else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
300
- this.send(command, optionsOrCb || {}, cb);
301
- }
302
- else {
303
- return this.send(command, optionsOrCb);
304
- }
305
- }
306
- updateConnectorProfile(args, optionsOrCb, cb) {
307
- const command = new UpdateConnectorProfileCommand(args);
308
- if (typeof optionsOrCb === "function") {
309
- this.send(command, optionsOrCb);
310
- }
311
- else if (typeof cb === "function") {
312
- if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
314
- this.send(command, optionsOrCb || {}, cb);
315
- }
316
- else {
317
- return this.send(command, optionsOrCb);
318
- }
319
- }
320
- updateConnectorRegistration(args, optionsOrCb, cb) {
321
- const command = new UpdateConnectorRegistrationCommand(args);
322
- if (typeof optionsOrCb === "function") {
323
- this.send(command, optionsOrCb);
324
- }
325
- else if (typeof cb === "function") {
326
- if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
328
- this.send(command, optionsOrCb || {}, cb);
329
- }
330
- else {
331
- return this.send(command, optionsOrCb);
332
- }
333
- }
334
- updateFlow(args, optionsOrCb, cb) {
335
- const command = new UpdateFlowCommand(args);
336
- if (typeof optionsOrCb === "function") {
337
- this.send(command, optionsOrCb);
338
- }
339
- else if (typeof cb === "function") {
340
- if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
342
- this.send(command, optionsOrCb || {}, cb);
343
- }
344
- else {
345
- return this.send(command, optionsOrCb);
346
- }
347
- }
348
52
  }
53
+ createAggregatedClient(commands, Appflow);
@@ -11,7 +11,7 @@ export const se_CreateConnectorProfileCommand = async (input, context) => {
11
11
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-connector-profile";
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
- clientToken: (_) => _ ?? generateIdempotencyToken(),
14
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
15
15
  connectionMode: [],
16
16
  connectorLabel: [],
17
17
  connectorProfileConfig: (_) => _json(_),
@@ -37,7 +37,7 @@ export const se_CreateFlowCommand = async (input, context) => {
37
37
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-flow";
38
38
  let body;
39
39
  body = JSON.stringify(take(input, {
40
- clientToken: (_) => _ ?? generateIdempotencyToken(),
40
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
41
41
  description: [],
42
42
  destinationFlowConfigList: (_) => _json(_),
43
43
  flowName: [],
@@ -323,7 +323,7 @@ export const se_RegisterConnectorCommand = async (input, context) => {
323
323
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector";
324
324
  let body;
325
325
  body = JSON.stringify(take(input, {
326
- clientToken: (_) => _ ?? generateIdempotencyToken(),
326
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
327
327
  connectorLabel: [],
328
328
  connectorProvisioningConfig: (_) => _json(_),
329
329
  connectorProvisioningType: [],
@@ -347,7 +347,7 @@ export const se_StartFlowCommand = async (input, context) => {
347
347
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-flow";
348
348
  let body;
349
349
  body = JSON.stringify(take(input, {
350
- clientToken: (_) => _ ?? generateIdempotencyToken(),
350
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
351
351
  flowName: [],
352
352
  }));
353
353
  return new __HttpRequest({
@@ -453,7 +453,7 @@ export const se_UpdateConnectorProfileCommand = async (input, context) => {
453
453
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-profile";
454
454
  let body;
455
455
  body = JSON.stringify(take(input, {
456
- clientToken: (_) => _ ?? generateIdempotencyToken(),
456
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
457
457
  connectionMode: [],
458
458
  connectorProfileConfig: (_) => _json(_),
459
459
  connectorProfileName: [],
@@ -476,7 +476,7 @@ export const se_UpdateConnectorRegistrationCommand = async (input, context) => {
476
476
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration";
477
477
  let body;
478
478
  body = JSON.stringify(take(input, {
479
- clientToken: (_) => _ ?? generateIdempotencyToken(),
479
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
480
480
  connectorLabel: [],
481
481
  connectorProvisioningConfig: (_) => _json(_),
482
482
  description: [],
@@ -499,7 +499,7 @@ export const se_UpdateFlowCommand = async (input, context) => {
499
499
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-flow";
500
500
  let body;
501
501
  body = JSON.stringify(take(input, {
502
- clientToken: (_) => _ ?? generateIdempotencyToken(),
502
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
503
503
  description: [],
504
504
  destinationFlowConfigList: (_) => _json(_),
505
505
  flowName: [],
@@ -23,243 +23,183 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
23
23
  import { UpdateConnectorProfileCommandInput, UpdateConnectorProfileCommandOutput } from "./commands/UpdateConnectorProfileCommand";
24
24
  import { UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput } from "./commands/UpdateConnectorRegistrationCommand";
25
25
  import { UpdateFlowCommandInput, UpdateFlowCommandOutput } from "./commands/UpdateFlowCommand";
26
- /**
27
- * @public
28
- * <p>Welcome to the Amazon AppFlow API reference. This guide is for developers who need
29
- * detailed information about the Amazon AppFlow API operations, data types, and errors. </p>
30
- * <p>Amazon AppFlow is a fully managed integration service that enables you to securely
31
- * transfer data between software as a service (SaaS) applications like Salesforce, Marketo,
32
- * Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. </p>
33
- * <p>Use the following links to get started on the Amazon AppFlow API:</p>
34
- * <ul>
35
- * <li>
36
- * <p>
37
- * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API operations.</p>
38
- * </li>
39
- * <li>
40
- * <p>
41
- * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data
42
- * types</a>: An alphabetical list of all Amazon AppFlow data types.</p>
43
- * </li>
44
- * <li>
45
- * <p>
46
- * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common parameters</a>: Parameters that all Query operations can use.</p>
47
- * </li>
48
- * <li>
49
- * <p>
50
- * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common
51
- * errors</a>: Client and server errors that all operations can return.</p>
52
- * </li>
53
- * </ul>
54
- * <p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow
55
- * User Guide</a>.</p>
56
- * <p>Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include
57
- * applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) with
58
- * the connector-specific <code>ConnectorProfileProperties</code> when creating a new connector
59
- * profile using Amazon AppFlow API operations. For example, Salesforce users can refer to
60
- * the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm">
61
- * <i>Authorize Apps with OAuth</i>
62
- * </a> documentation.</p>
63
- */
64
- export declare class Appflow extends AppflowClient {
26
+ export interface Appflow {
65
27
  /**
66
- * @public
67
- * <p> Creates a new connector profile associated with your Amazon Web Services account. There is
68
- * a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
69
- * connector profiles than this quota allows, you can submit a request to the Amazon AppFlow
70
- * team through the Amazon AppFlow support channel. In each connector profile that you
71
- * create, you can provide the credentials and properties for only one connector.</p>
28
+ * @see {@link CreateConnectorProfileCommand}
72
29
  */
73
30
  createConnectorProfile(args: CreateConnectorProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateConnectorProfileCommandOutput>;
74
31
  createConnectorProfile(args: CreateConnectorProfileCommandInput, cb: (err: any, data?: CreateConnectorProfileCommandOutput) => void): void;
75
32
  createConnectorProfile(args: CreateConnectorProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConnectorProfileCommandOutput) => void): void;
76
33
  /**
77
- * @public
78
- * <p> Enables your application to create a new flow using Amazon AppFlow. You must create
79
- * a connector profile before calling this API. Please note that the Request Syntax below shows
80
- * syntax for multiple destinations, however, you can only transfer data to one item in this list
81
- * at a time. Amazon AppFlow does not currently support flows to multiple destinations at
82
- * once. </p>
34
+ * @see {@link CreateFlowCommand}
83
35
  */
84
36
  createFlow(args: CreateFlowCommandInput, options?: __HttpHandlerOptions): Promise<CreateFlowCommandOutput>;
85
37
  createFlow(args: CreateFlowCommandInput, cb: (err: any, data?: CreateFlowCommandOutput) => void): void;
86
38
  createFlow(args: CreateFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFlowCommandOutput) => void): void;
87
39
  /**
88
- * @public
89
- * <p> Enables you to delete an existing connector profile. </p>
40
+ * @see {@link DeleteConnectorProfileCommand}
90
41
  */
91
42
  deleteConnectorProfile(args: DeleteConnectorProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectorProfileCommandOutput>;
92
43
  deleteConnectorProfile(args: DeleteConnectorProfileCommandInput, cb: (err: any, data?: DeleteConnectorProfileCommandOutput) => void): void;
93
44
  deleteConnectorProfile(args: DeleteConnectorProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectorProfileCommandOutput) => void): void;
94
45
  /**
95
- * @public
96
- * <p> Enables your application to delete an existing flow. Before deleting the flow, Amazon AppFlow validates the request by checking the flow configuration and status. You can
97
- * delete flows one at a time. </p>
46
+ * @see {@link DeleteFlowCommand}
98
47
  */
99
48
  deleteFlow(args: DeleteFlowCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFlowCommandOutput>;
100
49
  deleteFlow(args: DeleteFlowCommandInput, cb: (err: any, data?: DeleteFlowCommandOutput) => void): void;
101
50
  deleteFlow(args: DeleteFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFlowCommandOutput) => void): void;
102
51
  /**
103
- * @public
104
- * <p>Describes the given custom connector registered in your Amazon Web Services account. This
105
- * API can be used for custom connectors that are registered in your account and also for Amazon
106
- * authored connectors.</p>
52
+ * @see {@link DescribeConnectorCommand}
107
53
  */
108
54
  describeConnector(args: DescribeConnectorCommandInput, options?: __HttpHandlerOptions): Promise<DescribeConnectorCommandOutput>;
109
55
  describeConnector(args: DescribeConnectorCommandInput, cb: (err: any, data?: DescribeConnectorCommandOutput) => void): void;
110
56
  describeConnector(args: DescribeConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeConnectorCommandOutput) => void): void;
111
57
  /**
112
- * @public
113
- * <p> Provides details regarding the entity used with the connector, with a description of the
114
- * data model for each field in that entity. </p>
58
+ * @see {@link DescribeConnectorEntityCommand}
115
59
  */
116
60
  describeConnectorEntity(args: DescribeConnectorEntityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeConnectorEntityCommandOutput>;
117
61
  describeConnectorEntity(args: DescribeConnectorEntityCommandInput, cb: (err: any, data?: DescribeConnectorEntityCommandOutput) => void): void;
118
62
  describeConnectorEntity(args: DescribeConnectorEntityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeConnectorEntityCommandOutput) => void): void;
119
63
  /**
120
- * @public
121
- * <p> Returns a list of <code>connector-profile</code> details matching the provided
122
- * <code>connector-profile</code> names and <code>connector-types</code>. Both input lists are
123
- * optional, and you can use them to filter the result. </p>
124
- * <p>If no names or <code>connector-types</code> are provided, returns all connector profiles
125
- * in a paginated form. If there is no match, this operation returns an empty list.</p>
64
+ * @see {@link DescribeConnectorProfilesCommand}
126
65
  */
127
66
  describeConnectorProfiles(args: DescribeConnectorProfilesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeConnectorProfilesCommandOutput>;
128
67
  describeConnectorProfiles(args: DescribeConnectorProfilesCommandInput, cb: (err: any, data?: DescribeConnectorProfilesCommandOutput) => void): void;
129
68
  describeConnectorProfiles(args: DescribeConnectorProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeConnectorProfilesCommandOutput) => void): void;
130
69
  /**
131
- * @public
132
- * <p> Describes the connectors vended by Amazon AppFlow for specified connector types. If
133
- * you don't specify a connector type, this operation describes all connectors vended by Amazon AppFlow. If there are more connectors than can be returned in one page, the response
134
- * contains a <code>nextToken</code> object, which can be be passed in to the next call to the
135
- * <code>DescribeConnectors</code> API operation to retrieve the next page. </p>
70
+ * @see {@link DescribeConnectorsCommand}
136
71
  */
137
72
  describeConnectors(args: DescribeConnectorsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeConnectorsCommandOutput>;
138
73
  describeConnectors(args: DescribeConnectorsCommandInput, cb: (err: any, data?: DescribeConnectorsCommandOutput) => void): void;
139
74
  describeConnectors(args: DescribeConnectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeConnectorsCommandOutput) => void): void;
140
75
  /**
141
- * @public
142
- * <p> Provides a description of the specified flow. </p>
76
+ * @see {@link DescribeFlowCommand}
143
77
  */
144
78
  describeFlow(args: DescribeFlowCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFlowCommandOutput>;
145
79
  describeFlow(args: DescribeFlowCommandInput, cb: (err: any, data?: DescribeFlowCommandOutput) => void): void;
146
80
  describeFlow(args: DescribeFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFlowCommandOutput) => void): void;
147
81
  /**
148
- * @public
149
- * <p> Fetches the execution history of the flow. </p>
82
+ * @see {@link DescribeFlowExecutionRecordsCommand}
150
83
  */
151
84
  describeFlowExecutionRecords(args: DescribeFlowExecutionRecordsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFlowExecutionRecordsCommandOutput>;
152
85
  describeFlowExecutionRecords(args: DescribeFlowExecutionRecordsCommandInput, cb: (err: any, data?: DescribeFlowExecutionRecordsCommandOutput) => void): void;
153
86
  describeFlowExecutionRecords(args: DescribeFlowExecutionRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFlowExecutionRecordsCommandOutput) => void): void;
154
87
  /**
155
- * @public
156
- * <p> Returns the list of available connector entities supported by Amazon AppFlow. For
157
- * example, you can query Salesforce for <i>Account</i> and
158
- * <i>Opportunity</i> entities, or query ServiceNow for the
159
- * <i>Incident</i> entity. </p>
88
+ * @see {@link ListConnectorEntitiesCommand}
160
89
  */
161
90
  listConnectorEntities(args: ListConnectorEntitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectorEntitiesCommandOutput>;
162
91
  listConnectorEntities(args: ListConnectorEntitiesCommandInput, cb: (err: any, data?: ListConnectorEntitiesCommandOutput) => void): void;
163
92
  listConnectorEntities(args: ListConnectorEntitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConnectorEntitiesCommandOutput) => void): void;
164
93
  /**
165
- * @public
166
- * <p>Returns the list of all registered custom connectors in your Amazon Web Services account.
167
- * This API lists only custom connectors registered in this account, not the Amazon Web Services
168
- * authored connectors. </p>
94
+ * @see {@link ListConnectorsCommand}
169
95
  */
170
96
  listConnectors(args: ListConnectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectorsCommandOutput>;
171
97
  listConnectors(args: ListConnectorsCommandInput, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
172
98
  listConnectors(args: ListConnectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
173
99
  /**
174
- * @public
175
- * <p> Lists all of the flows associated with your account. </p>
100
+ * @see {@link ListFlowsCommand}
176
101
  */
177
102
  listFlows(args: ListFlowsCommandInput, options?: __HttpHandlerOptions): Promise<ListFlowsCommandOutput>;
178
103
  listFlows(args: ListFlowsCommandInput, cb: (err: any, data?: ListFlowsCommandOutput) => void): void;
179
104
  listFlows(args: ListFlowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFlowsCommandOutput) => void): void;
180
105
  /**
181
- * @public
182
- * <p> Retrieves the tags that are associated with a specified flow. </p>
106
+ * @see {@link ListTagsForResourceCommand}
183
107
  */
184
108
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
185
109
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
186
110
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
187
111
  /**
188
- * @public
189
- * <p>Registers a new custom connector with your Amazon Web Services account. Before you can
190
- * register the connector, you must deploy the associated AWS lambda function in your
191
- * account.</p>
112
+ * @see {@link RegisterConnectorCommand}
192
113
  */
193
114
  registerConnector(args: RegisterConnectorCommandInput, options?: __HttpHandlerOptions): Promise<RegisterConnectorCommandOutput>;
194
115
  registerConnector(args: RegisterConnectorCommandInput, cb: (err: any, data?: RegisterConnectorCommandOutput) => void): void;
195
116
  registerConnector(args: RegisterConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterConnectorCommandOutput) => void): void;
196
117
  /**
197
- * @public
198
- * <p> Activates an existing flow. For on-demand flows, this operation runs the flow
199
- * immediately. For schedule and event-triggered flows, this operation activates the flow. </p>
118
+ * @see {@link StartFlowCommand}
200
119
  */
201
120
  startFlow(args: StartFlowCommandInput, options?: __HttpHandlerOptions): Promise<StartFlowCommandOutput>;
202
121
  startFlow(args: StartFlowCommandInput, cb: (err: any, data?: StartFlowCommandOutput) => void): void;
203
122
  startFlow(args: StartFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartFlowCommandOutput) => void): void;
204
123
  /**
205
- * @public
206
- * <p> Deactivates the existing flow. For on-demand flows, this operation returns an
207
- * <code>unsupportedOperationException</code> error message. For schedule and event-triggered
208
- * flows, this operation deactivates the flow. </p>
124
+ * @see {@link StopFlowCommand}
209
125
  */
210
126
  stopFlow(args: StopFlowCommandInput, options?: __HttpHandlerOptions): Promise<StopFlowCommandOutput>;
211
127
  stopFlow(args: StopFlowCommandInput, cb: (err: any, data?: StopFlowCommandOutput) => void): void;
212
128
  stopFlow(args: StopFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopFlowCommandOutput) => void): void;
213
129
  /**
214
- * @public
215
- * <p> Applies a tag to the specified flow. </p>
130
+ * @see {@link TagResourceCommand}
216
131
  */
217
132
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
218
133
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
219
134
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
220
135
  /**
221
- * @public
222
- * <p>Unregisters the custom connector registered in your account that matches the connector
223
- * label provided in the request.</p>
136
+ * @see {@link UnregisterConnectorCommand}
224
137
  */
225
138
  unregisterConnector(args: UnregisterConnectorCommandInput, options?: __HttpHandlerOptions): Promise<UnregisterConnectorCommandOutput>;
226
139
  unregisterConnector(args: UnregisterConnectorCommandInput, cb: (err: any, data?: UnregisterConnectorCommandOutput) => void): void;
227
140
  unregisterConnector(args: UnregisterConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnregisterConnectorCommandOutput) => void): void;
228
141
  /**
229
- * @public
230
- * <p> Removes a tag from the specified flow. </p>
142
+ * @see {@link UntagResourceCommand}
231
143
  */
232
144
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
233
145
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
234
146
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
235
147
  /**
236
- * @public
237
- * <p> Updates a given connector profile associated with your account. </p>
148
+ * @see {@link UpdateConnectorProfileCommand}
238
149
  */
239
150
  updateConnectorProfile(args: UpdateConnectorProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorProfileCommandOutput>;
240
151
  updateConnectorProfile(args: UpdateConnectorProfileCommandInput, cb: (err: any, data?: UpdateConnectorProfileCommandOutput) => void): void;
241
152
  updateConnectorProfile(args: UpdateConnectorProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorProfileCommandOutput) => void): void;
242
153
  /**
243
- * @public
244
- * <p>Updates a custom connector that you've previously registered. This operation updates the
245
- * connector with one of the following:</p>
246
- * <ul>
247
- * <li>
248
- * <p>The latest version of the AWS Lambda function that's assigned to the connector</p>
249
- * </li>
250
- * <li>
251
- * <p>A new AWS Lambda function that you specify</p>
252
- * </li>
253
- * </ul>
154
+ * @see {@link UpdateConnectorRegistrationCommand}
254
155
  */
255
156
  updateConnectorRegistration(args: UpdateConnectorRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorRegistrationCommandOutput>;
256
157
  updateConnectorRegistration(args: UpdateConnectorRegistrationCommandInput, cb: (err: any, data?: UpdateConnectorRegistrationCommandOutput) => void): void;
257
158
  updateConnectorRegistration(args: UpdateConnectorRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorRegistrationCommandOutput) => void): void;
258
159
  /**
259
- * @public
260
- * <p> Updates an existing flow. </p>
160
+ * @see {@link UpdateFlowCommand}
261
161
  */
262
162
  updateFlow(args: UpdateFlowCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFlowCommandOutput>;
263
163
  updateFlow(args: UpdateFlowCommandInput, cb: (err: any, data?: UpdateFlowCommandOutput) => void): void;
264
164
  updateFlow(args: UpdateFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFlowCommandOutput) => void): void;
265
165
  }
166
+ /**
167
+ * @public
168
+ * <p>Welcome to the Amazon AppFlow API reference. This guide is for developers who need
169
+ * detailed information about the Amazon AppFlow API operations, data types, and errors. </p>
170
+ * <p>Amazon AppFlow is a fully managed integration service that enables you to securely
171
+ * transfer data between software as a service (SaaS) applications like Salesforce, Marketo,
172
+ * Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. </p>
173
+ * <p>Use the following links to get started on the Amazon AppFlow API:</p>
174
+ * <ul>
175
+ * <li>
176
+ * <p>
177
+ * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API operations.</p>
178
+ * </li>
179
+ * <li>
180
+ * <p>
181
+ * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data
182
+ * types</a>: An alphabetical list of all Amazon AppFlow data types.</p>
183
+ * </li>
184
+ * <li>
185
+ * <p>
186
+ * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common parameters</a>: Parameters that all Query operations can use.</p>
187
+ * </li>
188
+ * <li>
189
+ * <p>
190
+ * <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common
191
+ * errors</a>: Client and server errors that all operations can return.</p>
192
+ * </li>
193
+ * </ul>
194
+ * <p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow
195
+ * User Guide</a>.</p>
196
+ * <p>Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include
197
+ * applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) with
198
+ * the connector-specific <code>ConnectorProfileProperties</code> when creating a new connector
199
+ * profile using Amazon AppFlow API operations. For example, Salesforce users can refer to
200
+ * the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm">
201
+ * <i>Authorize Apps with OAuth</i>
202
+ * </a> documentation.</p>
203
+ */
204
+ export declare class Appflow extends AppflowClient implements Appflow {
205
+ }
@@ -92,7 +92,7 @@ import {
92
92
  UpdateFlowCommandInput,
93
93
  UpdateFlowCommandOutput,
94
94
  } from "./commands/UpdateFlowCommand";
95
- export declare class Appflow extends AppflowClient {
95
+ export interface Appflow {
96
96
  createConnectorProfile(
97
97
  args: CreateConnectorProfileCommandInput,
98
98
  options?: __HttpHandlerOptions
@@ -393,3 +393,4 @@ export declare class Appflow extends AppflowClient {
393
393
  cb: (err: any, data?: UpdateFlowCommandOutput) => void
394
394
  ): void;
395
395
  }
396
+ export declare class Appflow extends AppflowClient implements Appflow {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appflow",
3
3
  "description": "AWS SDK for JavaScript Appflow Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",