@aws-sdk/client-efs 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/EFS.js +129 -122
  4. package/dist-es/EFSClient.js +28 -22
  5. package/dist-es/commands/CreateAccessPointCommand.js +28 -21
  6. package/dist-es/commands/CreateFileSystemCommand.js +28 -21
  7. package/dist-es/commands/CreateMountTargetCommand.js +28 -21
  8. package/dist-es/commands/CreateReplicationConfigurationCommand.js +28 -21
  9. package/dist-es/commands/CreateTagsCommand.js +29 -22
  10. package/dist-es/commands/DeleteAccessPointCommand.js +29 -22
  11. package/dist-es/commands/DeleteFileSystemCommand.js +29 -22
  12. package/dist-es/commands/DeleteFileSystemPolicyCommand.js +29 -22
  13. package/dist-es/commands/DeleteMountTargetCommand.js +29 -22
  14. package/dist-es/commands/DeleteReplicationConfigurationCommand.js +29 -22
  15. package/dist-es/commands/DeleteTagsCommand.js +29 -22
  16. package/dist-es/commands/DescribeAccessPointsCommand.js +28 -21
  17. package/dist-es/commands/DescribeAccountPreferencesCommand.js +28 -21
  18. package/dist-es/commands/DescribeBackupPolicyCommand.js +28 -21
  19. package/dist-es/commands/DescribeFileSystemPolicyCommand.js +28 -21
  20. package/dist-es/commands/DescribeFileSystemsCommand.js +28 -21
  21. package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +28 -21
  22. package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +28 -21
  23. package/dist-es/commands/DescribeMountTargetsCommand.js +28 -21
  24. package/dist-es/commands/DescribeReplicationConfigurationsCommand.js +28 -21
  25. package/dist-es/commands/DescribeTagsCommand.js +28 -21
  26. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  27. package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +29 -22
  28. package/dist-es/commands/PutAccountPreferencesCommand.js +28 -21
  29. package/dist-es/commands/PutBackupPolicyCommand.js +28 -21
  30. package/dist-es/commands/PutFileSystemPolicyCommand.js +28 -21
  31. package/dist-es/commands/PutLifecycleConfigurationCommand.js +28 -21
  32. package/dist-es/commands/TagResourceCommand.js +29 -22
  33. package/dist-es/commands/UntagResourceCommand.js +29 -22
  34. package/dist-es/commands/UpdateFileSystemCommand.js +28 -21
  35. package/dist-es/endpoints.js +8 -8
  36. package/dist-es/models/EFSServiceException.js +10 -5
  37. package/dist-es/models/models_0.js +449 -560
  38. package/dist-es/pagination/DescribeAccessPointsPaginator.js +68 -25
  39. package/dist-es/pagination/DescribeFileSystemsPaginator.js +68 -25
  40. package/dist-es/pagination/DescribeTagsPaginator.js +68 -25
  41. package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
  42. package/dist-es/protocols/Aws_restJson1.js +3544 -2632
  43. package/dist-es/runtimeConfig.browser.js +12 -26
  44. package/dist-es/runtimeConfig.js +12 -30
  45. package/dist-es/runtimeConfig.native.js +5 -8
  46. package/dist-es/runtimeConfig.shared.js +11 -8
  47. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-efs
@@ -2975,10 +2975,10 @@ const deserializeAws_restJson1Tags = (output, context) => {
2975
2975
  return retVal;
2976
2976
  };
2977
2977
  const deserializeMetadata = (output) => {
2978
- var _a;
2978
+ var _a, _b;
2979
2979
  return ({
2980
2980
  httpStatusCode: output.statusCode,
2981
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2981
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2982
2982
  extendedRequestId: output.headers["x-amz-id-2"],
2983
2983
  cfId: output.headers["x-amz-cf-id"],
2984
2984
  });
package/dist-es/EFS.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateAccessPointCommand, } from "./commands/CreateAccessPointCommand";
2
3
  import { CreateFileSystemCommand, } from "./commands/CreateFileSystemCommand";
3
4
  import { CreateMountTargetCommand, } from "./commands/CreateMountTargetCommand";
@@ -29,425 +30,431 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
29
30
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
31
  import { UpdateFileSystemCommand, } from "./commands/UpdateFileSystemCommand";
31
32
  import { EFSClient } from "./EFSClient";
32
- export class EFS extends EFSClient {
33
- createAccessPoint(args, optionsOrCb, cb) {
34
- const command = new CreateAccessPointCommand(args);
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);
35
40
  if (typeof optionsOrCb === "function") {
36
41
  this.send(command, optionsOrCb);
37
42
  }
38
43
  else if (typeof cb === "function") {
39
44
  if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
46
  this.send(command, optionsOrCb || {}, cb);
42
47
  }
43
48
  else {
44
49
  return this.send(command, optionsOrCb);
45
50
  }
46
- }
47
- createFileSystem(args, optionsOrCb, cb) {
48
- const command = new CreateFileSystemCommand(args);
51
+ };
52
+ EFS.prototype.createFileSystem = function (args, optionsOrCb, cb) {
53
+ var command = new CreateFileSystemCommand(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
- createMountTarget(args, optionsOrCb, cb) {
62
- const command = new CreateMountTargetCommand(args);
65
+ };
66
+ EFS.prototype.createMountTarget = function (args, optionsOrCb, cb) {
67
+ var command = new CreateMountTargetCommand(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
- createReplicationConfiguration(args, optionsOrCb, cb) {
76
- const command = new CreateReplicationConfigurationCommand(args);
79
+ };
80
+ EFS.prototype.createReplicationConfiguration = function (args, optionsOrCb, cb) {
81
+ var command = new CreateReplicationConfigurationCommand(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
- createTags(args, optionsOrCb, cb) {
90
- const command = new CreateTagsCommand(args);
93
+ };
94
+ EFS.prototype.createTags = function (args, optionsOrCb, cb) {
95
+ var command = new CreateTagsCommand(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
- deleteAccessPoint(args, optionsOrCb, cb) {
104
- const command = new DeleteAccessPointCommand(args);
107
+ };
108
+ EFS.prototype.deleteAccessPoint = function (args, optionsOrCb, cb) {
109
+ var command = new DeleteAccessPointCommand(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
- deleteFileSystem(args, optionsOrCb, cb) {
118
- const command = new DeleteFileSystemCommand(args);
121
+ };
122
+ EFS.prototype.deleteFileSystem = function (args, optionsOrCb, cb) {
123
+ var command = new DeleteFileSystemCommand(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
- deleteFileSystemPolicy(args, optionsOrCb, cb) {
132
- const command = new DeleteFileSystemPolicyCommand(args);
135
+ };
136
+ EFS.prototype.deleteFileSystemPolicy = function (args, optionsOrCb, cb) {
137
+ var command = new DeleteFileSystemPolicyCommand(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
- deleteMountTarget(args, optionsOrCb, cb) {
146
- const command = new DeleteMountTargetCommand(args);
149
+ };
150
+ EFS.prototype.deleteMountTarget = function (args, optionsOrCb, cb) {
151
+ var command = new DeleteMountTargetCommand(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
- deleteReplicationConfiguration(args, optionsOrCb, cb) {
160
- const command = new DeleteReplicationConfigurationCommand(args);
163
+ };
164
+ EFS.prototype.deleteReplicationConfiguration = function (args, optionsOrCb, cb) {
165
+ var command = new DeleteReplicationConfigurationCommand(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
- deleteTags(args, optionsOrCb, cb) {
174
- const command = new DeleteTagsCommand(args);
177
+ };
178
+ EFS.prototype.deleteTags = function (args, optionsOrCb, cb) {
179
+ var command = new DeleteTagsCommand(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
- describeAccessPoints(args, optionsOrCb, cb) {
188
- const command = new DescribeAccessPointsCommand(args);
191
+ };
192
+ EFS.prototype.describeAccessPoints = function (args, optionsOrCb, cb) {
193
+ var command = new DescribeAccessPointsCommand(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
- describeAccountPreferences(args, optionsOrCb, cb) {
202
- const command = new DescribeAccountPreferencesCommand(args);
205
+ };
206
+ EFS.prototype.describeAccountPreferences = function (args, optionsOrCb, cb) {
207
+ var command = new DescribeAccountPreferencesCommand(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
- describeBackupPolicy(args, optionsOrCb, cb) {
216
- const command = new DescribeBackupPolicyCommand(args);
219
+ };
220
+ EFS.prototype.describeBackupPolicy = function (args, optionsOrCb, cb) {
221
+ var command = new DescribeBackupPolicyCommand(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
- describeFileSystemPolicy(args, optionsOrCb, cb) {
230
- const command = new DescribeFileSystemPolicyCommand(args);
233
+ };
234
+ EFS.prototype.describeFileSystemPolicy = function (args, optionsOrCb, cb) {
235
+ var command = new DescribeFileSystemPolicyCommand(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
- describeFileSystems(args, optionsOrCb, cb) {
244
- const command = new DescribeFileSystemsCommand(args);
247
+ };
248
+ EFS.prototype.describeFileSystems = function (args, optionsOrCb, cb) {
249
+ var command = new DescribeFileSystemsCommand(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
- describeLifecycleConfiguration(args, optionsOrCb, cb) {
258
- const command = new DescribeLifecycleConfigurationCommand(args);
261
+ };
262
+ EFS.prototype.describeLifecycleConfiguration = function (args, optionsOrCb, cb) {
263
+ var command = new DescribeLifecycleConfigurationCommand(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
- describeMountTargets(args, optionsOrCb, cb) {
272
- const command = new DescribeMountTargetsCommand(args);
275
+ };
276
+ EFS.prototype.describeMountTargets = function (args, optionsOrCb, cb) {
277
+ var command = new DescribeMountTargetsCommand(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
- describeMountTargetSecurityGroups(args, optionsOrCb, cb) {
286
- const command = new DescribeMountTargetSecurityGroupsCommand(args);
289
+ };
290
+ EFS.prototype.describeMountTargetSecurityGroups = function (args, optionsOrCb, cb) {
291
+ var command = new DescribeMountTargetSecurityGroupsCommand(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
- describeReplicationConfigurations(args, optionsOrCb, cb) {
300
- const command = new DescribeReplicationConfigurationsCommand(args);
303
+ };
304
+ EFS.prototype.describeReplicationConfigurations = function (args, optionsOrCb, cb) {
305
+ var command = new DescribeReplicationConfigurationsCommand(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
- describeTags(args, optionsOrCb, cb) {
314
- const command = new DescribeTagsCommand(args);
317
+ };
318
+ EFS.prototype.describeTags = function (args, optionsOrCb, cb) {
319
+ var command = new DescribeTagsCommand(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
- listTagsForResource(args, optionsOrCb, cb) {
328
- const command = new ListTagsForResourceCommand(args);
331
+ };
332
+ EFS.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
333
+ var command = new ListTagsForResourceCommand(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
- modifyMountTargetSecurityGroups(args, optionsOrCb, cb) {
342
- const command = new ModifyMountTargetSecurityGroupsCommand(args);
345
+ };
346
+ EFS.prototype.modifyMountTargetSecurityGroups = function (args, optionsOrCb, cb) {
347
+ var command = new ModifyMountTargetSecurityGroupsCommand(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
- putAccountPreferences(args, optionsOrCb, cb) {
356
- const command = new PutAccountPreferencesCommand(args);
359
+ };
360
+ EFS.prototype.putAccountPreferences = function (args, optionsOrCb, cb) {
361
+ var command = new PutAccountPreferencesCommand(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
- putBackupPolicy(args, optionsOrCb, cb) {
370
- const command = new PutBackupPolicyCommand(args);
373
+ };
374
+ EFS.prototype.putBackupPolicy = function (args, optionsOrCb, cb) {
375
+ var command = new PutBackupPolicyCommand(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
- putFileSystemPolicy(args, optionsOrCb, cb) {
384
- const command = new PutFileSystemPolicyCommand(args);
387
+ };
388
+ EFS.prototype.putFileSystemPolicy = function (args, optionsOrCb, cb) {
389
+ var command = new PutFileSystemPolicyCommand(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
- putLifecycleConfiguration(args, optionsOrCb, cb) {
398
- const command = new PutLifecycleConfigurationCommand(args);
401
+ };
402
+ EFS.prototype.putLifecycleConfiguration = function (args, optionsOrCb, cb) {
403
+ var command = new PutLifecycleConfigurationCommand(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
- tagResource(args, optionsOrCb, cb) {
412
- const command = new TagResourceCommand(args);
415
+ };
416
+ EFS.prototype.tagResource = function (args, optionsOrCb, cb) {
417
+ var command = new TagResourceCommand(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
- untagResource(args, optionsOrCb, cb) {
426
- const command = new UntagResourceCommand(args);
429
+ };
430
+ EFS.prototype.untagResource = function (args, optionsOrCb, cb) {
431
+ var command = new UntagResourceCommand(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
- updateFileSystem(args, optionsOrCb, cb) {
440
- const command = new UpdateFileSystemCommand(args);
443
+ };
444
+ EFS.prototype.updateFileSystem = function (args, optionsOrCb, cb) {
445
+ var command = new UpdateFileSystemCommand(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
- }
457
+ };
458
+ return EFS;
459
+ }(EFSClient));
460
+ export { EFS };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class 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));
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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ EFSClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return EFSClient;
38
+ }(__Client));
39
+ export { EFSClient };