@aws-sdk/client-efs 3.186.0 → 3.188.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 (46) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/EFS.js +122 -129
  3. package/dist-es/EFSClient.js +22 -28
  4. package/dist-es/commands/CreateAccessPointCommand.js +21 -28
  5. package/dist-es/commands/CreateFileSystemCommand.js +21 -28
  6. package/dist-es/commands/CreateMountTargetCommand.js +21 -28
  7. package/dist-es/commands/CreateReplicationConfigurationCommand.js +21 -28
  8. package/dist-es/commands/CreateTagsCommand.js +22 -29
  9. package/dist-es/commands/DeleteAccessPointCommand.js +22 -29
  10. package/dist-es/commands/DeleteFileSystemCommand.js +22 -29
  11. package/dist-es/commands/DeleteFileSystemPolicyCommand.js +22 -29
  12. package/dist-es/commands/DeleteMountTargetCommand.js +22 -29
  13. package/dist-es/commands/DeleteReplicationConfigurationCommand.js +22 -29
  14. package/dist-es/commands/DeleteTagsCommand.js +22 -29
  15. package/dist-es/commands/DescribeAccessPointsCommand.js +21 -28
  16. package/dist-es/commands/DescribeAccountPreferencesCommand.js +21 -28
  17. package/dist-es/commands/DescribeBackupPolicyCommand.js +21 -28
  18. package/dist-es/commands/DescribeFileSystemPolicyCommand.js +21 -28
  19. package/dist-es/commands/DescribeFileSystemsCommand.js +21 -28
  20. package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +21 -28
  21. package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +21 -28
  22. package/dist-es/commands/DescribeMountTargetsCommand.js +21 -28
  23. package/dist-es/commands/DescribeReplicationConfigurationsCommand.js +21 -28
  24. package/dist-es/commands/DescribeTagsCommand.js +21 -28
  25. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  26. package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +22 -29
  27. package/dist-es/commands/PutAccountPreferencesCommand.js +21 -28
  28. package/dist-es/commands/PutBackupPolicyCommand.js +21 -28
  29. package/dist-es/commands/PutFileSystemPolicyCommand.js +21 -28
  30. package/dist-es/commands/PutLifecycleConfigurationCommand.js +21 -28
  31. package/dist-es/commands/TagResourceCommand.js +22 -29
  32. package/dist-es/commands/UntagResourceCommand.js +22 -29
  33. package/dist-es/commands/UpdateFileSystemCommand.js +21 -28
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/EFSServiceException.js +5 -10
  36. package/dist-es/models/models_0.js +560 -449
  37. package/dist-es/pagination/DescribeAccessPointsPaginator.js +25 -68
  38. package/dist-es/pagination/DescribeFileSystemsPaginator.js +25 -68
  39. package/dist-es/pagination/DescribeTagsPaginator.js +25 -68
  40. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  41. package/dist-es/protocols/Aws_restJson1.js +2631 -3543
  42. package/dist-es/runtimeConfig.browser.js +26 -12
  43. package/dist-es/runtimeConfig.js +30 -12
  44. package/dist-es/runtimeConfig.native.js +8 -5
  45. package/dist-es/runtimeConfig.shared.js +8 -11
  46. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-efs
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/client-efs
package/dist-es/EFS.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateAccessPointCommand, } from "./commands/CreateAccessPointCommand";
3
2
  import { CreateFileSystemCommand, } from "./commands/CreateFileSystemCommand";
4
3
  import { CreateMountTargetCommand, } from "./commands/CreateMountTargetCommand";
@@ -30,431 +29,425 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
30
29
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
31
30
  import { UpdateFileSystemCommand, } from "./commands/UpdateFileSystemCommand";
32
31
  import { EFSClient } from "./EFSClient";
33
- var EFS = (function (_super) {
34
- __extends(EFS, _super);
35
- function EFS() {
36
- return _super !== null && _super.apply(this, arguments) || this;
37
- }
38
- EFS.prototype.createAccessPoint = function (args, optionsOrCb, cb) {
39
- var command = new CreateAccessPointCommand(args);
32
+ export class EFS extends EFSClient {
33
+ createAccessPoint(args, optionsOrCb, cb) {
34
+ const command = new CreateAccessPointCommand(args);
40
35
  if (typeof optionsOrCb === "function") {
41
36
  this.send(command, optionsOrCb);
42
37
  }
43
38
  else if (typeof cb === "function") {
44
39
  if (typeof optionsOrCb !== "object")
45
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
41
  this.send(command, optionsOrCb || {}, cb);
47
42
  }
48
43
  else {
49
44
  return this.send(command, optionsOrCb);
50
45
  }
51
- };
52
- EFS.prototype.createFileSystem = function (args, optionsOrCb, cb) {
53
- var command = new CreateFileSystemCommand(args);
46
+ }
47
+ createFileSystem(args, optionsOrCb, cb) {
48
+ const command = new CreateFileSystemCommand(args);
54
49
  if (typeof optionsOrCb === "function") {
55
50
  this.send(command, optionsOrCb);
56
51
  }
57
52
  else if (typeof cb === "function") {
58
53
  if (typeof optionsOrCb !== "object")
59
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
55
  this.send(command, optionsOrCb || {}, cb);
61
56
  }
62
57
  else {
63
58
  return this.send(command, optionsOrCb);
64
59
  }
65
- };
66
- EFS.prototype.createMountTarget = function (args, optionsOrCb, cb) {
67
- var command = new CreateMountTargetCommand(args);
60
+ }
61
+ createMountTarget(args, optionsOrCb, cb) {
62
+ const command = new CreateMountTargetCommand(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
- EFS.prototype.createReplicationConfiguration = function (args, optionsOrCb, cb) {
81
- var command = new CreateReplicationConfigurationCommand(args);
74
+ }
75
+ createReplicationConfiguration(args, optionsOrCb, cb) {
76
+ const command = new CreateReplicationConfigurationCommand(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
- EFS.prototype.createTags = function (args, optionsOrCb, cb) {
95
- var command = new CreateTagsCommand(args);
88
+ }
89
+ createTags(args, optionsOrCb, cb) {
90
+ const command = new CreateTagsCommand(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
- EFS.prototype.deleteAccessPoint = function (args, optionsOrCb, cb) {
109
- var command = new DeleteAccessPointCommand(args);
102
+ }
103
+ deleteAccessPoint(args, optionsOrCb, cb) {
104
+ const command = new DeleteAccessPointCommand(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
- EFS.prototype.deleteFileSystem = function (args, optionsOrCb, cb) {
123
- var command = new DeleteFileSystemCommand(args);
116
+ }
117
+ deleteFileSystem(args, optionsOrCb, cb) {
118
+ const command = new DeleteFileSystemCommand(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
- EFS.prototype.deleteFileSystemPolicy = function (args, optionsOrCb, cb) {
137
- var command = new DeleteFileSystemPolicyCommand(args);
130
+ }
131
+ deleteFileSystemPolicy(args, optionsOrCb, cb) {
132
+ const command = new DeleteFileSystemPolicyCommand(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
- EFS.prototype.deleteMountTarget = function (args, optionsOrCb, cb) {
151
- var command = new DeleteMountTargetCommand(args);
144
+ }
145
+ deleteMountTarget(args, optionsOrCb, cb) {
146
+ const command = new DeleteMountTargetCommand(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
- EFS.prototype.deleteReplicationConfiguration = function (args, optionsOrCb, cb) {
165
- var command = new DeleteReplicationConfigurationCommand(args);
158
+ }
159
+ deleteReplicationConfiguration(args, optionsOrCb, cb) {
160
+ const command = new DeleteReplicationConfigurationCommand(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
- EFS.prototype.deleteTags = function (args, optionsOrCb, cb) {
179
- var command = new DeleteTagsCommand(args);
172
+ }
173
+ deleteTags(args, optionsOrCb, cb) {
174
+ const command = new DeleteTagsCommand(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
- EFS.prototype.describeAccessPoints = function (args, optionsOrCb, cb) {
193
- var command = new DescribeAccessPointsCommand(args);
186
+ }
187
+ describeAccessPoints(args, optionsOrCb, cb) {
188
+ const command = new DescribeAccessPointsCommand(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
- EFS.prototype.describeAccountPreferences = function (args, optionsOrCb, cb) {
207
- var command = new DescribeAccountPreferencesCommand(args);
200
+ }
201
+ describeAccountPreferences(args, optionsOrCb, cb) {
202
+ const command = new DescribeAccountPreferencesCommand(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
- EFS.prototype.describeBackupPolicy = function (args, optionsOrCb, cb) {
221
- var command = new DescribeBackupPolicyCommand(args);
214
+ }
215
+ describeBackupPolicy(args, optionsOrCb, cb) {
216
+ const command = new DescribeBackupPolicyCommand(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
- EFS.prototype.describeFileSystemPolicy = function (args, optionsOrCb, cb) {
235
- var command = new DescribeFileSystemPolicyCommand(args);
228
+ }
229
+ describeFileSystemPolicy(args, optionsOrCb, cb) {
230
+ const command = new DescribeFileSystemPolicyCommand(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
- EFS.prototype.describeFileSystems = function (args, optionsOrCb, cb) {
249
- var command = new DescribeFileSystemsCommand(args);
242
+ }
243
+ describeFileSystems(args, optionsOrCb, cb) {
244
+ const command = new DescribeFileSystemsCommand(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
- EFS.prototype.describeLifecycleConfiguration = function (args, optionsOrCb, cb) {
263
- var command = new DescribeLifecycleConfigurationCommand(args);
256
+ }
257
+ describeLifecycleConfiguration(args, optionsOrCb, cb) {
258
+ const command = new DescribeLifecycleConfigurationCommand(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
- EFS.prototype.describeMountTargets = function (args, optionsOrCb, cb) {
277
- var command = new DescribeMountTargetsCommand(args);
270
+ }
271
+ describeMountTargets(args, optionsOrCb, cb) {
272
+ const command = new DescribeMountTargetsCommand(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
- EFS.prototype.describeMountTargetSecurityGroups = function (args, optionsOrCb, cb) {
291
- var command = new DescribeMountTargetSecurityGroupsCommand(args);
284
+ }
285
+ describeMountTargetSecurityGroups(args, optionsOrCb, cb) {
286
+ const command = new DescribeMountTargetSecurityGroupsCommand(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
- EFS.prototype.describeReplicationConfigurations = function (args, optionsOrCb, cb) {
305
- var command = new DescribeReplicationConfigurationsCommand(args);
298
+ }
299
+ describeReplicationConfigurations(args, optionsOrCb, cb) {
300
+ const command = new DescribeReplicationConfigurationsCommand(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
- EFS.prototype.describeTags = function (args, optionsOrCb, cb) {
319
- var command = new DescribeTagsCommand(args);
312
+ }
313
+ describeTags(args, optionsOrCb, cb) {
314
+ const command = new DescribeTagsCommand(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
- EFS.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
333
- var command = new ListTagsForResourceCommand(args);
326
+ }
327
+ listTagsForResource(args, optionsOrCb, cb) {
328
+ const command = new ListTagsForResourceCommand(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
- EFS.prototype.modifyMountTargetSecurityGroups = function (args, optionsOrCb, cb) {
347
- var command = new ModifyMountTargetSecurityGroupsCommand(args);
340
+ }
341
+ modifyMountTargetSecurityGroups(args, optionsOrCb, cb) {
342
+ const command = new ModifyMountTargetSecurityGroupsCommand(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
- EFS.prototype.putAccountPreferences = function (args, optionsOrCb, cb) {
361
- var command = new PutAccountPreferencesCommand(args);
354
+ }
355
+ putAccountPreferences(args, optionsOrCb, cb) {
356
+ const command = new PutAccountPreferencesCommand(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
- EFS.prototype.putBackupPolicy = function (args, optionsOrCb, cb) {
375
- var command = new PutBackupPolicyCommand(args);
368
+ }
369
+ putBackupPolicy(args, optionsOrCb, cb) {
370
+ const command = new PutBackupPolicyCommand(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
- EFS.prototype.putFileSystemPolicy = function (args, optionsOrCb, cb) {
389
- var command = new PutFileSystemPolicyCommand(args);
382
+ }
383
+ putFileSystemPolicy(args, optionsOrCb, cb) {
384
+ const command = new PutFileSystemPolicyCommand(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
- EFS.prototype.putLifecycleConfiguration = function (args, optionsOrCb, cb) {
403
- var command = new PutLifecycleConfigurationCommand(args);
396
+ }
397
+ putLifecycleConfiguration(args, optionsOrCb, cb) {
398
+ const command = new PutLifecycleConfigurationCommand(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
- EFS.prototype.tagResource = function (args, optionsOrCb, cb) {
417
- var command = new TagResourceCommand(args);
410
+ }
411
+ tagResource(args, optionsOrCb, cb) {
412
+ const command = new TagResourceCommand(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
- EFS.prototype.untagResource = function (args, optionsOrCb, cb) {
431
- var command = new UntagResourceCommand(args);
424
+ }
425
+ untagResource(args, optionsOrCb, cb) {
426
+ const command = new UntagResourceCommand(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
- EFS.prototype.updateFileSystem = function (args, optionsOrCb, cb) {
445
- var command = new UpdateFileSystemCommand(args);
438
+ }
439
+ updateFileSystem(args, optionsOrCb, cb) {
440
+ const command = new UpdateFileSystemCommand(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
- return EFS;
459
- }(EFSClient));
460
- export { EFS };
452
+ }
453
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var EFSClient = (function (_super) {
13
- __extends(EFSClient, _super);
14
- function EFSClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class EFSClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- EFSClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return EFSClient;
38
- }(__Client));
39
- export { EFSClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }