@aws-sdk/client-appflow 3.183.0 → 3.186.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Appflow.js +97 -90
  4. package/dist-es/AppflowClient.js +28 -22
  5. package/dist-es/commands/CreateConnectorProfileCommand.js +28 -21
  6. package/dist-es/commands/CreateFlowCommand.js +28 -21
  7. package/dist-es/commands/DeleteConnectorProfileCommand.js +28 -21
  8. package/dist-es/commands/DeleteFlowCommand.js +28 -21
  9. package/dist-es/commands/DescribeConnectorCommand.js +28 -21
  10. package/dist-es/commands/DescribeConnectorEntityCommand.js +28 -21
  11. package/dist-es/commands/DescribeConnectorProfilesCommand.js +28 -21
  12. package/dist-es/commands/DescribeConnectorsCommand.js +28 -21
  13. package/dist-es/commands/DescribeFlowCommand.js +28 -21
  14. package/dist-es/commands/DescribeFlowExecutionRecordsCommand.js +28 -21
  15. package/dist-es/commands/ListConnectorEntitiesCommand.js +28 -21
  16. package/dist-es/commands/ListConnectorsCommand.js +28 -21
  17. package/dist-es/commands/ListFlowsCommand.js +28 -21
  18. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  19. package/dist-es/commands/RegisterConnectorCommand.js +28 -21
  20. package/dist-es/commands/StartFlowCommand.js +28 -21
  21. package/dist-es/commands/StopFlowCommand.js +28 -21
  22. package/dist-es/commands/TagResourceCommand.js +28 -21
  23. package/dist-es/commands/UnregisterConnectorCommand.js +28 -21
  24. package/dist-es/commands/UntagResourceCommand.js +28 -21
  25. package/dist-es/commands/UpdateConnectorProfileCommand.js +28 -21
  26. package/dist-es/commands/UpdateFlowCommand.js +28 -21
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/AppflowServiceException.js +10 -5
  29. package/dist-es/models/models_0.js +302 -720
  30. package/dist-es/pagination/DescribeConnectorProfilesPaginator.js +68 -25
  31. package/dist-es/pagination/DescribeConnectorsPaginator.js +68 -25
  32. package/dist-es/pagination/DescribeFlowExecutionRecordsPaginator.js +68 -25
  33. package/dist-es/pagination/ListConnectorsPaginator.js +68 -25
  34. package/dist-es/pagination/ListFlowsPaginator.js +68 -25
  35. package/dist-es/protocols/Aws_restJson1.js +2943 -2713
  36. package/dist-es/runtimeConfig.browser.js +12 -26
  37. package/dist-es/runtimeConfig.js +12 -30
  38. package/dist-es/runtimeConfig.native.js +5 -8
  39. package/dist-es/runtimeConfig.shared.js +11 -8
  40. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-appflow
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-appflow
@@ -4084,10 +4084,10 @@ const deserializeAws_restJson1ZendeskSourceProperties = (output, context) => {
4084
4084
  };
4085
4085
  };
4086
4086
  const deserializeMetadata = (output) => {
4087
- var _a;
4087
+ var _a, _b;
4088
4088
  return ({
4089
4089
  httpStatusCode: output.statusCode,
4090
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
4090
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
4091
4091
  extendedRequestId: output.headers["x-amz-id-2"],
4092
4092
  cfId: output.headers["x-amz-cf-id"],
4093
4093
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AppflowClient } from "./AppflowClient";
2
3
  import { CreateConnectorProfileCommand, } from "./commands/CreateConnectorProfileCommand";
3
4
  import { CreateFlowCommand } from "./commands/CreateFlowCommand";
@@ -21,313 +22,319 @@ import { UnregisterConnectorCommand, } from "./commands/UnregisterConnectorComma
21
22
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
23
  import { UpdateConnectorProfileCommand, } from "./commands/UpdateConnectorProfileCommand";
23
24
  import { UpdateFlowCommand } from "./commands/UpdateFlowCommand";
24
- export class Appflow extends AppflowClient {
25
- createConnectorProfile(args, optionsOrCb, cb) {
26
- const command = new CreateConnectorProfileCommand(args);
25
+ var Appflow = (function (_super) {
26
+ __extends(Appflow, _super);
27
+ function Appflow() {
28
+ return _super !== null && _super.apply(this, arguments) || this;
29
+ }
30
+ Appflow.prototype.createConnectorProfile = function (args, optionsOrCb, cb) {
31
+ var command = new CreateConnectorProfileCommand(args);
27
32
  if (typeof optionsOrCb === "function") {
28
33
  this.send(command, optionsOrCb);
29
34
  }
30
35
  else if (typeof cb === "function") {
31
36
  if (typeof optionsOrCb !== "object")
32
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
38
  this.send(command, optionsOrCb || {}, cb);
34
39
  }
35
40
  else {
36
41
  return this.send(command, optionsOrCb);
37
42
  }
38
- }
39
- createFlow(args, optionsOrCb, cb) {
40
- const command = new CreateFlowCommand(args);
43
+ };
44
+ Appflow.prototype.createFlow = function (args, optionsOrCb, cb) {
45
+ var command = new CreateFlowCommand(args);
41
46
  if (typeof optionsOrCb === "function") {
42
47
  this.send(command, optionsOrCb);
43
48
  }
44
49
  else if (typeof cb === "function") {
45
50
  if (typeof optionsOrCb !== "object")
46
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
52
  this.send(command, optionsOrCb || {}, cb);
48
53
  }
49
54
  else {
50
55
  return this.send(command, optionsOrCb);
51
56
  }
52
- }
53
- deleteConnectorProfile(args, optionsOrCb, cb) {
54
- const command = new DeleteConnectorProfileCommand(args);
57
+ };
58
+ Appflow.prototype.deleteConnectorProfile = function (args, optionsOrCb, cb) {
59
+ var command = new DeleteConnectorProfileCommand(args);
55
60
  if (typeof optionsOrCb === "function") {
56
61
  this.send(command, optionsOrCb);
57
62
  }
58
63
  else if (typeof cb === "function") {
59
64
  if (typeof optionsOrCb !== "object")
60
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
61
66
  this.send(command, optionsOrCb || {}, cb);
62
67
  }
63
68
  else {
64
69
  return this.send(command, optionsOrCb);
65
70
  }
66
- }
67
- deleteFlow(args, optionsOrCb, cb) {
68
- const command = new DeleteFlowCommand(args);
71
+ };
72
+ Appflow.prototype.deleteFlow = function (args, optionsOrCb, cb) {
73
+ var command = new DeleteFlowCommand(args);
69
74
  if (typeof optionsOrCb === "function") {
70
75
  this.send(command, optionsOrCb);
71
76
  }
72
77
  else if (typeof cb === "function") {
73
78
  if (typeof optionsOrCb !== "object")
74
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
75
80
  this.send(command, optionsOrCb || {}, cb);
76
81
  }
77
82
  else {
78
83
  return this.send(command, optionsOrCb);
79
84
  }
80
- }
81
- describeConnector(args, optionsOrCb, cb) {
82
- const command = new DescribeConnectorCommand(args);
85
+ };
86
+ Appflow.prototype.describeConnector = function (args, optionsOrCb, cb) {
87
+ var command = new DescribeConnectorCommand(args);
83
88
  if (typeof optionsOrCb === "function") {
84
89
  this.send(command, optionsOrCb);
85
90
  }
86
91
  else if (typeof cb === "function") {
87
92
  if (typeof optionsOrCb !== "object")
88
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
89
94
  this.send(command, optionsOrCb || {}, cb);
90
95
  }
91
96
  else {
92
97
  return this.send(command, optionsOrCb);
93
98
  }
94
- }
95
- describeConnectorEntity(args, optionsOrCb, cb) {
96
- const command = new DescribeConnectorEntityCommand(args);
99
+ };
100
+ Appflow.prototype.describeConnectorEntity = function (args, optionsOrCb, cb) {
101
+ var command = new DescribeConnectorEntityCommand(args);
97
102
  if (typeof optionsOrCb === "function") {
98
103
  this.send(command, optionsOrCb);
99
104
  }
100
105
  else if (typeof cb === "function") {
101
106
  if (typeof optionsOrCb !== "object")
102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
108
  this.send(command, optionsOrCb || {}, cb);
104
109
  }
105
110
  else {
106
111
  return this.send(command, optionsOrCb);
107
112
  }
108
- }
109
- describeConnectorProfiles(args, optionsOrCb, cb) {
110
- const command = new DescribeConnectorProfilesCommand(args);
113
+ };
114
+ Appflow.prototype.describeConnectorProfiles = function (args, optionsOrCb, cb) {
115
+ var command = new DescribeConnectorProfilesCommand(args);
111
116
  if (typeof optionsOrCb === "function") {
112
117
  this.send(command, optionsOrCb);
113
118
  }
114
119
  else if (typeof cb === "function") {
115
120
  if (typeof optionsOrCb !== "object")
116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
122
  this.send(command, optionsOrCb || {}, cb);
118
123
  }
119
124
  else {
120
125
  return this.send(command, optionsOrCb);
121
126
  }
122
- }
123
- describeConnectors(args, optionsOrCb, cb) {
124
- const command = new DescribeConnectorsCommand(args);
127
+ };
128
+ Appflow.prototype.describeConnectors = function (args, optionsOrCb, cb) {
129
+ var command = new DescribeConnectorsCommand(args);
125
130
  if (typeof optionsOrCb === "function") {
126
131
  this.send(command, optionsOrCb);
127
132
  }
128
133
  else if (typeof cb === "function") {
129
134
  if (typeof optionsOrCb !== "object")
130
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
131
136
  this.send(command, optionsOrCb || {}, cb);
132
137
  }
133
138
  else {
134
139
  return this.send(command, optionsOrCb);
135
140
  }
136
- }
137
- describeFlow(args, optionsOrCb, cb) {
138
- const command = new DescribeFlowCommand(args);
141
+ };
142
+ Appflow.prototype.describeFlow = function (args, optionsOrCb, cb) {
143
+ var command = new DescribeFlowCommand(args);
139
144
  if (typeof optionsOrCb === "function") {
140
145
  this.send(command, optionsOrCb);
141
146
  }
142
147
  else if (typeof cb === "function") {
143
148
  if (typeof optionsOrCb !== "object")
144
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
145
150
  this.send(command, optionsOrCb || {}, cb);
146
151
  }
147
152
  else {
148
153
  return this.send(command, optionsOrCb);
149
154
  }
150
- }
151
- describeFlowExecutionRecords(args, optionsOrCb, cb) {
152
- const command = new DescribeFlowExecutionRecordsCommand(args);
155
+ };
156
+ Appflow.prototype.describeFlowExecutionRecords = function (args, optionsOrCb, cb) {
157
+ var command = new DescribeFlowExecutionRecordsCommand(args);
153
158
  if (typeof optionsOrCb === "function") {
154
159
  this.send(command, optionsOrCb);
155
160
  }
156
161
  else if (typeof cb === "function") {
157
162
  if (typeof optionsOrCb !== "object")
158
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
159
164
  this.send(command, optionsOrCb || {}, cb);
160
165
  }
161
166
  else {
162
167
  return this.send(command, optionsOrCb);
163
168
  }
164
- }
165
- listConnectorEntities(args, optionsOrCb, cb) {
166
- const command = new ListConnectorEntitiesCommand(args);
169
+ };
170
+ Appflow.prototype.listConnectorEntities = function (args, optionsOrCb, cb) {
171
+ var command = new ListConnectorEntitiesCommand(args);
167
172
  if (typeof optionsOrCb === "function") {
168
173
  this.send(command, optionsOrCb);
169
174
  }
170
175
  else if (typeof cb === "function") {
171
176
  if (typeof optionsOrCb !== "object")
172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
173
178
  this.send(command, optionsOrCb || {}, cb);
174
179
  }
175
180
  else {
176
181
  return this.send(command, optionsOrCb);
177
182
  }
178
- }
179
- listConnectors(args, optionsOrCb, cb) {
180
- const command = new ListConnectorsCommand(args);
183
+ };
184
+ Appflow.prototype.listConnectors = function (args, optionsOrCb, cb) {
185
+ var command = new ListConnectorsCommand(args);
181
186
  if (typeof optionsOrCb === "function") {
182
187
  this.send(command, optionsOrCb);
183
188
  }
184
189
  else if (typeof cb === "function") {
185
190
  if (typeof optionsOrCb !== "object")
186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
187
192
  this.send(command, optionsOrCb || {}, cb);
188
193
  }
189
194
  else {
190
195
  return this.send(command, optionsOrCb);
191
196
  }
192
- }
193
- listFlows(args, optionsOrCb, cb) {
194
- const command = new ListFlowsCommand(args);
197
+ };
198
+ Appflow.prototype.listFlows = function (args, optionsOrCb, cb) {
199
+ var command = new ListFlowsCommand(args);
195
200
  if (typeof optionsOrCb === "function") {
196
201
  this.send(command, optionsOrCb);
197
202
  }
198
203
  else if (typeof cb === "function") {
199
204
  if (typeof optionsOrCb !== "object")
200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
201
206
  this.send(command, optionsOrCb || {}, cb);
202
207
  }
203
208
  else {
204
209
  return this.send(command, optionsOrCb);
205
210
  }
206
- }
207
- listTagsForResource(args, optionsOrCb, cb) {
208
- const command = new ListTagsForResourceCommand(args);
211
+ };
212
+ Appflow.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
213
+ var command = new ListTagsForResourceCommand(args);
209
214
  if (typeof optionsOrCb === "function") {
210
215
  this.send(command, optionsOrCb);
211
216
  }
212
217
  else if (typeof cb === "function") {
213
218
  if (typeof optionsOrCb !== "object")
214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
215
220
  this.send(command, optionsOrCb || {}, cb);
216
221
  }
217
222
  else {
218
223
  return this.send(command, optionsOrCb);
219
224
  }
220
- }
221
- registerConnector(args, optionsOrCb, cb) {
222
- const command = new RegisterConnectorCommand(args);
225
+ };
226
+ Appflow.prototype.registerConnector = function (args, optionsOrCb, cb) {
227
+ var command = new RegisterConnectorCommand(args);
223
228
  if (typeof optionsOrCb === "function") {
224
229
  this.send(command, optionsOrCb);
225
230
  }
226
231
  else if (typeof cb === "function") {
227
232
  if (typeof optionsOrCb !== "object")
228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
229
234
  this.send(command, optionsOrCb || {}, cb);
230
235
  }
231
236
  else {
232
237
  return this.send(command, optionsOrCb);
233
238
  }
234
- }
235
- startFlow(args, optionsOrCb, cb) {
236
- const command = new StartFlowCommand(args);
239
+ };
240
+ Appflow.prototype.startFlow = function (args, optionsOrCb, cb) {
241
+ var command = new StartFlowCommand(args);
237
242
  if (typeof optionsOrCb === "function") {
238
243
  this.send(command, optionsOrCb);
239
244
  }
240
245
  else if (typeof cb === "function") {
241
246
  if (typeof optionsOrCb !== "object")
242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
243
248
  this.send(command, optionsOrCb || {}, cb);
244
249
  }
245
250
  else {
246
251
  return this.send(command, optionsOrCb);
247
252
  }
248
- }
249
- stopFlow(args, optionsOrCb, cb) {
250
- const command = new StopFlowCommand(args);
253
+ };
254
+ Appflow.prototype.stopFlow = function (args, optionsOrCb, cb) {
255
+ var command = new StopFlowCommand(args);
251
256
  if (typeof optionsOrCb === "function") {
252
257
  this.send(command, optionsOrCb);
253
258
  }
254
259
  else if (typeof cb === "function") {
255
260
  if (typeof optionsOrCb !== "object")
256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
257
262
  this.send(command, optionsOrCb || {}, cb);
258
263
  }
259
264
  else {
260
265
  return this.send(command, optionsOrCb);
261
266
  }
262
- }
263
- tagResource(args, optionsOrCb, cb) {
264
- const command = new TagResourceCommand(args);
267
+ };
268
+ Appflow.prototype.tagResource = function (args, optionsOrCb, cb) {
269
+ var command = new TagResourceCommand(args);
265
270
  if (typeof optionsOrCb === "function") {
266
271
  this.send(command, optionsOrCb);
267
272
  }
268
273
  else if (typeof cb === "function") {
269
274
  if (typeof optionsOrCb !== "object")
270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
271
276
  this.send(command, optionsOrCb || {}, cb);
272
277
  }
273
278
  else {
274
279
  return this.send(command, optionsOrCb);
275
280
  }
276
- }
277
- unregisterConnector(args, optionsOrCb, cb) {
278
- const command = new UnregisterConnectorCommand(args);
281
+ };
282
+ Appflow.prototype.unregisterConnector = function (args, optionsOrCb, cb) {
283
+ var command = new UnregisterConnectorCommand(args);
279
284
  if (typeof optionsOrCb === "function") {
280
285
  this.send(command, optionsOrCb);
281
286
  }
282
287
  else if (typeof cb === "function") {
283
288
  if (typeof optionsOrCb !== "object")
284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
285
290
  this.send(command, optionsOrCb || {}, cb);
286
291
  }
287
292
  else {
288
293
  return this.send(command, optionsOrCb);
289
294
  }
290
- }
291
- untagResource(args, optionsOrCb, cb) {
292
- const command = new UntagResourceCommand(args);
295
+ };
296
+ Appflow.prototype.untagResource = function (args, optionsOrCb, cb) {
297
+ var command = new UntagResourceCommand(args);
293
298
  if (typeof optionsOrCb === "function") {
294
299
  this.send(command, optionsOrCb);
295
300
  }
296
301
  else if (typeof cb === "function") {
297
302
  if (typeof optionsOrCb !== "object")
298
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
299
304
  this.send(command, optionsOrCb || {}, cb);
300
305
  }
301
306
  else {
302
307
  return this.send(command, optionsOrCb);
303
308
  }
304
- }
305
- updateConnectorProfile(args, optionsOrCb, cb) {
306
- const command = new UpdateConnectorProfileCommand(args);
309
+ };
310
+ Appflow.prototype.updateConnectorProfile = function (args, optionsOrCb, cb) {
311
+ var command = new UpdateConnectorProfileCommand(args);
307
312
  if (typeof optionsOrCb === "function") {
308
313
  this.send(command, optionsOrCb);
309
314
  }
310
315
  else if (typeof cb === "function") {
311
316
  if (typeof optionsOrCb !== "object")
312
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
313
318
  this.send(command, optionsOrCb || {}, cb);
314
319
  }
315
320
  else {
316
321
  return this.send(command, optionsOrCb);
317
322
  }
318
- }
319
- updateFlow(args, optionsOrCb, cb) {
320
- const command = new UpdateFlowCommand(args);
323
+ };
324
+ Appflow.prototype.updateFlow = function (args, optionsOrCb, cb) {
325
+ var command = new UpdateFlowCommand(args);
321
326
  if (typeof optionsOrCb === "function") {
322
327
  this.send(command, optionsOrCb);
323
328
  }
324
329
  else if (typeof cb === "function") {
325
330
  if (typeof optionsOrCb !== "object")
326
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
327
332
  this.send(command, optionsOrCb || {}, cb);
328
333
  }
329
334
  else {
330
335
  return this.send(command, optionsOrCb);
331
336
  }
332
- }
333
- }
337
+ };
338
+ return Appflow;
339
+ }(AppflowClient));
340
+ export { Appflow };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class AppflowClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var AppflowClient = (function (_super) {
13
+ __extends(AppflowClient, _super);
14
+ function AppflowClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ AppflowClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return AppflowClient;
38
+ }(__Client));
39
+ export { AppflowClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateConnectorProfileRequestFilterSensitiveLog, CreateConnectorProfileResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateConnectorProfileCommand, serializeAws_restJson1CreateConnectorProfileCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateConnectorProfileCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateConnectorProfileCommand = (function (_super) {
7
+ __extends(CreateConnectorProfileCommand, _super);
8
+ function CreateConnectorProfileCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateConnectorProfileCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppflowClient";
15
- const commandName = "CreateConnectorProfileCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppflowClient";
18
+ var commandName = "CreateConnectorProfileCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateConnectorProfileRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateConnectorProfileResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateConnectorProfileCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateConnectorProfileCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateConnectorProfileCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateConnectorProfileCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateConnectorProfileCommand;
38
+ }($Command));
39
+ export { CreateConnectorProfileCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateFlowRequestFilterSensitiveLog, CreateFlowResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateFlowCommand, serializeAws_restJson1CreateFlowCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateFlowCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFlowCommand = (function (_super) {
7
+ __extends(CreateFlowCommand, _super);
8
+ function CreateFlowCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFlowCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppflowClient";
15
- const commandName = "CreateFlowCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppflowClient";
18
+ var commandName = "CreateFlowCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFlowRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFlowResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateFlowCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateFlowCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFlowCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateFlowCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFlowCommand;
38
+ }($Command));
39
+ export { CreateFlowCommand };