@aws-sdk/client-datasync 3.183.0 → 3.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/DataSync.js +185 -178
  4. package/dist-es/DataSyncClient.js +28 -22
  5. package/dist-es/commands/CancelTaskExecutionCommand.js +28 -21
  6. package/dist-es/commands/CreateAgentCommand.js +28 -21
  7. package/dist-es/commands/CreateLocationEfsCommand.js +28 -21
  8. package/dist-es/commands/CreateLocationFsxLustreCommand.js +28 -21
  9. package/dist-es/commands/CreateLocationFsxOntapCommand.js +28 -21
  10. package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +28 -21
  11. package/dist-es/commands/CreateLocationFsxWindowsCommand.js +28 -21
  12. package/dist-es/commands/CreateLocationHdfsCommand.js +28 -21
  13. package/dist-es/commands/CreateLocationNfsCommand.js +28 -21
  14. package/dist-es/commands/CreateLocationObjectStorageCommand.js +28 -21
  15. package/dist-es/commands/CreateLocationS3Command.js +28 -21
  16. package/dist-es/commands/CreateLocationSmbCommand.js +28 -21
  17. package/dist-es/commands/CreateTaskCommand.js +28 -21
  18. package/dist-es/commands/DeleteAgentCommand.js +28 -21
  19. package/dist-es/commands/DeleteLocationCommand.js +28 -21
  20. package/dist-es/commands/DeleteTaskCommand.js +28 -21
  21. package/dist-es/commands/DescribeAgentCommand.js +28 -21
  22. package/dist-es/commands/DescribeLocationEfsCommand.js +28 -21
  23. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +28 -21
  24. package/dist-es/commands/DescribeLocationFsxOntapCommand.js +28 -21
  25. package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +28 -21
  26. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +28 -21
  27. package/dist-es/commands/DescribeLocationHdfsCommand.js +28 -21
  28. package/dist-es/commands/DescribeLocationNfsCommand.js +28 -21
  29. package/dist-es/commands/DescribeLocationObjectStorageCommand.js +28 -21
  30. package/dist-es/commands/DescribeLocationS3Command.js +28 -21
  31. package/dist-es/commands/DescribeLocationSmbCommand.js +28 -21
  32. package/dist-es/commands/DescribeTaskCommand.js +28 -21
  33. package/dist-es/commands/DescribeTaskExecutionCommand.js +28 -21
  34. package/dist-es/commands/ListAgentsCommand.js +28 -21
  35. package/dist-es/commands/ListLocationsCommand.js +28 -21
  36. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  37. package/dist-es/commands/ListTaskExecutionsCommand.js +28 -21
  38. package/dist-es/commands/ListTasksCommand.js +28 -21
  39. package/dist-es/commands/StartTaskExecutionCommand.js +28 -21
  40. package/dist-es/commands/TagResourceCommand.js +28 -21
  41. package/dist-es/commands/UntagResourceCommand.js +28 -21
  42. package/dist-es/commands/UpdateAgentCommand.js +28 -21
  43. package/dist-es/commands/UpdateLocationHdfsCommand.js +28 -21
  44. package/dist-es/commands/UpdateLocationNfsCommand.js +28 -21
  45. package/dist-es/commands/UpdateLocationObjectStorageCommand.js +28 -21
  46. package/dist-es/commands/UpdateLocationSmbCommand.js +28 -21
  47. package/dist-es/commands/UpdateTaskCommand.js +28 -21
  48. package/dist-es/commands/UpdateTaskExecutionCommand.js +28 -21
  49. package/dist-es/endpoints.js +8 -8
  50. package/dist-es/models/DataSyncServiceException.js +10 -5
  51. package/dist-es/models/models_0.js +136 -366
  52. package/dist-es/pagination/ListAgentsPaginator.js +68 -25
  53. package/dist-es/pagination/ListLocationsPaginator.js +68 -25
  54. package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
  55. package/dist-es/pagination/ListTaskExecutionsPaginator.js +68 -25
  56. package/dist-es/pagination/ListTasksPaginator.js +68 -25
  57. package/dist-es/protocols/Aws_json1_1.js +3288 -2608
  58. package/dist-es/runtimeConfig.browser.js +12 -26
  59. package/dist-es/runtimeConfig.js +12 -30
  60. package/dist-es/runtimeConfig.native.js +5 -8
  61. package/dist-es/runtimeConfig.shared.js +11 -8
  62. package/package.json +33 -33
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelTaskExecutionCommand, } from "./commands/CancelTaskExecutionCommand";
2
3
  import { CreateAgentCommand } from "./commands/CreateAgentCommand";
3
4
  import { CreateLocationEfsCommand, } from "./commands/CreateLocationEfsCommand";
@@ -43,621 +44,627 @@ import { UpdateLocationSmbCommand, } from "./commands/UpdateLocationSmbCommand";
43
44
  import { UpdateTaskCommand } from "./commands/UpdateTaskCommand";
44
45
  import { UpdateTaskExecutionCommand, } from "./commands/UpdateTaskExecutionCommand";
45
46
  import { DataSyncClient } from "./DataSyncClient";
46
- export class DataSync extends DataSyncClient {
47
- cancelTaskExecution(args, optionsOrCb, cb) {
48
- const command = new CancelTaskExecutionCommand(args);
47
+ var DataSync = (function (_super) {
48
+ __extends(DataSync, _super);
49
+ function DataSync() {
50
+ return _super !== null && _super.apply(this, arguments) || this;
51
+ }
52
+ DataSync.prototype.cancelTaskExecution = function (args, optionsOrCb, cb) {
53
+ var command = new CancelTaskExecutionCommand(args);
49
54
  if (typeof optionsOrCb === "function") {
50
55
  this.send(command, optionsOrCb);
51
56
  }
52
57
  else if (typeof cb === "function") {
53
58
  if (typeof optionsOrCb !== "object")
54
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
55
60
  this.send(command, optionsOrCb || {}, cb);
56
61
  }
57
62
  else {
58
63
  return this.send(command, optionsOrCb);
59
64
  }
60
- }
61
- createAgent(args, optionsOrCb, cb) {
62
- const command = new CreateAgentCommand(args);
65
+ };
66
+ DataSync.prototype.createAgent = function (args, optionsOrCb, cb) {
67
+ var command = new CreateAgentCommand(args);
63
68
  if (typeof optionsOrCb === "function") {
64
69
  this.send(command, optionsOrCb);
65
70
  }
66
71
  else if (typeof cb === "function") {
67
72
  if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
69
74
  this.send(command, optionsOrCb || {}, cb);
70
75
  }
71
76
  else {
72
77
  return this.send(command, optionsOrCb);
73
78
  }
74
- }
75
- createLocationEfs(args, optionsOrCb, cb) {
76
- const command = new CreateLocationEfsCommand(args);
79
+ };
80
+ DataSync.prototype.createLocationEfs = function (args, optionsOrCb, cb) {
81
+ var command = new CreateLocationEfsCommand(args);
77
82
  if (typeof optionsOrCb === "function") {
78
83
  this.send(command, optionsOrCb);
79
84
  }
80
85
  else if (typeof cb === "function") {
81
86
  if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
88
  this.send(command, optionsOrCb || {}, cb);
84
89
  }
85
90
  else {
86
91
  return this.send(command, optionsOrCb);
87
92
  }
88
- }
89
- createLocationFsxLustre(args, optionsOrCb, cb) {
90
- const command = new CreateLocationFsxLustreCommand(args);
93
+ };
94
+ DataSync.prototype.createLocationFsxLustre = function (args, optionsOrCb, cb) {
95
+ var command = new CreateLocationFsxLustreCommand(args);
91
96
  if (typeof optionsOrCb === "function") {
92
97
  this.send(command, optionsOrCb);
93
98
  }
94
99
  else if (typeof cb === "function") {
95
100
  if (typeof optionsOrCb !== "object")
96
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
102
  this.send(command, optionsOrCb || {}, cb);
98
103
  }
99
104
  else {
100
105
  return this.send(command, optionsOrCb);
101
106
  }
102
- }
103
- createLocationFsxOntap(args, optionsOrCb, cb) {
104
- const command = new CreateLocationFsxOntapCommand(args);
107
+ };
108
+ DataSync.prototype.createLocationFsxOntap = function (args, optionsOrCb, cb) {
109
+ var command = new CreateLocationFsxOntapCommand(args);
105
110
  if (typeof optionsOrCb === "function") {
106
111
  this.send(command, optionsOrCb);
107
112
  }
108
113
  else if (typeof cb === "function") {
109
114
  if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
116
  this.send(command, optionsOrCb || {}, cb);
112
117
  }
113
118
  else {
114
119
  return this.send(command, optionsOrCb);
115
120
  }
116
- }
117
- createLocationFsxOpenZfs(args, optionsOrCb, cb) {
118
- const command = new CreateLocationFsxOpenZfsCommand(args);
121
+ };
122
+ DataSync.prototype.createLocationFsxOpenZfs = function (args, optionsOrCb, cb) {
123
+ var command = new CreateLocationFsxOpenZfsCommand(args);
119
124
  if (typeof optionsOrCb === "function") {
120
125
  this.send(command, optionsOrCb);
121
126
  }
122
127
  else if (typeof cb === "function") {
123
128
  if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
130
  this.send(command, optionsOrCb || {}, cb);
126
131
  }
127
132
  else {
128
133
  return this.send(command, optionsOrCb);
129
134
  }
130
- }
131
- createLocationFsxWindows(args, optionsOrCb, cb) {
132
- const command = new CreateLocationFsxWindowsCommand(args);
135
+ };
136
+ DataSync.prototype.createLocationFsxWindows = function (args, optionsOrCb, cb) {
137
+ var command = new CreateLocationFsxWindowsCommand(args);
133
138
  if (typeof optionsOrCb === "function") {
134
139
  this.send(command, optionsOrCb);
135
140
  }
136
141
  else if (typeof cb === "function") {
137
142
  if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
144
  this.send(command, optionsOrCb || {}, cb);
140
145
  }
141
146
  else {
142
147
  return this.send(command, optionsOrCb);
143
148
  }
144
- }
145
- createLocationHdfs(args, optionsOrCb, cb) {
146
- const command = new CreateLocationHdfsCommand(args);
149
+ };
150
+ DataSync.prototype.createLocationHdfs = function (args, optionsOrCb, cb) {
151
+ var command = new CreateLocationHdfsCommand(args);
147
152
  if (typeof optionsOrCb === "function") {
148
153
  this.send(command, optionsOrCb);
149
154
  }
150
155
  else if (typeof cb === "function") {
151
156
  if (typeof optionsOrCb !== "object")
152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
158
  this.send(command, optionsOrCb || {}, cb);
154
159
  }
155
160
  else {
156
161
  return this.send(command, optionsOrCb);
157
162
  }
158
- }
159
- createLocationNfs(args, optionsOrCb, cb) {
160
- const command = new CreateLocationNfsCommand(args);
163
+ };
164
+ DataSync.prototype.createLocationNfs = function (args, optionsOrCb, cb) {
165
+ var command = new CreateLocationNfsCommand(args);
161
166
  if (typeof optionsOrCb === "function") {
162
167
  this.send(command, optionsOrCb);
163
168
  }
164
169
  else if (typeof cb === "function") {
165
170
  if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
172
  this.send(command, optionsOrCb || {}, cb);
168
173
  }
169
174
  else {
170
175
  return this.send(command, optionsOrCb);
171
176
  }
172
- }
173
- createLocationObjectStorage(args, optionsOrCb, cb) {
174
- const command = new CreateLocationObjectStorageCommand(args);
177
+ };
178
+ DataSync.prototype.createLocationObjectStorage = function (args, optionsOrCb, cb) {
179
+ var command = new CreateLocationObjectStorageCommand(args);
175
180
  if (typeof optionsOrCb === "function") {
176
181
  this.send(command, optionsOrCb);
177
182
  }
178
183
  else if (typeof cb === "function") {
179
184
  if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
186
  this.send(command, optionsOrCb || {}, cb);
182
187
  }
183
188
  else {
184
189
  return this.send(command, optionsOrCb);
185
190
  }
186
- }
187
- createLocationS3(args, optionsOrCb, cb) {
188
- const command = new CreateLocationS3Command(args);
191
+ };
192
+ DataSync.prototype.createLocationS3 = function (args, optionsOrCb, cb) {
193
+ var command = new CreateLocationS3Command(args);
189
194
  if (typeof optionsOrCb === "function") {
190
195
  this.send(command, optionsOrCb);
191
196
  }
192
197
  else if (typeof cb === "function") {
193
198
  if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
200
  this.send(command, optionsOrCb || {}, cb);
196
201
  }
197
202
  else {
198
203
  return this.send(command, optionsOrCb);
199
204
  }
200
- }
201
- createLocationSmb(args, optionsOrCb, cb) {
202
- const command = new CreateLocationSmbCommand(args);
205
+ };
206
+ DataSync.prototype.createLocationSmb = function (args, optionsOrCb, cb) {
207
+ var command = new CreateLocationSmbCommand(args);
203
208
  if (typeof optionsOrCb === "function") {
204
209
  this.send(command, optionsOrCb);
205
210
  }
206
211
  else if (typeof cb === "function") {
207
212
  if (typeof optionsOrCb !== "object")
208
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
209
214
  this.send(command, optionsOrCb || {}, cb);
210
215
  }
211
216
  else {
212
217
  return this.send(command, optionsOrCb);
213
218
  }
214
- }
215
- createTask(args, optionsOrCb, cb) {
216
- const command = new CreateTaskCommand(args);
219
+ };
220
+ DataSync.prototype.createTask = function (args, optionsOrCb, cb) {
221
+ var command = new CreateTaskCommand(args);
217
222
  if (typeof optionsOrCb === "function") {
218
223
  this.send(command, optionsOrCb);
219
224
  }
220
225
  else if (typeof cb === "function") {
221
226
  if (typeof optionsOrCb !== "object")
222
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
223
228
  this.send(command, optionsOrCb || {}, cb);
224
229
  }
225
230
  else {
226
231
  return this.send(command, optionsOrCb);
227
232
  }
228
- }
229
- deleteAgent(args, optionsOrCb, cb) {
230
- const command = new DeleteAgentCommand(args);
233
+ };
234
+ DataSync.prototype.deleteAgent = function (args, optionsOrCb, cb) {
235
+ var command = new DeleteAgentCommand(args);
231
236
  if (typeof optionsOrCb === "function") {
232
237
  this.send(command, optionsOrCb);
233
238
  }
234
239
  else if (typeof cb === "function") {
235
240
  if (typeof optionsOrCb !== "object")
236
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
237
242
  this.send(command, optionsOrCb || {}, cb);
238
243
  }
239
244
  else {
240
245
  return this.send(command, optionsOrCb);
241
246
  }
242
- }
243
- deleteLocation(args, optionsOrCb, cb) {
244
- const command = new DeleteLocationCommand(args);
247
+ };
248
+ DataSync.prototype.deleteLocation = function (args, optionsOrCb, cb) {
249
+ var command = new DeleteLocationCommand(args);
245
250
  if (typeof optionsOrCb === "function") {
246
251
  this.send(command, optionsOrCb);
247
252
  }
248
253
  else if (typeof cb === "function") {
249
254
  if (typeof optionsOrCb !== "object")
250
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
251
256
  this.send(command, optionsOrCb || {}, cb);
252
257
  }
253
258
  else {
254
259
  return this.send(command, optionsOrCb);
255
260
  }
256
- }
257
- deleteTask(args, optionsOrCb, cb) {
258
- const command = new DeleteTaskCommand(args);
261
+ };
262
+ DataSync.prototype.deleteTask = function (args, optionsOrCb, cb) {
263
+ var command = new DeleteTaskCommand(args);
259
264
  if (typeof optionsOrCb === "function") {
260
265
  this.send(command, optionsOrCb);
261
266
  }
262
267
  else if (typeof cb === "function") {
263
268
  if (typeof optionsOrCb !== "object")
264
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
269
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
265
270
  this.send(command, optionsOrCb || {}, cb);
266
271
  }
267
272
  else {
268
273
  return this.send(command, optionsOrCb);
269
274
  }
270
- }
271
- describeAgent(args, optionsOrCb, cb) {
272
- const command = new DescribeAgentCommand(args);
275
+ };
276
+ DataSync.prototype.describeAgent = function (args, optionsOrCb, cb) {
277
+ var command = new DescribeAgentCommand(args);
273
278
  if (typeof optionsOrCb === "function") {
274
279
  this.send(command, optionsOrCb);
275
280
  }
276
281
  else if (typeof cb === "function") {
277
282
  if (typeof optionsOrCb !== "object")
278
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
283
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
279
284
  this.send(command, optionsOrCb || {}, cb);
280
285
  }
281
286
  else {
282
287
  return this.send(command, optionsOrCb);
283
288
  }
284
- }
285
- describeLocationEfs(args, optionsOrCb, cb) {
286
- const command = new DescribeLocationEfsCommand(args);
289
+ };
290
+ DataSync.prototype.describeLocationEfs = function (args, optionsOrCb, cb) {
291
+ var command = new DescribeLocationEfsCommand(args);
287
292
  if (typeof optionsOrCb === "function") {
288
293
  this.send(command, optionsOrCb);
289
294
  }
290
295
  else if (typeof cb === "function") {
291
296
  if (typeof optionsOrCb !== "object")
292
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
297
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
298
  this.send(command, optionsOrCb || {}, cb);
294
299
  }
295
300
  else {
296
301
  return this.send(command, optionsOrCb);
297
302
  }
298
- }
299
- describeLocationFsxLustre(args, optionsOrCb, cb) {
300
- const command = new DescribeLocationFsxLustreCommand(args);
303
+ };
304
+ DataSync.prototype.describeLocationFsxLustre = function (args, optionsOrCb, cb) {
305
+ var command = new DescribeLocationFsxLustreCommand(args);
301
306
  if (typeof optionsOrCb === "function") {
302
307
  this.send(command, optionsOrCb);
303
308
  }
304
309
  else if (typeof cb === "function") {
305
310
  if (typeof optionsOrCb !== "object")
306
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
311
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
307
312
  this.send(command, optionsOrCb || {}, cb);
308
313
  }
309
314
  else {
310
315
  return this.send(command, optionsOrCb);
311
316
  }
312
- }
313
- describeLocationFsxOntap(args, optionsOrCb, cb) {
314
- const command = new DescribeLocationFsxOntapCommand(args);
317
+ };
318
+ DataSync.prototype.describeLocationFsxOntap = function (args, optionsOrCb, cb) {
319
+ var command = new DescribeLocationFsxOntapCommand(args);
315
320
  if (typeof optionsOrCb === "function") {
316
321
  this.send(command, optionsOrCb);
317
322
  }
318
323
  else if (typeof cb === "function") {
319
324
  if (typeof optionsOrCb !== "object")
320
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
321
326
  this.send(command, optionsOrCb || {}, cb);
322
327
  }
323
328
  else {
324
329
  return this.send(command, optionsOrCb);
325
330
  }
326
- }
327
- describeLocationFsxOpenZfs(args, optionsOrCb, cb) {
328
- const command = new DescribeLocationFsxOpenZfsCommand(args);
331
+ };
332
+ DataSync.prototype.describeLocationFsxOpenZfs = function (args, optionsOrCb, cb) {
333
+ var command = new DescribeLocationFsxOpenZfsCommand(args);
329
334
  if (typeof optionsOrCb === "function") {
330
335
  this.send(command, optionsOrCb);
331
336
  }
332
337
  else if (typeof cb === "function") {
333
338
  if (typeof optionsOrCb !== "object")
334
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
339
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
335
340
  this.send(command, optionsOrCb || {}, cb);
336
341
  }
337
342
  else {
338
343
  return this.send(command, optionsOrCb);
339
344
  }
340
- }
341
- describeLocationFsxWindows(args, optionsOrCb, cb) {
342
- const command = new DescribeLocationFsxWindowsCommand(args);
345
+ };
346
+ DataSync.prototype.describeLocationFsxWindows = function (args, optionsOrCb, cb) {
347
+ var command = new DescribeLocationFsxWindowsCommand(args);
343
348
  if (typeof optionsOrCb === "function") {
344
349
  this.send(command, optionsOrCb);
345
350
  }
346
351
  else if (typeof cb === "function") {
347
352
  if (typeof optionsOrCb !== "object")
348
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
353
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
349
354
  this.send(command, optionsOrCb || {}, cb);
350
355
  }
351
356
  else {
352
357
  return this.send(command, optionsOrCb);
353
358
  }
354
- }
355
- describeLocationHdfs(args, optionsOrCb, cb) {
356
- const command = new DescribeLocationHdfsCommand(args);
359
+ };
360
+ DataSync.prototype.describeLocationHdfs = function (args, optionsOrCb, cb) {
361
+ var command = new DescribeLocationHdfsCommand(args);
357
362
  if (typeof optionsOrCb === "function") {
358
363
  this.send(command, optionsOrCb);
359
364
  }
360
365
  else if (typeof cb === "function") {
361
366
  if (typeof optionsOrCb !== "object")
362
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
367
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
363
368
  this.send(command, optionsOrCb || {}, cb);
364
369
  }
365
370
  else {
366
371
  return this.send(command, optionsOrCb);
367
372
  }
368
- }
369
- describeLocationNfs(args, optionsOrCb, cb) {
370
- const command = new DescribeLocationNfsCommand(args);
373
+ };
374
+ DataSync.prototype.describeLocationNfs = function (args, optionsOrCb, cb) {
375
+ var command = new DescribeLocationNfsCommand(args);
371
376
  if (typeof optionsOrCb === "function") {
372
377
  this.send(command, optionsOrCb);
373
378
  }
374
379
  else if (typeof cb === "function") {
375
380
  if (typeof optionsOrCb !== "object")
376
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
381
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
377
382
  this.send(command, optionsOrCb || {}, cb);
378
383
  }
379
384
  else {
380
385
  return this.send(command, optionsOrCb);
381
386
  }
382
- }
383
- describeLocationObjectStorage(args, optionsOrCb, cb) {
384
- const command = new DescribeLocationObjectStorageCommand(args);
387
+ };
388
+ DataSync.prototype.describeLocationObjectStorage = function (args, optionsOrCb, cb) {
389
+ var command = new DescribeLocationObjectStorageCommand(args);
385
390
  if (typeof optionsOrCb === "function") {
386
391
  this.send(command, optionsOrCb);
387
392
  }
388
393
  else if (typeof cb === "function") {
389
394
  if (typeof optionsOrCb !== "object")
390
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
395
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
391
396
  this.send(command, optionsOrCb || {}, cb);
392
397
  }
393
398
  else {
394
399
  return this.send(command, optionsOrCb);
395
400
  }
396
- }
397
- describeLocationS3(args, optionsOrCb, cb) {
398
- const command = new DescribeLocationS3Command(args);
401
+ };
402
+ DataSync.prototype.describeLocationS3 = function (args, optionsOrCb, cb) {
403
+ var command = new DescribeLocationS3Command(args);
399
404
  if (typeof optionsOrCb === "function") {
400
405
  this.send(command, optionsOrCb);
401
406
  }
402
407
  else if (typeof cb === "function") {
403
408
  if (typeof optionsOrCb !== "object")
404
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
405
410
  this.send(command, optionsOrCb || {}, cb);
406
411
  }
407
412
  else {
408
413
  return this.send(command, optionsOrCb);
409
414
  }
410
- }
411
- describeLocationSmb(args, optionsOrCb, cb) {
412
- const command = new DescribeLocationSmbCommand(args);
415
+ };
416
+ DataSync.prototype.describeLocationSmb = function (args, optionsOrCb, cb) {
417
+ var command = new DescribeLocationSmbCommand(args);
413
418
  if (typeof optionsOrCb === "function") {
414
419
  this.send(command, optionsOrCb);
415
420
  }
416
421
  else if (typeof cb === "function") {
417
422
  if (typeof optionsOrCb !== "object")
418
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
423
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
419
424
  this.send(command, optionsOrCb || {}, cb);
420
425
  }
421
426
  else {
422
427
  return this.send(command, optionsOrCb);
423
428
  }
424
- }
425
- describeTask(args, optionsOrCb, cb) {
426
- const command = new DescribeTaskCommand(args);
429
+ };
430
+ DataSync.prototype.describeTask = function (args, optionsOrCb, cb) {
431
+ var command = new DescribeTaskCommand(args);
427
432
  if (typeof optionsOrCb === "function") {
428
433
  this.send(command, optionsOrCb);
429
434
  }
430
435
  else if (typeof cb === "function") {
431
436
  if (typeof optionsOrCb !== "object")
432
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
437
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
433
438
  this.send(command, optionsOrCb || {}, cb);
434
439
  }
435
440
  else {
436
441
  return this.send(command, optionsOrCb);
437
442
  }
438
- }
439
- describeTaskExecution(args, optionsOrCb, cb) {
440
- const command = new DescribeTaskExecutionCommand(args);
443
+ };
444
+ DataSync.prototype.describeTaskExecution = function (args, optionsOrCb, cb) {
445
+ var command = new DescribeTaskExecutionCommand(args);
441
446
  if (typeof optionsOrCb === "function") {
442
447
  this.send(command, optionsOrCb);
443
448
  }
444
449
  else if (typeof cb === "function") {
445
450
  if (typeof optionsOrCb !== "object")
446
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
447
452
  this.send(command, optionsOrCb || {}, cb);
448
453
  }
449
454
  else {
450
455
  return this.send(command, optionsOrCb);
451
456
  }
452
- }
453
- listAgents(args, optionsOrCb, cb) {
454
- const command = new ListAgentsCommand(args);
457
+ };
458
+ DataSync.prototype.listAgents = function (args, optionsOrCb, cb) {
459
+ var command = new ListAgentsCommand(args);
455
460
  if (typeof optionsOrCb === "function") {
456
461
  this.send(command, optionsOrCb);
457
462
  }
458
463
  else if (typeof cb === "function") {
459
464
  if (typeof optionsOrCb !== "object")
460
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
465
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
466
  this.send(command, optionsOrCb || {}, cb);
462
467
  }
463
468
  else {
464
469
  return this.send(command, optionsOrCb);
465
470
  }
466
- }
467
- listLocations(args, optionsOrCb, cb) {
468
- const command = new ListLocationsCommand(args);
471
+ };
472
+ DataSync.prototype.listLocations = function (args, optionsOrCb, cb) {
473
+ var command = new ListLocationsCommand(args);
469
474
  if (typeof optionsOrCb === "function") {
470
475
  this.send(command, optionsOrCb);
471
476
  }
472
477
  else if (typeof cb === "function") {
473
478
  if (typeof optionsOrCb !== "object")
474
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
479
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
475
480
  this.send(command, optionsOrCb || {}, cb);
476
481
  }
477
482
  else {
478
483
  return this.send(command, optionsOrCb);
479
484
  }
480
- }
481
- listTagsForResource(args, optionsOrCb, cb) {
482
- const command = new ListTagsForResourceCommand(args);
485
+ };
486
+ DataSync.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
487
+ var command = new ListTagsForResourceCommand(args);
483
488
  if (typeof optionsOrCb === "function") {
484
489
  this.send(command, optionsOrCb);
485
490
  }
486
491
  else if (typeof cb === "function") {
487
492
  if (typeof optionsOrCb !== "object")
488
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
493
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
489
494
  this.send(command, optionsOrCb || {}, cb);
490
495
  }
491
496
  else {
492
497
  return this.send(command, optionsOrCb);
493
498
  }
494
- }
495
- listTaskExecutions(args, optionsOrCb, cb) {
496
- const command = new ListTaskExecutionsCommand(args);
499
+ };
500
+ DataSync.prototype.listTaskExecutions = function (args, optionsOrCb, cb) {
501
+ var command = new ListTaskExecutionsCommand(args);
497
502
  if (typeof optionsOrCb === "function") {
498
503
  this.send(command, optionsOrCb);
499
504
  }
500
505
  else if (typeof cb === "function") {
501
506
  if (typeof optionsOrCb !== "object")
502
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
507
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
503
508
  this.send(command, optionsOrCb || {}, cb);
504
509
  }
505
510
  else {
506
511
  return this.send(command, optionsOrCb);
507
512
  }
508
- }
509
- listTasks(args, optionsOrCb, cb) {
510
- const command = new ListTasksCommand(args);
513
+ };
514
+ DataSync.prototype.listTasks = function (args, optionsOrCb, cb) {
515
+ var command = new ListTasksCommand(args);
511
516
  if (typeof optionsOrCb === "function") {
512
517
  this.send(command, optionsOrCb);
513
518
  }
514
519
  else if (typeof cb === "function") {
515
520
  if (typeof optionsOrCb !== "object")
516
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
521
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
517
522
  this.send(command, optionsOrCb || {}, cb);
518
523
  }
519
524
  else {
520
525
  return this.send(command, optionsOrCb);
521
526
  }
522
- }
523
- startTaskExecution(args, optionsOrCb, cb) {
524
- const command = new StartTaskExecutionCommand(args);
527
+ };
528
+ DataSync.prototype.startTaskExecution = function (args, optionsOrCb, cb) {
529
+ var command = new StartTaskExecutionCommand(args);
525
530
  if (typeof optionsOrCb === "function") {
526
531
  this.send(command, optionsOrCb);
527
532
  }
528
533
  else if (typeof cb === "function") {
529
534
  if (typeof optionsOrCb !== "object")
530
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
535
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
531
536
  this.send(command, optionsOrCb || {}, cb);
532
537
  }
533
538
  else {
534
539
  return this.send(command, optionsOrCb);
535
540
  }
536
- }
537
- tagResource(args, optionsOrCb, cb) {
538
- const command = new TagResourceCommand(args);
541
+ };
542
+ DataSync.prototype.tagResource = function (args, optionsOrCb, cb) {
543
+ var command = new TagResourceCommand(args);
539
544
  if (typeof optionsOrCb === "function") {
540
545
  this.send(command, optionsOrCb);
541
546
  }
542
547
  else if (typeof cb === "function") {
543
548
  if (typeof optionsOrCb !== "object")
544
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
549
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
545
550
  this.send(command, optionsOrCb || {}, cb);
546
551
  }
547
552
  else {
548
553
  return this.send(command, optionsOrCb);
549
554
  }
550
- }
551
- untagResource(args, optionsOrCb, cb) {
552
- const command = new UntagResourceCommand(args);
555
+ };
556
+ DataSync.prototype.untagResource = function (args, optionsOrCb, cb) {
557
+ var command = new UntagResourceCommand(args);
553
558
  if (typeof optionsOrCb === "function") {
554
559
  this.send(command, optionsOrCb);
555
560
  }
556
561
  else if (typeof cb === "function") {
557
562
  if (typeof optionsOrCb !== "object")
558
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
563
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
559
564
  this.send(command, optionsOrCb || {}, cb);
560
565
  }
561
566
  else {
562
567
  return this.send(command, optionsOrCb);
563
568
  }
564
- }
565
- updateAgent(args, optionsOrCb, cb) {
566
- const command = new UpdateAgentCommand(args);
569
+ };
570
+ DataSync.prototype.updateAgent = function (args, optionsOrCb, cb) {
571
+ var command = new UpdateAgentCommand(args);
567
572
  if (typeof optionsOrCb === "function") {
568
573
  this.send(command, optionsOrCb);
569
574
  }
570
575
  else if (typeof cb === "function") {
571
576
  if (typeof optionsOrCb !== "object")
572
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
577
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
573
578
  this.send(command, optionsOrCb || {}, cb);
574
579
  }
575
580
  else {
576
581
  return this.send(command, optionsOrCb);
577
582
  }
578
- }
579
- updateLocationHdfs(args, optionsOrCb, cb) {
580
- const command = new UpdateLocationHdfsCommand(args);
583
+ };
584
+ DataSync.prototype.updateLocationHdfs = function (args, optionsOrCb, cb) {
585
+ var command = new UpdateLocationHdfsCommand(args);
581
586
  if (typeof optionsOrCb === "function") {
582
587
  this.send(command, optionsOrCb);
583
588
  }
584
589
  else if (typeof cb === "function") {
585
590
  if (typeof optionsOrCb !== "object")
586
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
591
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
587
592
  this.send(command, optionsOrCb || {}, cb);
588
593
  }
589
594
  else {
590
595
  return this.send(command, optionsOrCb);
591
596
  }
592
- }
593
- updateLocationNfs(args, optionsOrCb, cb) {
594
- const command = new UpdateLocationNfsCommand(args);
597
+ };
598
+ DataSync.prototype.updateLocationNfs = function (args, optionsOrCb, cb) {
599
+ var command = new UpdateLocationNfsCommand(args);
595
600
  if (typeof optionsOrCb === "function") {
596
601
  this.send(command, optionsOrCb);
597
602
  }
598
603
  else if (typeof cb === "function") {
599
604
  if (typeof optionsOrCb !== "object")
600
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
605
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
601
606
  this.send(command, optionsOrCb || {}, cb);
602
607
  }
603
608
  else {
604
609
  return this.send(command, optionsOrCb);
605
610
  }
606
- }
607
- updateLocationObjectStorage(args, optionsOrCb, cb) {
608
- const command = new UpdateLocationObjectStorageCommand(args);
611
+ };
612
+ DataSync.prototype.updateLocationObjectStorage = function (args, optionsOrCb, cb) {
613
+ var command = new UpdateLocationObjectStorageCommand(args);
609
614
  if (typeof optionsOrCb === "function") {
610
615
  this.send(command, optionsOrCb);
611
616
  }
612
617
  else if (typeof cb === "function") {
613
618
  if (typeof optionsOrCb !== "object")
614
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
619
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
615
620
  this.send(command, optionsOrCb || {}, cb);
616
621
  }
617
622
  else {
618
623
  return this.send(command, optionsOrCb);
619
624
  }
620
- }
621
- updateLocationSmb(args, optionsOrCb, cb) {
622
- const command = new UpdateLocationSmbCommand(args);
625
+ };
626
+ DataSync.prototype.updateLocationSmb = function (args, optionsOrCb, cb) {
627
+ var command = new UpdateLocationSmbCommand(args);
623
628
  if (typeof optionsOrCb === "function") {
624
629
  this.send(command, optionsOrCb);
625
630
  }
626
631
  else if (typeof cb === "function") {
627
632
  if (typeof optionsOrCb !== "object")
628
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
633
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
629
634
  this.send(command, optionsOrCb || {}, cb);
630
635
  }
631
636
  else {
632
637
  return this.send(command, optionsOrCb);
633
638
  }
634
- }
635
- updateTask(args, optionsOrCb, cb) {
636
- const command = new UpdateTaskCommand(args);
639
+ };
640
+ DataSync.prototype.updateTask = function (args, optionsOrCb, cb) {
641
+ var command = new UpdateTaskCommand(args);
637
642
  if (typeof optionsOrCb === "function") {
638
643
  this.send(command, optionsOrCb);
639
644
  }
640
645
  else if (typeof cb === "function") {
641
646
  if (typeof optionsOrCb !== "object")
642
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
647
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
643
648
  this.send(command, optionsOrCb || {}, cb);
644
649
  }
645
650
  else {
646
651
  return this.send(command, optionsOrCb);
647
652
  }
648
- }
649
- updateTaskExecution(args, optionsOrCb, cb) {
650
- const command = new UpdateTaskExecutionCommand(args);
653
+ };
654
+ DataSync.prototype.updateTaskExecution = function (args, optionsOrCb, cb) {
655
+ var command = new UpdateTaskExecutionCommand(args);
651
656
  if (typeof optionsOrCb === "function") {
652
657
  this.send(command, optionsOrCb);
653
658
  }
654
659
  else if (typeof cb === "function") {
655
660
  if (typeof optionsOrCb !== "object")
656
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
661
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
657
662
  this.send(command, optionsOrCb || {}, cb);
658
663
  }
659
664
  else {
660
665
  return this.send(command, optionsOrCb);
661
666
  }
662
- }
663
- }
667
+ };
668
+ return DataSync;
669
+ }(DataSyncClient));
670
+ export { DataSync };