@aws-sdk/client-fsx 3.35.0 → 3.38.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 (281) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist-cjs/FSx.js +0 -5
  3. package/dist-cjs/FSxClient.js +0 -10
  4. package/dist-cjs/commands/AssociateFileSystemAliasesCommand.js +0 -35
  5. package/dist-cjs/commands/CancelDataRepositoryTaskCommand.js +0 -37
  6. package/dist-cjs/commands/CopyBackupCommand.js +0 -45
  7. package/dist-cjs/commands/CreateBackupCommand.js +0 -80
  8. package/dist-cjs/commands/CreateDataRepositoryTaskCommand.js +0 -33
  9. package/dist-cjs/commands/CreateFileSystemCommand.js +0 -57
  10. package/dist-cjs/commands/CreateFileSystemFromBackupCommand.js +0 -61
  11. package/dist-cjs/commands/CreateStorageVirtualMachineCommand.js +0 -25
  12. package/dist-cjs/commands/CreateVolumeCommand.js +0 -25
  13. package/dist-cjs/commands/CreateVolumeFromBackupCommand.js +0 -26
  14. package/dist-cjs/commands/DeleteBackupCommand.js +0 -33
  15. package/dist-cjs/commands/DeleteFileSystemCommand.js +0 -50
  16. package/dist-cjs/commands/DeleteStorageVirtualMachineCommand.js +0 -26
  17. package/dist-cjs/commands/DeleteVolumeCommand.js +0 -28
  18. package/dist-cjs/commands/DescribeBackupsCommand.js +0 -54
  19. package/dist-cjs/commands/DescribeDataRepositoryTasksCommand.js +0 -35
  20. package/dist-cjs/commands/DescribeFileSystemAliasesCommand.js +0 -27
  21. package/dist-cjs/commands/DescribeFileSystemsCommand.js +0 -56
  22. package/dist-cjs/commands/DescribeStorageVirtualMachinesCommand.js +0 -25
  23. package/dist-cjs/commands/DescribeVolumesCommand.js +0 -25
  24. package/dist-cjs/commands/DisassociateFileSystemAliasesCommand.js +0 -33
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -53
  26. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  27. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  28. package/dist-cjs/commands/UpdateFileSystemCommand.js +0 -89
  29. package/dist-cjs/commands/UpdateStorageVirtualMachineCommand.js +0 -25
  30. package/dist-cjs/commands/UpdateVolumeCommand.js +0 -25
  31. package/dist-cjs/commands/index.js +30 -0
  32. package/dist-cjs/endpoints.js +1 -2
  33. package/dist-cjs/index.js +4 -38
  34. package/dist-cjs/models/index.js +0 -1
  35. package/dist-cjs/models/models_0.js +0 -415
  36. package/dist-cjs/pagination/DescribeBackupsPaginator.js +0 -11
  37. package/dist-cjs/pagination/DescribeDataRepositoryTasksPaginator.js +0 -11
  38. package/dist-cjs/pagination/DescribeFileSystemAliasesPaginator.js +0 -11
  39. package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +0 -11
  40. package/dist-cjs/pagination/DescribeStorageVirtualMachinesPaginator.js +0 -11
  41. package/dist-cjs/pagination/DescribeVolumesPaginator.js +0 -11
  42. package/dist-cjs/pagination/Interfaces.js +0 -1
  43. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -11
  44. package/dist-cjs/pagination/index.js +11 -0
  45. package/dist-cjs/protocols/Aws_json1_1.js +5 -6
  46. package/dist-cjs/runtimeConfig.browser.js +1 -6
  47. package/dist-cjs/runtimeConfig.js +2 -7
  48. package/dist-cjs/runtimeConfig.native.js +0 -4
  49. package/dist-cjs/runtimeConfig.shared.js +0 -4
  50. package/dist-es/FSx.js +0 -1
  51. package/dist-es/FSxClient.js +0 -1
  52. package/dist-es/commands/AssociateFileSystemAliasesCommand.js +0 -1
  53. package/dist-es/commands/CancelDataRepositoryTaskCommand.js +0 -1
  54. package/dist-es/commands/CopyBackupCommand.js +0 -1
  55. package/dist-es/commands/CreateBackupCommand.js +0 -1
  56. package/dist-es/commands/CreateDataRepositoryTaskCommand.js +0 -1
  57. package/dist-es/commands/CreateFileSystemCommand.js +0 -1
  58. package/dist-es/commands/CreateFileSystemFromBackupCommand.js +0 -1
  59. package/dist-es/commands/CreateStorageVirtualMachineCommand.js +0 -1
  60. package/dist-es/commands/CreateVolumeCommand.js +0 -1
  61. package/dist-es/commands/CreateVolumeFromBackupCommand.js +0 -1
  62. package/dist-es/commands/DeleteBackupCommand.js +0 -1
  63. package/dist-es/commands/DeleteFileSystemCommand.js +0 -1
  64. package/dist-es/commands/DeleteStorageVirtualMachineCommand.js +0 -1
  65. package/dist-es/commands/DeleteVolumeCommand.js +0 -1
  66. package/dist-es/commands/DescribeBackupsCommand.js +0 -1
  67. package/dist-es/commands/DescribeDataRepositoryTasksCommand.js +0 -1
  68. package/dist-es/commands/DescribeFileSystemAliasesCommand.js +0 -1
  69. package/dist-es/commands/DescribeFileSystemsCommand.js +0 -1
  70. package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js +0 -1
  71. package/dist-es/commands/DescribeVolumesCommand.js +0 -1
  72. package/dist-es/commands/DisassociateFileSystemAliasesCommand.js +0 -1
  73. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  74. package/dist-es/commands/TagResourceCommand.js +0 -1
  75. package/dist-es/commands/UntagResourceCommand.js +0 -1
  76. package/dist-es/commands/UpdateFileSystemCommand.js +0 -1
  77. package/dist-es/commands/UpdateStorageVirtualMachineCommand.js +0 -1
  78. package/dist-es/commands/UpdateVolumeCommand.js +0 -1
  79. package/dist-es/commands/index.js +27 -0
  80. package/dist-es/endpoints.js +1 -2
  81. package/dist-es/index.js +4 -38
  82. package/dist-es/models/index.js +0 -1
  83. package/dist-es/models/models_0.js +0 -1
  84. package/dist-es/pagination/DescribeBackupsPaginator.js +0 -1
  85. package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js +0 -1
  86. package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js +0 -1
  87. package/dist-es/pagination/DescribeFileSystemsPaginator.js +0 -1
  88. package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js +0 -1
  89. package/dist-es/pagination/DescribeVolumesPaginator.js +0 -1
  90. package/dist-es/pagination/Interfaces.js +0 -1
  91. package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
  92. package/dist-es/pagination/index.js +8 -0
  93. package/dist-es/protocols/Aws_json1_1.js +6 -4
  94. package/dist-es/runtimeConfig.browser.js +1 -2
  95. package/dist-es/runtimeConfig.js +2 -3
  96. package/dist-es/runtimeConfig.native.js +0 -1
  97. package/dist-es/runtimeConfig.shared.js +0 -1
  98. package/dist-types/commands/index.d.ts +27 -0
  99. package/dist-types/index.d.ts +4 -37
  100. package/dist-types/models/models_0.d.ts +36 -6
  101. package/dist-types/pagination/index.d.ts +8 -0
  102. package/dist-types/ts3.4/FSx.d.ts +28 -468
  103. package/dist-types/ts3.4/FSxClient.d.ts +24 -90
  104. package/dist-types/ts3.4/commands/AssociateFileSystemAliasesCommand.d.ts +2 -30
  105. package/dist-types/ts3.4/commands/CancelDataRepositoryTaskCommand.d.ts +2 -32
  106. package/dist-types/ts3.4/commands/CopyBackupCommand.d.ts +2 -40
  107. package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +2 -75
  108. package/dist-types/ts3.4/commands/CreateDataRepositoryTaskCommand.d.ts +2 -28
  109. package/dist-types/ts3.4/commands/CreateFileSystemCommand.d.ts +2 -52
  110. package/dist-types/ts3.4/commands/CreateFileSystemFromBackupCommand.d.ts +2 -56
  111. package/dist-types/ts3.4/commands/CreateStorageVirtualMachineCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/CreateVolumeCommand.d.ts +2 -20
  113. package/dist-types/ts3.4/commands/CreateVolumeFromBackupCommand.d.ts +2 -21
  114. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -28
  115. package/dist-types/ts3.4/commands/DeleteFileSystemCommand.d.ts +2 -45
  116. package/dist-types/ts3.4/commands/DeleteStorageVirtualMachineCommand.d.ts +2 -21
  117. package/dist-types/ts3.4/commands/DeleteVolumeCommand.d.ts +2 -23
  118. package/dist-types/ts3.4/commands/DescribeBackupsCommand.d.ts +2 -49
  119. package/dist-types/ts3.4/commands/DescribeDataRepositoryTasksCommand.d.ts +2 -30
  120. package/dist-types/ts3.4/commands/DescribeFileSystemAliasesCommand.d.ts +2 -22
  121. package/dist-types/ts3.4/commands/DescribeFileSystemsCommand.d.ts +2 -51
  122. package/dist-types/ts3.4/commands/DescribeStorageVirtualMachinesCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/DescribeVolumesCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/DisassociateFileSystemAliasesCommand.d.ts +2 -28
  125. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -48
  126. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/UpdateFileSystemCommand.d.ts +2 -84
  129. package/dist-types/ts3.4/commands/UpdateStorageVirtualMachineCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/UpdateVolumeCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  132. package/dist-types/ts3.4/index.d.ts +4 -37
  133. package/dist-types/ts3.4/models/models_0.d.ts +721 -3612
  134. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  135. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  136. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  137. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  138. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  139. package/package.json +33 -30
  140. package/dist-cjs/FSx.js.map +0 -1
  141. package/dist-cjs/FSxClient.js.map +0 -1
  142. package/dist-cjs/commands/AssociateFileSystemAliasesCommand.js.map +0 -1
  143. package/dist-cjs/commands/CancelDataRepositoryTaskCommand.js.map +0 -1
  144. package/dist-cjs/commands/CopyBackupCommand.js.map +0 -1
  145. package/dist-cjs/commands/CreateBackupCommand.js.map +0 -1
  146. package/dist-cjs/commands/CreateDataRepositoryTaskCommand.js.map +0 -1
  147. package/dist-cjs/commands/CreateFileSystemCommand.js.map +0 -1
  148. package/dist-cjs/commands/CreateFileSystemFromBackupCommand.js.map +0 -1
  149. package/dist-cjs/commands/CreateStorageVirtualMachineCommand.js.map +0 -1
  150. package/dist-cjs/commands/CreateVolumeCommand.js.map +0 -1
  151. package/dist-cjs/commands/CreateVolumeFromBackupCommand.js.map +0 -1
  152. package/dist-cjs/commands/DeleteBackupCommand.js.map +0 -1
  153. package/dist-cjs/commands/DeleteFileSystemCommand.js.map +0 -1
  154. package/dist-cjs/commands/DeleteStorageVirtualMachineCommand.js.map +0 -1
  155. package/dist-cjs/commands/DeleteVolumeCommand.js.map +0 -1
  156. package/dist-cjs/commands/DescribeBackupsCommand.js.map +0 -1
  157. package/dist-cjs/commands/DescribeDataRepositoryTasksCommand.js.map +0 -1
  158. package/dist-cjs/commands/DescribeFileSystemAliasesCommand.js.map +0 -1
  159. package/dist-cjs/commands/DescribeFileSystemsCommand.js.map +0 -1
  160. package/dist-cjs/commands/DescribeStorageVirtualMachinesCommand.js.map +0 -1
  161. package/dist-cjs/commands/DescribeVolumesCommand.js.map +0 -1
  162. package/dist-cjs/commands/DisassociateFileSystemAliasesCommand.js.map +0 -1
  163. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  164. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  165. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  166. package/dist-cjs/commands/UpdateFileSystemCommand.js.map +0 -1
  167. package/dist-cjs/commands/UpdateStorageVirtualMachineCommand.js.map +0 -1
  168. package/dist-cjs/commands/UpdateVolumeCommand.js.map +0 -1
  169. package/dist-cjs/endpoints.js.map +0 -1
  170. package/dist-cjs/index.js.map +0 -1
  171. package/dist-cjs/models/index.js.map +0 -1
  172. package/dist-cjs/models/models_0.js.map +0 -1
  173. package/dist-cjs/pagination/DescribeBackupsPaginator.js.map +0 -1
  174. package/dist-cjs/pagination/DescribeDataRepositoryTasksPaginator.js.map +0 -1
  175. package/dist-cjs/pagination/DescribeFileSystemAliasesPaginator.js.map +0 -1
  176. package/dist-cjs/pagination/DescribeFileSystemsPaginator.js.map +0 -1
  177. package/dist-cjs/pagination/DescribeStorageVirtualMachinesPaginator.js.map +0 -1
  178. package/dist-cjs/pagination/DescribeVolumesPaginator.js.map +0 -1
  179. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  180. package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  181. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  182. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  183. package/dist-cjs/runtimeConfig.js.map +0 -1
  184. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  185. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  186. package/dist-es/FSx.js.map +0 -1
  187. package/dist-es/FSxClient.js.map +0 -1
  188. package/dist-es/commands/AssociateFileSystemAliasesCommand.js.map +0 -1
  189. package/dist-es/commands/CancelDataRepositoryTaskCommand.js.map +0 -1
  190. package/dist-es/commands/CopyBackupCommand.js.map +0 -1
  191. package/dist-es/commands/CreateBackupCommand.js.map +0 -1
  192. package/dist-es/commands/CreateDataRepositoryTaskCommand.js.map +0 -1
  193. package/dist-es/commands/CreateFileSystemCommand.js.map +0 -1
  194. package/dist-es/commands/CreateFileSystemFromBackupCommand.js.map +0 -1
  195. package/dist-es/commands/CreateStorageVirtualMachineCommand.js.map +0 -1
  196. package/dist-es/commands/CreateVolumeCommand.js.map +0 -1
  197. package/dist-es/commands/CreateVolumeFromBackupCommand.js.map +0 -1
  198. package/dist-es/commands/DeleteBackupCommand.js.map +0 -1
  199. package/dist-es/commands/DeleteFileSystemCommand.js.map +0 -1
  200. package/dist-es/commands/DeleteStorageVirtualMachineCommand.js.map +0 -1
  201. package/dist-es/commands/DeleteVolumeCommand.js.map +0 -1
  202. package/dist-es/commands/DescribeBackupsCommand.js.map +0 -1
  203. package/dist-es/commands/DescribeDataRepositoryTasksCommand.js.map +0 -1
  204. package/dist-es/commands/DescribeFileSystemAliasesCommand.js.map +0 -1
  205. package/dist-es/commands/DescribeFileSystemsCommand.js.map +0 -1
  206. package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js.map +0 -1
  207. package/dist-es/commands/DescribeVolumesCommand.js.map +0 -1
  208. package/dist-es/commands/DisassociateFileSystemAliasesCommand.js.map +0 -1
  209. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  210. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  211. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  212. package/dist-es/commands/UpdateFileSystemCommand.js.map +0 -1
  213. package/dist-es/commands/UpdateStorageVirtualMachineCommand.js.map +0 -1
  214. package/dist-es/commands/UpdateVolumeCommand.js.map +0 -1
  215. package/dist-es/endpoints.js.map +0 -1
  216. package/dist-es/index.js.map +0 -1
  217. package/dist-es/models/index.js.map +0 -1
  218. package/dist-es/models/models_0.js.map +0 -1
  219. package/dist-es/pagination/DescribeBackupsPaginator.js.map +0 -1
  220. package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js.map +0 -1
  221. package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js.map +0 -1
  222. package/dist-es/pagination/DescribeFileSystemsPaginator.js.map +0 -1
  223. package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js.map +0 -1
  224. package/dist-es/pagination/DescribeVolumesPaginator.js.map +0 -1
  225. package/dist-es/pagination/Interfaces.js.map +0 -1
  226. package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  227. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  228. package/dist-es/runtimeConfig.browser.js.map +0 -1
  229. package/dist-es/runtimeConfig.js.map +0 -1
  230. package/dist-es/runtimeConfig.native.js.map +0 -1
  231. package/dist-es/runtimeConfig.shared.js.map +0 -1
  232. package/jest.config.js +0 -4
  233. package/src/FSx.ts +0 -1356
  234. package/src/FSxClient.ts +0 -360
  235. package/src/commands/AssociateFileSystemAliasesCommand.ts +0 -108
  236. package/src/commands/CancelDataRepositoryTaskCommand.ts +0 -107
  237. package/src/commands/CopyBackupCommand.ts +0 -115
  238. package/src/commands/CreateBackupCommand.ts +0 -150
  239. package/src/commands/CreateDataRepositoryTaskCommand.ts +0 -103
  240. package/src/commands/CreateFileSystemCommand.ts +0 -127
  241. package/src/commands/CreateFileSystemFromBackupCommand.ts +0 -134
  242. package/src/commands/CreateStorageVirtualMachineCommand.ts +0 -100
  243. package/src/commands/CreateVolumeCommand.ts +0 -95
  244. package/src/commands/CreateVolumeFromBackupCommand.ts +0 -96
  245. package/src/commands/DeleteBackupCommand.ts +0 -103
  246. package/src/commands/DeleteFileSystemCommand.ts +0 -120
  247. package/src/commands/DeleteStorageVirtualMachineCommand.ts +0 -101
  248. package/src/commands/DeleteVolumeCommand.ts +0 -98
  249. package/src/commands/DescribeBackupsCommand.ts +0 -124
  250. package/src/commands/DescribeDataRepositoryTasksCommand.ts +0 -110
  251. package/src/commands/DescribeFileSystemAliasesCommand.ts +0 -100
  252. package/src/commands/DescribeFileSystemsCommand.ts +0 -126
  253. package/src/commands/DescribeStorageVirtualMachinesCommand.ts +0 -103
  254. package/src/commands/DescribeVolumesCommand.ts +0 -95
  255. package/src/commands/DisassociateFileSystemAliasesCommand.ts +0 -108
  256. package/src/commands/ListTagsForResourceCommand.ts +0 -123
  257. package/src/commands/TagResourceCommand.ts +0 -95
  258. package/src/commands/UntagResourceCommand.ts +0 -95
  259. package/src/commands/UpdateFileSystemCommand.ts +0 -159
  260. package/src/commands/UpdateStorageVirtualMachineCommand.ts +0 -100
  261. package/src/commands/UpdateVolumeCommand.ts +0 -95
  262. package/src/endpoints.ts +0 -91
  263. package/src/index.ts +0 -38
  264. package/src/models/index.ts +0 -1
  265. package/src/models/models_0.ts +0 -5999
  266. package/src/pagination/DescribeBackupsPaginator.ts +0 -59
  267. package/src/pagination/DescribeDataRepositoryTasksPaginator.ts +0 -59
  268. package/src/pagination/DescribeFileSystemAliasesPaginator.ts +0 -59
  269. package/src/pagination/DescribeFileSystemsPaginator.ts +0 -59
  270. package/src/pagination/DescribeStorageVirtualMachinesPaginator.ts +0 -59
  271. package/src/pagination/DescribeVolumesPaginator.ts +0 -59
  272. package/src/pagination/Interfaces.ts +0 -8
  273. package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
  274. package/src/protocols/Aws_json1_1.ts +0 -5910
  275. package/src/runtimeConfig.browser.ts +0 -41
  276. package/src/runtimeConfig.native.ts +0 -17
  277. package/src/runtimeConfig.shared.ts +0 -17
  278. package/src/runtimeConfig.ts +0 -46
  279. package/tsconfig.es.json +0 -10
  280. package/tsconfig.json +0 -33
  281. package/tsconfig.types.json +0 -9
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeBackupsCommand,
5
- DescribeBackupsCommandInput,
6
- DescribeBackupsCommandOutput,
7
- } from "../commands/DescribeBackupsCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: DescribeBackupsCommandInput,
18
- ...args: any
19
- ): Promise<DescribeBackupsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeBackupsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: DescribeBackupsCommandInput,
29
- ...args: any
30
- ): Promise<DescribeBackupsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeBackups(input, ...args);
33
- };
34
- export async function* paginateDescribeBackups(
35
- config: FSxPaginationConfiguration,
36
- input: DescribeBackupsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeBackupsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeBackupsCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeDataRepositoryTasksCommand,
5
- DescribeDataRepositoryTasksCommandInput,
6
- DescribeDataRepositoryTasksCommandOutput,
7
- } from "../commands/DescribeDataRepositoryTasksCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: DescribeDataRepositoryTasksCommandInput,
18
- ...args: any
19
- ): Promise<DescribeDataRepositoryTasksCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeDataRepositoryTasksCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: DescribeDataRepositoryTasksCommandInput,
29
- ...args: any
30
- ): Promise<DescribeDataRepositoryTasksCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeDataRepositoryTasks(input, ...args);
33
- };
34
- export async function* paginateDescribeDataRepositoryTasks(
35
- config: FSxPaginationConfiguration,
36
- input: DescribeDataRepositoryTasksCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeDataRepositoryTasksCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeDataRepositoryTasksCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeFileSystemAliasesCommand,
5
- DescribeFileSystemAliasesCommandInput,
6
- DescribeFileSystemAliasesCommandOutput,
7
- } from "../commands/DescribeFileSystemAliasesCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: DescribeFileSystemAliasesCommandInput,
18
- ...args: any
19
- ): Promise<DescribeFileSystemAliasesCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeFileSystemAliasesCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: DescribeFileSystemAliasesCommandInput,
29
- ...args: any
30
- ): Promise<DescribeFileSystemAliasesCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeFileSystemAliases(input, ...args);
33
- };
34
- export async function* paginateDescribeFileSystemAliases(
35
- config: FSxPaginationConfiguration,
36
- input: DescribeFileSystemAliasesCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeFileSystemAliasesCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeFileSystemAliasesCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeFileSystemsCommand,
5
- DescribeFileSystemsCommandInput,
6
- DescribeFileSystemsCommandOutput,
7
- } from "../commands/DescribeFileSystemsCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: DescribeFileSystemsCommandInput,
18
- ...args: any
19
- ): Promise<DescribeFileSystemsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeFileSystemsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: DescribeFileSystemsCommandInput,
29
- ...args: any
30
- ): Promise<DescribeFileSystemsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeFileSystems(input, ...args);
33
- };
34
- export async function* paginateDescribeFileSystems(
35
- config: FSxPaginationConfiguration,
36
- input: DescribeFileSystemsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeFileSystemsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeFileSystemsCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeStorageVirtualMachinesCommand,
5
- DescribeStorageVirtualMachinesCommandInput,
6
- DescribeStorageVirtualMachinesCommandOutput,
7
- } from "../commands/DescribeStorageVirtualMachinesCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: DescribeStorageVirtualMachinesCommandInput,
18
- ...args: any
19
- ): Promise<DescribeStorageVirtualMachinesCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeStorageVirtualMachinesCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: DescribeStorageVirtualMachinesCommandInput,
29
- ...args: any
30
- ): Promise<DescribeStorageVirtualMachinesCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeStorageVirtualMachines(input, ...args);
33
- };
34
- export async function* paginateDescribeStorageVirtualMachines(
35
- config: FSxPaginationConfiguration,
36
- input: DescribeStorageVirtualMachinesCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeStorageVirtualMachinesCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeStorageVirtualMachinesCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeVolumesCommand,
5
- DescribeVolumesCommandInput,
6
- DescribeVolumesCommandOutput,
7
- } from "../commands/DescribeVolumesCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: DescribeVolumesCommandInput,
18
- ...args: any
19
- ): Promise<DescribeVolumesCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeVolumesCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: DescribeVolumesCommandInput,
29
- ...args: any
30
- ): Promise<DescribeVolumesCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeVolumes(input, ...args);
33
- };
34
- export async function* paginateDescribeVolumes(
35
- config: FSxPaginationConfiguration,
36
- input: DescribeVolumesCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeVolumesCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeVolumesCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,8 +0,0 @@
1
- import { PaginationConfiguration } from "@aws-sdk/types";
2
-
3
- import { FSx } from "../FSx";
4
- import { FSxClient } from "../FSxClient";
5
-
6
- export interface FSxPaginationConfiguration extends PaginationConfiguration {
7
- client: FSx | FSxClient;
8
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListTagsForResourceCommand,
5
- ListTagsForResourceCommandInput,
6
- ListTagsForResourceCommandOutput,
7
- } from "../commands/ListTagsForResourceCommand";
8
- import { FSx } from "../FSx";
9
- import { FSxClient } from "../FSxClient";
10
- import { FSxPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: FSxClient,
17
- input: ListTagsForResourceCommandInput,
18
- ...args: any
19
- ): Promise<ListTagsForResourceCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListTagsForResourceCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: FSx,
28
- input: ListTagsForResourceCommandInput,
29
- ...args: any
30
- ): Promise<ListTagsForResourceCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listTagsForResource(input, ...args);
33
- };
34
- export async function* paginateListTagsForResource(
35
- config: FSxPaginationConfiguration,
36
- input: ListTagsForResourceCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListTagsForResourceCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListTagsForResourceCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof FSx) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof FSxClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected FSx | FSxClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }