@aws-sdk/client-fsx 3.180.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 (102) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/FSx.js +60 -0
  3. package/dist-cjs/commands/CreateFileCacheCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteFileCacheCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeFileCachesCommand.js +36 -0
  6. package/dist-cjs/commands/UpdateFileCacheCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +154 -27
  9. package/dist-cjs/pagination/DescribeFileCachesPaginator.js +36 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_json1_1.js +587 -39
  12. package/dist-es/FSx.js +209 -156
  13. package/dist-es/FSxClient.js +22 -28
  14. package/dist-es/commands/AssociateFileSystemAliasesCommand.js +21 -28
  15. package/dist-es/commands/CancelDataRepositoryTaskCommand.js +21 -28
  16. package/dist-es/commands/CopyBackupCommand.js +21 -28
  17. package/dist-es/commands/CreateBackupCommand.js +21 -28
  18. package/dist-es/commands/CreateDataRepositoryAssociationCommand.js +21 -28
  19. package/dist-es/commands/CreateDataRepositoryTaskCommand.js +21 -28
  20. package/dist-es/commands/CreateFileCacheCommand.js +32 -0
  21. package/dist-es/commands/CreateFileSystemCommand.js +21 -28
  22. package/dist-es/commands/CreateFileSystemFromBackupCommand.js +21 -28
  23. package/dist-es/commands/CreateSnapshotCommand.js +21 -28
  24. package/dist-es/commands/CreateStorageVirtualMachineCommand.js +21 -28
  25. package/dist-es/commands/CreateVolumeCommand.js +21 -28
  26. package/dist-es/commands/CreateVolumeFromBackupCommand.js +21 -28
  27. package/dist-es/commands/DeleteBackupCommand.js +21 -28
  28. package/dist-es/commands/DeleteDataRepositoryAssociationCommand.js +21 -28
  29. package/dist-es/commands/DeleteFileCacheCommand.js +32 -0
  30. package/dist-es/commands/DeleteFileSystemCommand.js +21 -28
  31. package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
  32. package/dist-es/commands/DeleteStorageVirtualMachineCommand.js +21 -28
  33. package/dist-es/commands/DeleteVolumeCommand.js +21 -28
  34. package/dist-es/commands/DescribeBackupsCommand.js +21 -28
  35. package/dist-es/commands/DescribeDataRepositoryAssociationsCommand.js +21 -28
  36. package/dist-es/commands/DescribeDataRepositoryTasksCommand.js +21 -28
  37. package/dist-es/commands/DescribeFileCachesCommand.js +32 -0
  38. package/dist-es/commands/DescribeFileSystemAliasesCommand.js +21 -28
  39. package/dist-es/commands/DescribeFileSystemsCommand.js +21 -28
  40. package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
  41. package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js +21 -28
  42. package/dist-es/commands/DescribeVolumesCommand.js +21 -28
  43. package/dist-es/commands/DisassociateFileSystemAliasesCommand.js +21 -28
  44. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  45. package/dist-es/commands/ReleaseFileSystemNfsV3LocksCommand.js +21 -28
  46. package/dist-es/commands/RestoreVolumeFromSnapshotCommand.js +21 -28
  47. package/dist-es/commands/TagResourceCommand.js +21 -28
  48. package/dist-es/commands/UntagResourceCommand.js +21 -28
  49. package/dist-es/commands/UpdateDataRepositoryAssociationCommand.js +21 -28
  50. package/dist-es/commands/UpdateFileCacheCommand.js +32 -0
  51. package/dist-es/commands/UpdateFileSystemCommand.js +21 -28
  52. package/dist-es/commands/UpdateSnapshotCommand.js +21 -28
  53. package/dist-es/commands/UpdateStorageVirtualMachineCommand.js +21 -28
  54. package/dist-es/commands/UpdateVolumeCommand.js +21 -28
  55. package/dist-es/commands/index.js +4 -0
  56. package/dist-es/endpoints.js +8 -8
  57. package/dist-es/models/FSxServiceException.js +5 -10
  58. package/dist-es/models/models_0.js +1043 -617
  59. package/dist-es/pagination/DescribeBackupsPaginator.js +25 -68
  60. package/dist-es/pagination/DescribeDataRepositoryAssociationsPaginator.js +25 -68
  61. package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js +25 -68
  62. package/dist-es/pagination/DescribeFileCachesPaginator.js +32 -0
  63. package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js +25 -68
  64. package/dist-es/pagination/DescribeFileSystemsPaginator.js +25 -68
  65. package/dist-es/pagination/DescribeSnapshotsPaginator.js +25 -68
  66. package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js +25 -68
  67. package/dist-es/pagination/DescribeVolumesPaginator.js +25 -68
  68. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  69. package/dist-es/pagination/index.js +1 -0
  70. package/dist-es/protocols/Aws_json1_1.js +3959 -3957
  71. package/dist-es/runtimeConfig.browser.js +26 -12
  72. package/dist-es/runtimeConfig.js +30 -12
  73. package/dist-es/runtimeConfig.native.js +8 -5
  74. package/dist-es/runtimeConfig.shared.js +8 -11
  75. package/dist-types/FSx.d.ts +118 -26
  76. package/dist-types/FSxClient.d.ts +6 -2
  77. package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +6 -0
  78. package/dist-types/commands/CreateFileCacheCommand.d.ts +58 -0
  79. package/dist-types/commands/CreateFileSystemCommand.d.ts +0 -10
  80. package/dist-types/commands/DeleteFileCacheCommand.d.ts +48 -0
  81. package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +13 -11
  82. package/dist-types/commands/DescribeDataRepositoryTasksCommand.d.ts +4 -4
  83. package/dist-types/commands/DescribeFileCachesCommand.d.ts +65 -0
  84. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +0 -1
  85. package/dist-types/commands/UpdateFileCacheCommand.d.ts +36 -0
  86. package/dist-types/commands/index.d.ts +4 -0
  87. package/dist-types/models/models_0.d.ts +964 -125
  88. package/dist-types/pagination/DescribeFileCachesPaginator.d.ts +4 -0
  89. package/dist-types/pagination/index.d.ts +1 -0
  90. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  91. package/dist-types/ts3.4/FSx.d.ts +68 -0
  92. package/dist-types/ts3.4/FSxClient.d.ts +24 -0
  93. package/dist-types/ts3.4/commands/CreateFileCacheCommand.d.ts +35 -0
  94. package/dist-types/ts3.4/commands/DeleteFileCacheCommand.d.ts +35 -0
  95. package/dist-types/ts3.4/commands/DescribeFileCachesCommand.d.ts +36 -0
  96. package/dist-types/ts3.4/commands/UpdateFileCacheCommand.d.ts +35 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +239 -25
  99. package/dist-types/ts3.4/pagination/DescribeFileCachesPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  101. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  102. package/package.json +33 -33
package/dist-es/FSx.js CHANGED
@@ -1,10 +1,10 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateFileSystemAliasesCommand, } from "./commands/AssociateFileSystemAliasesCommand";
3
2
  import { CancelDataRepositoryTaskCommand, } from "./commands/CancelDataRepositoryTaskCommand";
4
3
  import { CopyBackupCommand } from "./commands/CopyBackupCommand";
5
4
  import { CreateBackupCommand, } from "./commands/CreateBackupCommand";
6
5
  import { CreateDataRepositoryAssociationCommand, } from "./commands/CreateDataRepositoryAssociationCommand";
7
6
  import { CreateDataRepositoryTaskCommand, } from "./commands/CreateDataRepositoryTaskCommand";
7
+ import { CreateFileCacheCommand, } from "./commands/CreateFileCacheCommand";
8
8
  import { CreateFileSystemCommand, } from "./commands/CreateFileSystemCommand";
9
9
  import { CreateFileSystemFromBackupCommand, } from "./commands/CreateFileSystemFromBackupCommand";
10
10
  import { CreateSnapshotCommand, } from "./commands/CreateSnapshotCommand";
@@ -13,6 +13,7 @@ import { CreateVolumeCommand, } from "./commands/CreateVolumeCommand";
13
13
  import { CreateVolumeFromBackupCommand, } from "./commands/CreateVolumeFromBackupCommand";
14
14
  import { DeleteBackupCommand, } from "./commands/DeleteBackupCommand";
15
15
  import { DeleteDataRepositoryAssociationCommand, } from "./commands/DeleteDataRepositoryAssociationCommand";
16
+ import { DeleteFileCacheCommand, } from "./commands/DeleteFileCacheCommand";
16
17
  import { DeleteFileSystemCommand, } from "./commands/DeleteFileSystemCommand";
17
18
  import { DeleteSnapshotCommand, } from "./commands/DeleteSnapshotCommand";
18
19
  import { DeleteStorageVirtualMachineCommand, } from "./commands/DeleteStorageVirtualMachineCommand";
@@ -20,6 +21,7 @@ import { DeleteVolumeCommand, } from "./commands/DeleteVolumeCommand";
20
21
  import { DescribeBackupsCommand, } from "./commands/DescribeBackupsCommand";
21
22
  import { DescribeDataRepositoryAssociationsCommand, } from "./commands/DescribeDataRepositoryAssociationsCommand";
22
23
  import { DescribeDataRepositoryTasksCommand, } from "./commands/DescribeDataRepositoryTasksCommand";
24
+ import { DescribeFileCachesCommand, } from "./commands/DescribeFileCachesCommand";
23
25
  import { DescribeFileSystemAliasesCommand, } from "./commands/DescribeFileSystemAliasesCommand";
24
26
  import { DescribeFileSystemsCommand, } from "./commands/DescribeFileSystemsCommand";
25
27
  import { DescribeSnapshotsCommand, } from "./commands/DescribeSnapshotsCommand";
@@ -32,534 +34,585 @@ import { RestoreVolumeFromSnapshotCommand, } from "./commands/RestoreVolumeFromS
32
34
  import { TagResourceCommand } from "./commands/TagResourceCommand";
33
35
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
34
36
  import { UpdateDataRepositoryAssociationCommand, } from "./commands/UpdateDataRepositoryAssociationCommand";
37
+ import { UpdateFileCacheCommand, } from "./commands/UpdateFileCacheCommand";
35
38
  import { UpdateFileSystemCommand, } from "./commands/UpdateFileSystemCommand";
36
39
  import { UpdateSnapshotCommand, } from "./commands/UpdateSnapshotCommand";
37
40
  import { UpdateStorageVirtualMachineCommand, } from "./commands/UpdateStorageVirtualMachineCommand";
38
41
  import { UpdateVolumeCommand, } from "./commands/UpdateVolumeCommand";
39
42
  import { FSxClient } from "./FSxClient";
40
- var FSx = (function (_super) {
41
- __extends(FSx, _super);
42
- function FSx() {
43
- return _super !== null && _super.apply(this, arguments) || this;
43
+ export class FSx extends FSxClient {
44
+ associateFileSystemAliases(args, optionsOrCb, cb) {
45
+ const command = new AssociateFileSystemAliasesCommand(args);
46
+ if (typeof optionsOrCb === "function") {
47
+ this.send(command, optionsOrCb);
48
+ }
49
+ else if (typeof cb === "function") {
50
+ if (typeof optionsOrCb !== "object")
51
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
+ this.send(command, optionsOrCb || {}, cb);
53
+ }
54
+ else {
55
+ return this.send(command, optionsOrCb);
56
+ }
57
+ }
58
+ cancelDataRepositoryTask(args, optionsOrCb, cb) {
59
+ const command = new CancelDataRepositoryTaskCommand(args);
60
+ if (typeof optionsOrCb === "function") {
61
+ this.send(command, optionsOrCb);
62
+ }
63
+ else if (typeof cb === "function") {
64
+ if (typeof optionsOrCb !== "object")
65
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
+ this.send(command, optionsOrCb || {}, cb);
67
+ }
68
+ else {
69
+ return this.send(command, optionsOrCb);
70
+ }
71
+ }
72
+ copyBackup(args, optionsOrCb, cb) {
73
+ const command = new CopyBackupCommand(args);
74
+ if (typeof optionsOrCb === "function") {
75
+ this.send(command, optionsOrCb);
76
+ }
77
+ else if (typeof cb === "function") {
78
+ if (typeof optionsOrCb !== "object")
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ this.send(command, optionsOrCb || {}, cb);
81
+ }
82
+ else {
83
+ return this.send(command, optionsOrCb);
84
+ }
85
+ }
86
+ createBackup(args, optionsOrCb, cb) {
87
+ const command = new CreateBackupCommand(args);
88
+ if (typeof optionsOrCb === "function") {
89
+ this.send(command, optionsOrCb);
90
+ }
91
+ else if (typeof cb === "function") {
92
+ if (typeof optionsOrCb !== "object")
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
+ this.send(command, optionsOrCb || {}, cb);
95
+ }
96
+ else {
97
+ return this.send(command, optionsOrCb);
98
+ }
44
99
  }
45
- FSx.prototype.associateFileSystemAliases = function (args, optionsOrCb, cb) {
46
- var command = new AssociateFileSystemAliasesCommand(args);
100
+ createDataRepositoryAssociation(args, optionsOrCb, cb) {
101
+ const command = new CreateDataRepositoryAssociationCommand(args);
47
102
  if (typeof optionsOrCb === "function") {
48
103
  this.send(command, optionsOrCb);
49
104
  }
50
105
  else if (typeof cb === "function") {
51
106
  if (typeof optionsOrCb !== "object")
52
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
53
108
  this.send(command, optionsOrCb || {}, cb);
54
109
  }
55
110
  else {
56
111
  return this.send(command, optionsOrCb);
57
112
  }
58
- };
59
- FSx.prototype.cancelDataRepositoryTask = function (args, optionsOrCb, cb) {
60
- var command = new CancelDataRepositoryTaskCommand(args);
113
+ }
114
+ createDataRepositoryTask(args, optionsOrCb, cb) {
115
+ const command = new CreateDataRepositoryTaskCommand(args);
61
116
  if (typeof optionsOrCb === "function") {
62
117
  this.send(command, optionsOrCb);
63
118
  }
64
119
  else if (typeof cb === "function") {
65
120
  if (typeof optionsOrCb !== "object")
66
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
122
  this.send(command, optionsOrCb || {}, cb);
68
123
  }
69
124
  else {
70
125
  return this.send(command, optionsOrCb);
71
126
  }
72
- };
73
- FSx.prototype.copyBackup = function (args, optionsOrCb, cb) {
74
- var command = new CopyBackupCommand(args);
127
+ }
128
+ createFileCache(args, optionsOrCb, cb) {
129
+ const command = new CreateFileCacheCommand(args);
75
130
  if (typeof optionsOrCb === "function") {
76
131
  this.send(command, optionsOrCb);
77
132
  }
78
133
  else if (typeof cb === "function") {
79
134
  if (typeof optionsOrCb !== "object")
80
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
136
  this.send(command, optionsOrCb || {}, cb);
82
137
  }
83
138
  else {
84
139
  return this.send(command, optionsOrCb);
85
140
  }
86
- };
87
- FSx.prototype.createBackup = function (args, optionsOrCb, cb) {
88
- var command = new CreateBackupCommand(args);
141
+ }
142
+ createFileSystem(args, optionsOrCb, cb) {
143
+ const command = new CreateFileSystemCommand(args);
89
144
  if (typeof optionsOrCb === "function") {
90
145
  this.send(command, optionsOrCb);
91
146
  }
92
147
  else if (typeof cb === "function") {
93
148
  if (typeof optionsOrCb !== "object")
94
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
150
  this.send(command, optionsOrCb || {}, cb);
96
151
  }
97
152
  else {
98
153
  return this.send(command, optionsOrCb);
99
154
  }
100
- };
101
- FSx.prototype.createDataRepositoryAssociation = function (args, optionsOrCb, cb) {
102
- var command = new CreateDataRepositoryAssociationCommand(args);
155
+ }
156
+ createFileSystemFromBackup(args, optionsOrCb, cb) {
157
+ const command = new CreateFileSystemFromBackupCommand(args);
103
158
  if (typeof optionsOrCb === "function") {
104
159
  this.send(command, optionsOrCb);
105
160
  }
106
161
  else if (typeof cb === "function") {
107
162
  if (typeof optionsOrCb !== "object")
108
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
164
  this.send(command, optionsOrCb || {}, cb);
110
165
  }
111
166
  else {
112
167
  return this.send(command, optionsOrCb);
113
168
  }
114
- };
115
- FSx.prototype.createDataRepositoryTask = function (args, optionsOrCb, cb) {
116
- var command = new CreateDataRepositoryTaskCommand(args);
169
+ }
170
+ createSnapshot(args, optionsOrCb, cb) {
171
+ const command = new CreateSnapshotCommand(args);
117
172
  if (typeof optionsOrCb === "function") {
118
173
  this.send(command, optionsOrCb);
119
174
  }
120
175
  else if (typeof cb === "function") {
121
176
  if (typeof optionsOrCb !== "object")
122
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
178
  this.send(command, optionsOrCb || {}, cb);
124
179
  }
125
180
  else {
126
181
  return this.send(command, optionsOrCb);
127
182
  }
128
- };
129
- FSx.prototype.createFileSystem = function (args, optionsOrCb, cb) {
130
- var command = new CreateFileSystemCommand(args);
183
+ }
184
+ createStorageVirtualMachine(args, optionsOrCb, cb) {
185
+ const command = new CreateStorageVirtualMachineCommand(args);
131
186
  if (typeof optionsOrCb === "function") {
132
187
  this.send(command, optionsOrCb);
133
188
  }
134
189
  else if (typeof cb === "function") {
135
190
  if (typeof optionsOrCb !== "object")
136
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
192
  this.send(command, optionsOrCb || {}, cb);
138
193
  }
139
194
  else {
140
195
  return this.send(command, optionsOrCb);
141
196
  }
142
- };
143
- FSx.prototype.createFileSystemFromBackup = function (args, optionsOrCb, cb) {
144
- var command = new CreateFileSystemFromBackupCommand(args);
197
+ }
198
+ createVolume(args, optionsOrCb, cb) {
199
+ const command = new CreateVolumeCommand(args);
145
200
  if (typeof optionsOrCb === "function") {
146
201
  this.send(command, optionsOrCb);
147
202
  }
148
203
  else if (typeof cb === "function") {
149
204
  if (typeof optionsOrCb !== "object")
150
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
206
  this.send(command, optionsOrCb || {}, cb);
152
207
  }
153
208
  else {
154
209
  return this.send(command, optionsOrCb);
155
210
  }
156
- };
157
- FSx.prototype.createSnapshot = function (args, optionsOrCb, cb) {
158
- var command = new CreateSnapshotCommand(args);
211
+ }
212
+ createVolumeFromBackup(args, optionsOrCb, cb) {
213
+ const command = new CreateVolumeFromBackupCommand(args);
159
214
  if (typeof optionsOrCb === "function") {
160
215
  this.send(command, optionsOrCb);
161
216
  }
162
217
  else if (typeof cb === "function") {
163
218
  if (typeof optionsOrCb !== "object")
164
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
220
  this.send(command, optionsOrCb || {}, cb);
166
221
  }
167
222
  else {
168
223
  return this.send(command, optionsOrCb);
169
224
  }
170
- };
171
- FSx.prototype.createStorageVirtualMachine = function (args, optionsOrCb, cb) {
172
- var command = new CreateStorageVirtualMachineCommand(args);
225
+ }
226
+ deleteBackup(args, optionsOrCb, cb) {
227
+ const command = new DeleteBackupCommand(args);
173
228
  if (typeof optionsOrCb === "function") {
174
229
  this.send(command, optionsOrCb);
175
230
  }
176
231
  else if (typeof cb === "function") {
177
232
  if (typeof optionsOrCb !== "object")
178
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179
234
  this.send(command, optionsOrCb || {}, cb);
180
235
  }
181
236
  else {
182
237
  return this.send(command, optionsOrCb);
183
238
  }
184
- };
185
- FSx.prototype.createVolume = function (args, optionsOrCb, cb) {
186
- var command = new CreateVolumeCommand(args);
239
+ }
240
+ deleteDataRepositoryAssociation(args, optionsOrCb, cb) {
241
+ const command = new DeleteDataRepositoryAssociationCommand(args);
187
242
  if (typeof optionsOrCb === "function") {
188
243
  this.send(command, optionsOrCb);
189
244
  }
190
245
  else if (typeof cb === "function") {
191
246
  if (typeof optionsOrCb !== "object")
192
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
193
248
  this.send(command, optionsOrCb || {}, cb);
194
249
  }
195
250
  else {
196
251
  return this.send(command, optionsOrCb);
197
252
  }
198
- };
199
- FSx.prototype.createVolumeFromBackup = function (args, optionsOrCb, cb) {
200
- var command = new CreateVolumeFromBackupCommand(args);
253
+ }
254
+ deleteFileCache(args, optionsOrCb, cb) {
255
+ const command = new DeleteFileCacheCommand(args);
201
256
  if (typeof optionsOrCb === "function") {
202
257
  this.send(command, optionsOrCb);
203
258
  }
204
259
  else if (typeof cb === "function") {
205
260
  if (typeof optionsOrCb !== "object")
206
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
207
262
  this.send(command, optionsOrCb || {}, cb);
208
263
  }
209
264
  else {
210
265
  return this.send(command, optionsOrCb);
211
266
  }
212
- };
213
- FSx.prototype.deleteBackup = function (args, optionsOrCb, cb) {
214
- var command = new DeleteBackupCommand(args);
267
+ }
268
+ deleteFileSystem(args, optionsOrCb, cb) {
269
+ const command = new DeleteFileSystemCommand(args);
215
270
  if (typeof optionsOrCb === "function") {
216
271
  this.send(command, optionsOrCb);
217
272
  }
218
273
  else if (typeof cb === "function") {
219
274
  if (typeof optionsOrCb !== "object")
220
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
221
276
  this.send(command, optionsOrCb || {}, cb);
222
277
  }
223
278
  else {
224
279
  return this.send(command, optionsOrCb);
225
280
  }
226
- };
227
- FSx.prototype.deleteDataRepositoryAssociation = function (args, optionsOrCb, cb) {
228
- var command = new DeleteDataRepositoryAssociationCommand(args);
281
+ }
282
+ deleteSnapshot(args, optionsOrCb, cb) {
283
+ const command = new DeleteSnapshotCommand(args);
229
284
  if (typeof optionsOrCb === "function") {
230
285
  this.send(command, optionsOrCb);
231
286
  }
232
287
  else if (typeof cb === "function") {
233
288
  if (typeof optionsOrCb !== "object")
234
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
290
  this.send(command, optionsOrCb || {}, cb);
236
291
  }
237
292
  else {
238
293
  return this.send(command, optionsOrCb);
239
294
  }
240
- };
241
- FSx.prototype.deleteFileSystem = function (args, optionsOrCb, cb) {
242
- var command = new DeleteFileSystemCommand(args);
295
+ }
296
+ deleteStorageVirtualMachine(args, optionsOrCb, cb) {
297
+ const command = new DeleteStorageVirtualMachineCommand(args);
243
298
  if (typeof optionsOrCb === "function") {
244
299
  this.send(command, optionsOrCb);
245
300
  }
246
301
  else if (typeof cb === "function") {
247
302
  if (typeof optionsOrCb !== "object")
248
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
304
  this.send(command, optionsOrCb || {}, cb);
250
305
  }
251
306
  else {
252
307
  return this.send(command, optionsOrCb);
253
308
  }
254
- };
255
- FSx.prototype.deleteSnapshot = function (args, optionsOrCb, cb) {
256
- var command = new DeleteSnapshotCommand(args);
309
+ }
310
+ deleteVolume(args, optionsOrCb, cb) {
311
+ const command = new DeleteVolumeCommand(args);
257
312
  if (typeof optionsOrCb === "function") {
258
313
  this.send(command, optionsOrCb);
259
314
  }
260
315
  else if (typeof cb === "function") {
261
316
  if (typeof optionsOrCb !== "object")
262
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
318
  this.send(command, optionsOrCb || {}, cb);
264
319
  }
265
320
  else {
266
321
  return this.send(command, optionsOrCb);
267
322
  }
268
- };
269
- FSx.prototype.deleteStorageVirtualMachine = function (args, optionsOrCb, cb) {
270
- var command = new DeleteStorageVirtualMachineCommand(args);
323
+ }
324
+ describeBackups(args, optionsOrCb, cb) {
325
+ const command = new DescribeBackupsCommand(args);
271
326
  if (typeof optionsOrCb === "function") {
272
327
  this.send(command, optionsOrCb);
273
328
  }
274
329
  else if (typeof cb === "function") {
275
330
  if (typeof optionsOrCb !== "object")
276
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
332
  this.send(command, optionsOrCb || {}, cb);
278
333
  }
279
334
  else {
280
335
  return this.send(command, optionsOrCb);
281
336
  }
282
- };
283
- FSx.prototype.deleteVolume = function (args, optionsOrCb, cb) {
284
- var command = new DeleteVolumeCommand(args);
337
+ }
338
+ describeDataRepositoryAssociations(args, optionsOrCb, cb) {
339
+ const command = new DescribeDataRepositoryAssociationsCommand(args);
285
340
  if (typeof optionsOrCb === "function") {
286
341
  this.send(command, optionsOrCb);
287
342
  }
288
343
  else if (typeof cb === "function") {
289
344
  if (typeof optionsOrCb !== "object")
290
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
346
  this.send(command, optionsOrCb || {}, cb);
292
347
  }
293
348
  else {
294
349
  return this.send(command, optionsOrCb);
295
350
  }
296
- };
297
- FSx.prototype.describeBackups = function (args, optionsOrCb, cb) {
298
- var command = new DescribeBackupsCommand(args);
351
+ }
352
+ describeDataRepositoryTasks(args, optionsOrCb, cb) {
353
+ const command = new DescribeDataRepositoryTasksCommand(args);
299
354
  if (typeof optionsOrCb === "function") {
300
355
  this.send(command, optionsOrCb);
301
356
  }
302
357
  else if (typeof cb === "function") {
303
358
  if (typeof optionsOrCb !== "object")
304
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
360
  this.send(command, optionsOrCb || {}, cb);
306
361
  }
307
362
  else {
308
363
  return this.send(command, optionsOrCb);
309
364
  }
310
- };
311
- FSx.prototype.describeDataRepositoryAssociations = function (args, optionsOrCb, cb) {
312
- var command = new DescribeDataRepositoryAssociationsCommand(args);
365
+ }
366
+ describeFileCaches(args, optionsOrCb, cb) {
367
+ const command = new DescribeFileCachesCommand(args);
313
368
  if (typeof optionsOrCb === "function") {
314
369
  this.send(command, optionsOrCb);
315
370
  }
316
371
  else if (typeof cb === "function") {
317
372
  if (typeof optionsOrCb !== "object")
318
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
374
  this.send(command, optionsOrCb || {}, cb);
320
375
  }
321
376
  else {
322
377
  return this.send(command, optionsOrCb);
323
378
  }
324
- };
325
- FSx.prototype.describeDataRepositoryTasks = function (args, optionsOrCb, cb) {
326
- var command = new DescribeDataRepositoryTasksCommand(args);
379
+ }
380
+ describeFileSystemAliases(args, optionsOrCb, cb) {
381
+ const command = new DescribeFileSystemAliasesCommand(args);
327
382
  if (typeof optionsOrCb === "function") {
328
383
  this.send(command, optionsOrCb);
329
384
  }
330
385
  else if (typeof cb === "function") {
331
386
  if (typeof optionsOrCb !== "object")
332
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
388
  this.send(command, optionsOrCb || {}, cb);
334
389
  }
335
390
  else {
336
391
  return this.send(command, optionsOrCb);
337
392
  }
338
- };
339
- FSx.prototype.describeFileSystemAliases = function (args, optionsOrCb, cb) {
340
- var command = new DescribeFileSystemAliasesCommand(args);
393
+ }
394
+ describeFileSystems(args, optionsOrCb, cb) {
395
+ const command = new DescribeFileSystemsCommand(args);
341
396
  if (typeof optionsOrCb === "function") {
342
397
  this.send(command, optionsOrCb);
343
398
  }
344
399
  else if (typeof cb === "function") {
345
400
  if (typeof optionsOrCb !== "object")
346
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
401
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
402
  this.send(command, optionsOrCb || {}, cb);
348
403
  }
349
404
  else {
350
405
  return this.send(command, optionsOrCb);
351
406
  }
352
- };
353
- FSx.prototype.describeFileSystems = function (args, optionsOrCb, cb) {
354
- var command = new DescribeFileSystemsCommand(args);
407
+ }
408
+ describeSnapshots(args, optionsOrCb, cb) {
409
+ const command = new DescribeSnapshotsCommand(args);
355
410
  if (typeof optionsOrCb === "function") {
356
411
  this.send(command, optionsOrCb);
357
412
  }
358
413
  else if (typeof cb === "function") {
359
414
  if (typeof optionsOrCb !== "object")
360
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
415
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
416
  this.send(command, optionsOrCb || {}, cb);
362
417
  }
363
418
  else {
364
419
  return this.send(command, optionsOrCb);
365
420
  }
366
- };
367
- FSx.prototype.describeSnapshots = function (args, optionsOrCb, cb) {
368
- var command = new DescribeSnapshotsCommand(args);
421
+ }
422
+ describeStorageVirtualMachines(args, optionsOrCb, cb) {
423
+ const command = new DescribeStorageVirtualMachinesCommand(args);
369
424
  if (typeof optionsOrCb === "function") {
370
425
  this.send(command, optionsOrCb);
371
426
  }
372
427
  else if (typeof cb === "function") {
373
428
  if (typeof optionsOrCb !== "object")
374
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
429
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
430
  this.send(command, optionsOrCb || {}, cb);
376
431
  }
377
432
  else {
378
433
  return this.send(command, optionsOrCb);
379
434
  }
380
- };
381
- FSx.prototype.describeStorageVirtualMachines = function (args, optionsOrCb, cb) {
382
- var command = new DescribeStorageVirtualMachinesCommand(args);
435
+ }
436
+ describeVolumes(args, optionsOrCb, cb) {
437
+ const command = new DescribeVolumesCommand(args);
383
438
  if (typeof optionsOrCb === "function") {
384
439
  this.send(command, optionsOrCb);
385
440
  }
386
441
  else if (typeof cb === "function") {
387
442
  if (typeof optionsOrCb !== "object")
388
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
443
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
389
444
  this.send(command, optionsOrCb || {}, cb);
390
445
  }
391
446
  else {
392
447
  return this.send(command, optionsOrCb);
393
448
  }
394
- };
395
- FSx.prototype.describeVolumes = function (args, optionsOrCb, cb) {
396
- var command = new DescribeVolumesCommand(args);
449
+ }
450
+ disassociateFileSystemAliases(args, optionsOrCb, cb) {
451
+ const command = new DisassociateFileSystemAliasesCommand(args);
397
452
  if (typeof optionsOrCb === "function") {
398
453
  this.send(command, optionsOrCb);
399
454
  }
400
455
  else if (typeof cb === "function") {
401
456
  if (typeof optionsOrCb !== "object")
402
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
457
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
403
458
  this.send(command, optionsOrCb || {}, cb);
404
459
  }
405
460
  else {
406
461
  return this.send(command, optionsOrCb);
407
462
  }
408
- };
409
- FSx.prototype.disassociateFileSystemAliases = function (args, optionsOrCb, cb) {
410
- var command = new DisassociateFileSystemAliasesCommand(args);
463
+ }
464
+ listTagsForResource(args, optionsOrCb, cb) {
465
+ const command = new ListTagsForResourceCommand(args);
411
466
  if (typeof optionsOrCb === "function") {
412
467
  this.send(command, optionsOrCb);
413
468
  }
414
469
  else if (typeof cb === "function") {
415
470
  if (typeof optionsOrCb !== "object")
416
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
471
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
472
  this.send(command, optionsOrCb || {}, cb);
418
473
  }
419
474
  else {
420
475
  return this.send(command, optionsOrCb);
421
476
  }
422
- };
423
- FSx.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
424
- var command = new ListTagsForResourceCommand(args);
477
+ }
478
+ releaseFileSystemNfsV3Locks(args, optionsOrCb, cb) {
479
+ const command = new ReleaseFileSystemNfsV3LocksCommand(args);
425
480
  if (typeof optionsOrCb === "function") {
426
481
  this.send(command, optionsOrCb);
427
482
  }
428
483
  else if (typeof cb === "function") {
429
484
  if (typeof optionsOrCb !== "object")
430
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
485
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
431
486
  this.send(command, optionsOrCb || {}, cb);
432
487
  }
433
488
  else {
434
489
  return this.send(command, optionsOrCb);
435
490
  }
436
- };
437
- FSx.prototype.releaseFileSystemNfsV3Locks = function (args, optionsOrCb, cb) {
438
- var command = new ReleaseFileSystemNfsV3LocksCommand(args);
491
+ }
492
+ restoreVolumeFromSnapshot(args, optionsOrCb, cb) {
493
+ const command = new RestoreVolumeFromSnapshotCommand(args);
439
494
  if (typeof optionsOrCb === "function") {
440
495
  this.send(command, optionsOrCb);
441
496
  }
442
497
  else if (typeof cb === "function") {
443
498
  if (typeof optionsOrCb !== "object")
444
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
499
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
445
500
  this.send(command, optionsOrCb || {}, cb);
446
501
  }
447
502
  else {
448
503
  return this.send(command, optionsOrCb);
449
504
  }
450
- };
451
- FSx.prototype.restoreVolumeFromSnapshot = function (args, optionsOrCb, cb) {
452
- var command = new RestoreVolumeFromSnapshotCommand(args);
505
+ }
506
+ tagResource(args, optionsOrCb, cb) {
507
+ const command = new TagResourceCommand(args);
453
508
  if (typeof optionsOrCb === "function") {
454
509
  this.send(command, optionsOrCb);
455
510
  }
456
511
  else if (typeof cb === "function") {
457
512
  if (typeof optionsOrCb !== "object")
458
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
513
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
514
  this.send(command, optionsOrCb || {}, cb);
460
515
  }
461
516
  else {
462
517
  return this.send(command, optionsOrCb);
463
518
  }
464
- };
465
- FSx.prototype.tagResource = function (args, optionsOrCb, cb) {
466
- var command = new TagResourceCommand(args);
519
+ }
520
+ untagResource(args, optionsOrCb, cb) {
521
+ const command = new UntagResourceCommand(args);
467
522
  if (typeof optionsOrCb === "function") {
468
523
  this.send(command, optionsOrCb);
469
524
  }
470
525
  else if (typeof cb === "function") {
471
526
  if (typeof optionsOrCb !== "object")
472
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
527
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
473
528
  this.send(command, optionsOrCb || {}, cb);
474
529
  }
475
530
  else {
476
531
  return this.send(command, optionsOrCb);
477
532
  }
478
- };
479
- FSx.prototype.untagResource = function (args, optionsOrCb, cb) {
480
- var command = new UntagResourceCommand(args);
533
+ }
534
+ updateDataRepositoryAssociation(args, optionsOrCb, cb) {
535
+ const command = new UpdateDataRepositoryAssociationCommand(args);
481
536
  if (typeof optionsOrCb === "function") {
482
537
  this.send(command, optionsOrCb);
483
538
  }
484
539
  else if (typeof cb === "function") {
485
540
  if (typeof optionsOrCb !== "object")
486
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
541
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
487
542
  this.send(command, optionsOrCb || {}, cb);
488
543
  }
489
544
  else {
490
545
  return this.send(command, optionsOrCb);
491
546
  }
492
- };
493
- FSx.prototype.updateDataRepositoryAssociation = function (args, optionsOrCb, cb) {
494
- var command = new UpdateDataRepositoryAssociationCommand(args);
547
+ }
548
+ updateFileCache(args, optionsOrCb, cb) {
549
+ const command = new UpdateFileCacheCommand(args);
495
550
  if (typeof optionsOrCb === "function") {
496
551
  this.send(command, optionsOrCb);
497
552
  }
498
553
  else if (typeof cb === "function") {
499
554
  if (typeof optionsOrCb !== "object")
500
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
555
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
501
556
  this.send(command, optionsOrCb || {}, cb);
502
557
  }
503
558
  else {
504
559
  return this.send(command, optionsOrCb);
505
560
  }
506
- };
507
- FSx.prototype.updateFileSystem = function (args, optionsOrCb, cb) {
508
- var command = new UpdateFileSystemCommand(args);
561
+ }
562
+ updateFileSystem(args, optionsOrCb, cb) {
563
+ const command = new UpdateFileSystemCommand(args);
509
564
  if (typeof optionsOrCb === "function") {
510
565
  this.send(command, optionsOrCb);
511
566
  }
512
567
  else if (typeof cb === "function") {
513
568
  if (typeof optionsOrCb !== "object")
514
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
569
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
515
570
  this.send(command, optionsOrCb || {}, cb);
516
571
  }
517
572
  else {
518
573
  return this.send(command, optionsOrCb);
519
574
  }
520
- };
521
- FSx.prototype.updateSnapshot = function (args, optionsOrCb, cb) {
522
- var command = new UpdateSnapshotCommand(args);
575
+ }
576
+ updateSnapshot(args, optionsOrCb, cb) {
577
+ const command = new UpdateSnapshotCommand(args);
523
578
  if (typeof optionsOrCb === "function") {
524
579
  this.send(command, optionsOrCb);
525
580
  }
526
581
  else if (typeof cb === "function") {
527
582
  if (typeof optionsOrCb !== "object")
528
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
583
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
529
584
  this.send(command, optionsOrCb || {}, cb);
530
585
  }
531
586
  else {
532
587
  return this.send(command, optionsOrCb);
533
588
  }
534
- };
535
- FSx.prototype.updateStorageVirtualMachine = function (args, optionsOrCb, cb) {
536
- var command = new UpdateStorageVirtualMachineCommand(args);
589
+ }
590
+ updateStorageVirtualMachine(args, optionsOrCb, cb) {
591
+ const command = new UpdateStorageVirtualMachineCommand(args);
537
592
  if (typeof optionsOrCb === "function") {
538
593
  this.send(command, optionsOrCb);
539
594
  }
540
595
  else if (typeof cb === "function") {
541
596
  if (typeof optionsOrCb !== "object")
542
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
597
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
598
  this.send(command, optionsOrCb || {}, cb);
544
599
  }
545
600
  else {
546
601
  return this.send(command, optionsOrCb);
547
602
  }
548
- };
549
- FSx.prototype.updateVolume = function (args, optionsOrCb, cb) {
550
- var command = new UpdateVolumeCommand(args);
603
+ }
604
+ updateVolume(args, optionsOrCb, cb) {
605
+ const command = new UpdateVolumeCommand(args);
551
606
  if (typeof optionsOrCb === "function") {
552
607
  this.send(command, optionsOrCb);
553
608
  }
554
609
  else if (typeof cb === "function") {
555
610
  if (typeof optionsOrCb !== "object")
556
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
611
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
557
612
  this.send(command, optionsOrCb || {}, cb);
558
613
  }
559
614
  else {
560
615
  return this.send(command, optionsOrCb);
561
616
  }
562
- };
563
- return FSx;
564
- }(FSxClient));
565
- export { FSx };
617
+ }
618
+ }