@aws-sdk/client-fsx 3.41.0 → 3.45.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 (88) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/FSx.js +150 -0
  3. package/dist-cjs/commands/CreateDataRepositoryAssociationCommand.js +36 -0
  4. package/dist-cjs/commands/CreateSnapshotCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteDataRepositoryAssociationCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteSnapshotCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeDataRepositoryAssociationsCommand.js +36 -0
  8. package/dist-cjs/commands/DescribeSnapshotsCommand.js +36 -0
  9. package/dist-cjs/commands/ReleaseFileSystemNfsV3LocksCommand.js +36 -0
  10. package/dist-cjs/commands/RestoreVolumeFromSnapshotCommand.js +36 -0
  11. package/dist-cjs/commands/UpdateDataRepositoryAssociationCommand.js +36 -0
  12. package/dist-cjs/commands/UpdateSnapshotCommand.js +36 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/endpoints.js +1 -0
  15. package/dist-cjs/models/models_0.js +386 -44
  16. package/dist-cjs/pagination/DescribeDataRepositoryAssociationsPaginator.js +35 -0
  17. package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +35 -0
  18. package/dist-cjs/pagination/index.js +2 -0
  19. package/dist-cjs/protocols/Aws_json1_1.js +1745 -131
  20. package/dist-es/FSx.js +150 -0
  21. package/dist-es/commands/CreateDataRepositoryAssociationCommand.js +39 -0
  22. package/dist-es/commands/CreateSnapshotCommand.js +39 -0
  23. package/dist-es/commands/DeleteDataRepositoryAssociationCommand.js +39 -0
  24. package/dist-es/commands/DeleteSnapshotCommand.js +39 -0
  25. package/dist-es/commands/DescribeDataRepositoryAssociationsCommand.js +39 -0
  26. package/dist-es/commands/DescribeSnapshotsCommand.js +39 -0
  27. package/dist-es/commands/ReleaseFileSystemNfsV3LocksCommand.js +39 -0
  28. package/dist-es/commands/RestoreVolumeFromSnapshotCommand.js +39 -0
  29. package/dist-es/commands/UpdateDataRepositoryAssociationCommand.js +39 -0
  30. package/dist-es/commands/UpdateSnapshotCommand.js +39 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/endpoints.js +1 -0
  33. package/dist-es/models/models_0.js +277 -28
  34. package/dist-es/pagination/DescribeDataRepositoryAssociationsPaginator.js +74 -0
  35. package/dist-es/pagination/DescribeSnapshotsPaginator.js +74 -0
  36. package/dist-es/pagination/index.js +2 -0
  37. package/dist-es/protocols/Aws_json1_1.js +1653 -74
  38. package/dist-types/FSx.d.ts +406 -146
  39. package/dist-types/FSxClient.d.ts +12 -2
  40. package/dist-types/commands/CopyBackupCommand.d.ts +12 -12
  41. package/dist-types/commands/CreateBackupCommand.d.ts +27 -25
  42. package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +45 -0
  43. package/dist-types/commands/CreateDataRepositoryTaskCommand.d.ts +6 -5
  44. package/dist-types/commands/CreateFileSystemCommand.d.ts +36 -16
  45. package/dist-types/commands/CreateFileSystemFromBackupCommand.d.ts +14 -14
  46. package/dist-types/commands/CreateSnapshotCommand.d.ts +62 -0
  47. package/dist-types/commands/CreateVolumeCommand.d.ts +2 -1
  48. package/dist-types/commands/DeleteBackupCommand.d.ts +4 -3
  49. package/dist-types/commands/DeleteDataRepositoryAssociationCommand.d.ts +41 -0
  50. package/dist-types/commands/DeleteFileSystemCommand.d.ts +14 -15
  51. package/dist-types/commands/DeleteSnapshotCommand.d.ts +39 -0
  52. package/dist-types/commands/DeleteVolumeCommand.d.ts +2 -4
  53. package/dist-types/commands/DescribeBackupsCommand.d.ts +17 -18
  54. package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +53 -0
  55. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +9 -9
  56. package/dist-types/commands/DescribeSnapshotsCommand.d.ts +61 -0
  57. package/dist-types/commands/DescribeVolumesCommand.d.ts +2 -1
  58. package/dist-types/commands/ReleaseFileSystemNfsV3LocksCommand.d.ts +36 -0
  59. package/dist-types/commands/RestoreVolumeFromSnapshotCommand.d.ts +36 -0
  60. package/dist-types/commands/UpdateDataRepositoryAssociationCommand.d.ts +37 -0
  61. package/dist-types/commands/UpdateFileSystemCommand.d.ts +95 -22
  62. package/dist-types/commands/UpdateSnapshotCommand.d.ts +35 -0
  63. package/dist-types/commands/UpdateVolumeCommand.d.ts +1 -1
  64. package/dist-types/commands/index.d.ts +10 -0
  65. package/dist-types/models/models_0.d.ts +2705 -649
  66. package/dist-types/pagination/DescribeDataRepositoryAssociationsPaginator.d.ts +4 -0
  67. package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  68. package/dist-types/pagination/index.d.ts +2 -0
  69. package/dist-types/protocols/Aws_json1_1.d.ts +30 -0
  70. package/dist-types/ts3.4/FSx.d.ts +50 -0
  71. package/dist-types/ts3.4/FSxClient.d.ts +12 -2
  72. package/dist-types/ts3.4/commands/CreateDataRepositoryAssociationCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/DeleteDataRepositoryAssociationCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/DescribeDataRepositoryAssociationsCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/DescribeSnapshotsCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ReleaseFileSystemNfsV3LocksCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/RestoreVolumeFromSnapshotCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/UpdateDataRepositoryAssociationCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/UpdateSnapshotCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  83. package/dist-types/ts3.4/models/models_0.d.ts +790 -81
  84. package/dist-types/ts3.4/pagination/DescribeDataRepositoryAssociationsPaginator.d.ts +4 -0
  85. package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  86. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  87. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -0
  88. package/package.json +5 -5
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDataRepositoryAssociations = void 0;
4
+ const DescribeDataRepositoryAssociationsCommand_1 = require("../commands/DescribeDataRepositoryAssociationsCommand");
5
+ const FSx_1 = require("../FSx");
6
+ const FSxClient_1 = require("../FSxClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeDataRepositoryAssociationsCommand_1.DescribeDataRepositoryAssociationsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeDataRepositoryAssociations(input, ...args);
12
+ };
13
+ async function* paginateDescribeDataRepositoryAssociations(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof FSx_1.FSx) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof FSxClient_1.FSxClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected FSx | FSxClient");
28
+ }
29
+ yield page;
30
+ token = page.NextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeDataRepositoryAssociations = paginateDescribeDataRepositoryAssociations;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeSnapshots = void 0;
4
+ const DescribeSnapshotsCommand_1 = require("../commands/DescribeSnapshotsCommand");
5
+ const FSx_1 = require("../FSx");
6
+ const FSxClient_1 = require("../FSxClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeSnapshotsCommand_1.DescribeSnapshotsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeSnapshots(input, ...args);
12
+ };
13
+ async function* paginateDescribeSnapshots(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof FSx_1.FSx) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof FSxClient_1.FSxClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected FSx | FSxClient");
28
+ }
29
+ yield page;
30
+ token = page.NextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeSnapshots = paginateDescribeSnapshots;
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DescribeBackupsPaginator"), exports);
5
+ tslib_1.__exportStar(require("./DescribeDataRepositoryAssociationsPaginator"), exports);
5
6
  tslib_1.__exportStar(require("./DescribeDataRepositoryTasksPaginator"), exports);
6
7
  tslib_1.__exportStar(require("./DescribeFileSystemAliasesPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./DescribeFileSystemsPaginator"), exports);
9
+ tslib_1.__exportStar(require("./DescribeSnapshotsPaginator"), exports);
8
10
  tslib_1.__exportStar(require("./DescribeStorageVirtualMachinesPaginator"), exports);
9
11
  tslib_1.__exportStar(require("./DescribeVolumesPaginator"), exports);
10
12
  tslib_1.__exportStar(require("./Interfaces"), exports);