@aws-sdk/client-fsx 3.180.0 → 3.181.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 (49) hide show
  1. package/CHANGELOG.md +17 -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 +60 -0
  13. package/dist-es/commands/CreateFileCacheCommand.js +39 -0
  14. package/dist-es/commands/DeleteFileCacheCommand.js +39 -0
  15. package/dist-es/commands/DescribeFileCachesCommand.js +39 -0
  16. package/dist-es/commands/UpdateFileCacheCommand.js +39 -0
  17. package/dist-es/commands/index.js +4 -0
  18. package/dist-es/models/models_0.js +96 -26
  19. package/dist-es/pagination/DescribeFileCachesPaginator.js +75 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_json1_1.js +644 -41
  22. package/dist-types/FSx.d.ts +118 -26
  23. package/dist-types/FSxClient.d.ts +6 -2
  24. package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +6 -0
  25. package/dist-types/commands/CreateFileCacheCommand.d.ts +58 -0
  26. package/dist-types/commands/CreateFileSystemCommand.d.ts +0 -10
  27. package/dist-types/commands/DeleteFileCacheCommand.d.ts +48 -0
  28. package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +13 -11
  29. package/dist-types/commands/DescribeDataRepositoryTasksCommand.d.ts +4 -4
  30. package/dist-types/commands/DescribeFileCachesCommand.d.ts +65 -0
  31. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +0 -1
  32. package/dist-types/commands/UpdateFileCacheCommand.d.ts +36 -0
  33. package/dist-types/commands/index.d.ts +4 -0
  34. package/dist-types/models/models_0.d.ts +964 -125
  35. package/dist-types/pagination/DescribeFileCachesPaginator.d.ts +4 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  38. package/dist-types/ts3.4/FSx.d.ts +68 -0
  39. package/dist-types/ts3.4/FSxClient.d.ts +24 -0
  40. package/dist-types/ts3.4/commands/CreateFileCacheCommand.d.ts +35 -0
  41. package/dist-types/ts3.4/commands/DeleteFileCacheCommand.d.ts +35 -0
  42. package/dist-types/ts3.4/commands/DescribeFileCachesCommand.d.ts +36 -0
  43. package/dist-types/ts3.4/commands/UpdateFileCacheCommand.d.ts +35 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +239 -25
  46. package/dist-types/ts3.4/pagination/DescribeFileCachesPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  49. package/package.json +3 -3
package/dist-es/FSx.js CHANGED
@@ -5,6 +5,7 @@ import { CopyBackupCommand } from "./commands/CopyBackupCommand";
5
5
  import { CreateBackupCommand, } from "./commands/CreateBackupCommand";
6
6
  import { CreateDataRepositoryAssociationCommand, } from "./commands/CreateDataRepositoryAssociationCommand";
7
7
  import { CreateDataRepositoryTaskCommand, } from "./commands/CreateDataRepositoryTaskCommand";
8
+ import { CreateFileCacheCommand, } from "./commands/CreateFileCacheCommand";
8
9
  import { CreateFileSystemCommand, } from "./commands/CreateFileSystemCommand";
9
10
  import { CreateFileSystemFromBackupCommand, } from "./commands/CreateFileSystemFromBackupCommand";
10
11
  import { CreateSnapshotCommand, } from "./commands/CreateSnapshotCommand";
@@ -13,6 +14,7 @@ import { CreateVolumeCommand, } from "./commands/CreateVolumeCommand";
13
14
  import { CreateVolumeFromBackupCommand, } from "./commands/CreateVolumeFromBackupCommand";
14
15
  import { DeleteBackupCommand, } from "./commands/DeleteBackupCommand";
15
16
  import { DeleteDataRepositoryAssociationCommand, } from "./commands/DeleteDataRepositoryAssociationCommand";
17
+ import { DeleteFileCacheCommand, } from "./commands/DeleteFileCacheCommand";
16
18
  import { DeleteFileSystemCommand, } from "./commands/DeleteFileSystemCommand";
17
19
  import { DeleteSnapshotCommand, } from "./commands/DeleteSnapshotCommand";
18
20
  import { DeleteStorageVirtualMachineCommand, } from "./commands/DeleteStorageVirtualMachineCommand";
@@ -20,6 +22,7 @@ import { DeleteVolumeCommand, } from "./commands/DeleteVolumeCommand";
20
22
  import { DescribeBackupsCommand, } from "./commands/DescribeBackupsCommand";
21
23
  import { DescribeDataRepositoryAssociationsCommand, } from "./commands/DescribeDataRepositoryAssociationsCommand";
22
24
  import { DescribeDataRepositoryTasksCommand, } from "./commands/DescribeDataRepositoryTasksCommand";
25
+ import { DescribeFileCachesCommand, } from "./commands/DescribeFileCachesCommand";
23
26
  import { DescribeFileSystemAliasesCommand, } from "./commands/DescribeFileSystemAliasesCommand";
24
27
  import { DescribeFileSystemsCommand, } from "./commands/DescribeFileSystemsCommand";
25
28
  import { DescribeSnapshotsCommand, } from "./commands/DescribeSnapshotsCommand";
@@ -32,6 +35,7 @@ import { RestoreVolumeFromSnapshotCommand, } from "./commands/RestoreVolumeFromS
32
35
  import { TagResourceCommand } from "./commands/TagResourceCommand";
33
36
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
34
37
  import { UpdateDataRepositoryAssociationCommand, } from "./commands/UpdateDataRepositoryAssociationCommand";
38
+ import { UpdateFileCacheCommand, } from "./commands/UpdateFileCacheCommand";
35
39
  import { UpdateFileSystemCommand, } from "./commands/UpdateFileSystemCommand";
36
40
  import { UpdateSnapshotCommand, } from "./commands/UpdateSnapshotCommand";
37
41
  import { UpdateStorageVirtualMachineCommand, } from "./commands/UpdateStorageVirtualMachineCommand";
@@ -126,6 +130,20 @@ var FSx = (function (_super) {
126
130
  return this.send(command, optionsOrCb);
127
131
  }
128
132
  };
133
+ FSx.prototype.createFileCache = function (args, optionsOrCb, cb) {
134
+ var command = new CreateFileCacheCommand(args);
135
+ if (typeof optionsOrCb === "function") {
136
+ this.send(command, optionsOrCb);
137
+ }
138
+ else if (typeof cb === "function") {
139
+ if (typeof optionsOrCb !== "object")
140
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
+ this.send(command, optionsOrCb || {}, cb);
142
+ }
143
+ else {
144
+ return this.send(command, optionsOrCb);
145
+ }
146
+ };
129
147
  FSx.prototype.createFileSystem = function (args, optionsOrCb, cb) {
130
148
  var command = new CreateFileSystemCommand(args);
131
149
  if (typeof optionsOrCb === "function") {
@@ -238,6 +256,20 @@ var FSx = (function (_super) {
238
256
  return this.send(command, optionsOrCb);
239
257
  }
240
258
  };
259
+ FSx.prototype.deleteFileCache = function (args, optionsOrCb, cb) {
260
+ var command = new DeleteFileCacheCommand(args);
261
+ if (typeof optionsOrCb === "function") {
262
+ this.send(command, optionsOrCb);
263
+ }
264
+ else if (typeof cb === "function") {
265
+ if (typeof optionsOrCb !== "object")
266
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
267
+ this.send(command, optionsOrCb || {}, cb);
268
+ }
269
+ else {
270
+ return this.send(command, optionsOrCb);
271
+ }
272
+ };
241
273
  FSx.prototype.deleteFileSystem = function (args, optionsOrCb, cb) {
242
274
  var command = new DeleteFileSystemCommand(args);
243
275
  if (typeof optionsOrCb === "function") {
@@ -336,6 +368,20 @@ var FSx = (function (_super) {
336
368
  return this.send(command, optionsOrCb);
337
369
  }
338
370
  };
371
+ FSx.prototype.describeFileCaches = function (args, optionsOrCb, cb) {
372
+ var command = new DescribeFileCachesCommand(args);
373
+ if (typeof optionsOrCb === "function") {
374
+ this.send(command, optionsOrCb);
375
+ }
376
+ else if (typeof cb === "function") {
377
+ if (typeof optionsOrCb !== "object")
378
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
379
+ this.send(command, optionsOrCb || {}, cb);
380
+ }
381
+ else {
382
+ return this.send(command, optionsOrCb);
383
+ }
384
+ };
339
385
  FSx.prototype.describeFileSystemAliases = function (args, optionsOrCb, cb) {
340
386
  var command = new DescribeFileSystemAliasesCommand(args);
341
387
  if (typeof optionsOrCb === "function") {
@@ -504,6 +550,20 @@ var FSx = (function (_super) {
504
550
  return this.send(command, optionsOrCb);
505
551
  }
506
552
  };
553
+ FSx.prototype.updateFileCache = function (args, optionsOrCb, cb) {
554
+ var command = new UpdateFileCacheCommand(args);
555
+ if (typeof optionsOrCb === "function") {
556
+ this.send(command, optionsOrCb);
557
+ }
558
+ else if (typeof cb === "function") {
559
+ if (typeof optionsOrCb !== "object")
560
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
561
+ this.send(command, optionsOrCb || {}, cb);
562
+ }
563
+ else {
564
+ return this.send(command, optionsOrCb);
565
+ }
566
+ };
507
567
  FSx.prototype.updateFileSystem = function (args, optionsOrCb, cb) {
508
568
  var command = new UpdateFileSystemCommand(args);
509
569
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateFileCacheRequestFilterSensitiveLog, CreateFileCacheResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateFileCacheCommand, serializeAws_json1_1CreateFileCacheCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateFileCacheCommand = (function (_super) {
7
+ __extends(CreateFileCacheCommand, _super);
8
+ function CreateFileCacheCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateFileCacheCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "FSxClient";
18
+ var commandName = "CreateFileCacheCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateFileCacheRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateFileCacheResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateFileCacheCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateFileCacheCommand(input, context);
33
+ };
34
+ CreateFileCacheCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateFileCacheCommand(output, context);
36
+ };
37
+ return CreateFileCacheCommand;
38
+ }($Command));
39
+ export { CreateFileCacheCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteFileCacheRequestFilterSensitiveLog, DeleteFileCacheResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteFileCacheCommand, serializeAws_json1_1DeleteFileCacheCommand, } from "../protocols/Aws_json1_1";
6
+ var DeleteFileCacheCommand = (function (_super) {
7
+ __extends(DeleteFileCacheCommand, _super);
8
+ function DeleteFileCacheCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteFileCacheCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "FSxClient";
18
+ var commandName = "DeleteFileCacheCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteFileCacheRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteFileCacheResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteFileCacheCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DeleteFileCacheCommand(input, context);
33
+ };
34
+ DeleteFileCacheCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DeleteFileCacheCommand(output, context);
36
+ };
37
+ return DeleteFileCacheCommand;
38
+ }($Command));
39
+ export { DeleteFileCacheCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeFileCachesRequestFilterSensitiveLog, DescribeFileCachesResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeFileCachesCommand, serializeAws_json1_1DescribeFileCachesCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeFileCachesCommand = (function (_super) {
7
+ __extends(DescribeFileCachesCommand, _super);
8
+ function DescribeFileCachesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeFileCachesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "FSxClient";
18
+ var commandName = "DescribeFileCachesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeFileCachesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeFileCachesResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeFileCachesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeFileCachesCommand(input, context);
33
+ };
34
+ DescribeFileCachesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeFileCachesCommand(output, context);
36
+ };
37
+ return DescribeFileCachesCommand;
38
+ }($Command));
39
+ export { DescribeFileCachesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateFileCacheRequestFilterSensitiveLog, UpdateFileCacheResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateFileCacheCommand, serializeAws_json1_1UpdateFileCacheCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateFileCacheCommand = (function (_super) {
7
+ __extends(UpdateFileCacheCommand, _super);
8
+ function UpdateFileCacheCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateFileCacheCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "FSxClient";
18
+ var commandName = "UpdateFileCacheCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateFileCacheRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateFileCacheResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateFileCacheCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateFileCacheCommand(input, context);
33
+ };
34
+ UpdateFileCacheCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateFileCacheCommand(output, context);
36
+ };
37
+ return UpdateFileCacheCommand;
38
+ }($Command));
39
+ export { UpdateFileCacheCommand };
@@ -4,6 +4,7 @@ export * from "./CopyBackupCommand";
4
4
  export * from "./CreateBackupCommand";
5
5
  export * from "./CreateDataRepositoryAssociationCommand";
6
6
  export * from "./CreateDataRepositoryTaskCommand";
7
+ export * from "./CreateFileCacheCommand";
7
8
  export * from "./CreateFileSystemCommand";
8
9
  export * from "./CreateFileSystemFromBackupCommand";
9
10
  export * from "./CreateSnapshotCommand";
@@ -12,6 +13,7 @@ export * from "./CreateVolumeCommand";
12
13
  export * from "./CreateVolumeFromBackupCommand";
13
14
  export * from "./DeleteBackupCommand";
14
15
  export * from "./DeleteDataRepositoryAssociationCommand";
16
+ export * from "./DeleteFileCacheCommand";
15
17
  export * from "./DeleteFileSystemCommand";
16
18
  export * from "./DeleteSnapshotCommand";
17
19
  export * from "./DeleteStorageVirtualMachineCommand";
@@ -19,6 +21,7 @@ export * from "./DeleteVolumeCommand";
19
21
  export * from "./DescribeBackupsCommand";
20
22
  export * from "./DescribeDataRepositoryAssociationsCommand";
21
23
  export * from "./DescribeDataRepositoryTasksCommand";
24
+ export * from "./DescribeFileCachesCommand";
22
25
  export * from "./DescribeFileSystemAliasesCommand";
23
26
  export * from "./DescribeFileSystemsCommand";
24
27
  export * from "./DescribeSnapshotsCommand";
@@ -31,6 +34,7 @@ export * from "./RestoreVolumeFromSnapshotCommand";
31
34
  export * from "./TagResourceCommand";
32
35
  export * from "./UntagResourceCommand";
33
36
  export * from "./UpdateDataRepositoryAssociationCommand";
37
+ export * from "./UpdateFileCacheCommand";
34
38
  export * from "./UpdateFileSystemCommand";
35
39
  export * from "./UpdateSnapshotCommand";
36
40
  export * from "./UpdateStorageVirtualMachineCommand";
@@ -401,6 +401,7 @@ var InvalidSourceKmsKey = (function (_super) {
401
401
  export { InvalidSourceKmsKey };
402
402
  export var ServiceLimit;
403
403
  (function (ServiceLimit) {
404
+ ServiceLimit["FILE_CACHE_COUNT"] = "FILE_CACHE_COUNT";
404
405
  ServiceLimit["FILE_SYSTEM_COUNT"] = "FILE_SYSTEM_COUNT";
405
406
  ServiceLimit["STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM"] = "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM";
406
407
  ServiceLimit["TOTAL_IN_PROGRESS_COPY_BACKUPS"] = "TOTAL_IN_PROGRESS_COPY_BACKUPS";
@@ -465,6 +466,10 @@ var VolumeNotFound = (function (_super) {
465
466
  return VolumeNotFound;
466
467
  }(__BaseException));
467
468
  export { VolumeNotFound };
469
+ export var NfsVersion;
470
+ (function (NfsVersion) {
471
+ NfsVersion["NFS3"] = "NFS3";
472
+ })(NfsVersion || (NfsVersion = {}));
468
473
  export var ReportFormat;
469
474
  (function (ReportFormat) {
470
475
  ReportFormat["REPORT_CSV_20191124"] = "REPORT_CSV_20191124";
@@ -475,6 +480,8 @@ export var ReportScope;
475
480
  })(ReportScope || (ReportScope = {}));
476
481
  export var DataRepositoryTaskType;
477
482
  (function (DataRepositoryTaskType) {
483
+ DataRepositoryTaskType["AUTO_TRIGGERED_EVICTION"] = "AUTO_RELEASE_DATA";
484
+ DataRepositoryTaskType["EVICTION"] = "RELEASE_DATA_FROM_FILESYSTEM";
478
485
  DataRepositoryTaskType["EXPORT"] = "EXPORT_TO_REPOSITORY";
479
486
  DataRepositoryTaskType["IMPORT"] = "IMPORT_METADATA_FROM_REPOSITORY";
480
487
  })(DataRepositoryTaskType || (DataRepositoryTaskType = {}));
@@ -491,32 +498,22 @@ var DataRepositoryTaskExecuting = (function (_super) {
491
498
  return DataRepositoryTaskExecuting;
492
499
  }(__BaseException));
493
500
  export { DataRepositoryTaskExecuting };
494
- var InvalidExportPath = (function (_super) {
495
- __extends(InvalidExportPath, _super);
496
- function InvalidExportPath(opts) {
497
- var _this = _super.call(this, __assign({ name: "InvalidExportPath", $fault: "client" }, opts)) || this;
498
- _this.name = "InvalidExportPath";
499
- _this.$fault = "client";
500
- Object.setPrototypeOf(_this, InvalidExportPath.prototype);
501
- _this.Message = opts.Message;
502
- return _this;
503
- }
504
- return InvalidExportPath;
505
- }(__BaseException));
506
- export { InvalidExportPath };
507
- var InvalidImportPath = (function (_super) {
508
- __extends(InvalidImportPath, _super);
509
- function InvalidImportPath(opts) {
510
- var _this = _super.call(this, __assign({ name: "InvalidImportPath", $fault: "client" }, opts)) || this;
511
- _this.name = "InvalidImportPath";
512
- _this.$fault = "client";
513
- Object.setPrototypeOf(_this, InvalidImportPath.prototype);
514
- _this.Message = opts.Message;
515
- return _this;
516
- }
517
- return InvalidImportPath;
518
- }(__BaseException));
519
- export { InvalidImportPath };
501
+ export var FileCacheType;
502
+ (function (FileCacheType) {
503
+ FileCacheType["LUSTRE"] = "LUSTRE";
504
+ })(FileCacheType || (FileCacheType = {}));
505
+ export var FileCacheLustreDeploymentType;
506
+ (function (FileCacheLustreDeploymentType) {
507
+ FileCacheLustreDeploymentType["CACHE_1"] = "CACHE_1";
508
+ })(FileCacheLustreDeploymentType || (FileCacheLustreDeploymentType = {}));
509
+ export var FileCacheLifecycle;
510
+ (function (FileCacheLifecycle) {
511
+ FileCacheLifecycle["AVAILABLE"] = "AVAILABLE";
512
+ FileCacheLifecycle["CREATING"] = "CREATING";
513
+ FileCacheLifecycle["DELETING"] = "DELETING";
514
+ FileCacheLifecycle["FAILED"] = "FAILED";
515
+ FileCacheLifecycle["UPDATING"] = "UPDATING";
516
+ })(FileCacheLifecycle || (FileCacheLifecycle = {}));
520
517
  var InvalidNetworkSettings = (function (_super) {
521
518
  __extends(InvalidNetworkSettings, _super);
522
519
  function InvalidNetworkSettings(opts) {
@@ -546,6 +543,45 @@ var InvalidPerUnitStorageThroughput = (function (_super) {
546
543
  return InvalidPerUnitStorageThroughput;
547
544
  }(__BaseException));
548
545
  export { InvalidPerUnitStorageThroughput };
546
+ var MissingFileCacheConfiguration = (function (_super) {
547
+ __extends(MissingFileCacheConfiguration, _super);
548
+ function MissingFileCacheConfiguration(opts) {
549
+ var _this = _super.call(this, __assign({ name: "MissingFileCacheConfiguration", $fault: "client" }, opts)) || this;
550
+ _this.name = "MissingFileCacheConfiguration";
551
+ _this.$fault = "client";
552
+ Object.setPrototypeOf(_this, MissingFileCacheConfiguration.prototype);
553
+ _this.Message = opts.Message;
554
+ return _this;
555
+ }
556
+ return MissingFileCacheConfiguration;
557
+ }(__BaseException));
558
+ export { MissingFileCacheConfiguration };
559
+ var InvalidExportPath = (function (_super) {
560
+ __extends(InvalidExportPath, _super);
561
+ function InvalidExportPath(opts) {
562
+ var _this = _super.call(this, __assign({ name: "InvalidExportPath", $fault: "client" }, opts)) || this;
563
+ _this.name = "InvalidExportPath";
564
+ _this.$fault = "client";
565
+ Object.setPrototypeOf(_this, InvalidExportPath.prototype);
566
+ _this.Message = opts.Message;
567
+ return _this;
568
+ }
569
+ return InvalidExportPath;
570
+ }(__BaseException));
571
+ export { InvalidExportPath };
572
+ var InvalidImportPath = (function (_super) {
573
+ __extends(InvalidImportPath, _super);
574
+ function InvalidImportPath(opts) {
575
+ var _this = _super.call(this, __assign({ name: "InvalidImportPath", $fault: "client" }, opts)) || this;
576
+ _this.name = "InvalidImportPath";
577
+ _this.$fault = "client";
578
+ Object.setPrototypeOf(_this, InvalidImportPath.prototype);
579
+ _this.Message = opts.Message;
580
+ return _this;
581
+ }
582
+ return InvalidImportPath;
583
+ }(__BaseException));
584
+ export { InvalidImportPath };
549
585
  var MissingFileSystemConfiguration = (function (_super) {
550
586
  __extends(MissingFileSystemConfiguration, _super);
551
587
  function MissingFileSystemConfiguration(opts) {
@@ -648,6 +684,19 @@ var DataRepositoryAssociationNotFound = (function (_super) {
648
684
  return DataRepositoryAssociationNotFound;
649
685
  }(__BaseException));
650
686
  export { DataRepositoryAssociationNotFound };
687
+ var FileCacheNotFound = (function (_super) {
688
+ __extends(FileCacheNotFound, _super);
689
+ function FileCacheNotFound(opts) {
690
+ var _this = _super.call(this, __assign({ name: "FileCacheNotFound", $fault: "client" }, opts)) || this;
691
+ _this.name = "FileCacheNotFound";
692
+ _this.$fault = "client";
693
+ Object.setPrototypeOf(_this, FileCacheNotFound.prototype);
694
+ _this.Message = opts.Message;
695
+ return _this;
696
+ }
697
+ return FileCacheNotFound;
698
+ }(__BaseException));
699
+ export { FileCacheNotFound };
651
700
  export var DeleteFileSystemOpenZFSOption;
652
701
  (function (DeleteFileSystemOpenZFSOption) {
653
702
  DeleteFileSystemOpenZFSOption["DELETE_CHILD_VOLUMES_AND_SNAPSHOTS"] = "DELETE_CHILD_VOLUMES_AND_SNAPSHOTS";
@@ -673,6 +722,8 @@ export var FilterName;
673
722
  (function (FilterName) {
674
723
  FilterName["BACKUP_TYPE"] = "backup-type";
675
724
  FilterName["DATA_REPOSITORY_TYPE"] = "data-repository-type";
725
+ FilterName["FILE_CACHE_ID"] = "file-cache-id";
726
+ FilterName["FILE_CACHE_TYPE"] = "file-cache-type";
676
727
  FilterName["FILE_SYSTEM_ID"] = "file-system-id";
677
728
  FilterName["FILE_SYSTEM_TYPE"] = "file-system-type";
678
729
  FilterName["VOLUME_ID"] = "volume-id";
@@ -693,6 +744,7 @@ export { InvalidDataRepositoryType };
693
744
  export var DataRepositoryTaskFilterName;
694
745
  (function (DataRepositoryTaskFilterName) {
695
746
  DataRepositoryTaskFilterName["DATA_REPO_ASSOCIATION_ID"] = "data-repository-association-id";
747
+ DataRepositoryTaskFilterName["FILE_CACHE_ID"] = "file-cache-id";
696
748
  DataRepositoryTaskFilterName["FILE_SYSTEM_ID"] = "file-system-id";
697
749
  DataRepositoryTaskFilterName["TASK_LIFECYCLE"] = "task-lifecycle";
698
750
  })(DataRepositoryTaskFilterName || (DataRepositoryTaskFilterName = {}));
@@ -794,6 +846,7 @@ export var BackupFailureDetailsFilterSensitiveLog = function (obj) { return (__a
794
846
  export var CreateBackupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
795
847
  export var S3DataRepositoryConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
796
848
  export var CreateDataRepositoryAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
849
+ export var NFSDataRepositoryConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
797
850
  export var DataRepositoryAssociationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
798
851
  export var CreateDataRepositoryAssociationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
799
852
  export var CompletionReportFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -802,6 +855,15 @@ export var DataRepositoryTaskFailureDetailsFilterSensitiveLog = function (obj) {
802
855
  export var DataRepositoryTaskStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
803
856
  export var DataRepositoryTaskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
804
857
  export var CreateDataRepositoryTaskResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
858
+ export var FileCacheNFSConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
859
+ export var FileCacheDataRepositoryAssociationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
860
+ export var FileCacheLustreMetadataConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
861
+ export var CreateFileCacheLustreConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
862
+ export var CreateFileCacheRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
863
+ export var FileCacheFailureDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
864
+ export var FileCacheLustreConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
865
+ export var FileCacheCreatingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
866
+ export var CreateFileCacheResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
805
867
  export var LustreLogCreateConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
806
868
  export var CreateFileSystemLustreConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
807
869
  export var CreateFileSystemOntapConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.FsxAdminPassword && { FsxAdminPassword: SENSITIVE_STRING }))); };
@@ -841,6 +903,8 @@ export var DeleteBackupRequestFilterSensitiveLog = function (obj) { return (__as
841
903
  export var DeleteBackupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
842
904
  export var DeleteDataRepositoryAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
843
905
  export var DeleteDataRepositoryAssociationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
906
+ export var DeleteFileCacheRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
907
+ export var DeleteFileCacheResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
844
908
  export var DeleteFileSystemLustreConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
845
909
  export var DeleteFileSystemOpenZFSConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
846
910
  export var DeleteFileSystemWindowsConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -865,6 +929,9 @@ export var DescribeDataRepositoryAssociationsResponseFilterSensitiveLog = functi
865
929
  export var DataRepositoryTaskFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
866
930
  export var DescribeDataRepositoryTasksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
867
931
  export var DescribeDataRepositoryTasksResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
932
+ export var DescribeFileCachesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
933
+ export var FileCacheFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
934
+ export var DescribeFileCachesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
868
935
  export var DescribeFileSystemAliasesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
869
936
  export var DescribeFileSystemAliasesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
870
937
  export var DescribeFileSystemsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -888,6 +955,9 @@ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__a
888
955
  export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
889
956
  export var UpdateDataRepositoryAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
890
957
  export var UpdateDataRepositoryAssociationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
958
+ export var UpdateFileCacheLustreConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
959
+ export var UpdateFileCacheRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
960
+ export var UpdateFileCacheResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
891
961
  export var UpdateFileSystemLustreConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
892
962
  export var UpdateFileSystemOntapConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.FsxAdminPassword && { FsxAdminPassword: SENSITIVE_STRING }))); };
893
963
  export var UpdateFileSystemOpenZFSConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeFileCachesCommand, } from "../commands/DescribeFileCachesCommand";
3
+ import { FSx } from "../FSx";
4
+ import { FSxClient } from "../FSxClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeFileCachesCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeFileCaches.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeFileCaches(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateDescribeFileCaches_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof FSx)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof FSxClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected FSx | FSxClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.NextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./DescribeBackupsPaginator";
2
2
  export * from "./DescribeDataRepositoryAssociationsPaginator";
3
3
  export * from "./DescribeDataRepositoryTasksPaginator";
4
+ export * from "./DescribeFileCachesPaginator";
4
5
  export * from "./DescribeFileSystemAliasesPaginator";
5
6
  export * from "./DescribeFileSystemsPaginator";
6
7
  export * from "./DescribeSnapshotsPaginator";