@aws-sdk/client-transfer 3.181.0 → 3.183.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 (83) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Transfer.js +234 -241
  3. package/dist-es/TransferClient.js +22 -28
  4. package/dist-es/commands/CreateAccessCommand.js +21 -28
  5. package/dist-es/commands/CreateAgreementCommand.js +21 -28
  6. package/dist-es/commands/CreateConnectorCommand.js +21 -28
  7. package/dist-es/commands/CreateProfileCommand.js +21 -28
  8. package/dist-es/commands/CreateServerCommand.js +21 -28
  9. package/dist-es/commands/CreateUserCommand.js +21 -28
  10. package/dist-es/commands/CreateWorkflowCommand.js +21 -28
  11. package/dist-es/commands/DeleteAccessCommand.js +22 -29
  12. package/dist-es/commands/DeleteAgreementCommand.js +22 -29
  13. package/dist-es/commands/DeleteCertificateCommand.js +22 -29
  14. package/dist-es/commands/DeleteConnectorCommand.js +22 -29
  15. package/dist-es/commands/DeleteHostKeyCommand.js +22 -29
  16. package/dist-es/commands/DeleteProfileCommand.js +22 -29
  17. package/dist-es/commands/DeleteServerCommand.js +22 -29
  18. package/dist-es/commands/DeleteSshPublicKeyCommand.js +22 -29
  19. package/dist-es/commands/DeleteUserCommand.js +22 -29
  20. package/dist-es/commands/DeleteWorkflowCommand.js +22 -29
  21. package/dist-es/commands/DescribeAccessCommand.js +21 -28
  22. package/dist-es/commands/DescribeAgreementCommand.js +21 -28
  23. package/dist-es/commands/DescribeCertificateCommand.js +21 -28
  24. package/dist-es/commands/DescribeConnectorCommand.js +21 -28
  25. package/dist-es/commands/DescribeExecutionCommand.js +21 -28
  26. package/dist-es/commands/DescribeHostKeyCommand.js +21 -28
  27. package/dist-es/commands/DescribeProfileCommand.js +21 -28
  28. package/dist-es/commands/DescribeSecurityPolicyCommand.js +21 -28
  29. package/dist-es/commands/DescribeServerCommand.js +21 -28
  30. package/dist-es/commands/DescribeUserCommand.js +21 -28
  31. package/dist-es/commands/DescribeWorkflowCommand.js +21 -28
  32. package/dist-es/commands/ImportCertificateCommand.js +21 -28
  33. package/dist-es/commands/ImportHostKeyCommand.js +21 -28
  34. package/dist-es/commands/ImportSshPublicKeyCommand.js +21 -28
  35. package/dist-es/commands/ListAccessesCommand.js +21 -28
  36. package/dist-es/commands/ListAgreementsCommand.js +21 -28
  37. package/dist-es/commands/ListCertificatesCommand.js +21 -28
  38. package/dist-es/commands/ListConnectorsCommand.js +21 -28
  39. package/dist-es/commands/ListExecutionsCommand.js +21 -28
  40. package/dist-es/commands/ListHostKeysCommand.js +21 -28
  41. package/dist-es/commands/ListProfilesCommand.js +21 -28
  42. package/dist-es/commands/ListSecurityPoliciesCommand.js +21 -28
  43. package/dist-es/commands/ListServersCommand.js +21 -28
  44. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  45. package/dist-es/commands/ListUsersCommand.js +21 -28
  46. package/dist-es/commands/ListWorkflowsCommand.js +21 -28
  47. package/dist-es/commands/SendWorkflowStepStateCommand.js +21 -28
  48. package/dist-es/commands/StartFileTransferCommand.js +21 -28
  49. package/dist-es/commands/StartServerCommand.js +22 -29
  50. package/dist-es/commands/StopServerCommand.js +22 -29
  51. package/dist-es/commands/TagResourceCommand.js +22 -29
  52. package/dist-es/commands/TestIdentityProviderCommand.js +21 -28
  53. package/dist-es/commands/UntagResourceCommand.js +22 -29
  54. package/dist-es/commands/UpdateAccessCommand.js +21 -28
  55. package/dist-es/commands/UpdateAgreementCommand.js +21 -28
  56. package/dist-es/commands/UpdateCertificateCommand.js +21 -28
  57. package/dist-es/commands/UpdateConnectorCommand.js +21 -28
  58. package/dist-es/commands/UpdateHostKeyCommand.js +21 -28
  59. package/dist-es/commands/UpdateProfileCommand.js +21 -28
  60. package/dist-es/commands/UpdateServerCommand.js +21 -28
  61. package/dist-es/commands/UpdateUserCommand.js +21 -28
  62. package/dist-es/endpoints.js +8 -8
  63. package/dist-es/models/TransferServiceException.js +5 -10
  64. package/dist-es/models/models_0.js +572 -263
  65. package/dist-es/pagination/ListAccessesPaginator.js +25 -68
  66. package/dist-es/pagination/ListAgreementsPaginator.js +25 -68
  67. package/dist-es/pagination/ListCertificatesPaginator.js +25 -68
  68. package/dist-es/pagination/ListConnectorsPaginator.js +25 -68
  69. package/dist-es/pagination/ListExecutionsPaginator.js +25 -68
  70. package/dist-es/pagination/ListProfilesPaginator.js +25 -68
  71. package/dist-es/pagination/ListSecurityPoliciesPaginator.js +25 -68
  72. package/dist-es/pagination/ListServersPaginator.js +25 -68
  73. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  74. package/dist-es/pagination/ListUsersPaginator.js +25 -68
  75. package/dist-es/pagination/ListWorkflowsPaginator.js +25 -68
  76. package/dist-es/protocols/Aws_json1_1.js +3961 -5067
  77. package/dist-es/runtimeConfig.browser.js +26 -12
  78. package/dist-es/runtimeConfig.js +30 -12
  79. package/dist-es/runtimeConfig.native.js +8 -5
  80. package/dist-es/runtimeConfig.shared.js +8 -11
  81. package/dist-es/waiters/waitForServerOffline.js +36 -56
  82. package/dist-es/waiters/waitForServerOnline.js +36 -56
  83. package/package.json +34 -34
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateAccessCommand, } from "./commands/CreateAccessCommand";
3
2
  import { CreateAgreementCommand, } from "./commands/CreateAgreementCommand";
4
3
  import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
@@ -58,823 +57,817 @@ import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
58
57
  import { UpdateServerCommand, } from "./commands/UpdateServerCommand";
59
58
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
60
59
  import { TransferClient } from "./TransferClient";
61
- var Transfer = (function (_super) {
62
- __extends(Transfer, _super);
63
- function Transfer() {
64
- return _super !== null && _super.apply(this, arguments) || this;
65
- }
66
- Transfer.prototype.createAccess = function (args, optionsOrCb, cb) {
67
- var command = new CreateAccessCommand(args);
60
+ export class Transfer extends TransferClient {
61
+ createAccess(args, optionsOrCb, cb) {
62
+ const command = new CreateAccessCommand(args);
68
63
  if (typeof optionsOrCb === "function") {
69
64
  this.send(command, optionsOrCb);
70
65
  }
71
66
  else if (typeof cb === "function") {
72
67
  if (typeof optionsOrCb !== "object")
73
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
69
  this.send(command, optionsOrCb || {}, cb);
75
70
  }
76
71
  else {
77
72
  return this.send(command, optionsOrCb);
78
73
  }
79
- };
80
- Transfer.prototype.createAgreement = function (args, optionsOrCb, cb) {
81
- var command = new CreateAgreementCommand(args);
74
+ }
75
+ createAgreement(args, optionsOrCb, cb) {
76
+ const command = new CreateAgreementCommand(args);
82
77
  if (typeof optionsOrCb === "function") {
83
78
  this.send(command, optionsOrCb);
84
79
  }
85
80
  else if (typeof cb === "function") {
86
81
  if (typeof optionsOrCb !== "object")
87
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
83
  this.send(command, optionsOrCb || {}, cb);
89
84
  }
90
85
  else {
91
86
  return this.send(command, optionsOrCb);
92
87
  }
93
- };
94
- Transfer.prototype.createConnector = function (args, optionsOrCb, cb) {
95
- var command = new CreateConnectorCommand(args);
88
+ }
89
+ createConnector(args, optionsOrCb, cb) {
90
+ const command = new CreateConnectorCommand(args);
96
91
  if (typeof optionsOrCb === "function") {
97
92
  this.send(command, optionsOrCb);
98
93
  }
99
94
  else if (typeof cb === "function") {
100
95
  if (typeof optionsOrCb !== "object")
101
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
97
  this.send(command, optionsOrCb || {}, cb);
103
98
  }
104
99
  else {
105
100
  return this.send(command, optionsOrCb);
106
101
  }
107
- };
108
- Transfer.prototype.createProfile = function (args, optionsOrCb, cb) {
109
- var command = new CreateProfileCommand(args);
102
+ }
103
+ createProfile(args, optionsOrCb, cb) {
104
+ const command = new CreateProfileCommand(args);
110
105
  if (typeof optionsOrCb === "function") {
111
106
  this.send(command, optionsOrCb);
112
107
  }
113
108
  else if (typeof cb === "function") {
114
109
  if (typeof optionsOrCb !== "object")
115
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
111
  this.send(command, optionsOrCb || {}, cb);
117
112
  }
118
113
  else {
119
114
  return this.send(command, optionsOrCb);
120
115
  }
121
- };
122
- Transfer.prototype.createServer = function (args, optionsOrCb, cb) {
123
- var command = new CreateServerCommand(args);
116
+ }
117
+ createServer(args, optionsOrCb, cb) {
118
+ const command = new CreateServerCommand(args);
124
119
  if (typeof optionsOrCb === "function") {
125
120
  this.send(command, optionsOrCb);
126
121
  }
127
122
  else if (typeof cb === "function") {
128
123
  if (typeof optionsOrCb !== "object")
129
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
125
  this.send(command, optionsOrCb || {}, cb);
131
126
  }
132
127
  else {
133
128
  return this.send(command, optionsOrCb);
134
129
  }
135
- };
136
- Transfer.prototype.createUser = function (args, optionsOrCb, cb) {
137
- var command = new CreateUserCommand(args);
130
+ }
131
+ createUser(args, optionsOrCb, cb) {
132
+ const command = new CreateUserCommand(args);
138
133
  if (typeof optionsOrCb === "function") {
139
134
  this.send(command, optionsOrCb);
140
135
  }
141
136
  else if (typeof cb === "function") {
142
137
  if (typeof optionsOrCb !== "object")
143
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
139
  this.send(command, optionsOrCb || {}, cb);
145
140
  }
146
141
  else {
147
142
  return this.send(command, optionsOrCb);
148
143
  }
149
- };
150
- Transfer.prototype.createWorkflow = function (args, optionsOrCb, cb) {
151
- var command = new CreateWorkflowCommand(args);
144
+ }
145
+ createWorkflow(args, optionsOrCb, cb) {
146
+ const command = new CreateWorkflowCommand(args);
152
147
  if (typeof optionsOrCb === "function") {
153
148
  this.send(command, optionsOrCb);
154
149
  }
155
150
  else if (typeof cb === "function") {
156
151
  if (typeof optionsOrCb !== "object")
157
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
153
  this.send(command, optionsOrCb || {}, cb);
159
154
  }
160
155
  else {
161
156
  return this.send(command, optionsOrCb);
162
157
  }
163
- };
164
- Transfer.prototype.deleteAccess = function (args, optionsOrCb, cb) {
165
- var command = new DeleteAccessCommand(args);
158
+ }
159
+ deleteAccess(args, optionsOrCb, cb) {
160
+ const command = new DeleteAccessCommand(args);
166
161
  if (typeof optionsOrCb === "function") {
167
162
  this.send(command, optionsOrCb);
168
163
  }
169
164
  else if (typeof cb === "function") {
170
165
  if (typeof optionsOrCb !== "object")
171
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
167
  this.send(command, optionsOrCb || {}, cb);
173
168
  }
174
169
  else {
175
170
  return this.send(command, optionsOrCb);
176
171
  }
177
- };
178
- Transfer.prototype.deleteAgreement = function (args, optionsOrCb, cb) {
179
- var command = new DeleteAgreementCommand(args);
172
+ }
173
+ deleteAgreement(args, optionsOrCb, cb) {
174
+ const command = new DeleteAgreementCommand(args);
180
175
  if (typeof optionsOrCb === "function") {
181
176
  this.send(command, optionsOrCb);
182
177
  }
183
178
  else if (typeof cb === "function") {
184
179
  if (typeof optionsOrCb !== "object")
185
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
181
  this.send(command, optionsOrCb || {}, cb);
187
182
  }
188
183
  else {
189
184
  return this.send(command, optionsOrCb);
190
185
  }
191
- };
192
- Transfer.prototype.deleteCertificate = function (args, optionsOrCb, cb) {
193
- var command = new DeleteCertificateCommand(args);
186
+ }
187
+ deleteCertificate(args, optionsOrCb, cb) {
188
+ const command = new DeleteCertificateCommand(args);
194
189
  if (typeof optionsOrCb === "function") {
195
190
  this.send(command, optionsOrCb);
196
191
  }
197
192
  else if (typeof cb === "function") {
198
193
  if (typeof optionsOrCb !== "object")
199
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
195
  this.send(command, optionsOrCb || {}, cb);
201
196
  }
202
197
  else {
203
198
  return this.send(command, optionsOrCb);
204
199
  }
205
- };
206
- Transfer.prototype.deleteConnector = function (args, optionsOrCb, cb) {
207
- var command = new DeleteConnectorCommand(args);
200
+ }
201
+ deleteConnector(args, optionsOrCb, cb) {
202
+ const command = new DeleteConnectorCommand(args);
208
203
  if (typeof optionsOrCb === "function") {
209
204
  this.send(command, optionsOrCb);
210
205
  }
211
206
  else if (typeof cb === "function") {
212
207
  if (typeof optionsOrCb !== "object")
213
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
209
  this.send(command, optionsOrCb || {}, cb);
215
210
  }
216
211
  else {
217
212
  return this.send(command, optionsOrCb);
218
213
  }
219
- };
220
- Transfer.prototype.deleteHostKey = function (args, optionsOrCb, cb) {
221
- var command = new DeleteHostKeyCommand(args);
214
+ }
215
+ deleteHostKey(args, optionsOrCb, cb) {
216
+ const command = new DeleteHostKeyCommand(args);
222
217
  if (typeof optionsOrCb === "function") {
223
218
  this.send(command, optionsOrCb);
224
219
  }
225
220
  else if (typeof cb === "function") {
226
221
  if (typeof optionsOrCb !== "object")
227
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
223
  this.send(command, optionsOrCb || {}, cb);
229
224
  }
230
225
  else {
231
226
  return this.send(command, optionsOrCb);
232
227
  }
233
- };
234
- Transfer.prototype.deleteProfile = function (args, optionsOrCb, cb) {
235
- var command = new DeleteProfileCommand(args);
228
+ }
229
+ deleteProfile(args, optionsOrCb, cb) {
230
+ const command = new DeleteProfileCommand(args);
236
231
  if (typeof optionsOrCb === "function") {
237
232
  this.send(command, optionsOrCb);
238
233
  }
239
234
  else if (typeof cb === "function") {
240
235
  if (typeof optionsOrCb !== "object")
241
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
236
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
237
  this.send(command, optionsOrCb || {}, cb);
243
238
  }
244
239
  else {
245
240
  return this.send(command, optionsOrCb);
246
241
  }
247
- };
248
- Transfer.prototype.deleteServer = function (args, optionsOrCb, cb) {
249
- var command = new DeleteServerCommand(args);
242
+ }
243
+ deleteServer(args, optionsOrCb, cb) {
244
+ const command = new DeleteServerCommand(args);
250
245
  if (typeof optionsOrCb === "function") {
251
246
  this.send(command, optionsOrCb);
252
247
  }
253
248
  else if (typeof cb === "function") {
254
249
  if (typeof optionsOrCb !== "object")
255
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
250
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
251
  this.send(command, optionsOrCb || {}, cb);
257
252
  }
258
253
  else {
259
254
  return this.send(command, optionsOrCb);
260
255
  }
261
- };
262
- Transfer.prototype.deleteSshPublicKey = function (args, optionsOrCb, cb) {
263
- var command = new DeleteSshPublicKeyCommand(args);
256
+ }
257
+ deleteSshPublicKey(args, optionsOrCb, cb) {
258
+ const command = new DeleteSshPublicKeyCommand(args);
264
259
  if (typeof optionsOrCb === "function") {
265
260
  this.send(command, optionsOrCb);
266
261
  }
267
262
  else if (typeof cb === "function") {
268
263
  if (typeof optionsOrCb !== "object")
269
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
264
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
265
  this.send(command, optionsOrCb || {}, cb);
271
266
  }
272
267
  else {
273
268
  return this.send(command, optionsOrCb);
274
269
  }
275
- };
276
- Transfer.prototype.deleteUser = function (args, optionsOrCb, cb) {
277
- var command = new DeleteUserCommand(args);
270
+ }
271
+ deleteUser(args, optionsOrCb, cb) {
272
+ const command = new DeleteUserCommand(args);
278
273
  if (typeof optionsOrCb === "function") {
279
274
  this.send(command, optionsOrCb);
280
275
  }
281
276
  else if (typeof cb === "function") {
282
277
  if (typeof optionsOrCb !== "object")
283
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
278
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
279
  this.send(command, optionsOrCb || {}, cb);
285
280
  }
286
281
  else {
287
282
  return this.send(command, optionsOrCb);
288
283
  }
289
- };
290
- Transfer.prototype.deleteWorkflow = function (args, optionsOrCb, cb) {
291
- var command = new DeleteWorkflowCommand(args);
284
+ }
285
+ deleteWorkflow(args, optionsOrCb, cb) {
286
+ const command = new DeleteWorkflowCommand(args);
292
287
  if (typeof optionsOrCb === "function") {
293
288
  this.send(command, optionsOrCb);
294
289
  }
295
290
  else if (typeof cb === "function") {
296
291
  if (typeof optionsOrCb !== "object")
297
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
292
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
293
  this.send(command, optionsOrCb || {}, cb);
299
294
  }
300
295
  else {
301
296
  return this.send(command, optionsOrCb);
302
297
  }
303
- };
304
- Transfer.prototype.describeAccess = function (args, optionsOrCb, cb) {
305
- var command = new DescribeAccessCommand(args);
298
+ }
299
+ describeAccess(args, optionsOrCb, cb) {
300
+ const command = new DescribeAccessCommand(args);
306
301
  if (typeof optionsOrCb === "function") {
307
302
  this.send(command, optionsOrCb);
308
303
  }
309
304
  else if (typeof cb === "function") {
310
305
  if (typeof optionsOrCb !== "object")
311
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
306
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
307
  this.send(command, optionsOrCb || {}, cb);
313
308
  }
314
309
  else {
315
310
  return this.send(command, optionsOrCb);
316
311
  }
317
- };
318
- Transfer.prototype.describeAgreement = function (args, optionsOrCb, cb) {
319
- var command = new DescribeAgreementCommand(args);
312
+ }
313
+ describeAgreement(args, optionsOrCb, cb) {
314
+ const command = new DescribeAgreementCommand(args);
320
315
  if (typeof optionsOrCb === "function") {
321
316
  this.send(command, optionsOrCb);
322
317
  }
323
318
  else if (typeof cb === "function") {
324
319
  if (typeof optionsOrCb !== "object")
325
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
320
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
326
321
  this.send(command, optionsOrCb || {}, cb);
327
322
  }
328
323
  else {
329
324
  return this.send(command, optionsOrCb);
330
325
  }
331
- };
332
- Transfer.prototype.describeCertificate = function (args, optionsOrCb, cb) {
333
- var command = new DescribeCertificateCommand(args);
326
+ }
327
+ describeCertificate(args, optionsOrCb, cb) {
328
+ const command = new DescribeCertificateCommand(args);
334
329
  if (typeof optionsOrCb === "function") {
335
330
  this.send(command, optionsOrCb);
336
331
  }
337
332
  else if (typeof cb === "function") {
338
333
  if (typeof optionsOrCb !== "object")
339
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
334
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
340
335
  this.send(command, optionsOrCb || {}, cb);
341
336
  }
342
337
  else {
343
338
  return this.send(command, optionsOrCb);
344
339
  }
345
- };
346
- Transfer.prototype.describeConnector = function (args, optionsOrCb, cb) {
347
- var command = new DescribeConnectorCommand(args);
340
+ }
341
+ describeConnector(args, optionsOrCb, cb) {
342
+ const command = new DescribeConnectorCommand(args);
348
343
  if (typeof optionsOrCb === "function") {
349
344
  this.send(command, optionsOrCb);
350
345
  }
351
346
  else if (typeof cb === "function") {
352
347
  if (typeof optionsOrCb !== "object")
353
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
348
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
349
  this.send(command, optionsOrCb || {}, cb);
355
350
  }
356
351
  else {
357
352
  return this.send(command, optionsOrCb);
358
353
  }
359
- };
360
- Transfer.prototype.describeExecution = function (args, optionsOrCb, cb) {
361
- var command = new DescribeExecutionCommand(args);
354
+ }
355
+ describeExecution(args, optionsOrCb, cb) {
356
+ const command = new DescribeExecutionCommand(args);
362
357
  if (typeof optionsOrCb === "function") {
363
358
  this.send(command, optionsOrCb);
364
359
  }
365
360
  else if (typeof cb === "function") {
366
361
  if (typeof optionsOrCb !== "object")
367
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
362
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
363
  this.send(command, optionsOrCb || {}, cb);
369
364
  }
370
365
  else {
371
366
  return this.send(command, optionsOrCb);
372
367
  }
373
- };
374
- Transfer.prototype.describeHostKey = function (args, optionsOrCb, cb) {
375
- var command = new DescribeHostKeyCommand(args);
368
+ }
369
+ describeHostKey(args, optionsOrCb, cb) {
370
+ const command = new DescribeHostKeyCommand(args);
376
371
  if (typeof optionsOrCb === "function") {
377
372
  this.send(command, optionsOrCb);
378
373
  }
379
374
  else if (typeof cb === "function") {
380
375
  if (typeof optionsOrCb !== "object")
381
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
376
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
377
  this.send(command, optionsOrCb || {}, cb);
383
378
  }
384
379
  else {
385
380
  return this.send(command, optionsOrCb);
386
381
  }
387
- };
388
- Transfer.prototype.describeProfile = function (args, optionsOrCb, cb) {
389
- var command = new DescribeProfileCommand(args);
382
+ }
383
+ describeProfile(args, optionsOrCb, cb) {
384
+ const command = new DescribeProfileCommand(args);
390
385
  if (typeof optionsOrCb === "function") {
391
386
  this.send(command, optionsOrCb);
392
387
  }
393
388
  else if (typeof cb === "function") {
394
389
  if (typeof optionsOrCb !== "object")
395
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
390
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
396
391
  this.send(command, optionsOrCb || {}, cb);
397
392
  }
398
393
  else {
399
394
  return this.send(command, optionsOrCb);
400
395
  }
401
- };
402
- Transfer.prototype.describeSecurityPolicy = function (args, optionsOrCb, cb) {
403
- var command = new DescribeSecurityPolicyCommand(args);
396
+ }
397
+ describeSecurityPolicy(args, optionsOrCb, cb) {
398
+ const command = new DescribeSecurityPolicyCommand(args);
404
399
  if (typeof optionsOrCb === "function") {
405
400
  this.send(command, optionsOrCb);
406
401
  }
407
402
  else if (typeof cb === "function") {
408
403
  if (typeof optionsOrCb !== "object")
409
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
404
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
405
  this.send(command, optionsOrCb || {}, cb);
411
406
  }
412
407
  else {
413
408
  return this.send(command, optionsOrCb);
414
409
  }
415
- };
416
- Transfer.prototype.describeServer = function (args, optionsOrCb, cb) {
417
- var command = new DescribeServerCommand(args);
410
+ }
411
+ describeServer(args, optionsOrCb, cb) {
412
+ const command = new DescribeServerCommand(args);
418
413
  if (typeof optionsOrCb === "function") {
419
414
  this.send(command, optionsOrCb);
420
415
  }
421
416
  else if (typeof cb === "function") {
422
417
  if (typeof optionsOrCb !== "object")
423
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
418
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
419
  this.send(command, optionsOrCb || {}, cb);
425
420
  }
426
421
  else {
427
422
  return this.send(command, optionsOrCb);
428
423
  }
429
- };
430
- Transfer.prototype.describeUser = function (args, optionsOrCb, cb) {
431
- var command = new DescribeUserCommand(args);
424
+ }
425
+ describeUser(args, optionsOrCb, cb) {
426
+ const command = new DescribeUserCommand(args);
432
427
  if (typeof optionsOrCb === "function") {
433
428
  this.send(command, optionsOrCb);
434
429
  }
435
430
  else if (typeof cb === "function") {
436
431
  if (typeof optionsOrCb !== "object")
437
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
432
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
438
433
  this.send(command, optionsOrCb || {}, cb);
439
434
  }
440
435
  else {
441
436
  return this.send(command, optionsOrCb);
442
437
  }
443
- };
444
- Transfer.prototype.describeWorkflow = function (args, optionsOrCb, cb) {
445
- var command = new DescribeWorkflowCommand(args);
438
+ }
439
+ describeWorkflow(args, optionsOrCb, cb) {
440
+ const command = new DescribeWorkflowCommand(args);
446
441
  if (typeof optionsOrCb === "function") {
447
442
  this.send(command, optionsOrCb);
448
443
  }
449
444
  else if (typeof cb === "function") {
450
445
  if (typeof optionsOrCb !== "object")
451
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
446
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
447
  this.send(command, optionsOrCb || {}, cb);
453
448
  }
454
449
  else {
455
450
  return this.send(command, optionsOrCb);
456
451
  }
457
- };
458
- Transfer.prototype.importCertificate = function (args, optionsOrCb, cb) {
459
- var command = new ImportCertificateCommand(args);
452
+ }
453
+ importCertificate(args, optionsOrCb, cb) {
454
+ const command = new ImportCertificateCommand(args);
460
455
  if (typeof optionsOrCb === "function") {
461
456
  this.send(command, optionsOrCb);
462
457
  }
463
458
  else if (typeof cb === "function") {
464
459
  if (typeof optionsOrCb !== "object")
465
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
460
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
466
461
  this.send(command, optionsOrCb || {}, cb);
467
462
  }
468
463
  else {
469
464
  return this.send(command, optionsOrCb);
470
465
  }
471
- };
472
- Transfer.prototype.importHostKey = function (args, optionsOrCb, cb) {
473
- var command = new ImportHostKeyCommand(args);
466
+ }
467
+ importHostKey(args, optionsOrCb, cb) {
468
+ const command = new ImportHostKeyCommand(args);
474
469
  if (typeof optionsOrCb === "function") {
475
470
  this.send(command, optionsOrCb);
476
471
  }
477
472
  else if (typeof cb === "function") {
478
473
  if (typeof optionsOrCb !== "object")
479
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
474
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
480
475
  this.send(command, optionsOrCb || {}, cb);
481
476
  }
482
477
  else {
483
478
  return this.send(command, optionsOrCb);
484
479
  }
485
- };
486
- Transfer.prototype.importSshPublicKey = function (args, optionsOrCb, cb) {
487
- var command = new ImportSshPublicKeyCommand(args);
480
+ }
481
+ importSshPublicKey(args, optionsOrCb, cb) {
482
+ const command = new ImportSshPublicKeyCommand(args);
488
483
  if (typeof optionsOrCb === "function") {
489
484
  this.send(command, optionsOrCb);
490
485
  }
491
486
  else if (typeof cb === "function") {
492
487
  if (typeof optionsOrCb !== "object")
493
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
488
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
494
489
  this.send(command, optionsOrCb || {}, cb);
495
490
  }
496
491
  else {
497
492
  return this.send(command, optionsOrCb);
498
493
  }
499
- };
500
- Transfer.prototype.listAccesses = function (args, optionsOrCb, cb) {
501
- var command = new ListAccessesCommand(args);
494
+ }
495
+ listAccesses(args, optionsOrCb, cb) {
496
+ const command = new ListAccessesCommand(args);
502
497
  if (typeof optionsOrCb === "function") {
503
498
  this.send(command, optionsOrCb);
504
499
  }
505
500
  else if (typeof cb === "function") {
506
501
  if (typeof optionsOrCb !== "object")
507
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
502
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
508
503
  this.send(command, optionsOrCb || {}, cb);
509
504
  }
510
505
  else {
511
506
  return this.send(command, optionsOrCb);
512
507
  }
513
- };
514
- Transfer.prototype.listAgreements = function (args, optionsOrCb, cb) {
515
- var command = new ListAgreementsCommand(args);
508
+ }
509
+ listAgreements(args, optionsOrCb, cb) {
510
+ const command = new ListAgreementsCommand(args);
516
511
  if (typeof optionsOrCb === "function") {
517
512
  this.send(command, optionsOrCb);
518
513
  }
519
514
  else if (typeof cb === "function") {
520
515
  if (typeof optionsOrCb !== "object")
521
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
516
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
522
517
  this.send(command, optionsOrCb || {}, cb);
523
518
  }
524
519
  else {
525
520
  return this.send(command, optionsOrCb);
526
521
  }
527
- };
528
- Transfer.prototype.listCertificates = function (args, optionsOrCb, cb) {
529
- var command = new ListCertificatesCommand(args);
522
+ }
523
+ listCertificates(args, optionsOrCb, cb) {
524
+ const command = new ListCertificatesCommand(args);
530
525
  if (typeof optionsOrCb === "function") {
531
526
  this.send(command, optionsOrCb);
532
527
  }
533
528
  else if (typeof cb === "function") {
534
529
  if (typeof optionsOrCb !== "object")
535
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
530
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
536
531
  this.send(command, optionsOrCb || {}, cb);
537
532
  }
538
533
  else {
539
534
  return this.send(command, optionsOrCb);
540
535
  }
541
- };
542
- Transfer.prototype.listConnectors = function (args, optionsOrCb, cb) {
543
- var command = new ListConnectorsCommand(args);
536
+ }
537
+ listConnectors(args, optionsOrCb, cb) {
538
+ const command = new ListConnectorsCommand(args);
544
539
  if (typeof optionsOrCb === "function") {
545
540
  this.send(command, optionsOrCb);
546
541
  }
547
542
  else if (typeof cb === "function") {
548
543
  if (typeof optionsOrCb !== "object")
549
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
544
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
550
545
  this.send(command, optionsOrCb || {}, cb);
551
546
  }
552
547
  else {
553
548
  return this.send(command, optionsOrCb);
554
549
  }
555
- };
556
- Transfer.prototype.listExecutions = function (args, optionsOrCb, cb) {
557
- var command = new ListExecutionsCommand(args);
550
+ }
551
+ listExecutions(args, optionsOrCb, cb) {
552
+ const command = new ListExecutionsCommand(args);
558
553
  if (typeof optionsOrCb === "function") {
559
554
  this.send(command, optionsOrCb);
560
555
  }
561
556
  else if (typeof cb === "function") {
562
557
  if (typeof optionsOrCb !== "object")
563
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
558
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
564
559
  this.send(command, optionsOrCb || {}, cb);
565
560
  }
566
561
  else {
567
562
  return this.send(command, optionsOrCb);
568
563
  }
569
- };
570
- Transfer.prototype.listHostKeys = function (args, optionsOrCb, cb) {
571
- var command = new ListHostKeysCommand(args);
564
+ }
565
+ listHostKeys(args, optionsOrCb, cb) {
566
+ const command = new ListHostKeysCommand(args);
572
567
  if (typeof optionsOrCb === "function") {
573
568
  this.send(command, optionsOrCb);
574
569
  }
575
570
  else if (typeof cb === "function") {
576
571
  if (typeof optionsOrCb !== "object")
577
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
572
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
578
573
  this.send(command, optionsOrCb || {}, cb);
579
574
  }
580
575
  else {
581
576
  return this.send(command, optionsOrCb);
582
577
  }
583
- };
584
- Transfer.prototype.listProfiles = function (args, optionsOrCb, cb) {
585
- var command = new ListProfilesCommand(args);
578
+ }
579
+ listProfiles(args, optionsOrCb, cb) {
580
+ const command = new ListProfilesCommand(args);
586
581
  if (typeof optionsOrCb === "function") {
587
582
  this.send(command, optionsOrCb);
588
583
  }
589
584
  else if (typeof cb === "function") {
590
585
  if (typeof optionsOrCb !== "object")
591
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
586
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
587
  this.send(command, optionsOrCb || {}, cb);
593
588
  }
594
589
  else {
595
590
  return this.send(command, optionsOrCb);
596
591
  }
597
- };
598
- Transfer.prototype.listSecurityPolicies = function (args, optionsOrCb, cb) {
599
- var command = new ListSecurityPoliciesCommand(args);
592
+ }
593
+ listSecurityPolicies(args, optionsOrCb, cb) {
594
+ const command = new ListSecurityPoliciesCommand(args);
600
595
  if (typeof optionsOrCb === "function") {
601
596
  this.send(command, optionsOrCb);
602
597
  }
603
598
  else if (typeof cb === "function") {
604
599
  if (typeof optionsOrCb !== "object")
605
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
600
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
606
601
  this.send(command, optionsOrCb || {}, cb);
607
602
  }
608
603
  else {
609
604
  return this.send(command, optionsOrCb);
610
605
  }
611
- };
612
- Transfer.prototype.listServers = function (args, optionsOrCb, cb) {
613
- var command = new ListServersCommand(args);
606
+ }
607
+ listServers(args, optionsOrCb, cb) {
608
+ const command = new ListServersCommand(args);
614
609
  if (typeof optionsOrCb === "function") {
615
610
  this.send(command, optionsOrCb);
616
611
  }
617
612
  else if (typeof cb === "function") {
618
613
  if (typeof optionsOrCb !== "object")
619
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
614
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
620
615
  this.send(command, optionsOrCb || {}, cb);
621
616
  }
622
617
  else {
623
618
  return this.send(command, optionsOrCb);
624
619
  }
625
- };
626
- Transfer.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
627
- var command = new ListTagsForResourceCommand(args);
620
+ }
621
+ listTagsForResource(args, optionsOrCb, cb) {
622
+ const command = new ListTagsForResourceCommand(args);
628
623
  if (typeof optionsOrCb === "function") {
629
624
  this.send(command, optionsOrCb);
630
625
  }
631
626
  else if (typeof cb === "function") {
632
627
  if (typeof optionsOrCb !== "object")
633
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
628
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
634
629
  this.send(command, optionsOrCb || {}, cb);
635
630
  }
636
631
  else {
637
632
  return this.send(command, optionsOrCb);
638
633
  }
639
- };
640
- Transfer.prototype.listUsers = function (args, optionsOrCb, cb) {
641
- var command = new ListUsersCommand(args);
634
+ }
635
+ listUsers(args, optionsOrCb, cb) {
636
+ const command = new ListUsersCommand(args);
642
637
  if (typeof optionsOrCb === "function") {
643
638
  this.send(command, optionsOrCb);
644
639
  }
645
640
  else if (typeof cb === "function") {
646
641
  if (typeof optionsOrCb !== "object")
647
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
642
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
648
643
  this.send(command, optionsOrCb || {}, cb);
649
644
  }
650
645
  else {
651
646
  return this.send(command, optionsOrCb);
652
647
  }
653
- };
654
- Transfer.prototype.listWorkflows = function (args, optionsOrCb, cb) {
655
- var command = new ListWorkflowsCommand(args);
648
+ }
649
+ listWorkflows(args, optionsOrCb, cb) {
650
+ const command = new ListWorkflowsCommand(args);
656
651
  if (typeof optionsOrCb === "function") {
657
652
  this.send(command, optionsOrCb);
658
653
  }
659
654
  else if (typeof cb === "function") {
660
655
  if (typeof optionsOrCb !== "object")
661
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
656
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
662
657
  this.send(command, optionsOrCb || {}, cb);
663
658
  }
664
659
  else {
665
660
  return this.send(command, optionsOrCb);
666
661
  }
667
- };
668
- Transfer.prototype.sendWorkflowStepState = function (args, optionsOrCb, cb) {
669
- var command = new SendWorkflowStepStateCommand(args);
662
+ }
663
+ sendWorkflowStepState(args, optionsOrCb, cb) {
664
+ const command = new SendWorkflowStepStateCommand(args);
670
665
  if (typeof optionsOrCb === "function") {
671
666
  this.send(command, optionsOrCb);
672
667
  }
673
668
  else if (typeof cb === "function") {
674
669
  if (typeof optionsOrCb !== "object")
675
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
670
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
676
671
  this.send(command, optionsOrCb || {}, cb);
677
672
  }
678
673
  else {
679
674
  return this.send(command, optionsOrCb);
680
675
  }
681
- };
682
- Transfer.prototype.startFileTransfer = function (args, optionsOrCb, cb) {
683
- var command = new StartFileTransferCommand(args);
676
+ }
677
+ startFileTransfer(args, optionsOrCb, cb) {
678
+ const command = new StartFileTransferCommand(args);
684
679
  if (typeof optionsOrCb === "function") {
685
680
  this.send(command, optionsOrCb);
686
681
  }
687
682
  else if (typeof cb === "function") {
688
683
  if (typeof optionsOrCb !== "object")
689
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
684
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
690
685
  this.send(command, optionsOrCb || {}, cb);
691
686
  }
692
687
  else {
693
688
  return this.send(command, optionsOrCb);
694
689
  }
695
- };
696
- Transfer.prototype.startServer = function (args, optionsOrCb, cb) {
697
- var command = new StartServerCommand(args);
690
+ }
691
+ startServer(args, optionsOrCb, cb) {
692
+ const command = new StartServerCommand(args);
698
693
  if (typeof optionsOrCb === "function") {
699
694
  this.send(command, optionsOrCb);
700
695
  }
701
696
  else if (typeof cb === "function") {
702
697
  if (typeof optionsOrCb !== "object")
703
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
698
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
704
699
  this.send(command, optionsOrCb || {}, cb);
705
700
  }
706
701
  else {
707
702
  return this.send(command, optionsOrCb);
708
703
  }
709
- };
710
- Transfer.prototype.stopServer = function (args, optionsOrCb, cb) {
711
- var command = new StopServerCommand(args);
704
+ }
705
+ stopServer(args, optionsOrCb, cb) {
706
+ const command = new StopServerCommand(args);
712
707
  if (typeof optionsOrCb === "function") {
713
708
  this.send(command, optionsOrCb);
714
709
  }
715
710
  else if (typeof cb === "function") {
716
711
  if (typeof optionsOrCb !== "object")
717
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
712
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
718
713
  this.send(command, optionsOrCb || {}, cb);
719
714
  }
720
715
  else {
721
716
  return this.send(command, optionsOrCb);
722
717
  }
723
- };
724
- Transfer.prototype.tagResource = function (args, optionsOrCb, cb) {
725
- var command = new TagResourceCommand(args);
718
+ }
719
+ tagResource(args, optionsOrCb, cb) {
720
+ const command = new TagResourceCommand(args);
726
721
  if (typeof optionsOrCb === "function") {
727
722
  this.send(command, optionsOrCb);
728
723
  }
729
724
  else if (typeof cb === "function") {
730
725
  if (typeof optionsOrCb !== "object")
731
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
726
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
732
727
  this.send(command, optionsOrCb || {}, cb);
733
728
  }
734
729
  else {
735
730
  return this.send(command, optionsOrCb);
736
731
  }
737
- };
738
- Transfer.prototype.testIdentityProvider = function (args, optionsOrCb, cb) {
739
- var command = new TestIdentityProviderCommand(args);
732
+ }
733
+ testIdentityProvider(args, optionsOrCb, cb) {
734
+ const command = new TestIdentityProviderCommand(args);
740
735
  if (typeof optionsOrCb === "function") {
741
736
  this.send(command, optionsOrCb);
742
737
  }
743
738
  else if (typeof cb === "function") {
744
739
  if (typeof optionsOrCb !== "object")
745
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
740
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
746
741
  this.send(command, optionsOrCb || {}, cb);
747
742
  }
748
743
  else {
749
744
  return this.send(command, optionsOrCb);
750
745
  }
751
- };
752
- Transfer.prototype.untagResource = function (args, optionsOrCb, cb) {
753
- var command = new UntagResourceCommand(args);
746
+ }
747
+ untagResource(args, optionsOrCb, cb) {
748
+ const command = new UntagResourceCommand(args);
754
749
  if (typeof optionsOrCb === "function") {
755
750
  this.send(command, optionsOrCb);
756
751
  }
757
752
  else if (typeof cb === "function") {
758
753
  if (typeof optionsOrCb !== "object")
759
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
754
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
760
755
  this.send(command, optionsOrCb || {}, cb);
761
756
  }
762
757
  else {
763
758
  return this.send(command, optionsOrCb);
764
759
  }
765
- };
766
- Transfer.prototype.updateAccess = function (args, optionsOrCb, cb) {
767
- var command = new UpdateAccessCommand(args);
760
+ }
761
+ updateAccess(args, optionsOrCb, cb) {
762
+ const command = new UpdateAccessCommand(args);
768
763
  if (typeof optionsOrCb === "function") {
769
764
  this.send(command, optionsOrCb);
770
765
  }
771
766
  else if (typeof cb === "function") {
772
767
  if (typeof optionsOrCb !== "object")
773
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
768
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
774
769
  this.send(command, optionsOrCb || {}, cb);
775
770
  }
776
771
  else {
777
772
  return this.send(command, optionsOrCb);
778
773
  }
779
- };
780
- Transfer.prototype.updateAgreement = function (args, optionsOrCb, cb) {
781
- var command = new UpdateAgreementCommand(args);
774
+ }
775
+ updateAgreement(args, optionsOrCb, cb) {
776
+ const command = new UpdateAgreementCommand(args);
782
777
  if (typeof optionsOrCb === "function") {
783
778
  this.send(command, optionsOrCb);
784
779
  }
785
780
  else if (typeof cb === "function") {
786
781
  if (typeof optionsOrCb !== "object")
787
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
782
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
788
783
  this.send(command, optionsOrCb || {}, cb);
789
784
  }
790
785
  else {
791
786
  return this.send(command, optionsOrCb);
792
787
  }
793
- };
794
- Transfer.prototype.updateCertificate = function (args, optionsOrCb, cb) {
795
- var command = new UpdateCertificateCommand(args);
788
+ }
789
+ updateCertificate(args, optionsOrCb, cb) {
790
+ const command = new UpdateCertificateCommand(args);
796
791
  if (typeof optionsOrCb === "function") {
797
792
  this.send(command, optionsOrCb);
798
793
  }
799
794
  else if (typeof cb === "function") {
800
795
  if (typeof optionsOrCb !== "object")
801
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
796
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
802
797
  this.send(command, optionsOrCb || {}, cb);
803
798
  }
804
799
  else {
805
800
  return this.send(command, optionsOrCb);
806
801
  }
807
- };
808
- Transfer.prototype.updateConnector = function (args, optionsOrCb, cb) {
809
- var command = new UpdateConnectorCommand(args);
802
+ }
803
+ updateConnector(args, optionsOrCb, cb) {
804
+ const command = new UpdateConnectorCommand(args);
810
805
  if (typeof optionsOrCb === "function") {
811
806
  this.send(command, optionsOrCb);
812
807
  }
813
808
  else if (typeof cb === "function") {
814
809
  if (typeof optionsOrCb !== "object")
815
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
810
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
816
811
  this.send(command, optionsOrCb || {}, cb);
817
812
  }
818
813
  else {
819
814
  return this.send(command, optionsOrCb);
820
815
  }
821
- };
822
- Transfer.prototype.updateHostKey = function (args, optionsOrCb, cb) {
823
- var command = new UpdateHostKeyCommand(args);
816
+ }
817
+ updateHostKey(args, optionsOrCb, cb) {
818
+ const command = new UpdateHostKeyCommand(args);
824
819
  if (typeof optionsOrCb === "function") {
825
820
  this.send(command, optionsOrCb);
826
821
  }
827
822
  else if (typeof cb === "function") {
828
823
  if (typeof optionsOrCb !== "object")
829
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
824
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
830
825
  this.send(command, optionsOrCb || {}, cb);
831
826
  }
832
827
  else {
833
828
  return this.send(command, optionsOrCb);
834
829
  }
835
- };
836
- Transfer.prototype.updateProfile = function (args, optionsOrCb, cb) {
837
- var command = new UpdateProfileCommand(args);
830
+ }
831
+ updateProfile(args, optionsOrCb, cb) {
832
+ const command = new UpdateProfileCommand(args);
838
833
  if (typeof optionsOrCb === "function") {
839
834
  this.send(command, optionsOrCb);
840
835
  }
841
836
  else if (typeof cb === "function") {
842
837
  if (typeof optionsOrCb !== "object")
843
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
838
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
844
839
  this.send(command, optionsOrCb || {}, cb);
845
840
  }
846
841
  else {
847
842
  return this.send(command, optionsOrCb);
848
843
  }
849
- };
850
- Transfer.prototype.updateServer = function (args, optionsOrCb, cb) {
851
- var command = new UpdateServerCommand(args);
844
+ }
845
+ updateServer(args, optionsOrCb, cb) {
846
+ const command = new UpdateServerCommand(args);
852
847
  if (typeof optionsOrCb === "function") {
853
848
  this.send(command, optionsOrCb);
854
849
  }
855
850
  else if (typeof cb === "function") {
856
851
  if (typeof optionsOrCb !== "object")
857
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
852
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
858
853
  this.send(command, optionsOrCb || {}, cb);
859
854
  }
860
855
  else {
861
856
  return this.send(command, optionsOrCb);
862
857
  }
863
- };
864
- Transfer.prototype.updateUser = function (args, optionsOrCb, cb) {
865
- var command = new UpdateUserCommand(args);
858
+ }
859
+ updateUser(args, optionsOrCb, cb) {
860
+ const command = new UpdateUserCommand(args);
866
861
  if (typeof optionsOrCb === "function") {
867
862
  this.send(command, optionsOrCb);
868
863
  }
869
864
  else if (typeof cb === "function") {
870
865
  if (typeof optionsOrCb !== "object")
871
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
866
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
872
867
  this.send(command, optionsOrCb || {}, cb);
873
868
  }
874
869
  else {
875
870
  return this.send(command, optionsOrCb);
876
871
  }
877
- };
878
- return Transfer;
879
- }(TransferClient));
880
- export { Transfer };
872
+ }
873
+ }