@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,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeDataRepositoryAssociationsCommand, } from "../commands/DescribeDataRepositoryAssociationsCommand";
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 DescribeDataRepositoryAssociationsCommand(input)], __read(args)))];
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.describeDataRepositoryAssociations.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeDataRepositoryAssociations(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 paginateDescribeDataRepositoryAssociations_1() {
39
+ var token, hasNext, page;
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))))];
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))))];
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
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeSnapshotsCommand, } from "../commands/DescribeSnapshotsCommand";
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 DescribeSnapshotsCommand(input)], __read(args)))];
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.describeSnapshots.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeSnapshots(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 paginateDescribeSnapshots_1() {
39
+ var token, hasNext, page;
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))))];
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))))];
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
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -1,7 +1,9 @@
1
1
  export * from "./DescribeBackupsPaginator";
2
+ export * from "./DescribeDataRepositoryAssociationsPaginator";
2
3
  export * from "./DescribeDataRepositoryTasksPaginator";
3
4
  export * from "./DescribeFileSystemAliasesPaginator";
4
5
  export * from "./DescribeFileSystemsPaginator";
6
+ export * from "./DescribeSnapshotsPaginator";
5
7
  export * from "./DescribeStorageVirtualMachinesPaginator";
6
8
  export * from "./DescribeVolumesPaginator";
7
9
  export * from "./Interfaces";