@aws-sdk/client-dataexchange 3.183.0 → 3.185.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 (47) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/DataExchange.js +125 -118
  4. package/dist-es/DataExchangeClient.js +28 -22
  5. package/dist-es/commands/CancelJobCommand.js +29 -22
  6. package/dist-es/commands/CreateDataSetCommand.js +28 -21
  7. package/dist-es/commands/CreateEventActionCommand.js +28 -21
  8. package/dist-es/commands/CreateJobCommand.js +28 -21
  9. package/dist-es/commands/CreateRevisionCommand.js +28 -21
  10. package/dist-es/commands/DeleteAssetCommand.js +29 -22
  11. package/dist-es/commands/DeleteDataSetCommand.js +29 -22
  12. package/dist-es/commands/DeleteEventActionCommand.js +29 -22
  13. package/dist-es/commands/DeleteRevisionCommand.js +29 -22
  14. package/dist-es/commands/GetAssetCommand.js +28 -21
  15. package/dist-es/commands/GetDataSetCommand.js +28 -21
  16. package/dist-es/commands/GetEventActionCommand.js +28 -21
  17. package/dist-es/commands/GetJobCommand.js +28 -21
  18. package/dist-es/commands/GetRevisionCommand.js +28 -21
  19. package/dist-es/commands/ListDataSetRevisionsCommand.js +28 -21
  20. package/dist-es/commands/ListDataSetsCommand.js +28 -21
  21. package/dist-es/commands/ListEventActionsCommand.js +28 -21
  22. package/dist-es/commands/ListJobsCommand.js +28 -21
  23. package/dist-es/commands/ListRevisionAssetsCommand.js +28 -21
  24. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  25. package/dist-es/commands/RevokeRevisionCommand.js +28 -21
  26. package/dist-es/commands/SendApiAssetCommand.js +28 -21
  27. package/dist-es/commands/StartJobCommand.js +28 -21
  28. package/dist-es/commands/TagResourceCommand.js +29 -22
  29. package/dist-es/commands/UntagResourceCommand.js +29 -22
  30. package/dist-es/commands/UpdateAssetCommand.js +28 -21
  31. package/dist-es/commands/UpdateDataSetCommand.js +28 -21
  32. package/dist-es/commands/UpdateEventActionCommand.js +28 -21
  33. package/dist-es/commands/UpdateRevisionCommand.js +28 -21
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/DataExchangeServiceException.js +10 -5
  36. package/dist-es/models/models_0.js +182 -361
  37. package/dist-es/pagination/ListDataSetRevisionsPaginator.js +68 -25
  38. package/dist-es/pagination/ListDataSetsPaginator.js +68 -25
  39. package/dist-es/pagination/ListEventActionsPaginator.js +68 -25
  40. package/dist-es/pagination/ListJobsPaginator.js +68 -25
  41. package/dist-es/pagination/ListRevisionAssetsPaginator.js +68 -25
  42. package/dist-es/protocols/Aws_restJson1.js +3362 -2541
  43. package/dist-es/runtimeConfig.browser.js +12 -26
  44. package/dist-es/runtimeConfig.js +12 -30
  45. package/dist-es/runtimeConfig.native.js +5 -8
  46. package/dist-es/runtimeConfig.shared.js +11 -8
  47. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-dataexchange
@@ -2985,10 +2985,10 @@ const deserializeAws_restJson1S3SnapshotAsset = (output, context) => {
2985
2985
  };
2986
2986
  };
2987
2987
  const deserializeMetadata = (output) => {
2988
- var _a;
2988
+ var _a, _b;
2989
2989
  return ({
2990
2990
  httpStatusCode: output.statusCode,
2991
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2991
+ 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"],
2992
2992
  extendedRequestId: output.headers["x-amz-id-2"],
2993
2993
  cfId: output.headers["x-amz-cf-id"],
2994
2994
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelJobCommand } from "./commands/CancelJobCommand";
2
3
  import { CreateDataSetCommand, } from "./commands/CreateDataSetCommand";
3
4
  import { CreateEventActionCommand, } from "./commands/CreateEventActionCommand";
@@ -28,411 +29,417 @@ import { UpdateDataSetCommand, } from "./commands/UpdateDataSetCommand";
28
29
  import { UpdateEventActionCommand, } from "./commands/UpdateEventActionCommand";
29
30
  import { UpdateRevisionCommand, } from "./commands/UpdateRevisionCommand";
30
31
  import { DataExchangeClient } from "./DataExchangeClient";
31
- export class DataExchange extends DataExchangeClient {
32
- cancelJob(args, optionsOrCb, cb) {
33
- const command = new CancelJobCommand(args);
32
+ var DataExchange = (function (_super) {
33
+ __extends(DataExchange, _super);
34
+ function DataExchange() {
35
+ return _super !== null && _super.apply(this, arguments) || this;
36
+ }
37
+ DataExchange.prototype.cancelJob = function (args, optionsOrCb, cb) {
38
+ var command = new CancelJobCommand(args);
34
39
  if (typeof optionsOrCb === "function") {
35
40
  this.send(command, optionsOrCb);
36
41
  }
37
42
  else if (typeof cb === "function") {
38
43
  if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
45
  this.send(command, optionsOrCb || {}, cb);
41
46
  }
42
47
  else {
43
48
  return this.send(command, optionsOrCb);
44
49
  }
45
- }
46
- createDataSet(args, optionsOrCb, cb) {
47
- const command = new CreateDataSetCommand(args);
50
+ };
51
+ DataExchange.prototype.createDataSet = function (args, optionsOrCb, cb) {
52
+ var command = new CreateDataSetCommand(args);
48
53
  if (typeof optionsOrCb === "function") {
49
54
  this.send(command, optionsOrCb);
50
55
  }
51
56
  else if (typeof cb === "function") {
52
57
  if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
59
  this.send(command, optionsOrCb || {}, cb);
55
60
  }
56
61
  else {
57
62
  return this.send(command, optionsOrCb);
58
63
  }
59
- }
60
- createEventAction(args, optionsOrCb, cb) {
61
- const command = new CreateEventActionCommand(args);
64
+ };
65
+ DataExchange.prototype.createEventAction = function (args, optionsOrCb, cb) {
66
+ var command = new CreateEventActionCommand(args);
62
67
  if (typeof optionsOrCb === "function") {
63
68
  this.send(command, optionsOrCb);
64
69
  }
65
70
  else if (typeof cb === "function") {
66
71
  if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
73
  this.send(command, optionsOrCb || {}, cb);
69
74
  }
70
75
  else {
71
76
  return this.send(command, optionsOrCb);
72
77
  }
73
- }
74
- createJob(args, optionsOrCb, cb) {
75
- const command = new CreateJobCommand(args);
78
+ };
79
+ DataExchange.prototype.createJob = function (args, optionsOrCb, cb) {
80
+ var command = new CreateJobCommand(args);
76
81
  if (typeof optionsOrCb === "function") {
77
82
  this.send(command, optionsOrCb);
78
83
  }
79
84
  else if (typeof cb === "function") {
80
85
  if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
87
  this.send(command, optionsOrCb || {}, cb);
83
88
  }
84
89
  else {
85
90
  return this.send(command, optionsOrCb);
86
91
  }
87
- }
88
- createRevision(args, optionsOrCb, cb) {
89
- const command = new CreateRevisionCommand(args);
92
+ };
93
+ DataExchange.prototype.createRevision = function (args, optionsOrCb, cb) {
94
+ var command = new CreateRevisionCommand(args);
90
95
  if (typeof optionsOrCb === "function") {
91
96
  this.send(command, optionsOrCb);
92
97
  }
93
98
  else if (typeof cb === "function") {
94
99
  if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
101
  this.send(command, optionsOrCb || {}, cb);
97
102
  }
98
103
  else {
99
104
  return this.send(command, optionsOrCb);
100
105
  }
101
- }
102
- deleteAsset(args, optionsOrCb, cb) {
103
- const command = new DeleteAssetCommand(args);
106
+ };
107
+ DataExchange.prototype.deleteAsset = function (args, optionsOrCb, cb) {
108
+ var command = new DeleteAssetCommand(args);
104
109
  if (typeof optionsOrCb === "function") {
105
110
  this.send(command, optionsOrCb);
106
111
  }
107
112
  else if (typeof cb === "function") {
108
113
  if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
115
  this.send(command, optionsOrCb || {}, cb);
111
116
  }
112
117
  else {
113
118
  return this.send(command, optionsOrCb);
114
119
  }
115
- }
116
- deleteDataSet(args, optionsOrCb, cb) {
117
- const command = new DeleteDataSetCommand(args);
120
+ };
121
+ DataExchange.prototype.deleteDataSet = function (args, optionsOrCb, cb) {
122
+ var command = new DeleteDataSetCommand(args);
118
123
  if (typeof optionsOrCb === "function") {
119
124
  this.send(command, optionsOrCb);
120
125
  }
121
126
  else if (typeof cb === "function") {
122
127
  if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
129
  this.send(command, optionsOrCb || {}, cb);
125
130
  }
126
131
  else {
127
132
  return this.send(command, optionsOrCb);
128
133
  }
129
- }
130
- deleteEventAction(args, optionsOrCb, cb) {
131
- const command = new DeleteEventActionCommand(args);
134
+ };
135
+ DataExchange.prototype.deleteEventAction = function (args, optionsOrCb, cb) {
136
+ var command = new DeleteEventActionCommand(args);
132
137
  if (typeof optionsOrCb === "function") {
133
138
  this.send(command, optionsOrCb);
134
139
  }
135
140
  else if (typeof cb === "function") {
136
141
  if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
143
  this.send(command, optionsOrCb || {}, cb);
139
144
  }
140
145
  else {
141
146
  return this.send(command, optionsOrCb);
142
147
  }
143
- }
144
- deleteRevision(args, optionsOrCb, cb) {
145
- const command = new DeleteRevisionCommand(args);
148
+ };
149
+ DataExchange.prototype.deleteRevision = function (args, optionsOrCb, cb) {
150
+ var command = new DeleteRevisionCommand(args);
146
151
  if (typeof optionsOrCb === "function") {
147
152
  this.send(command, optionsOrCb);
148
153
  }
149
154
  else if (typeof cb === "function") {
150
155
  if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
157
  this.send(command, optionsOrCb || {}, cb);
153
158
  }
154
159
  else {
155
160
  return this.send(command, optionsOrCb);
156
161
  }
157
- }
158
- getAsset(args, optionsOrCb, cb) {
159
- const command = new GetAssetCommand(args);
162
+ };
163
+ DataExchange.prototype.getAsset = function (args, optionsOrCb, cb) {
164
+ var command = new GetAssetCommand(args);
160
165
  if (typeof optionsOrCb === "function") {
161
166
  this.send(command, optionsOrCb);
162
167
  }
163
168
  else if (typeof cb === "function") {
164
169
  if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
171
  this.send(command, optionsOrCb || {}, cb);
167
172
  }
168
173
  else {
169
174
  return this.send(command, optionsOrCb);
170
175
  }
171
- }
172
- getDataSet(args, optionsOrCb, cb) {
173
- const command = new GetDataSetCommand(args);
176
+ };
177
+ DataExchange.prototype.getDataSet = function (args, optionsOrCb, cb) {
178
+ var command = new GetDataSetCommand(args);
174
179
  if (typeof optionsOrCb === "function") {
175
180
  this.send(command, optionsOrCb);
176
181
  }
177
182
  else if (typeof cb === "function") {
178
183
  if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
185
  this.send(command, optionsOrCb || {}, cb);
181
186
  }
182
187
  else {
183
188
  return this.send(command, optionsOrCb);
184
189
  }
185
- }
186
- getEventAction(args, optionsOrCb, cb) {
187
- const command = new GetEventActionCommand(args);
190
+ };
191
+ DataExchange.prototype.getEventAction = function (args, optionsOrCb, cb) {
192
+ var command = new GetEventActionCommand(args);
188
193
  if (typeof optionsOrCb === "function") {
189
194
  this.send(command, optionsOrCb);
190
195
  }
191
196
  else if (typeof cb === "function") {
192
197
  if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
199
  this.send(command, optionsOrCb || {}, cb);
195
200
  }
196
201
  else {
197
202
  return this.send(command, optionsOrCb);
198
203
  }
199
- }
200
- getJob(args, optionsOrCb, cb) {
201
- const command = new GetJobCommand(args);
204
+ };
205
+ DataExchange.prototype.getJob = function (args, optionsOrCb, cb) {
206
+ var command = new GetJobCommand(args);
202
207
  if (typeof optionsOrCb === "function") {
203
208
  this.send(command, optionsOrCb);
204
209
  }
205
210
  else if (typeof cb === "function") {
206
211
  if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
213
  this.send(command, optionsOrCb || {}, cb);
209
214
  }
210
215
  else {
211
216
  return this.send(command, optionsOrCb);
212
217
  }
213
- }
214
- getRevision(args, optionsOrCb, cb) {
215
- const command = new GetRevisionCommand(args);
218
+ };
219
+ DataExchange.prototype.getRevision = function (args, optionsOrCb, cb) {
220
+ var command = new GetRevisionCommand(args);
216
221
  if (typeof optionsOrCb === "function") {
217
222
  this.send(command, optionsOrCb);
218
223
  }
219
224
  else if (typeof cb === "function") {
220
225
  if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
227
  this.send(command, optionsOrCb || {}, cb);
223
228
  }
224
229
  else {
225
230
  return this.send(command, optionsOrCb);
226
231
  }
227
- }
228
- listDataSetRevisions(args, optionsOrCb, cb) {
229
- const command = new ListDataSetRevisionsCommand(args);
232
+ };
233
+ DataExchange.prototype.listDataSetRevisions = function (args, optionsOrCb, cb) {
234
+ var command = new ListDataSetRevisionsCommand(args);
230
235
  if (typeof optionsOrCb === "function") {
231
236
  this.send(command, optionsOrCb);
232
237
  }
233
238
  else if (typeof cb === "function") {
234
239
  if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
236
241
  this.send(command, optionsOrCb || {}, cb);
237
242
  }
238
243
  else {
239
244
  return this.send(command, optionsOrCb);
240
245
  }
241
- }
242
- listDataSets(args, optionsOrCb, cb) {
243
- const command = new ListDataSetsCommand(args);
246
+ };
247
+ DataExchange.prototype.listDataSets = function (args, optionsOrCb, cb) {
248
+ var command = new ListDataSetsCommand(args);
244
249
  if (typeof optionsOrCb === "function") {
245
250
  this.send(command, optionsOrCb);
246
251
  }
247
252
  else if (typeof cb === "function") {
248
253
  if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
250
255
  this.send(command, optionsOrCb || {}, cb);
251
256
  }
252
257
  else {
253
258
  return this.send(command, optionsOrCb);
254
259
  }
255
- }
256
- listEventActions(args, optionsOrCb, cb) {
257
- const command = new ListEventActionsCommand(args);
260
+ };
261
+ DataExchange.prototype.listEventActions = function (args, optionsOrCb, cb) {
262
+ var command = new ListEventActionsCommand(args);
258
263
  if (typeof optionsOrCb === "function") {
259
264
  this.send(command, optionsOrCb);
260
265
  }
261
266
  else if (typeof cb === "function") {
262
267
  if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
264
269
  this.send(command, optionsOrCb || {}, cb);
265
270
  }
266
271
  else {
267
272
  return this.send(command, optionsOrCb);
268
273
  }
269
- }
270
- listJobs(args, optionsOrCb, cb) {
271
- const command = new ListJobsCommand(args);
274
+ };
275
+ DataExchange.prototype.listJobs = function (args, optionsOrCb, cb) {
276
+ var command = new ListJobsCommand(args);
272
277
  if (typeof optionsOrCb === "function") {
273
278
  this.send(command, optionsOrCb);
274
279
  }
275
280
  else if (typeof cb === "function") {
276
281
  if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
278
283
  this.send(command, optionsOrCb || {}, cb);
279
284
  }
280
285
  else {
281
286
  return this.send(command, optionsOrCb);
282
287
  }
283
- }
284
- listRevisionAssets(args, optionsOrCb, cb) {
285
- const command = new ListRevisionAssetsCommand(args);
288
+ };
289
+ DataExchange.prototype.listRevisionAssets = function (args, optionsOrCb, cb) {
290
+ var command = new ListRevisionAssetsCommand(args);
286
291
  if (typeof optionsOrCb === "function") {
287
292
  this.send(command, optionsOrCb);
288
293
  }
289
294
  else if (typeof cb === "function") {
290
295
  if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
292
297
  this.send(command, optionsOrCb || {}, cb);
293
298
  }
294
299
  else {
295
300
  return this.send(command, optionsOrCb);
296
301
  }
297
- }
298
- listTagsForResource(args, optionsOrCb, cb) {
299
- const command = new ListTagsForResourceCommand(args);
302
+ };
303
+ DataExchange.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
304
+ var command = new ListTagsForResourceCommand(args);
300
305
  if (typeof optionsOrCb === "function") {
301
306
  this.send(command, optionsOrCb);
302
307
  }
303
308
  else if (typeof cb === "function") {
304
309
  if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
306
311
  this.send(command, optionsOrCb || {}, cb);
307
312
  }
308
313
  else {
309
314
  return this.send(command, optionsOrCb);
310
315
  }
311
- }
312
- revokeRevision(args, optionsOrCb, cb) {
313
- const command = new RevokeRevisionCommand(args);
316
+ };
317
+ DataExchange.prototype.revokeRevision = function (args, optionsOrCb, cb) {
318
+ var command = new RevokeRevisionCommand(args);
314
319
  if (typeof optionsOrCb === "function") {
315
320
  this.send(command, optionsOrCb);
316
321
  }
317
322
  else if (typeof cb === "function") {
318
323
  if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
324
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
320
325
  this.send(command, optionsOrCb || {}, cb);
321
326
  }
322
327
  else {
323
328
  return this.send(command, optionsOrCb);
324
329
  }
325
- }
326
- sendApiAsset(args, optionsOrCb, cb) {
327
- const command = new SendApiAssetCommand(args);
330
+ };
331
+ DataExchange.prototype.sendApiAsset = function (args, optionsOrCb, cb) {
332
+ var command = new SendApiAssetCommand(args);
328
333
  if (typeof optionsOrCb === "function") {
329
334
  this.send(command, optionsOrCb);
330
335
  }
331
336
  else if (typeof cb === "function") {
332
337
  if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
334
339
  this.send(command, optionsOrCb || {}, cb);
335
340
  }
336
341
  else {
337
342
  return this.send(command, optionsOrCb);
338
343
  }
339
- }
340
- startJob(args, optionsOrCb, cb) {
341
- const command = new StartJobCommand(args);
344
+ };
345
+ DataExchange.prototype.startJob = function (args, optionsOrCb, cb) {
346
+ var command = new StartJobCommand(args);
342
347
  if (typeof optionsOrCb === "function") {
343
348
  this.send(command, optionsOrCb);
344
349
  }
345
350
  else if (typeof cb === "function") {
346
351
  if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
352
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
348
353
  this.send(command, optionsOrCb || {}, cb);
349
354
  }
350
355
  else {
351
356
  return this.send(command, optionsOrCb);
352
357
  }
353
- }
354
- tagResource(args, optionsOrCb, cb) {
355
- const command = new TagResourceCommand(args);
358
+ };
359
+ DataExchange.prototype.tagResource = function (args, optionsOrCb, cb) {
360
+ var command = new TagResourceCommand(args);
356
361
  if (typeof optionsOrCb === "function") {
357
362
  this.send(command, optionsOrCb);
358
363
  }
359
364
  else if (typeof cb === "function") {
360
365
  if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
366
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
362
367
  this.send(command, optionsOrCb || {}, cb);
363
368
  }
364
369
  else {
365
370
  return this.send(command, optionsOrCb);
366
371
  }
367
- }
368
- untagResource(args, optionsOrCb, cb) {
369
- const command = new UntagResourceCommand(args);
372
+ };
373
+ DataExchange.prototype.untagResource = function (args, optionsOrCb, cb) {
374
+ var command = new UntagResourceCommand(args);
370
375
  if (typeof optionsOrCb === "function") {
371
376
  this.send(command, optionsOrCb);
372
377
  }
373
378
  else if (typeof cb === "function") {
374
379
  if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
376
381
  this.send(command, optionsOrCb || {}, cb);
377
382
  }
378
383
  else {
379
384
  return this.send(command, optionsOrCb);
380
385
  }
381
- }
382
- updateAsset(args, optionsOrCb, cb) {
383
- const command = new UpdateAssetCommand(args);
386
+ };
387
+ DataExchange.prototype.updateAsset = function (args, optionsOrCb, cb) {
388
+ var command = new UpdateAssetCommand(args);
384
389
  if (typeof optionsOrCb === "function") {
385
390
  this.send(command, optionsOrCb);
386
391
  }
387
392
  else if (typeof cb === "function") {
388
393
  if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
390
395
  this.send(command, optionsOrCb || {}, cb);
391
396
  }
392
397
  else {
393
398
  return this.send(command, optionsOrCb);
394
399
  }
395
- }
396
- updateDataSet(args, optionsOrCb, cb) {
397
- const command = new UpdateDataSetCommand(args);
400
+ };
401
+ DataExchange.prototype.updateDataSet = function (args, optionsOrCb, cb) {
402
+ var command = new UpdateDataSetCommand(args);
398
403
  if (typeof optionsOrCb === "function") {
399
404
  this.send(command, optionsOrCb);
400
405
  }
401
406
  else if (typeof cb === "function") {
402
407
  if (typeof optionsOrCb !== "object")
403
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
408
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
404
409
  this.send(command, optionsOrCb || {}, cb);
405
410
  }
406
411
  else {
407
412
  return this.send(command, optionsOrCb);
408
413
  }
409
- }
410
- updateEventAction(args, optionsOrCb, cb) {
411
- const command = new UpdateEventActionCommand(args);
414
+ };
415
+ DataExchange.prototype.updateEventAction = function (args, optionsOrCb, cb) {
416
+ var command = new UpdateEventActionCommand(args);
412
417
  if (typeof optionsOrCb === "function") {
413
418
  this.send(command, optionsOrCb);
414
419
  }
415
420
  else if (typeof cb === "function") {
416
421
  if (typeof optionsOrCb !== "object")
417
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
422
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
418
423
  this.send(command, optionsOrCb || {}, cb);
419
424
  }
420
425
  else {
421
426
  return this.send(command, optionsOrCb);
422
427
  }
423
- }
424
- updateRevision(args, optionsOrCb, cb) {
425
- const command = new UpdateRevisionCommand(args);
428
+ };
429
+ DataExchange.prototype.updateRevision = function (args, optionsOrCb, cb) {
430
+ var command = new UpdateRevisionCommand(args);
426
431
  if (typeof optionsOrCb === "function") {
427
432
  this.send(command, optionsOrCb);
428
433
  }
429
434
  else if (typeof cb === "function") {
430
435
  if (typeof optionsOrCb !== "object")
431
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
436
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
432
437
  this.send(command, optionsOrCb || {}, cb);
433
438
  }
434
439
  else {
435
440
  return this.send(command, optionsOrCb);
436
441
  }
437
- }
438
- }
442
+ };
443
+ return DataExchange;
444
+ }(DataExchangeClient));
445
+ export { DataExchange };
@@ -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 DataExchangeClient 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 DataExchangeClient = (function (_super) {
13
+ __extends(DataExchangeClient, _super);
14
+ function DataExchangeClient(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
+ DataExchangeClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return DataExchangeClient;
38
+ }(__Client));
39
+ export { DataExchangeClient };