@aws-sdk/client-dataexchange 3.315.0 → 3.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/DataExchange.js +33 -406
- package/dist-es/DataExchange.js +33 -406
- package/dist-types/DataExchange.d.ts +51 -78
- package/dist-types/ts3.4/DataExchange.d.ts +4 -1
- package/package.json +8 -8
package/dist-cjs/DataExchange.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataExchange = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CancelJobCommand_1 = require("./commands/CancelJobCommand");
|
|
5
6
|
const CreateDataSetCommand_1 = require("./commands/CreateDataSetCommand");
|
|
6
7
|
const CreateEventActionCommand_1 = require("./commands/CreateEventActionCommand");
|
|
@@ -31,412 +32,38 @@ const UpdateDataSetCommand_1 = require("./commands/UpdateDataSetCommand");
|
|
|
31
32
|
const UpdateEventActionCommand_1 = require("./commands/UpdateEventActionCommand");
|
|
32
33
|
const UpdateRevisionCommand_1 = require("./commands/UpdateRevisionCommand");
|
|
33
34
|
const DataExchangeClient_1 = require("./DataExchangeClient");
|
|
35
|
+
const commands = {
|
|
36
|
+
CancelJobCommand: CancelJobCommand_1.CancelJobCommand,
|
|
37
|
+
CreateDataSetCommand: CreateDataSetCommand_1.CreateDataSetCommand,
|
|
38
|
+
CreateEventActionCommand: CreateEventActionCommand_1.CreateEventActionCommand,
|
|
39
|
+
CreateJobCommand: CreateJobCommand_1.CreateJobCommand,
|
|
40
|
+
CreateRevisionCommand: CreateRevisionCommand_1.CreateRevisionCommand,
|
|
41
|
+
DeleteAssetCommand: DeleteAssetCommand_1.DeleteAssetCommand,
|
|
42
|
+
DeleteDataSetCommand: DeleteDataSetCommand_1.DeleteDataSetCommand,
|
|
43
|
+
DeleteEventActionCommand: DeleteEventActionCommand_1.DeleteEventActionCommand,
|
|
44
|
+
DeleteRevisionCommand: DeleteRevisionCommand_1.DeleteRevisionCommand,
|
|
45
|
+
GetAssetCommand: GetAssetCommand_1.GetAssetCommand,
|
|
46
|
+
GetDataSetCommand: GetDataSetCommand_1.GetDataSetCommand,
|
|
47
|
+
GetEventActionCommand: GetEventActionCommand_1.GetEventActionCommand,
|
|
48
|
+
GetJobCommand: GetJobCommand_1.GetJobCommand,
|
|
49
|
+
GetRevisionCommand: GetRevisionCommand_1.GetRevisionCommand,
|
|
50
|
+
ListDataSetRevisionsCommand: ListDataSetRevisionsCommand_1.ListDataSetRevisionsCommand,
|
|
51
|
+
ListDataSetsCommand: ListDataSetsCommand_1.ListDataSetsCommand,
|
|
52
|
+
ListEventActionsCommand: ListEventActionsCommand_1.ListEventActionsCommand,
|
|
53
|
+
ListJobsCommand: ListJobsCommand_1.ListJobsCommand,
|
|
54
|
+
ListRevisionAssetsCommand: ListRevisionAssetsCommand_1.ListRevisionAssetsCommand,
|
|
55
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
56
|
+
RevokeRevisionCommand: RevokeRevisionCommand_1.RevokeRevisionCommand,
|
|
57
|
+
SendApiAssetCommand: SendApiAssetCommand_1.SendApiAssetCommand,
|
|
58
|
+
StartJobCommand: StartJobCommand_1.StartJobCommand,
|
|
59
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
60
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
61
|
+
UpdateAssetCommand: UpdateAssetCommand_1.UpdateAssetCommand,
|
|
62
|
+
UpdateDataSetCommand: UpdateDataSetCommand_1.UpdateDataSetCommand,
|
|
63
|
+
UpdateEventActionCommand: UpdateEventActionCommand_1.UpdateEventActionCommand,
|
|
64
|
+
UpdateRevisionCommand: UpdateRevisionCommand_1.UpdateRevisionCommand,
|
|
65
|
+
};
|
|
34
66
|
class DataExchange extends DataExchangeClient_1.DataExchangeClient {
|
|
35
|
-
cancelJob(args, optionsOrCb, cb) {
|
|
36
|
-
const command = new CancelJobCommand_1.CancelJobCommand(args);
|
|
37
|
-
if (typeof optionsOrCb === "function") {
|
|
38
|
-
this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
else if (typeof cb === "function") {
|
|
41
|
-
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
createDataSet(args, optionsOrCb, cb) {
|
|
50
|
-
const command = new CreateDataSetCommand_1.CreateDataSetCommand(args);
|
|
51
|
-
if (typeof optionsOrCb === "function") {
|
|
52
|
-
this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
else if (typeof cb === "function") {
|
|
55
|
-
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
createEventAction(args, optionsOrCb, cb) {
|
|
64
|
-
const command = new CreateEventActionCommand_1.CreateEventActionCommand(args);
|
|
65
|
-
if (typeof optionsOrCb === "function") {
|
|
66
|
-
this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
else if (typeof cb === "function") {
|
|
69
|
-
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
71
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
return this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
createJob(args, optionsOrCb, cb) {
|
|
78
|
-
const command = new CreateJobCommand_1.CreateJobCommand(args);
|
|
79
|
-
if (typeof optionsOrCb === "function") {
|
|
80
|
-
this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
else if (typeof cb === "function") {
|
|
83
|
-
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
85
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
createRevision(args, optionsOrCb, cb) {
|
|
92
|
-
const command = new CreateRevisionCommand_1.CreateRevisionCommand(args);
|
|
93
|
-
if (typeof optionsOrCb === "function") {
|
|
94
|
-
this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
else if (typeof cb === "function") {
|
|
97
|
-
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
99
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
return this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
deleteAsset(args, optionsOrCb, cb) {
|
|
106
|
-
const command = new DeleteAssetCommand_1.DeleteAssetCommand(args);
|
|
107
|
-
if (typeof optionsOrCb === "function") {
|
|
108
|
-
this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
else if (typeof cb === "function") {
|
|
111
|
-
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
113
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
return this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
deleteDataSet(args, optionsOrCb, cb) {
|
|
120
|
-
const command = new DeleteDataSetCommand_1.DeleteDataSetCommand(args);
|
|
121
|
-
if (typeof optionsOrCb === "function") {
|
|
122
|
-
this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
else if (typeof cb === "function") {
|
|
125
|
-
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
127
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
return this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
deleteEventAction(args, optionsOrCb, cb) {
|
|
134
|
-
const command = new DeleteEventActionCommand_1.DeleteEventActionCommand(args);
|
|
135
|
-
if (typeof optionsOrCb === "function") {
|
|
136
|
-
this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
else if (typeof cb === "function") {
|
|
139
|
-
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
141
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
return this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
deleteRevision(args, optionsOrCb, cb) {
|
|
148
|
-
const command = new DeleteRevisionCommand_1.DeleteRevisionCommand(args);
|
|
149
|
-
if (typeof optionsOrCb === "function") {
|
|
150
|
-
this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
else if (typeof cb === "function") {
|
|
153
|
-
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
return this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
getAsset(args, optionsOrCb, cb) {
|
|
162
|
-
const command = new GetAssetCommand_1.GetAssetCommand(args);
|
|
163
|
-
if (typeof optionsOrCb === "function") {
|
|
164
|
-
this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
else if (typeof cb === "function") {
|
|
167
|
-
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
169
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
return this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
getDataSet(args, optionsOrCb, cb) {
|
|
176
|
-
const command = new GetDataSetCommand_1.GetDataSetCommand(args);
|
|
177
|
-
if (typeof optionsOrCb === "function") {
|
|
178
|
-
this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
else if (typeof cb === "function") {
|
|
181
|
-
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
183
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
return this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
getEventAction(args, optionsOrCb, cb) {
|
|
190
|
-
const command = new GetEventActionCommand_1.GetEventActionCommand(args);
|
|
191
|
-
if (typeof optionsOrCb === "function") {
|
|
192
|
-
this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
else if (typeof cb === "function") {
|
|
195
|
-
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
197
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
return this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
getJob(args, optionsOrCb, cb) {
|
|
204
|
-
const command = new GetJobCommand_1.GetJobCommand(args);
|
|
205
|
-
if (typeof optionsOrCb === "function") {
|
|
206
|
-
this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
else if (typeof cb === "function") {
|
|
209
|
-
if (typeof optionsOrCb !== "object")
|
|
210
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
211
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
return this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
getRevision(args, optionsOrCb, cb) {
|
|
218
|
-
const command = new GetRevisionCommand_1.GetRevisionCommand(args);
|
|
219
|
-
if (typeof optionsOrCb === "function") {
|
|
220
|
-
this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
else if (typeof cb === "function") {
|
|
223
|
-
if (typeof optionsOrCb !== "object")
|
|
224
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
225
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
return this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
listDataSetRevisions(args, optionsOrCb, cb) {
|
|
232
|
-
const command = new ListDataSetRevisionsCommand_1.ListDataSetRevisionsCommand(args);
|
|
233
|
-
if (typeof optionsOrCb === "function") {
|
|
234
|
-
this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
else if (typeof cb === "function") {
|
|
237
|
-
if (typeof optionsOrCb !== "object")
|
|
238
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
239
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
return this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
listDataSets(args, optionsOrCb, cb) {
|
|
246
|
-
const command = new ListDataSetsCommand_1.ListDataSetsCommand(args);
|
|
247
|
-
if (typeof optionsOrCb === "function") {
|
|
248
|
-
this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
else if (typeof cb === "function") {
|
|
251
|
-
if (typeof optionsOrCb !== "object")
|
|
252
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
253
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
return this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
listEventActions(args, optionsOrCb, cb) {
|
|
260
|
-
const command = new ListEventActionsCommand_1.ListEventActionsCommand(args);
|
|
261
|
-
if (typeof optionsOrCb === "function") {
|
|
262
|
-
this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
else if (typeof cb === "function") {
|
|
265
|
-
if (typeof optionsOrCb !== "object")
|
|
266
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
267
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
return this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
listJobs(args, optionsOrCb, cb) {
|
|
274
|
-
const command = new ListJobsCommand_1.ListJobsCommand(args);
|
|
275
|
-
if (typeof optionsOrCb === "function") {
|
|
276
|
-
this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
else if (typeof cb === "function") {
|
|
279
|
-
if (typeof optionsOrCb !== "object")
|
|
280
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
281
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
return this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
listRevisionAssets(args, optionsOrCb, cb) {
|
|
288
|
-
const command = new ListRevisionAssetsCommand_1.ListRevisionAssetsCommand(args);
|
|
289
|
-
if (typeof optionsOrCb === "function") {
|
|
290
|
-
this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
else if (typeof cb === "function") {
|
|
293
|
-
if (typeof optionsOrCb !== "object")
|
|
294
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
295
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
return this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
302
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
303
|
-
if (typeof optionsOrCb === "function") {
|
|
304
|
-
this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
else if (typeof cb === "function") {
|
|
307
|
-
if (typeof optionsOrCb !== "object")
|
|
308
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
309
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
return this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
revokeRevision(args, optionsOrCb, cb) {
|
|
316
|
-
const command = new RevokeRevisionCommand_1.RevokeRevisionCommand(args);
|
|
317
|
-
if (typeof optionsOrCb === "function") {
|
|
318
|
-
this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
else if (typeof cb === "function") {
|
|
321
|
-
if (typeof optionsOrCb !== "object")
|
|
322
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
323
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
return this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
sendApiAsset(args, optionsOrCb, cb) {
|
|
330
|
-
const command = new SendApiAssetCommand_1.SendApiAssetCommand(args);
|
|
331
|
-
if (typeof optionsOrCb === "function") {
|
|
332
|
-
this.send(command, optionsOrCb);
|
|
333
|
-
}
|
|
334
|
-
else if (typeof cb === "function") {
|
|
335
|
-
if (typeof optionsOrCb !== "object")
|
|
336
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
337
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
return this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
startJob(args, optionsOrCb, cb) {
|
|
344
|
-
const command = new StartJobCommand_1.StartJobCommand(args);
|
|
345
|
-
if (typeof optionsOrCb === "function") {
|
|
346
|
-
this.send(command, optionsOrCb);
|
|
347
|
-
}
|
|
348
|
-
else if (typeof cb === "function") {
|
|
349
|
-
if (typeof optionsOrCb !== "object")
|
|
350
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
351
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
return this.send(command, optionsOrCb);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
tagResource(args, optionsOrCb, cb) {
|
|
358
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
359
|
-
if (typeof optionsOrCb === "function") {
|
|
360
|
-
this.send(command, optionsOrCb);
|
|
361
|
-
}
|
|
362
|
-
else if (typeof cb === "function") {
|
|
363
|
-
if (typeof optionsOrCb !== "object")
|
|
364
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
365
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
return this.send(command, optionsOrCb);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
untagResource(args, optionsOrCb, cb) {
|
|
372
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
373
|
-
if (typeof optionsOrCb === "function") {
|
|
374
|
-
this.send(command, optionsOrCb);
|
|
375
|
-
}
|
|
376
|
-
else if (typeof cb === "function") {
|
|
377
|
-
if (typeof optionsOrCb !== "object")
|
|
378
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
379
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
return this.send(command, optionsOrCb);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
updateAsset(args, optionsOrCb, cb) {
|
|
386
|
-
const command = new UpdateAssetCommand_1.UpdateAssetCommand(args);
|
|
387
|
-
if (typeof optionsOrCb === "function") {
|
|
388
|
-
this.send(command, optionsOrCb);
|
|
389
|
-
}
|
|
390
|
-
else if (typeof cb === "function") {
|
|
391
|
-
if (typeof optionsOrCb !== "object")
|
|
392
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
393
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
return this.send(command, optionsOrCb);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
updateDataSet(args, optionsOrCb, cb) {
|
|
400
|
-
const command = new UpdateDataSetCommand_1.UpdateDataSetCommand(args);
|
|
401
|
-
if (typeof optionsOrCb === "function") {
|
|
402
|
-
this.send(command, optionsOrCb);
|
|
403
|
-
}
|
|
404
|
-
else if (typeof cb === "function") {
|
|
405
|
-
if (typeof optionsOrCb !== "object")
|
|
406
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
407
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
return this.send(command, optionsOrCb);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
updateEventAction(args, optionsOrCb, cb) {
|
|
414
|
-
const command = new UpdateEventActionCommand_1.UpdateEventActionCommand(args);
|
|
415
|
-
if (typeof optionsOrCb === "function") {
|
|
416
|
-
this.send(command, optionsOrCb);
|
|
417
|
-
}
|
|
418
|
-
else if (typeof cb === "function") {
|
|
419
|
-
if (typeof optionsOrCb !== "object")
|
|
420
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
421
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
return this.send(command, optionsOrCb);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
updateRevision(args, optionsOrCb, cb) {
|
|
428
|
-
const command = new UpdateRevisionCommand_1.UpdateRevisionCommand(args);
|
|
429
|
-
if (typeof optionsOrCb === "function") {
|
|
430
|
-
this.send(command, optionsOrCb);
|
|
431
|
-
}
|
|
432
|
-
else if (typeof cb === "function") {
|
|
433
|
-
if (typeof optionsOrCb !== "object")
|
|
434
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
435
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
436
|
-
}
|
|
437
|
-
else {
|
|
438
|
-
return this.send(command, optionsOrCb);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
67
|
}
|
|
442
68
|
exports.DataExchange = DataExchange;
|
|
69
|
+
(0, smithy_client_1.createAggregatedClient)(commands, DataExchange);
|
package/dist-es/DataExchange.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CancelJobCommand } from "./commands/CancelJobCommand";
|
|
2
3
|
import { CreateDataSetCommand, } from "./commands/CreateDataSetCommand";
|
|
3
4
|
import { CreateEventActionCommand, } from "./commands/CreateEventActionCommand";
|
|
@@ -28,411 +29,37 @@ 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";
|
|
32
|
+
const commands = {
|
|
33
|
+
CancelJobCommand,
|
|
34
|
+
CreateDataSetCommand,
|
|
35
|
+
CreateEventActionCommand,
|
|
36
|
+
CreateJobCommand,
|
|
37
|
+
CreateRevisionCommand,
|
|
38
|
+
DeleteAssetCommand,
|
|
39
|
+
DeleteDataSetCommand,
|
|
40
|
+
DeleteEventActionCommand,
|
|
41
|
+
DeleteRevisionCommand,
|
|
42
|
+
GetAssetCommand,
|
|
43
|
+
GetDataSetCommand,
|
|
44
|
+
GetEventActionCommand,
|
|
45
|
+
GetJobCommand,
|
|
46
|
+
GetRevisionCommand,
|
|
47
|
+
ListDataSetRevisionsCommand,
|
|
48
|
+
ListDataSetsCommand,
|
|
49
|
+
ListEventActionsCommand,
|
|
50
|
+
ListJobsCommand,
|
|
51
|
+
ListRevisionAssetsCommand,
|
|
52
|
+
ListTagsForResourceCommand,
|
|
53
|
+
RevokeRevisionCommand,
|
|
54
|
+
SendApiAssetCommand,
|
|
55
|
+
StartJobCommand,
|
|
56
|
+
TagResourceCommand,
|
|
57
|
+
UntagResourceCommand,
|
|
58
|
+
UpdateAssetCommand,
|
|
59
|
+
UpdateDataSetCommand,
|
|
60
|
+
UpdateEventActionCommand,
|
|
61
|
+
UpdateRevisionCommand,
|
|
62
|
+
};
|
|
31
63
|
export class DataExchange extends DataExchangeClient {
|
|
32
|
-
cancelJob(args, optionsOrCb, cb) {
|
|
33
|
-
const command = new CancelJobCommand(args);
|
|
34
|
-
if (typeof optionsOrCb === "function") {
|
|
35
|
-
this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
else if (typeof cb === "function") {
|
|
38
|
-
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
40
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
createDataSet(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new CreateDataSetCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
createEventAction(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new CreateEventActionCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
createJob(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new CreateJobCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
createRevision(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new CreateRevisionCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
deleteAsset(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new DeleteAssetCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
deleteDataSet(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new DeleteDataSetCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
deleteEventAction(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new DeleteEventActionCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
deleteRevision(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new DeleteRevisionCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
getAsset(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new GetAssetCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
getDataSet(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new GetDataSetCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
getEventAction(args, optionsOrCb, cb) {
|
|
187
|
-
const command = new GetEventActionCommand(args);
|
|
188
|
-
if (typeof optionsOrCb === "function") {
|
|
189
|
-
this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
else if (typeof cb === "function") {
|
|
192
|
-
if (typeof optionsOrCb !== "object")
|
|
193
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
194
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
getJob(args, optionsOrCb, cb) {
|
|
201
|
-
const command = new GetJobCommand(args);
|
|
202
|
-
if (typeof optionsOrCb === "function") {
|
|
203
|
-
this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
else if (typeof cb === "function") {
|
|
206
|
-
if (typeof optionsOrCb !== "object")
|
|
207
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
208
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
return this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
getRevision(args, optionsOrCb, cb) {
|
|
215
|
-
const command = new GetRevisionCommand(args);
|
|
216
|
-
if (typeof optionsOrCb === "function") {
|
|
217
|
-
this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
else if (typeof cb === "function") {
|
|
220
|
-
if (typeof optionsOrCb !== "object")
|
|
221
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
222
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
return this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
listDataSetRevisions(args, optionsOrCb, cb) {
|
|
229
|
-
const command = new ListDataSetRevisionsCommand(args);
|
|
230
|
-
if (typeof optionsOrCb === "function") {
|
|
231
|
-
this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object")
|
|
235
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
236
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
return this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
listDataSets(args, optionsOrCb, cb) {
|
|
243
|
-
const command = new ListDataSetsCommand(args);
|
|
244
|
-
if (typeof optionsOrCb === "function") {
|
|
245
|
-
this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
else if (typeof cb === "function") {
|
|
248
|
-
if (typeof optionsOrCb !== "object")
|
|
249
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
250
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
return this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
listEventActions(args, optionsOrCb, cb) {
|
|
257
|
-
const command = new ListEventActionsCommand(args);
|
|
258
|
-
if (typeof optionsOrCb === "function") {
|
|
259
|
-
this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
else if (typeof cb === "function") {
|
|
262
|
-
if (typeof optionsOrCb !== "object")
|
|
263
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
264
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
return this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
listJobs(args, optionsOrCb, cb) {
|
|
271
|
-
const command = new ListJobsCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
else if (typeof cb === "function") {
|
|
276
|
-
if (typeof optionsOrCb !== "object")
|
|
277
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
278
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
return this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
listRevisionAssets(args, optionsOrCb, cb) {
|
|
285
|
-
const command = new ListRevisionAssetsCommand(args);
|
|
286
|
-
if (typeof optionsOrCb === "function") {
|
|
287
|
-
this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
else if (typeof cb === "function") {
|
|
290
|
-
if (typeof optionsOrCb !== "object")
|
|
291
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
292
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
return this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
299
|
-
const command = new ListTagsForResourceCommand(args);
|
|
300
|
-
if (typeof optionsOrCb === "function") {
|
|
301
|
-
this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
else if (typeof cb === "function") {
|
|
304
|
-
if (typeof optionsOrCb !== "object")
|
|
305
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
306
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
return this.send(command, optionsOrCb);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
revokeRevision(args, optionsOrCb, cb) {
|
|
313
|
-
const command = new RevokeRevisionCommand(args);
|
|
314
|
-
if (typeof optionsOrCb === "function") {
|
|
315
|
-
this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
else if (typeof cb === "function") {
|
|
318
|
-
if (typeof optionsOrCb !== "object")
|
|
319
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
320
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
return this.send(command, optionsOrCb);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
sendApiAsset(args, optionsOrCb, cb) {
|
|
327
|
-
const command = new SendApiAssetCommand(args);
|
|
328
|
-
if (typeof optionsOrCb === "function") {
|
|
329
|
-
this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
else if (typeof cb === "function") {
|
|
332
|
-
if (typeof optionsOrCb !== "object")
|
|
333
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
334
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
return this.send(command, optionsOrCb);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
startJob(args, optionsOrCb, cb) {
|
|
341
|
-
const command = new StartJobCommand(args);
|
|
342
|
-
if (typeof optionsOrCb === "function") {
|
|
343
|
-
this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
else if (typeof cb === "function") {
|
|
346
|
-
if (typeof optionsOrCb !== "object")
|
|
347
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
348
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
return this.send(command, optionsOrCb);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
tagResource(args, optionsOrCb, cb) {
|
|
355
|
-
const command = new TagResourceCommand(args);
|
|
356
|
-
if (typeof optionsOrCb === "function") {
|
|
357
|
-
this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
else if (typeof cb === "function") {
|
|
360
|
-
if (typeof optionsOrCb !== "object")
|
|
361
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
362
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
return this.send(command, optionsOrCb);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
untagResource(args, optionsOrCb, cb) {
|
|
369
|
-
const command = new UntagResourceCommand(args);
|
|
370
|
-
if (typeof optionsOrCb === "function") {
|
|
371
|
-
this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
else if (typeof cb === "function") {
|
|
374
|
-
if (typeof optionsOrCb !== "object")
|
|
375
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
376
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
return this.send(command, optionsOrCb);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
updateAsset(args, optionsOrCb, cb) {
|
|
383
|
-
const command = new UpdateAssetCommand(args);
|
|
384
|
-
if (typeof optionsOrCb === "function") {
|
|
385
|
-
this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
else if (typeof cb === "function") {
|
|
388
|
-
if (typeof optionsOrCb !== "object")
|
|
389
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
390
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
return this.send(command, optionsOrCb);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
updateDataSet(args, optionsOrCb, cb) {
|
|
397
|
-
const command = new UpdateDataSetCommand(args);
|
|
398
|
-
if (typeof optionsOrCb === "function") {
|
|
399
|
-
this.send(command, optionsOrCb);
|
|
400
|
-
}
|
|
401
|
-
else if (typeof cb === "function") {
|
|
402
|
-
if (typeof optionsOrCb !== "object")
|
|
403
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
404
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
return this.send(command, optionsOrCb);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
updateEventAction(args, optionsOrCb, cb) {
|
|
411
|
-
const command = new UpdateEventActionCommand(args);
|
|
412
|
-
if (typeof optionsOrCb === "function") {
|
|
413
|
-
this.send(command, optionsOrCb);
|
|
414
|
-
}
|
|
415
|
-
else if (typeof cb === "function") {
|
|
416
|
-
if (typeof optionsOrCb !== "object")
|
|
417
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
418
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
return this.send(command, optionsOrCb);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
updateRevision(args, optionsOrCb, cb) {
|
|
425
|
-
const command = new UpdateRevisionCommand(args);
|
|
426
|
-
if (typeof optionsOrCb === "function") {
|
|
427
|
-
this.send(command, optionsOrCb);
|
|
428
|
-
}
|
|
429
|
-
else if (typeof cb === "function") {
|
|
430
|
-
if (typeof optionsOrCb !== "object")
|
|
431
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
432
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
return this.send(command, optionsOrCb);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
64
|
}
|
|
65
|
+
createAggregatedClient(commands, DataExchange);
|
|
@@ -29,227 +29,200 @@ import { UpdateDataSetCommandInput, UpdateDataSetCommandOutput } from "./command
|
|
|
29
29
|
import { UpdateEventActionCommandInput, UpdateEventActionCommandOutput } from "./commands/UpdateEventActionCommand";
|
|
30
30
|
import { UpdateRevisionCommandInput, UpdateRevisionCommandOutput } from "./commands/UpdateRevisionCommand";
|
|
31
31
|
import { DataExchangeClient } from "./DataExchangeClient";
|
|
32
|
-
|
|
33
|
-
* @public
|
|
34
|
-
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.</p>
|
|
35
|
-
* <p>As a subscriber, you can view and access the data sets that you have an entitlement to through
|
|
36
|
-
* a subscription. You can use the APIs to download or copy your entitled data sets to Amazon
|
|
37
|
-
* Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine
|
|
38
|
-
* learning services.</p>
|
|
39
|
-
* <p>As a provider, you can create and manage your data sets that you would like to publish to a
|
|
40
|
-
* product. Being able to package and provide your data sets into products requires a few
|
|
41
|
-
* steps to determine eligibility. For more information, visit the <i>AWS Data Exchange
|
|
42
|
-
* User Guide</i>.</p>
|
|
43
|
-
* <p>A data set is a collection of data that can be changed or updated over time. Data sets can be
|
|
44
|
-
* updated using revisions, which represent a new version or incremental change to a data set.
|
|
45
|
-
* A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data
|
|
46
|
-
* that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake
|
|
47
|
-
* Formation data permission, or Amazon S3 data access. The asset can be a structured data
|
|
48
|
-
* file, an image file, or some other data file. Jobs are asynchronous import or export
|
|
49
|
-
* operations used to create or copy assets.</p>
|
|
50
|
-
*/
|
|
51
|
-
export declare class DataExchange extends DataExchangeClient {
|
|
32
|
+
export interface DataExchange {
|
|
52
33
|
/**
|
|
53
|
-
* @
|
|
54
|
-
* <p>This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.</p>
|
|
34
|
+
* @see {@link CancelJobCommand}
|
|
55
35
|
*/
|
|
56
36
|
cancelJob(args: CancelJobCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobCommandOutput>;
|
|
57
37
|
cancelJob(args: CancelJobCommandInput, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
|
|
58
38
|
cancelJob(args: CancelJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
|
|
59
39
|
/**
|
|
60
|
-
* @
|
|
61
|
-
* <p>This operation creates a data set.</p>
|
|
40
|
+
* @see {@link CreateDataSetCommand}
|
|
62
41
|
*/
|
|
63
42
|
createDataSet(args: CreateDataSetCommandInput, options?: __HttpHandlerOptions): Promise<CreateDataSetCommandOutput>;
|
|
64
43
|
createDataSet(args: CreateDataSetCommandInput, cb: (err: any, data?: CreateDataSetCommandOutput) => void): void;
|
|
65
44
|
createDataSet(args: CreateDataSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataSetCommandOutput) => void): void;
|
|
66
45
|
/**
|
|
67
|
-
* @
|
|
68
|
-
* <p>This operation creates an event action.</p>
|
|
46
|
+
* @see {@link CreateEventActionCommand}
|
|
69
47
|
*/
|
|
70
48
|
createEventAction(args: CreateEventActionCommandInput, options?: __HttpHandlerOptions): Promise<CreateEventActionCommandOutput>;
|
|
71
49
|
createEventAction(args: CreateEventActionCommandInput, cb: (err: any, data?: CreateEventActionCommandOutput) => void): void;
|
|
72
50
|
createEventAction(args: CreateEventActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEventActionCommandOutput) => void): void;
|
|
73
51
|
/**
|
|
74
|
-
* @
|
|
75
|
-
* <p>This operation creates a job.</p>
|
|
52
|
+
* @see {@link CreateJobCommand}
|
|
76
53
|
*/
|
|
77
54
|
createJob(args: CreateJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateJobCommandOutput>;
|
|
78
55
|
createJob(args: CreateJobCommandInput, cb: (err: any, data?: CreateJobCommandOutput) => void): void;
|
|
79
56
|
createJob(args: CreateJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateJobCommandOutput) => void): void;
|
|
80
57
|
/**
|
|
81
|
-
* @
|
|
82
|
-
* <p>This operation creates a revision for a data set.</p>
|
|
58
|
+
* @see {@link CreateRevisionCommand}
|
|
83
59
|
*/
|
|
84
60
|
createRevision(args: CreateRevisionCommandInput, options?: __HttpHandlerOptions): Promise<CreateRevisionCommandOutput>;
|
|
85
61
|
createRevision(args: CreateRevisionCommandInput, cb: (err: any, data?: CreateRevisionCommandOutput) => void): void;
|
|
86
62
|
createRevision(args: CreateRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRevisionCommandOutput) => void): void;
|
|
87
63
|
/**
|
|
88
|
-
* @
|
|
89
|
-
* <p>This operation deletes an asset.</p>
|
|
64
|
+
* @see {@link DeleteAssetCommand}
|
|
90
65
|
*/
|
|
91
66
|
deleteAsset(args: DeleteAssetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAssetCommandOutput>;
|
|
92
67
|
deleteAsset(args: DeleteAssetCommandInput, cb: (err: any, data?: DeleteAssetCommandOutput) => void): void;
|
|
93
68
|
deleteAsset(args: DeleteAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAssetCommandOutput) => void): void;
|
|
94
69
|
/**
|
|
95
|
-
* @
|
|
96
|
-
* <p>This operation deletes a data set.</p>
|
|
70
|
+
* @see {@link DeleteDataSetCommand}
|
|
97
71
|
*/
|
|
98
72
|
deleteDataSet(args: DeleteDataSetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDataSetCommandOutput>;
|
|
99
73
|
deleteDataSet(args: DeleteDataSetCommandInput, cb: (err: any, data?: DeleteDataSetCommandOutput) => void): void;
|
|
100
74
|
deleteDataSet(args: DeleteDataSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDataSetCommandOutput) => void): void;
|
|
101
75
|
/**
|
|
102
|
-
* @
|
|
103
|
-
* <p>This operation deletes the event action.</p>
|
|
76
|
+
* @see {@link DeleteEventActionCommand}
|
|
104
77
|
*/
|
|
105
78
|
deleteEventAction(args: DeleteEventActionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEventActionCommandOutput>;
|
|
106
79
|
deleteEventAction(args: DeleteEventActionCommandInput, cb: (err: any, data?: DeleteEventActionCommandOutput) => void): void;
|
|
107
80
|
deleteEventAction(args: DeleteEventActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEventActionCommandOutput) => void): void;
|
|
108
81
|
/**
|
|
109
|
-
* @
|
|
110
|
-
* <p>This operation deletes a revision.</p>
|
|
82
|
+
* @see {@link DeleteRevisionCommand}
|
|
111
83
|
*/
|
|
112
84
|
deleteRevision(args: DeleteRevisionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRevisionCommandOutput>;
|
|
113
85
|
deleteRevision(args: DeleteRevisionCommandInput, cb: (err: any, data?: DeleteRevisionCommandOutput) => void): void;
|
|
114
86
|
deleteRevision(args: DeleteRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRevisionCommandOutput) => void): void;
|
|
115
87
|
/**
|
|
116
|
-
* @
|
|
117
|
-
* <p>This operation returns information about an asset.</p>
|
|
88
|
+
* @see {@link GetAssetCommand}
|
|
118
89
|
*/
|
|
119
90
|
getAsset(args: GetAssetCommandInput, options?: __HttpHandlerOptions): Promise<GetAssetCommandOutput>;
|
|
120
91
|
getAsset(args: GetAssetCommandInput, cb: (err: any, data?: GetAssetCommandOutput) => void): void;
|
|
121
92
|
getAsset(args: GetAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAssetCommandOutput) => void): void;
|
|
122
93
|
/**
|
|
123
|
-
* @
|
|
124
|
-
* <p>This operation returns information about a data set.</p>
|
|
94
|
+
* @see {@link GetDataSetCommand}
|
|
125
95
|
*/
|
|
126
96
|
getDataSet(args: GetDataSetCommandInput, options?: __HttpHandlerOptions): Promise<GetDataSetCommandOutput>;
|
|
127
97
|
getDataSet(args: GetDataSetCommandInput, cb: (err: any, data?: GetDataSetCommandOutput) => void): void;
|
|
128
98
|
getDataSet(args: GetDataSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataSetCommandOutput) => void): void;
|
|
129
99
|
/**
|
|
130
|
-
* @
|
|
131
|
-
* <p>This operation retrieves information about an event action.</p>
|
|
100
|
+
* @see {@link GetEventActionCommand}
|
|
132
101
|
*/
|
|
133
102
|
getEventAction(args: GetEventActionCommandInput, options?: __HttpHandlerOptions): Promise<GetEventActionCommandOutput>;
|
|
134
103
|
getEventAction(args: GetEventActionCommandInput, cb: (err: any, data?: GetEventActionCommandOutput) => void): void;
|
|
135
104
|
getEventAction(args: GetEventActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventActionCommandOutput) => void): void;
|
|
136
105
|
/**
|
|
137
|
-
* @
|
|
138
|
-
* <p>This operation returns information about a job.</p>
|
|
106
|
+
* @see {@link GetJobCommand}
|
|
139
107
|
*/
|
|
140
108
|
getJob(args: GetJobCommandInput, options?: __HttpHandlerOptions): Promise<GetJobCommandOutput>;
|
|
141
109
|
getJob(args: GetJobCommandInput, cb: (err: any, data?: GetJobCommandOutput) => void): void;
|
|
142
110
|
getJob(args: GetJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetJobCommandOutput) => void): void;
|
|
143
111
|
/**
|
|
144
|
-
* @
|
|
145
|
-
* <p>This operation returns information about a revision.</p>
|
|
112
|
+
* @see {@link GetRevisionCommand}
|
|
146
113
|
*/
|
|
147
114
|
getRevision(args: GetRevisionCommandInput, options?: __HttpHandlerOptions): Promise<GetRevisionCommandOutput>;
|
|
148
115
|
getRevision(args: GetRevisionCommandInput, cb: (err: any, data?: GetRevisionCommandOutput) => void): void;
|
|
149
116
|
getRevision(args: GetRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRevisionCommandOutput) => void): void;
|
|
150
117
|
/**
|
|
151
|
-
* @
|
|
152
|
-
* <p>This operation lists a data set's revisions sorted by CreatedAt in descending order.</p>
|
|
118
|
+
* @see {@link ListDataSetRevisionsCommand}
|
|
153
119
|
*/
|
|
154
120
|
listDataSetRevisions(args: ListDataSetRevisionsCommandInput, options?: __HttpHandlerOptions): Promise<ListDataSetRevisionsCommandOutput>;
|
|
155
121
|
listDataSetRevisions(args: ListDataSetRevisionsCommandInput, cb: (err: any, data?: ListDataSetRevisionsCommandOutput) => void): void;
|
|
156
122
|
listDataSetRevisions(args: ListDataSetRevisionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDataSetRevisionsCommandOutput) => void): void;
|
|
157
123
|
/**
|
|
158
|
-
* @
|
|
159
|
-
* <p>This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored.</p>
|
|
124
|
+
* @see {@link ListDataSetsCommand}
|
|
160
125
|
*/
|
|
161
126
|
listDataSets(args: ListDataSetsCommandInput, options?: __HttpHandlerOptions): Promise<ListDataSetsCommandOutput>;
|
|
162
127
|
listDataSets(args: ListDataSetsCommandInput, cb: (err: any, data?: ListDataSetsCommandOutput) => void): void;
|
|
163
128
|
listDataSets(args: ListDataSetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDataSetsCommandOutput) => void): void;
|
|
164
129
|
/**
|
|
165
|
-
* @
|
|
166
|
-
* <p>This operation lists your event actions.</p>
|
|
130
|
+
* @see {@link ListEventActionsCommand}
|
|
167
131
|
*/
|
|
168
132
|
listEventActions(args: ListEventActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListEventActionsCommandOutput>;
|
|
169
133
|
listEventActions(args: ListEventActionsCommandInput, cb: (err: any, data?: ListEventActionsCommandOutput) => void): void;
|
|
170
134
|
listEventActions(args: ListEventActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventActionsCommandOutput) => void): void;
|
|
171
135
|
/**
|
|
172
|
-
* @
|
|
173
|
-
* <p>This operation lists your jobs sorted by CreatedAt in descending order.</p>
|
|
136
|
+
* @see {@link ListJobsCommand}
|
|
174
137
|
*/
|
|
175
138
|
listJobs(args: ListJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobsCommandOutput>;
|
|
176
139
|
listJobs(args: ListJobsCommandInput, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
|
|
177
140
|
listJobs(args: ListJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
|
|
178
141
|
/**
|
|
179
|
-
* @
|
|
180
|
-
* <p>This operation lists a revision's assets sorted alphabetically in descending order.</p>
|
|
142
|
+
* @see {@link ListRevisionAssetsCommand}
|
|
181
143
|
*/
|
|
182
144
|
listRevisionAssets(args: ListRevisionAssetsCommandInput, options?: __HttpHandlerOptions): Promise<ListRevisionAssetsCommandOutput>;
|
|
183
145
|
listRevisionAssets(args: ListRevisionAssetsCommandInput, cb: (err: any, data?: ListRevisionAssetsCommandOutput) => void): void;
|
|
184
146
|
listRevisionAssets(args: ListRevisionAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRevisionAssetsCommandOutput) => void): void;
|
|
185
147
|
/**
|
|
186
|
-
* @
|
|
187
|
-
* <p>This operation lists the tags on the resource.</p>
|
|
148
|
+
* @see {@link ListTagsForResourceCommand}
|
|
188
149
|
*/
|
|
189
150
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
190
151
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
191
152
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
192
153
|
/**
|
|
193
|
-
* @
|
|
194
|
-
* <p>This operation revokes subscribers' access to a revision.</p>
|
|
154
|
+
* @see {@link RevokeRevisionCommand}
|
|
195
155
|
*/
|
|
196
156
|
revokeRevision(args: RevokeRevisionCommandInput, options?: __HttpHandlerOptions): Promise<RevokeRevisionCommandOutput>;
|
|
197
157
|
revokeRevision(args: RevokeRevisionCommandInput, cb: (err: any, data?: RevokeRevisionCommandOutput) => void): void;
|
|
198
158
|
revokeRevision(args: RevokeRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeRevisionCommandOutput) => void): void;
|
|
199
159
|
/**
|
|
200
|
-
* @
|
|
201
|
-
* <p>This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.</p>
|
|
160
|
+
* @see {@link SendApiAssetCommand}
|
|
202
161
|
*/
|
|
203
162
|
sendApiAsset(args: SendApiAssetCommandInput, options?: __HttpHandlerOptions): Promise<SendApiAssetCommandOutput>;
|
|
204
163
|
sendApiAsset(args: SendApiAssetCommandInput, cb: (err: any, data?: SendApiAssetCommandOutput) => void): void;
|
|
205
164
|
sendApiAsset(args: SendApiAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendApiAssetCommandOutput) => void): void;
|
|
206
165
|
/**
|
|
207
|
-
* @
|
|
208
|
-
* <p>This operation starts a job.</p>
|
|
166
|
+
* @see {@link StartJobCommand}
|
|
209
167
|
*/
|
|
210
168
|
startJob(args: StartJobCommandInput, options?: __HttpHandlerOptions): Promise<StartJobCommandOutput>;
|
|
211
169
|
startJob(args: StartJobCommandInput, cb: (err: any, data?: StartJobCommandOutput) => void): void;
|
|
212
170
|
startJob(args: StartJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartJobCommandOutput) => void): void;
|
|
213
171
|
/**
|
|
214
|
-
* @
|
|
215
|
-
* <p>This operation tags a resource.</p>
|
|
172
|
+
* @see {@link TagResourceCommand}
|
|
216
173
|
*/
|
|
217
174
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
218
175
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
219
176
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
220
177
|
/**
|
|
221
|
-
* @
|
|
222
|
-
* <p>This operation removes one or more tags from a resource.</p>
|
|
178
|
+
* @see {@link UntagResourceCommand}
|
|
223
179
|
*/
|
|
224
180
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
225
181
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
226
182
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
227
183
|
/**
|
|
228
|
-
* @
|
|
229
|
-
* <p>This operation updates an asset.</p>
|
|
184
|
+
* @see {@link UpdateAssetCommand}
|
|
230
185
|
*/
|
|
231
186
|
updateAsset(args: UpdateAssetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAssetCommandOutput>;
|
|
232
187
|
updateAsset(args: UpdateAssetCommandInput, cb: (err: any, data?: UpdateAssetCommandOutput) => void): void;
|
|
233
188
|
updateAsset(args: UpdateAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAssetCommandOutput) => void): void;
|
|
234
189
|
/**
|
|
235
|
-
* @
|
|
236
|
-
* <p>This operation updates a data set.</p>
|
|
190
|
+
* @see {@link UpdateDataSetCommand}
|
|
237
191
|
*/
|
|
238
192
|
updateDataSet(args: UpdateDataSetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataSetCommandOutput>;
|
|
239
193
|
updateDataSet(args: UpdateDataSetCommandInput, cb: (err: any, data?: UpdateDataSetCommandOutput) => void): void;
|
|
240
194
|
updateDataSet(args: UpdateDataSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataSetCommandOutput) => void): void;
|
|
241
195
|
/**
|
|
242
|
-
* @
|
|
243
|
-
* <p>This operation updates the event action.</p>
|
|
196
|
+
* @see {@link UpdateEventActionCommand}
|
|
244
197
|
*/
|
|
245
198
|
updateEventAction(args: UpdateEventActionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEventActionCommandOutput>;
|
|
246
199
|
updateEventAction(args: UpdateEventActionCommandInput, cb: (err: any, data?: UpdateEventActionCommandOutput) => void): void;
|
|
247
200
|
updateEventAction(args: UpdateEventActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEventActionCommandOutput) => void): void;
|
|
248
201
|
/**
|
|
249
|
-
* @
|
|
250
|
-
* <p>This operation updates a revision.</p>
|
|
202
|
+
* @see {@link UpdateRevisionCommand}
|
|
251
203
|
*/
|
|
252
204
|
updateRevision(args: UpdateRevisionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRevisionCommandOutput>;
|
|
253
205
|
updateRevision(args: UpdateRevisionCommandInput, cb: (err: any, data?: UpdateRevisionCommandOutput) => void): void;
|
|
254
206
|
updateRevision(args: UpdateRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRevisionCommandOutput) => void): void;
|
|
255
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.</p>
|
|
211
|
+
* <p>As a subscriber, you can view and access the data sets that you have an entitlement to through
|
|
212
|
+
* a subscription. You can use the APIs to download or copy your entitled data sets to Amazon
|
|
213
|
+
* Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine
|
|
214
|
+
* learning services.</p>
|
|
215
|
+
* <p>As a provider, you can create and manage your data sets that you would like to publish to a
|
|
216
|
+
* product. Being able to package and provide your data sets into products requires a few
|
|
217
|
+
* steps to determine eligibility. For more information, visit the <i>AWS Data Exchange
|
|
218
|
+
* User Guide</i>.</p>
|
|
219
|
+
* <p>A data set is a collection of data that can be changed or updated over time. Data sets can be
|
|
220
|
+
* updated using revisions, which represent a new version or incremental change to a data set.
|
|
221
|
+
* A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data
|
|
222
|
+
* that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake
|
|
223
|
+
* Formation data permission, or Amazon S3 data access. The asset can be a structured data
|
|
224
|
+
* file, an image file, or some other data file. Jobs are asynchronous import or export
|
|
225
|
+
* operations used to create or copy assets.</p>
|
|
226
|
+
*/
|
|
227
|
+
export declare class DataExchange extends DataExchangeClient implements DataExchange {
|
|
228
|
+
}
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
UpdateRevisionCommandOutput,
|
|
117
117
|
} from "./commands/UpdateRevisionCommand";
|
|
118
118
|
import { DataExchangeClient } from "./DataExchangeClient";
|
|
119
|
-
export
|
|
119
|
+
export interface DataExchange {
|
|
120
120
|
cancelJob(
|
|
121
121
|
args: CancelJobCommandInput,
|
|
122
122
|
options?: __HttpHandlerOptions
|
|
@@ -495,3 +495,6 @@ export declare class DataExchange extends DataExchangeClient {
|
|
|
495
495
|
cb: (err: any, data?: UpdateRevisionCommandOutput) => void
|
|
496
496
|
): void;
|
|
497
497
|
}
|
|
498
|
+
export declare class DataExchange
|
|
499
|
+
extends DataExchangeClient
|
|
500
|
+
implements DataExchange {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dataexchange",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dataexchange Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.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",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
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.
|
|
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.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|