@aws-sdk/client-datasync 3.34.0 → 3.37.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 (402) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/DataSync.js +1 -11
  3. package/{dist/cjs → dist-cjs}/DataSyncClient.js +8 -23
  4. package/{dist/cjs → dist-cjs}/commands/CancelTaskExecutionCommand.js +2 -34
  5. package/dist-cjs/commands/CreateAgentCommand.js +36 -0
  6. package/{dist/cjs → dist-cjs}/commands/CreateLocationEfsCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/CreateLocationFsxWindowsCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/CreateLocationNfsCommand.js +2 -28
  9. package/{dist/cjs → dist-cjs}/commands/CreateLocationObjectStorageCommand.js +2 -28
  10. package/{dist/cjs → dist-cjs}/commands/CreateLocationS3Command.js +2 -33
  11. package/{dist/cjs → dist-cjs}/commands/CreateLocationSmbCommand.js +2 -28
  12. package/dist-cjs/commands/CreateTaskCommand.js +36 -0
  13. package/{dist/cjs → dist-cjs}/commands/DeleteAgentCommand.js +2 -30
  14. package/{dist/cjs → dist-cjs}/commands/DeleteLocationCommand.js +2 -27
  15. package/{dist/cjs → dist-cjs}/commands/DeleteTaskCommand.js +2 -27
  16. package/{dist/cjs → dist-cjs}/commands/DescribeAgentCommand.js +2 -29
  17. package/{dist/cjs → dist-cjs}/commands/DescribeLocationEfsCommand.js +2 -27
  18. package/{dist/cjs → dist-cjs}/commands/DescribeLocationFsxWindowsCommand.js +2 -28
  19. package/{dist/cjs → dist-cjs}/commands/DescribeLocationNfsCommand.js +2 -27
  20. package/{dist/cjs → dist-cjs}/commands/DescribeLocationObjectStorageCommand.js +2 -28
  21. package/{dist/cjs → dist-cjs}/commands/DescribeLocationS3Command.js +2 -27
  22. package/{dist/cjs → dist-cjs}/commands/DescribeLocationSmbCommand.js +2 -27
  23. package/{dist/cjs → dist-cjs}/commands/DescribeTaskCommand.js +2 -27
  24. package/{dist/cjs → dist-cjs}/commands/DescribeTaskExecutionCommand.js +2 -27
  25. package/dist-cjs/commands/ListAgentsCommand.js +36 -0
  26. package/{dist/cjs → dist-cjs}/commands/ListLocationsCommand.js +2 -30
  27. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  28. package/{dist/cjs → dist-cjs}/commands/ListTaskExecutionsCommand.js +2 -27
  29. package/{dist/cjs → dist-cjs}/commands/ListTasksCommand.js +2 -27
  30. package/{dist/cjs → dist-cjs}/commands/StartTaskExecutionCommand.js +2 -35
  31. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
  32. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
  33. package/{dist/cjs → dist-cjs}/commands/UpdateAgentCommand.js +2 -27
  34. package/{dist/cjs → dist-cjs}/commands/UpdateLocationNfsCommand.js +2 -28
  35. package/{dist/cjs → dist-cjs}/commands/UpdateLocationObjectStorageCommand.js +2 -29
  36. package/{dist/cjs → dist-cjs}/commands/UpdateLocationSmbCommand.js +2 -29
  37. package/{dist/cjs → dist-cjs}/commands/UpdateTaskCommand.js +2 -27
  38. package/dist-cjs/commands/UpdateTaskExecutionCommand.js +36 -0
  39. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  40. package/{dist/cjs → dist-cjs}/index.js +0 -1
  41. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  42. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -268
  43. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  44. package/{dist/cjs → dist-cjs}/pagination/ListAgentsPaginator.js +1 -12
  45. package/{dist/cjs → dist-cjs}/pagination/ListLocationsPaginator.js +1 -12
  46. package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -12
  47. package/{dist/cjs → dist-cjs}/pagination/ListTaskExecutionsPaginator.js +1 -12
  48. package/{dist/cjs → dist-cjs}/pagination/ListTasksPaginator.js +1 -12
  49. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  50. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  51. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  52. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  53. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  54. package/{dist/es → dist-es}/DataSync.js +1 -2
  55. package/{dist/es → dist-es}/DataSyncClient.js +1 -2
  56. package/{dist/es → dist-es}/commands/CancelTaskExecutionCommand.js +2 -3
  57. package/{dist/es → dist-es}/commands/CreateAgentCommand.js +2 -3
  58. package/{dist/es → dist-es}/commands/CreateLocationEfsCommand.js +2 -3
  59. package/{dist/es → dist-es}/commands/CreateLocationFsxWindowsCommand.js +2 -3
  60. package/{dist/es → dist-es}/commands/CreateLocationNfsCommand.js +2 -3
  61. package/{dist/es → dist-es}/commands/CreateLocationObjectStorageCommand.js +2 -3
  62. package/{dist/es → dist-es}/commands/CreateLocationS3Command.js +2 -3
  63. package/{dist/es → dist-es}/commands/CreateLocationSmbCommand.js +2 -3
  64. package/{dist/es → dist-es}/commands/CreateTaskCommand.js +2 -3
  65. package/{dist/es → dist-es}/commands/DeleteAgentCommand.js +2 -3
  66. package/{dist/es → dist-es}/commands/DeleteLocationCommand.js +2 -3
  67. package/{dist/es → dist-es}/commands/DeleteTaskCommand.js +2 -3
  68. package/{dist/es → dist-es}/commands/DescribeAgentCommand.js +2 -3
  69. package/{dist/es → dist-es}/commands/DescribeLocationEfsCommand.js +2 -3
  70. package/{dist/es → dist-es}/commands/DescribeLocationFsxWindowsCommand.js +2 -3
  71. package/{dist/es → dist-es}/commands/DescribeLocationNfsCommand.js +2 -3
  72. package/{dist/es → dist-es}/commands/DescribeLocationObjectStorageCommand.js +2 -3
  73. package/{dist/es → dist-es}/commands/DescribeLocationS3Command.js +2 -3
  74. package/{dist/es → dist-es}/commands/DescribeLocationSmbCommand.js +2 -3
  75. package/{dist/es → dist-es}/commands/DescribeTaskCommand.js +2 -3
  76. package/{dist/es → dist-es}/commands/DescribeTaskExecutionCommand.js +2 -3
  77. package/{dist/es → dist-es}/commands/ListAgentsCommand.js +2 -3
  78. package/{dist/es → dist-es}/commands/ListLocationsCommand.js +2 -3
  79. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  80. package/{dist/es → dist-es}/commands/ListTaskExecutionsCommand.js +2 -3
  81. package/{dist/es → dist-es}/commands/ListTasksCommand.js +2 -3
  82. package/{dist/es → dist-es}/commands/StartTaskExecutionCommand.js +2 -3
  83. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  84. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  85. package/{dist/es → dist-es}/commands/UpdateAgentCommand.js +2 -3
  86. package/{dist/es → dist-es}/commands/UpdateLocationNfsCommand.js +2 -3
  87. package/{dist/es → dist-es}/commands/UpdateLocationObjectStorageCommand.js +2 -3
  88. package/{dist/es → dist-es}/commands/UpdateLocationSmbCommand.js +2 -3
  89. package/{dist/es → dist-es}/commands/UpdateTaskCommand.js +2 -3
  90. package/{dist/es → dist-es}/commands/UpdateTaskExecutionCommand.js +2 -3
  91. package/{dist/es → dist-es}/endpoints.js +1 -2
  92. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  93. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  94. package/{dist/es → dist-es}/models/models_0.js +0 -1
  95. package/dist-es/pagination/Interfaces.js +1 -0
  96. package/{dist/es → dist-es}/pagination/ListAgentsPaginator.js +1 -2
  97. package/{dist/es → dist-es}/pagination/ListLocationsPaginator.js +1 -2
  98. package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +1 -2
  99. package/{dist/es → dist-es}/pagination/ListTaskExecutionsPaginator.js +1 -2
  100. package/{dist/es → dist-es}/pagination/ListTasksPaginator.js +1 -2
  101. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  102. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  103. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  104. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  105. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  106. package/{dist/types → dist-types}/DataSync.d.ts +2 -2
  107. package/{dist/types → dist-types}/DataSyncClient.d.ts +8 -8
  108. package/{dist/types → dist-types}/commands/CancelTaskExecutionCommand.d.ts +2 -2
  109. package/{dist/types → dist-types}/commands/CreateAgentCommand.d.ts +2 -2
  110. package/{dist/types → dist-types}/commands/CreateLocationEfsCommand.d.ts +2 -2
  111. package/{dist/types → dist-types}/commands/CreateLocationFsxWindowsCommand.d.ts +2 -2
  112. package/{dist/types → dist-types}/commands/CreateLocationNfsCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/commands/CreateLocationObjectStorageCommand.d.ts +2 -2
  114. package/{dist/types → dist-types}/commands/CreateLocationS3Command.d.ts +2 -2
  115. package/{dist/types → dist-types}/commands/CreateLocationSmbCommand.d.ts +2 -2
  116. package/{dist/types → dist-types}/commands/CreateTaskCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/commands/DeleteAgentCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/commands/DeleteLocationCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/commands/DeleteTaskCommand.d.ts +2 -2
  120. package/{dist/types → dist-types}/commands/DescribeAgentCommand.d.ts +2 -2
  121. package/{dist/types → dist-types}/commands/DescribeLocationEfsCommand.d.ts +2 -2
  122. package/{dist/types → dist-types}/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -2
  123. package/{dist/types → dist-types}/commands/DescribeLocationNfsCommand.d.ts +2 -2
  124. package/{dist/types → dist-types}/commands/DescribeLocationObjectStorageCommand.d.ts +2 -2
  125. package/{dist/types → dist-types}/commands/DescribeLocationS3Command.d.ts +2 -2
  126. package/{dist/types → dist-types}/commands/DescribeLocationSmbCommand.d.ts +2 -2
  127. package/{dist/types → dist-types}/commands/DescribeTaskCommand.d.ts +2 -2
  128. package/{dist/types → dist-types}/commands/DescribeTaskExecutionCommand.d.ts +2 -2
  129. package/{dist/types → dist-types}/commands/ListAgentsCommand.d.ts +2 -2
  130. package/{dist/types → dist-types}/commands/ListLocationsCommand.d.ts +2 -2
  131. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  132. package/{dist/types → dist-types}/commands/ListTaskExecutionsCommand.d.ts +2 -2
  133. package/{dist/types → dist-types}/commands/ListTasksCommand.d.ts +2 -2
  134. package/{dist/types → dist-types}/commands/StartTaskExecutionCommand.d.ts +2 -2
  135. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  136. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/UpdateAgentCommand.d.ts +2 -2
  138. package/{dist/types → dist-types}/commands/UpdateLocationNfsCommand.d.ts +2 -2
  139. package/{dist/types → dist-types}/commands/UpdateLocationObjectStorageCommand.d.ts +2 -2
  140. package/{dist/types → dist-types}/commands/UpdateLocationSmbCommand.d.ts +2 -2
  141. package/{dist/types → dist-types}/commands/UpdateTaskCommand.d.ts +2 -2
  142. package/{dist/types → dist-types}/commands/UpdateTaskExecutionCommand.d.ts +2 -2
  143. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  144. package/{index.ts → dist-types/index.d.ts} +0 -0
  145. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  146. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  147. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  148. package/{dist/types → dist-types}/pagination/ListAgentsPaginator.d.ts +1 -1
  149. package/{dist/types → dist-types}/pagination/ListLocationsPaginator.d.ts +1 -1
  150. package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  151. package/{dist/types → dist-types}/pagination/ListTaskExecutionsPaginator.d.ts +1 -1
  152. package/{dist/types → dist-types}/pagination/ListTasksPaginator.d.ts +1 -1
  153. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  154. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  155. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  156. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  157. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  158. package/{dist/types → dist-types}/ts3.4/DataSync.d.ts +38 -203
  159. package/{dist/types → dist-types}/ts3.4/DataSyncClient.d.ts +32 -103
  160. package/dist-types/ts3.4/commands/CancelTaskExecutionCommand.d.ts +17 -0
  161. package/dist-types/ts3.4/commands/CreateAgentCommand.d.ts +17 -0
  162. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationEfsCommand.d.ts +4 -22
  163. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationFsxWindowsCommand.d.ts +4 -22
  164. package/dist-types/ts3.4/commands/CreateLocationNfsCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/CreateLocationObjectStorageCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/CreateLocationS3Command.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/CreateLocationSmbCommand.d.ts +17 -0
  168. package/dist-types/ts3.4/commands/CreateTaskCommand.d.ts +17 -0
  169. package/dist-types/ts3.4/commands/DeleteAgentCommand.d.ts +17 -0
  170. package/dist-types/ts3.4/commands/DeleteLocationCommand.d.ts +17 -0
  171. package/dist-types/ts3.4/commands/DeleteTaskCommand.d.ts +17 -0
  172. package/dist-types/ts3.4/commands/DescribeAgentCommand.d.ts +17 -0
  173. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationEfsCommand.d.ts +4 -22
  174. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationFsxWindowsCommand.d.ts +4 -23
  175. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationNfsCommand.d.ts +4 -22
  176. package/dist-types/ts3.4/commands/DescribeLocationObjectStorageCommand.d.ts +17 -0
  177. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationS3Command.d.ts +4 -22
  178. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationSmbCommand.d.ts +4 -22
  179. package/{dist/types → dist-types}/ts3.4/commands/DescribeTaskCommand.d.ts +4 -22
  180. package/{dist/types → dist-types}/ts3.4/commands/DescribeTaskExecutionCommand.d.ts +4 -22
  181. package/dist-types/ts3.4/commands/ListAgentsCommand.d.ts +17 -0
  182. package/dist-types/ts3.4/commands/ListLocationsCommand.d.ts +17 -0
  183. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
  184. package/{dist/types → dist-types}/ts3.4/commands/ListTaskExecutionsCommand.d.ts +4 -22
  185. package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +17 -0
  186. package/dist-types/ts3.4/commands/StartTaskExecutionCommand.d.ts +17 -0
  187. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  188. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  189. package/dist-types/ts3.4/commands/UpdateAgentCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/UpdateLocationNfsCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/UpdateLocationObjectStorageCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/UpdateLocationSmbCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/UpdateTaskCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/UpdateTaskExecutionCommand.d.ts +17 -0
  195. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  196. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  197. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  198. package/dist-types/ts3.4/models/models_0.d.ts +1271 -0
  199. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  200. package/{dist/types → dist-types}/ts3.4/pagination/ListAgentsPaginator.d.ts +1 -1
  201. package/{dist/types → dist-types}/ts3.4/pagination/ListLocationsPaginator.d.ts +1 -1
  202. package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  203. package/{dist/types → dist-types}/ts3.4/pagination/ListTaskExecutionsPaginator.d.ts +1 -1
  204. package/{dist/types → dist-types}/ts3.4/pagination/ListTasksPaginator.d.ts +1 -1
  205. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  206. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  207. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  208. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  209. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  210. package/package.json +45 -42
  211. package/DataSync.ts +0 -1302
  212. package/DataSyncClient.ts +0 -382
  213. package/commands/CancelTaskExecutionCommand.ts +0 -101
  214. package/commands/CreateAgentCommand.ts +0 -108
  215. package/commands/CreateLocationEfsCommand.ts +0 -94
  216. package/commands/CreateLocationFsxWindowsCommand.ts +0 -94
  217. package/commands/CreateLocationNfsCommand.ts +0 -95
  218. package/commands/CreateLocationObjectStorageCommand.ts +0 -100
  219. package/commands/CreateLocationS3Command.ts +0 -100
  220. package/commands/CreateLocationSmbCommand.ts +0 -95
  221. package/commands/CreateTaskCommand.ts +0 -112
  222. package/commands/DeleteAgentCommand.ts +0 -97
  223. package/commands/DeleteLocationCommand.ts +0 -94
  224. package/commands/DeleteTaskCommand.ts +0 -94
  225. package/commands/DescribeAgentCommand.ts +0 -96
  226. package/commands/DescribeLocationEfsCommand.ts +0 -94
  227. package/commands/DescribeLocationFsxWindowsCommand.ts +0 -98
  228. package/commands/DescribeLocationNfsCommand.ts +0 -94
  229. package/commands/DescribeLocationObjectStorageCommand.ts +0 -100
  230. package/commands/DescribeLocationS3Command.ts +0 -94
  231. package/commands/DescribeLocationSmbCommand.ts +0 -94
  232. package/commands/DescribeTaskCommand.ts +0 -94
  233. package/commands/DescribeTaskExecutionCommand.ts +0 -94
  234. package/commands/ListAgentsCommand.ts +0 -101
  235. package/commands/ListLocationsCommand.ts +0 -97
  236. package/commands/ListTagsForResourceCommand.ts +0 -94
  237. package/commands/ListTaskExecutionsCommand.ts +0 -94
  238. package/commands/ListTasksCommand.ts +0 -91
  239. package/commands/StartTaskExecutionCommand.ts +0 -102
  240. package/commands/TagResourceCommand.ts +0 -94
  241. package/commands/UntagResourceCommand.ts +0 -94
  242. package/commands/UpdateAgentCommand.ts +0 -94
  243. package/commands/UpdateLocationNfsCommand.ts +0 -95
  244. package/commands/UpdateLocationObjectStorageCommand.ts +0 -101
  245. package/commands/UpdateLocationSmbCommand.ts +0 -96
  246. package/commands/UpdateTaskCommand.ts +0 -94
  247. package/commands/UpdateTaskExecutionCommand.ts +0 -103
  248. package/dist/cjs/DataSync.js.map +0 -1
  249. package/dist/cjs/DataSyncClient.js.map +0 -1
  250. package/dist/cjs/commands/CancelTaskExecutionCommand.js.map +0 -1
  251. package/dist/cjs/commands/CreateAgentCommand.js +0 -75
  252. package/dist/cjs/commands/CreateAgentCommand.js.map +0 -1
  253. package/dist/cjs/commands/CreateLocationEfsCommand.js.map +0 -1
  254. package/dist/cjs/commands/CreateLocationFsxWindowsCommand.js.map +0 -1
  255. package/dist/cjs/commands/CreateLocationNfsCommand.js.map +0 -1
  256. package/dist/cjs/commands/CreateLocationObjectStorageCommand.js.map +0 -1
  257. package/dist/cjs/commands/CreateLocationS3Command.js.map +0 -1
  258. package/dist/cjs/commands/CreateLocationSmbCommand.js.map +0 -1
  259. package/dist/cjs/commands/CreateTaskCommand.js +0 -79
  260. package/dist/cjs/commands/CreateTaskCommand.js.map +0 -1
  261. package/dist/cjs/commands/DeleteAgentCommand.js.map +0 -1
  262. package/dist/cjs/commands/DeleteLocationCommand.js.map +0 -1
  263. package/dist/cjs/commands/DeleteTaskCommand.js.map +0 -1
  264. package/dist/cjs/commands/DescribeAgentCommand.js.map +0 -1
  265. package/dist/cjs/commands/DescribeLocationEfsCommand.js.map +0 -1
  266. package/dist/cjs/commands/DescribeLocationFsxWindowsCommand.js.map +0 -1
  267. package/dist/cjs/commands/DescribeLocationNfsCommand.js.map +0 -1
  268. package/dist/cjs/commands/DescribeLocationObjectStorageCommand.js.map +0 -1
  269. package/dist/cjs/commands/DescribeLocationS3Command.js.map +0 -1
  270. package/dist/cjs/commands/DescribeLocationSmbCommand.js.map +0 -1
  271. package/dist/cjs/commands/DescribeTaskCommand.js.map +0 -1
  272. package/dist/cjs/commands/DescribeTaskExecutionCommand.js.map +0 -1
  273. package/dist/cjs/commands/ListAgentsCommand.js +0 -68
  274. package/dist/cjs/commands/ListAgentsCommand.js.map +0 -1
  275. package/dist/cjs/commands/ListLocationsCommand.js.map +0 -1
  276. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  277. package/dist/cjs/commands/ListTaskExecutionsCommand.js.map +0 -1
  278. package/dist/cjs/commands/ListTasksCommand.js.map +0 -1
  279. package/dist/cjs/commands/StartTaskExecutionCommand.js.map +0 -1
  280. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  281. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  282. package/dist/cjs/commands/UpdateAgentCommand.js.map +0 -1
  283. package/dist/cjs/commands/UpdateLocationNfsCommand.js.map +0 -1
  284. package/dist/cjs/commands/UpdateLocationObjectStorageCommand.js.map +0 -1
  285. package/dist/cjs/commands/UpdateLocationSmbCommand.js.map +0 -1
  286. package/dist/cjs/commands/UpdateTaskCommand.js.map +0 -1
  287. package/dist/cjs/commands/UpdateTaskExecutionCommand.js +0 -70
  288. package/dist/cjs/commands/UpdateTaskExecutionCommand.js.map +0 -1
  289. package/dist/cjs/endpoints.js.map +0 -1
  290. package/dist/cjs/index.js.map +0 -1
  291. package/dist/cjs/models/index.js.map +0 -1
  292. package/dist/cjs/models/models_0.js.map +0 -1
  293. package/dist/cjs/package.json +0 -91
  294. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  295. package/dist/cjs/pagination/ListAgentsPaginator.js.map +0 -1
  296. package/dist/cjs/pagination/ListLocationsPaginator.js.map +0 -1
  297. package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  298. package/dist/cjs/pagination/ListTaskExecutionsPaginator.js.map +0 -1
  299. package/dist/cjs/pagination/ListTasksPaginator.js.map +0 -1
  300. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  301. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  302. package/dist/cjs/runtimeConfig.js.map +0 -1
  303. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  304. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  305. package/dist/es/DataSync.js.map +0 -1
  306. package/dist/es/DataSyncClient.js.map +0 -1
  307. package/dist/es/commands/CancelTaskExecutionCommand.js.map +0 -1
  308. package/dist/es/commands/CreateAgentCommand.js.map +0 -1
  309. package/dist/es/commands/CreateLocationEfsCommand.js.map +0 -1
  310. package/dist/es/commands/CreateLocationFsxWindowsCommand.js.map +0 -1
  311. package/dist/es/commands/CreateLocationNfsCommand.js.map +0 -1
  312. package/dist/es/commands/CreateLocationObjectStorageCommand.js.map +0 -1
  313. package/dist/es/commands/CreateLocationS3Command.js.map +0 -1
  314. package/dist/es/commands/CreateLocationSmbCommand.js.map +0 -1
  315. package/dist/es/commands/CreateTaskCommand.js.map +0 -1
  316. package/dist/es/commands/DeleteAgentCommand.js.map +0 -1
  317. package/dist/es/commands/DeleteLocationCommand.js.map +0 -1
  318. package/dist/es/commands/DeleteTaskCommand.js.map +0 -1
  319. package/dist/es/commands/DescribeAgentCommand.js.map +0 -1
  320. package/dist/es/commands/DescribeLocationEfsCommand.js.map +0 -1
  321. package/dist/es/commands/DescribeLocationFsxWindowsCommand.js.map +0 -1
  322. package/dist/es/commands/DescribeLocationNfsCommand.js.map +0 -1
  323. package/dist/es/commands/DescribeLocationObjectStorageCommand.js.map +0 -1
  324. package/dist/es/commands/DescribeLocationS3Command.js.map +0 -1
  325. package/dist/es/commands/DescribeLocationSmbCommand.js.map +0 -1
  326. package/dist/es/commands/DescribeTaskCommand.js.map +0 -1
  327. package/dist/es/commands/DescribeTaskExecutionCommand.js.map +0 -1
  328. package/dist/es/commands/ListAgentsCommand.js.map +0 -1
  329. package/dist/es/commands/ListLocationsCommand.js.map +0 -1
  330. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  331. package/dist/es/commands/ListTaskExecutionsCommand.js.map +0 -1
  332. package/dist/es/commands/ListTasksCommand.js.map +0 -1
  333. package/dist/es/commands/StartTaskExecutionCommand.js.map +0 -1
  334. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  335. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  336. package/dist/es/commands/UpdateAgentCommand.js.map +0 -1
  337. package/dist/es/commands/UpdateLocationNfsCommand.js.map +0 -1
  338. package/dist/es/commands/UpdateLocationObjectStorageCommand.js.map +0 -1
  339. package/dist/es/commands/UpdateLocationSmbCommand.js.map +0 -1
  340. package/dist/es/commands/UpdateTaskCommand.js.map +0 -1
  341. package/dist/es/commands/UpdateTaskExecutionCommand.js.map +0 -1
  342. package/dist/es/endpoints.js.map +0 -1
  343. package/dist/es/index.js +0 -45
  344. package/dist/es/index.js.map +0 -1
  345. package/dist/es/models/index.js +0 -2
  346. package/dist/es/models/index.js.map +0 -1
  347. package/dist/es/models/models_0.js.map +0 -1
  348. package/dist/es/package.json +0 -91
  349. package/dist/es/pagination/Interfaces.js +0 -2
  350. package/dist/es/pagination/Interfaces.js.map +0 -1
  351. package/dist/es/pagination/ListAgentsPaginator.js.map +0 -1
  352. package/dist/es/pagination/ListLocationsPaginator.js.map +0 -1
  353. package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  354. package/dist/es/pagination/ListTaskExecutionsPaginator.js.map +0 -1
  355. package/dist/es/pagination/ListTasksPaginator.js.map +0 -1
  356. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  357. package/dist/es/runtimeConfig.browser.js.map +0 -1
  358. package/dist/es/runtimeConfig.js.map +0 -1
  359. package/dist/es/runtimeConfig.native.js.map +0 -1
  360. package/dist/es/runtimeConfig.shared.js.map +0 -1
  361. package/dist/types/ts3.4/commands/CancelTaskExecutionCommand.d.ts +0 -42
  362. package/dist/types/ts3.4/commands/CreateAgentCommand.d.ts +0 -49
  363. package/dist/types/ts3.4/commands/CreateLocationNfsCommand.d.ts +0 -36
  364. package/dist/types/ts3.4/commands/CreateLocationObjectStorageCommand.d.ts +0 -36
  365. package/dist/types/ts3.4/commands/CreateLocationS3Command.d.ts +0 -41
  366. package/dist/types/ts3.4/commands/CreateLocationSmbCommand.d.ts +0 -36
  367. package/dist/types/ts3.4/commands/CreateTaskCommand.d.ts +0 -53
  368. package/dist/types/ts3.4/commands/DeleteAgentCommand.d.ts +0 -38
  369. package/dist/types/ts3.4/commands/DeleteLocationCommand.d.ts +0 -35
  370. package/dist/types/ts3.4/commands/DeleteTaskCommand.d.ts +0 -35
  371. package/dist/types/ts3.4/commands/DescribeAgentCommand.d.ts +0 -37
  372. package/dist/types/ts3.4/commands/DescribeLocationObjectStorageCommand.d.ts +0 -36
  373. package/dist/types/ts3.4/commands/ListAgentsCommand.d.ts +0 -42
  374. package/dist/types/ts3.4/commands/ListLocationsCommand.d.ts +0 -38
  375. package/dist/types/ts3.4/commands/ListTasksCommand.d.ts +0 -35
  376. package/dist/types/ts3.4/commands/StartTaskExecutionCommand.d.ts +0 -43
  377. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
  378. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
  379. package/dist/types/ts3.4/commands/UpdateAgentCommand.d.ts +0 -35
  380. package/dist/types/ts3.4/commands/UpdateLocationNfsCommand.d.ts +0 -36
  381. package/dist/types/ts3.4/commands/UpdateLocationObjectStorageCommand.d.ts +0 -37
  382. package/dist/types/ts3.4/commands/UpdateLocationSmbCommand.d.ts +0 -37
  383. package/dist/types/ts3.4/commands/UpdateTaskCommand.d.ts +0 -35
  384. package/dist/types/ts3.4/commands/UpdateTaskExecutionCommand.d.ts +0 -44
  385. package/dist/types/ts3.4/models/models_0.d.ts +0 -2774
  386. package/endpoints.ts +0 -91
  387. package/jest.config.js +0 -4
  388. package/models/models_0.ts +0 -3336
  389. package/pagination/Interfaces.ts +0 -7
  390. package/pagination/ListAgentsPaginator.ts +0 -54
  391. package/pagination/ListLocationsPaginator.ts +0 -58
  392. package/pagination/ListTagsForResourcePaginator.ts +0 -58
  393. package/pagination/ListTaskExecutionsPaginator.ts +0 -58
  394. package/pagination/ListTasksPaginator.ts +0 -54
  395. package/protocols/Aws_json1_1.ts +0 -4257
  396. package/runtimeConfig.browser.ts +0 -40
  397. package/runtimeConfig.native.ts +0 -16
  398. package/runtimeConfig.shared.ts +0 -16
  399. package/runtimeConfig.ts +0 -45
  400. package/tsconfig.es.json +0 -10
  401. package/tsconfig.json +0 -31
  402. package/tsconfig.types.json +0 -8
package/DataSync.ts DELETED
@@ -1,1302 +0,0 @@
1
- import { DataSyncClient } from "./DataSyncClient";
2
- import {
3
- CancelTaskExecutionCommand,
4
- CancelTaskExecutionCommandInput,
5
- CancelTaskExecutionCommandOutput,
6
- } from "./commands/CancelTaskExecutionCommand";
7
- import { CreateAgentCommand, CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
8
- import {
9
- CreateLocationEfsCommand,
10
- CreateLocationEfsCommandInput,
11
- CreateLocationEfsCommandOutput,
12
- } from "./commands/CreateLocationEfsCommand";
13
- import {
14
- CreateLocationFsxWindowsCommand,
15
- CreateLocationFsxWindowsCommandInput,
16
- CreateLocationFsxWindowsCommandOutput,
17
- } from "./commands/CreateLocationFsxWindowsCommand";
18
- import {
19
- CreateLocationNfsCommand,
20
- CreateLocationNfsCommandInput,
21
- CreateLocationNfsCommandOutput,
22
- } from "./commands/CreateLocationNfsCommand";
23
- import {
24
- CreateLocationObjectStorageCommand,
25
- CreateLocationObjectStorageCommandInput,
26
- CreateLocationObjectStorageCommandOutput,
27
- } from "./commands/CreateLocationObjectStorageCommand";
28
- import {
29
- CreateLocationS3Command,
30
- CreateLocationS3CommandInput,
31
- CreateLocationS3CommandOutput,
32
- } from "./commands/CreateLocationS3Command";
33
- import {
34
- CreateLocationSmbCommand,
35
- CreateLocationSmbCommandInput,
36
- CreateLocationSmbCommandOutput,
37
- } from "./commands/CreateLocationSmbCommand";
38
- import { CreateTaskCommand, CreateTaskCommandInput, CreateTaskCommandOutput } from "./commands/CreateTaskCommand";
39
- import { DeleteAgentCommand, DeleteAgentCommandInput, DeleteAgentCommandOutput } from "./commands/DeleteAgentCommand";
40
- import {
41
- DeleteLocationCommand,
42
- DeleteLocationCommandInput,
43
- DeleteLocationCommandOutput,
44
- } from "./commands/DeleteLocationCommand";
45
- import { DeleteTaskCommand, DeleteTaskCommandInput, DeleteTaskCommandOutput } from "./commands/DeleteTaskCommand";
46
- import {
47
- DescribeAgentCommand,
48
- DescribeAgentCommandInput,
49
- DescribeAgentCommandOutput,
50
- } from "./commands/DescribeAgentCommand";
51
- import {
52
- DescribeLocationEfsCommand,
53
- DescribeLocationEfsCommandInput,
54
- DescribeLocationEfsCommandOutput,
55
- } from "./commands/DescribeLocationEfsCommand";
56
- import {
57
- DescribeLocationFsxWindowsCommand,
58
- DescribeLocationFsxWindowsCommandInput,
59
- DescribeLocationFsxWindowsCommandOutput,
60
- } from "./commands/DescribeLocationFsxWindowsCommand";
61
- import {
62
- DescribeLocationNfsCommand,
63
- DescribeLocationNfsCommandInput,
64
- DescribeLocationNfsCommandOutput,
65
- } from "./commands/DescribeLocationNfsCommand";
66
- import {
67
- DescribeLocationObjectStorageCommand,
68
- DescribeLocationObjectStorageCommandInput,
69
- DescribeLocationObjectStorageCommandOutput,
70
- } from "./commands/DescribeLocationObjectStorageCommand";
71
- import {
72
- DescribeLocationS3Command,
73
- DescribeLocationS3CommandInput,
74
- DescribeLocationS3CommandOutput,
75
- } from "./commands/DescribeLocationS3Command";
76
- import {
77
- DescribeLocationSmbCommand,
78
- DescribeLocationSmbCommandInput,
79
- DescribeLocationSmbCommandOutput,
80
- } from "./commands/DescribeLocationSmbCommand";
81
- import {
82
- DescribeTaskCommand,
83
- DescribeTaskCommandInput,
84
- DescribeTaskCommandOutput,
85
- } from "./commands/DescribeTaskCommand";
86
- import {
87
- DescribeTaskExecutionCommand,
88
- DescribeTaskExecutionCommandInput,
89
- DescribeTaskExecutionCommandOutput,
90
- } from "./commands/DescribeTaskExecutionCommand";
91
- import { ListAgentsCommand, ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
92
- import {
93
- ListLocationsCommand,
94
- ListLocationsCommandInput,
95
- ListLocationsCommandOutput,
96
- } from "./commands/ListLocationsCommand";
97
- import {
98
- ListTagsForResourceCommand,
99
- ListTagsForResourceCommandInput,
100
- ListTagsForResourceCommandOutput,
101
- } from "./commands/ListTagsForResourceCommand";
102
- import {
103
- ListTaskExecutionsCommand,
104
- ListTaskExecutionsCommandInput,
105
- ListTaskExecutionsCommandOutput,
106
- } from "./commands/ListTaskExecutionsCommand";
107
- import { ListTasksCommand, ListTasksCommandInput, ListTasksCommandOutput } from "./commands/ListTasksCommand";
108
- import {
109
- StartTaskExecutionCommand,
110
- StartTaskExecutionCommandInput,
111
- StartTaskExecutionCommandOutput,
112
- } from "./commands/StartTaskExecutionCommand";
113
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
114
- import {
115
- UntagResourceCommand,
116
- UntagResourceCommandInput,
117
- UntagResourceCommandOutput,
118
- } from "./commands/UntagResourceCommand";
119
- import { UpdateAgentCommand, UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
120
- import {
121
- UpdateLocationNfsCommand,
122
- UpdateLocationNfsCommandInput,
123
- UpdateLocationNfsCommandOutput,
124
- } from "./commands/UpdateLocationNfsCommand";
125
- import {
126
- UpdateLocationObjectStorageCommand,
127
- UpdateLocationObjectStorageCommandInput,
128
- UpdateLocationObjectStorageCommandOutput,
129
- } from "./commands/UpdateLocationObjectStorageCommand";
130
- import {
131
- UpdateLocationSmbCommand,
132
- UpdateLocationSmbCommandInput,
133
- UpdateLocationSmbCommandOutput,
134
- } from "./commands/UpdateLocationSmbCommand";
135
- import { UpdateTaskCommand, UpdateTaskCommandInput, UpdateTaskCommandOutput } from "./commands/UpdateTaskCommand";
136
- import {
137
- UpdateTaskExecutionCommand,
138
- UpdateTaskExecutionCommandInput,
139
- UpdateTaskExecutionCommandOutput,
140
- } from "./commands/UpdateTaskExecutionCommand";
141
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
142
-
143
- /**
144
- * <fullname>DataSync</fullname>
145
- *
146
- * <p>DataSync is a managed data transfer service that makes it simpler for you to
147
- * automate moving data between on-premises storage and Amazon Simple Storage Service (Amazon S3)
148
- * or Amazon Elastic File System (Amazon EFS). </p>
149
- * <p>This API interface reference for DataSync contains documentation for a
150
- * programming interface that you can use to manage DataSync.</p>
151
- */
152
- export class DataSync extends DataSyncClient {
153
- /**
154
- * <p>Cancels execution of a task. </p>
155
- * <p>When you cancel a task execution, the transfer of some files is abruptly interrupted.
156
- * The contents of files that are transferred to the destination might be incomplete or
157
- * inconsistent with the source files. However, if you start a new task execution on the same
158
- * task and you allow the task execution to complete, file content on the destination is complete
159
- * and consistent. This applies to other unexpected failures that interrupt a task execution. In
160
- * all of these cases, DataSync successfully complete the transfer when you start the next
161
- * task execution.</p>
162
- */
163
- public cancelTaskExecution(
164
- args: CancelTaskExecutionCommandInput,
165
- options?: __HttpHandlerOptions
166
- ): Promise<CancelTaskExecutionCommandOutput>;
167
- public cancelTaskExecution(
168
- args: CancelTaskExecutionCommandInput,
169
- cb: (err: any, data?: CancelTaskExecutionCommandOutput) => void
170
- ): void;
171
- public cancelTaskExecution(
172
- args: CancelTaskExecutionCommandInput,
173
- options: __HttpHandlerOptions,
174
- cb: (err: any, data?: CancelTaskExecutionCommandOutput) => void
175
- ): void;
176
- public cancelTaskExecution(
177
- args: CancelTaskExecutionCommandInput,
178
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelTaskExecutionCommandOutput) => void),
179
- cb?: (err: any, data?: CancelTaskExecutionCommandOutput) => void
180
- ): Promise<CancelTaskExecutionCommandOutput> | void {
181
- const command = new CancelTaskExecutionCommand(args);
182
- if (typeof optionsOrCb === "function") {
183
- this.send(command, optionsOrCb);
184
- } else if (typeof cb === "function") {
185
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
- this.send(command, optionsOrCb || {}, cb);
187
- } else {
188
- return this.send(command, optionsOrCb);
189
- }
190
- }
191
-
192
- /**
193
- * <p>Activates an DataSync agent that you have deployed on your host. The activation
194
- * process associates your agent with your account. In the activation process, you specify
195
- * information such as the Amazon Web Services Region that you want to activate the agent in. You activate the
196
- * agent in the Amazon Web Services Region where your target locations (in Amazon S3 or Amazon EFS) reside. Your
197
- * tasks are created in this Amazon Web Services Region.</p>
198
- * <p>You can activate the agent in a VPC (virtual private cloud) or provide the agent access to
199
- * a VPC endpoint so you can run tasks without going over the public internet.</p>
200
- * <p>You can use an agent for more than one location. If a task uses multiple agents, all of
201
- * them need to have status AVAILABLE for the task to run. If you use multiple agents for a
202
- * source location, the status of all the agents must be AVAILABLE for the task to run. </p>
203
- *
204
- *
205
- * <p>Agents are automatically updated by Amazon Web Services on a regular basis, using a mechanism that
206
- * ensures minimal interruption to your tasks.</p>
207
- * <p></p>
208
- */
209
- public createAgent(args: CreateAgentCommandInput, options?: __HttpHandlerOptions): Promise<CreateAgentCommandOutput>;
210
- public createAgent(args: CreateAgentCommandInput, cb: (err: any, data?: CreateAgentCommandOutput) => void): void;
211
- public createAgent(
212
- args: CreateAgentCommandInput,
213
- options: __HttpHandlerOptions,
214
- cb: (err: any, data?: CreateAgentCommandOutput) => void
215
- ): void;
216
- public createAgent(
217
- args: CreateAgentCommandInput,
218
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAgentCommandOutput) => void),
219
- cb?: (err: any, data?: CreateAgentCommandOutput) => void
220
- ): Promise<CreateAgentCommandOutput> | void {
221
- const command = new CreateAgentCommand(args);
222
- if (typeof optionsOrCb === "function") {
223
- this.send(command, optionsOrCb);
224
- } else if (typeof cb === "function") {
225
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
- this.send(command, optionsOrCb || {}, cb);
227
- } else {
228
- return this.send(command, optionsOrCb);
229
- }
230
- }
231
-
232
- /**
233
- * <p>Creates an endpoint for an Amazon EFS file system.</p>
234
- */
235
- public createLocationEfs(
236
- args: CreateLocationEfsCommandInput,
237
- options?: __HttpHandlerOptions
238
- ): Promise<CreateLocationEfsCommandOutput>;
239
- public createLocationEfs(
240
- args: CreateLocationEfsCommandInput,
241
- cb: (err: any, data?: CreateLocationEfsCommandOutput) => void
242
- ): void;
243
- public createLocationEfs(
244
- args: CreateLocationEfsCommandInput,
245
- options: __HttpHandlerOptions,
246
- cb: (err: any, data?: CreateLocationEfsCommandOutput) => void
247
- ): void;
248
- public createLocationEfs(
249
- args: CreateLocationEfsCommandInput,
250
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLocationEfsCommandOutput) => void),
251
- cb?: (err: any, data?: CreateLocationEfsCommandOutput) => void
252
- ): Promise<CreateLocationEfsCommandOutput> | void {
253
- const command = new CreateLocationEfsCommand(args);
254
- if (typeof optionsOrCb === "function") {
255
- this.send(command, optionsOrCb);
256
- } else if (typeof cb === "function") {
257
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
- this.send(command, optionsOrCb || {}, cb);
259
- } else {
260
- return this.send(command, optionsOrCb);
261
- }
262
- }
263
-
264
- /**
265
- * <p>Creates an endpoint for an Amazon FSx for Windows File Server file system.</p>
266
- */
267
- public createLocationFsxWindows(
268
- args: CreateLocationFsxWindowsCommandInput,
269
- options?: __HttpHandlerOptions
270
- ): Promise<CreateLocationFsxWindowsCommandOutput>;
271
- public createLocationFsxWindows(
272
- args: CreateLocationFsxWindowsCommandInput,
273
- cb: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void
274
- ): void;
275
- public createLocationFsxWindows(
276
- args: CreateLocationFsxWindowsCommandInput,
277
- options: __HttpHandlerOptions,
278
- cb: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void
279
- ): void;
280
- public createLocationFsxWindows(
281
- args: CreateLocationFsxWindowsCommandInput,
282
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLocationFsxWindowsCommandOutput) => void),
283
- cb?: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void
284
- ): Promise<CreateLocationFsxWindowsCommandOutput> | void {
285
- const command = new CreateLocationFsxWindowsCommand(args);
286
- if (typeof optionsOrCb === "function") {
287
- this.send(command, optionsOrCb);
288
- } else if (typeof cb === "function") {
289
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
- this.send(command, optionsOrCb || {}, cb);
291
- } else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
-
296
- /**
297
- * <p>Defines a file system on a Network File System (NFS) server that can be read from or
298
- * written to.</p>
299
- */
300
- public createLocationNfs(
301
- args: CreateLocationNfsCommandInput,
302
- options?: __HttpHandlerOptions
303
- ): Promise<CreateLocationNfsCommandOutput>;
304
- public createLocationNfs(
305
- args: CreateLocationNfsCommandInput,
306
- cb: (err: any, data?: CreateLocationNfsCommandOutput) => void
307
- ): void;
308
- public createLocationNfs(
309
- args: CreateLocationNfsCommandInput,
310
- options: __HttpHandlerOptions,
311
- cb: (err: any, data?: CreateLocationNfsCommandOutput) => void
312
- ): void;
313
- public createLocationNfs(
314
- args: CreateLocationNfsCommandInput,
315
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLocationNfsCommandOutput) => void),
316
- cb?: (err: any, data?: CreateLocationNfsCommandOutput) => void
317
- ): Promise<CreateLocationNfsCommandOutput> | void {
318
- const command = new CreateLocationNfsCommand(args);
319
- if (typeof optionsOrCb === "function") {
320
- this.send(command, optionsOrCb);
321
- } else if (typeof cb === "function") {
322
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
- this.send(command, optionsOrCb || {}, cb);
324
- } else {
325
- return this.send(command, optionsOrCb);
326
- }
327
- }
328
-
329
- /**
330
- * <p>Creates an endpoint for a self-managed object storage bucket. For more information
331
- * about self-managed object storage locations, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-object-location.html">Creating a location for object storage</a>.</p>
332
- */
333
- public createLocationObjectStorage(
334
- args: CreateLocationObjectStorageCommandInput,
335
- options?: __HttpHandlerOptions
336
- ): Promise<CreateLocationObjectStorageCommandOutput>;
337
- public createLocationObjectStorage(
338
- args: CreateLocationObjectStorageCommandInput,
339
- cb: (err: any, data?: CreateLocationObjectStorageCommandOutput) => void
340
- ): void;
341
- public createLocationObjectStorage(
342
- args: CreateLocationObjectStorageCommandInput,
343
- options: __HttpHandlerOptions,
344
- cb: (err: any, data?: CreateLocationObjectStorageCommandOutput) => void
345
- ): void;
346
- public createLocationObjectStorage(
347
- args: CreateLocationObjectStorageCommandInput,
348
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLocationObjectStorageCommandOutput) => void),
349
- cb?: (err: any, data?: CreateLocationObjectStorageCommandOutput) => void
350
- ): Promise<CreateLocationObjectStorageCommandOutput> | void {
351
- const command = new CreateLocationObjectStorageCommand(args);
352
- if (typeof optionsOrCb === "function") {
353
- this.send(command, optionsOrCb);
354
- } else if (typeof cb === "function") {
355
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
356
- this.send(command, optionsOrCb || {}, cb);
357
- } else {
358
- return this.send(command, optionsOrCb);
359
- }
360
- }
361
-
362
- /**
363
- * <p>Creates an endpoint for an Amazon S3 bucket.</p>
364
- *
365
- *
366
- * <p>For
367
- * more information, see
368
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-locations-cli.html#create-location-s3-cli">Create an Amazon S3 location</a>
369
- * in the <i>DataSync User Guide</i>.</p>
370
- */
371
- public createLocationS3(
372
- args: CreateLocationS3CommandInput,
373
- options?: __HttpHandlerOptions
374
- ): Promise<CreateLocationS3CommandOutput>;
375
- public createLocationS3(
376
- args: CreateLocationS3CommandInput,
377
- cb: (err: any, data?: CreateLocationS3CommandOutput) => void
378
- ): void;
379
- public createLocationS3(
380
- args: CreateLocationS3CommandInput,
381
- options: __HttpHandlerOptions,
382
- cb: (err: any, data?: CreateLocationS3CommandOutput) => void
383
- ): void;
384
- public createLocationS3(
385
- args: CreateLocationS3CommandInput,
386
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLocationS3CommandOutput) => void),
387
- cb?: (err: any, data?: CreateLocationS3CommandOutput) => void
388
- ): Promise<CreateLocationS3CommandOutput> | void {
389
- const command = new CreateLocationS3Command(args);
390
- if (typeof optionsOrCb === "function") {
391
- this.send(command, optionsOrCb);
392
- } else if (typeof cb === "function") {
393
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
- this.send(command, optionsOrCb || {}, cb);
395
- } else {
396
- return this.send(command, optionsOrCb);
397
- }
398
- }
399
-
400
- /**
401
- * <p>Defines a file system on a Server Message Block (SMB) server that can be read from or
402
- * written to.</p>
403
- */
404
- public createLocationSmb(
405
- args: CreateLocationSmbCommandInput,
406
- options?: __HttpHandlerOptions
407
- ): Promise<CreateLocationSmbCommandOutput>;
408
- public createLocationSmb(
409
- args: CreateLocationSmbCommandInput,
410
- cb: (err: any, data?: CreateLocationSmbCommandOutput) => void
411
- ): void;
412
- public createLocationSmb(
413
- args: CreateLocationSmbCommandInput,
414
- options: __HttpHandlerOptions,
415
- cb: (err: any, data?: CreateLocationSmbCommandOutput) => void
416
- ): void;
417
- public createLocationSmb(
418
- args: CreateLocationSmbCommandInput,
419
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLocationSmbCommandOutput) => void),
420
- cb?: (err: any, data?: CreateLocationSmbCommandOutput) => void
421
- ): Promise<CreateLocationSmbCommandOutput> | void {
422
- const command = new CreateLocationSmbCommand(args);
423
- if (typeof optionsOrCb === "function") {
424
- this.send(command, optionsOrCb);
425
- } else if (typeof cb === "function") {
426
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
427
- this.send(command, optionsOrCb || {}, cb);
428
- } else {
429
- return this.send(command, optionsOrCb);
430
- }
431
- }
432
-
433
- /**
434
- * <p>Creates a task.</p>
435
- * <p>A task includes a source location and a destination location, and a configuration
436
- * that specifies how data is transferred. A task always transfers data from the source
437
- * location to the destination location. The configuration specifies options such as
438
- * task scheduling, bandwidth limits, etc. A task is the complete definition of a data
439
- * transfer.</p>
440
- * <p>When you create a task that transfers data between Amazon Web Services services in different Amazon Web Services Regions,
441
- * one of the two locations that you specify must reside in the Region where DataSync is being
442
- * used. The other location must be specified in a different Region.</p>
443
- * <p>You can transfer data between commercial Amazon Web Services Regions except for China, or between
444
- * Amazon Web Services GovCloud (US) Regions.</p>
445
- *
446
- * <important>
447
- * <p>When you use DataSync to copy files or objects between Amazon Web Services Regions,
448
- * you pay for data transfer between Regions. This is billed as data transfer OUT
449
- * from your source Region to your destination Region. For more information,
450
- * see <a href="http://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer">Data Transfer pricing</a>.
451
- * </p>
452
- * </important>
453
- */
454
- public createTask(args: CreateTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateTaskCommandOutput>;
455
- public createTask(args: CreateTaskCommandInput, cb: (err: any, data?: CreateTaskCommandOutput) => void): void;
456
- public createTask(
457
- args: CreateTaskCommandInput,
458
- options: __HttpHandlerOptions,
459
- cb: (err: any, data?: CreateTaskCommandOutput) => void
460
- ): void;
461
- public createTask(
462
- args: CreateTaskCommandInput,
463
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateTaskCommandOutput) => void),
464
- cb?: (err: any, data?: CreateTaskCommandOutput) => void
465
- ): Promise<CreateTaskCommandOutput> | void {
466
- const command = new CreateTaskCommand(args);
467
- if (typeof optionsOrCb === "function") {
468
- this.send(command, optionsOrCb);
469
- } else if (typeof cb === "function") {
470
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
471
- this.send(command, optionsOrCb || {}, cb);
472
- } else {
473
- return this.send(command, optionsOrCb);
474
- }
475
- }
476
-
477
- /**
478
- * <p>Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN)
479
- * of the agent in your request. The operation disassociates the agent from your Amazon Web Services account.
480
- * However, it doesn't delete the agent virtual machine (VM) from your on-premises
481
- * environment.</p>
482
- */
483
- public deleteAgent(args: DeleteAgentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAgentCommandOutput>;
484
- public deleteAgent(args: DeleteAgentCommandInput, cb: (err: any, data?: DeleteAgentCommandOutput) => void): void;
485
- public deleteAgent(
486
- args: DeleteAgentCommandInput,
487
- options: __HttpHandlerOptions,
488
- cb: (err: any, data?: DeleteAgentCommandOutput) => void
489
- ): void;
490
- public deleteAgent(
491
- args: DeleteAgentCommandInput,
492
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAgentCommandOutput) => void),
493
- cb?: (err: any, data?: DeleteAgentCommandOutput) => void
494
- ): Promise<DeleteAgentCommandOutput> | void {
495
- const command = new DeleteAgentCommand(args);
496
- if (typeof optionsOrCb === "function") {
497
- this.send(command, optionsOrCb);
498
- } else if (typeof cb === "function") {
499
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
500
- this.send(command, optionsOrCb || {}, cb);
501
- } else {
502
- return this.send(command, optionsOrCb);
503
- }
504
- }
505
-
506
- /**
507
- * <p>Deletes the configuration of a location used by DataSync. </p>
508
- */
509
- public deleteLocation(
510
- args: DeleteLocationCommandInput,
511
- options?: __HttpHandlerOptions
512
- ): Promise<DeleteLocationCommandOutput>;
513
- public deleteLocation(
514
- args: DeleteLocationCommandInput,
515
- cb: (err: any, data?: DeleteLocationCommandOutput) => void
516
- ): void;
517
- public deleteLocation(
518
- args: DeleteLocationCommandInput,
519
- options: __HttpHandlerOptions,
520
- cb: (err: any, data?: DeleteLocationCommandOutput) => void
521
- ): void;
522
- public deleteLocation(
523
- args: DeleteLocationCommandInput,
524
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteLocationCommandOutput) => void),
525
- cb?: (err: any, data?: DeleteLocationCommandOutput) => void
526
- ): Promise<DeleteLocationCommandOutput> | void {
527
- const command = new DeleteLocationCommand(args);
528
- if (typeof optionsOrCb === "function") {
529
- this.send(command, optionsOrCb);
530
- } else if (typeof cb === "function") {
531
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
532
- this.send(command, optionsOrCb || {}, cb);
533
- } else {
534
- return this.send(command, optionsOrCb);
535
- }
536
- }
537
-
538
- /**
539
- * <p>Deletes a task.</p>
540
- */
541
- public deleteTask(args: DeleteTaskCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTaskCommandOutput>;
542
- public deleteTask(args: DeleteTaskCommandInput, cb: (err: any, data?: DeleteTaskCommandOutput) => void): void;
543
- public deleteTask(
544
- args: DeleteTaskCommandInput,
545
- options: __HttpHandlerOptions,
546
- cb: (err: any, data?: DeleteTaskCommandOutput) => void
547
- ): void;
548
- public deleteTask(
549
- args: DeleteTaskCommandInput,
550
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteTaskCommandOutput) => void),
551
- cb?: (err: any, data?: DeleteTaskCommandOutput) => void
552
- ): Promise<DeleteTaskCommandOutput> | void {
553
- const command = new DeleteTaskCommand(args);
554
- if (typeof optionsOrCb === "function") {
555
- this.send(command, optionsOrCb);
556
- } else if (typeof cb === "function") {
557
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
558
- this.send(command, optionsOrCb || {}, cb);
559
- } else {
560
- return this.send(command, optionsOrCb);
561
- }
562
- }
563
-
564
- /**
565
- * <p>Returns metadata such as the name, the network interfaces, and the status (that is,
566
- * whether the agent is running or not) for an agent. To specify which agent to describe, use the
567
- * Amazon Resource Name (ARN) of the agent in your request. </p>
568
- */
569
- public describeAgent(
570
- args: DescribeAgentCommandInput,
571
- options?: __HttpHandlerOptions
572
- ): Promise<DescribeAgentCommandOutput>;
573
- public describeAgent(
574
- args: DescribeAgentCommandInput,
575
- cb: (err: any, data?: DescribeAgentCommandOutput) => void
576
- ): void;
577
- public describeAgent(
578
- args: DescribeAgentCommandInput,
579
- options: __HttpHandlerOptions,
580
- cb: (err: any, data?: DescribeAgentCommandOutput) => void
581
- ): void;
582
- public describeAgent(
583
- args: DescribeAgentCommandInput,
584
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAgentCommandOutput) => void),
585
- cb?: (err: any, data?: DescribeAgentCommandOutput) => void
586
- ): Promise<DescribeAgentCommandOutput> | void {
587
- const command = new DescribeAgentCommand(args);
588
- if (typeof optionsOrCb === "function") {
589
- this.send(command, optionsOrCb);
590
- } else if (typeof cb === "function") {
591
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
- this.send(command, optionsOrCb || {}, cb);
593
- } else {
594
- return this.send(command, optionsOrCb);
595
- }
596
- }
597
-
598
- /**
599
- * <p>Returns metadata, such as the path information about an Amazon EFS location.</p>
600
- */
601
- public describeLocationEfs(
602
- args: DescribeLocationEfsCommandInput,
603
- options?: __HttpHandlerOptions
604
- ): Promise<DescribeLocationEfsCommandOutput>;
605
- public describeLocationEfs(
606
- args: DescribeLocationEfsCommandInput,
607
- cb: (err: any, data?: DescribeLocationEfsCommandOutput) => void
608
- ): void;
609
- public describeLocationEfs(
610
- args: DescribeLocationEfsCommandInput,
611
- options: __HttpHandlerOptions,
612
- cb: (err: any, data?: DescribeLocationEfsCommandOutput) => void
613
- ): void;
614
- public describeLocationEfs(
615
- args: DescribeLocationEfsCommandInput,
616
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLocationEfsCommandOutput) => void),
617
- cb?: (err: any, data?: DescribeLocationEfsCommandOutput) => void
618
- ): Promise<DescribeLocationEfsCommandOutput> | void {
619
- const command = new DescribeLocationEfsCommand(args);
620
- if (typeof optionsOrCb === "function") {
621
- this.send(command, optionsOrCb);
622
- } else if (typeof cb === "function") {
623
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
624
- this.send(command, optionsOrCb || {}, cb);
625
- } else {
626
- return this.send(command, optionsOrCb);
627
- }
628
- }
629
-
630
- /**
631
- * <p>Returns metadata, such as the path information about an Amazon FSx for Windows File Server
632
- * location.</p>
633
- */
634
- public describeLocationFsxWindows(
635
- args: DescribeLocationFsxWindowsCommandInput,
636
- options?: __HttpHandlerOptions
637
- ): Promise<DescribeLocationFsxWindowsCommandOutput>;
638
- public describeLocationFsxWindows(
639
- args: DescribeLocationFsxWindowsCommandInput,
640
- cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void
641
- ): void;
642
- public describeLocationFsxWindows(
643
- args: DescribeLocationFsxWindowsCommandInput,
644
- options: __HttpHandlerOptions,
645
- cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void
646
- ): void;
647
- public describeLocationFsxWindows(
648
- args: DescribeLocationFsxWindowsCommandInput,
649
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void),
650
- cb?: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void
651
- ): Promise<DescribeLocationFsxWindowsCommandOutput> | void {
652
- const command = new DescribeLocationFsxWindowsCommand(args);
653
- if (typeof optionsOrCb === "function") {
654
- this.send(command, optionsOrCb);
655
- } else if (typeof cb === "function") {
656
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
657
- this.send(command, optionsOrCb || {}, cb);
658
- } else {
659
- return this.send(command, optionsOrCb);
660
- }
661
- }
662
-
663
- /**
664
- * <p>Returns metadata, such as the path information, about an NFS location.</p>
665
- */
666
- public describeLocationNfs(
667
- args: DescribeLocationNfsCommandInput,
668
- options?: __HttpHandlerOptions
669
- ): Promise<DescribeLocationNfsCommandOutput>;
670
- public describeLocationNfs(
671
- args: DescribeLocationNfsCommandInput,
672
- cb: (err: any, data?: DescribeLocationNfsCommandOutput) => void
673
- ): void;
674
- public describeLocationNfs(
675
- args: DescribeLocationNfsCommandInput,
676
- options: __HttpHandlerOptions,
677
- cb: (err: any, data?: DescribeLocationNfsCommandOutput) => void
678
- ): void;
679
- public describeLocationNfs(
680
- args: DescribeLocationNfsCommandInput,
681
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLocationNfsCommandOutput) => void),
682
- cb?: (err: any, data?: DescribeLocationNfsCommandOutput) => void
683
- ): Promise<DescribeLocationNfsCommandOutput> | void {
684
- const command = new DescribeLocationNfsCommand(args);
685
- if (typeof optionsOrCb === "function") {
686
- this.send(command, optionsOrCb);
687
- } else if (typeof cb === "function") {
688
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
689
- this.send(command, optionsOrCb || {}, cb);
690
- } else {
691
- return this.send(command, optionsOrCb);
692
- }
693
- }
694
-
695
- /**
696
- * <p>Returns metadata about a self-managed object storage server location. For more information
697
- * about self-managed object storage locations, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-object-location.html">Creating a location for object storage</a>.</p>
698
- */
699
- public describeLocationObjectStorage(
700
- args: DescribeLocationObjectStorageCommandInput,
701
- options?: __HttpHandlerOptions
702
- ): Promise<DescribeLocationObjectStorageCommandOutput>;
703
- public describeLocationObjectStorage(
704
- args: DescribeLocationObjectStorageCommandInput,
705
- cb: (err: any, data?: DescribeLocationObjectStorageCommandOutput) => void
706
- ): void;
707
- public describeLocationObjectStorage(
708
- args: DescribeLocationObjectStorageCommandInput,
709
- options: __HttpHandlerOptions,
710
- cb: (err: any, data?: DescribeLocationObjectStorageCommandOutput) => void
711
- ): void;
712
- public describeLocationObjectStorage(
713
- args: DescribeLocationObjectStorageCommandInput,
714
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLocationObjectStorageCommandOutput) => void),
715
- cb?: (err: any, data?: DescribeLocationObjectStorageCommandOutput) => void
716
- ): Promise<DescribeLocationObjectStorageCommandOutput> | void {
717
- const command = new DescribeLocationObjectStorageCommand(args);
718
- if (typeof optionsOrCb === "function") {
719
- this.send(command, optionsOrCb);
720
- } else if (typeof cb === "function") {
721
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
722
- this.send(command, optionsOrCb || {}, cb);
723
- } else {
724
- return this.send(command, optionsOrCb);
725
- }
726
- }
727
-
728
- /**
729
- * <p>Returns metadata, such as bucket name, about an Amazon S3 bucket location.</p>
730
- */
731
- public describeLocationS3(
732
- args: DescribeLocationS3CommandInput,
733
- options?: __HttpHandlerOptions
734
- ): Promise<DescribeLocationS3CommandOutput>;
735
- public describeLocationS3(
736
- args: DescribeLocationS3CommandInput,
737
- cb: (err: any, data?: DescribeLocationS3CommandOutput) => void
738
- ): void;
739
- public describeLocationS3(
740
- args: DescribeLocationS3CommandInput,
741
- options: __HttpHandlerOptions,
742
- cb: (err: any, data?: DescribeLocationS3CommandOutput) => void
743
- ): void;
744
- public describeLocationS3(
745
- args: DescribeLocationS3CommandInput,
746
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLocationS3CommandOutput) => void),
747
- cb?: (err: any, data?: DescribeLocationS3CommandOutput) => void
748
- ): Promise<DescribeLocationS3CommandOutput> | void {
749
- const command = new DescribeLocationS3Command(args);
750
- if (typeof optionsOrCb === "function") {
751
- this.send(command, optionsOrCb);
752
- } else if (typeof cb === "function") {
753
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
754
- this.send(command, optionsOrCb || {}, cb);
755
- } else {
756
- return this.send(command, optionsOrCb);
757
- }
758
- }
759
-
760
- /**
761
- * <p>Returns metadata, such as the path and user information about an SMB location.</p>
762
- */
763
- public describeLocationSmb(
764
- args: DescribeLocationSmbCommandInput,
765
- options?: __HttpHandlerOptions
766
- ): Promise<DescribeLocationSmbCommandOutput>;
767
- public describeLocationSmb(
768
- args: DescribeLocationSmbCommandInput,
769
- cb: (err: any, data?: DescribeLocationSmbCommandOutput) => void
770
- ): void;
771
- public describeLocationSmb(
772
- args: DescribeLocationSmbCommandInput,
773
- options: __HttpHandlerOptions,
774
- cb: (err: any, data?: DescribeLocationSmbCommandOutput) => void
775
- ): void;
776
- public describeLocationSmb(
777
- args: DescribeLocationSmbCommandInput,
778
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLocationSmbCommandOutput) => void),
779
- cb?: (err: any, data?: DescribeLocationSmbCommandOutput) => void
780
- ): Promise<DescribeLocationSmbCommandOutput> | void {
781
- const command = new DescribeLocationSmbCommand(args);
782
- if (typeof optionsOrCb === "function") {
783
- this.send(command, optionsOrCb);
784
- } else if (typeof cb === "function") {
785
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
786
- this.send(command, optionsOrCb || {}, cb);
787
- } else {
788
- return this.send(command, optionsOrCb);
789
- }
790
- }
791
-
792
- /**
793
- * <p>Returns metadata about a task.</p>
794
- */
795
- public describeTask(
796
- args: DescribeTaskCommandInput,
797
- options?: __HttpHandlerOptions
798
- ): Promise<DescribeTaskCommandOutput>;
799
- public describeTask(args: DescribeTaskCommandInput, cb: (err: any, data?: DescribeTaskCommandOutput) => void): void;
800
- public describeTask(
801
- args: DescribeTaskCommandInput,
802
- options: __HttpHandlerOptions,
803
- cb: (err: any, data?: DescribeTaskCommandOutput) => void
804
- ): void;
805
- public describeTask(
806
- args: DescribeTaskCommandInput,
807
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTaskCommandOutput) => void),
808
- cb?: (err: any, data?: DescribeTaskCommandOutput) => void
809
- ): Promise<DescribeTaskCommandOutput> | void {
810
- const command = new DescribeTaskCommand(args);
811
- if (typeof optionsOrCb === "function") {
812
- this.send(command, optionsOrCb);
813
- } else if (typeof cb === "function") {
814
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
815
- this.send(command, optionsOrCb || {}, cb);
816
- } else {
817
- return this.send(command, optionsOrCb);
818
- }
819
- }
820
-
821
- /**
822
- * <p>Returns detailed metadata about a task that is being executed.</p>
823
- */
824
- public describeTaskExecution(
825
- args: DescribeTaskExecutionCommandInput,
826
- options?: __HttpHandlerOptions
827
- ): Promise<DescribeTaskExecutionCommandOutput>;
828
- public describeTaskExecution(
829
- args: DescribeTaskExecutionCommandInput,
830
- cb: (err: any, data?: DescribeTaskExecutionCommandOutput) => void
831
- ): void;
832
- public describeTaskExecution(
833
- args: DescribeTaskExecutionCommandInput,
834
- options: __HttpHandlerOptions,
835
- cb: (err: any, data?: DescribeTaskExecutionCommandOutput) => void
836
- ): void;
837
- public describeTaskExecution(
838
- args: DescribeTaskExecutionCommandInput,
839
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTaskExecutionCommandOutput) => void),
840
- cb?: (err: any, data?: DescribeTaskExecutionCommandOutput) => void
841
- ): Promise<DescribeTaskExecutionCommandOutput> | void {
842
- const command = new DescribeTaskExecutionCommand(args);
843
- if (typeof optionsOrCb === "function") {
844
- this.send(command, optionsOrCb);
845
- } else if (typeof cb === "function") {
846
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
847
- this.send(command, optionsOrCb || {}, cb);
848
- } else {
849
- return this.send(command, optionsOrCb);
850
- }
851
- }
852
-
853
- /**
854
- * <p>Returns a list of agents owned by an Amazon Web Services account in the Amazon Web Services Region specified in the
855
- * request. The returned list is ordered by agent Amazon Resource Name (ARN).</p>
856
- * <p>By default, this operation returns a maximum of 100 agents. This operation supports
857
- * pagination that enables you to optionally reduce the number of agents returned in a
858
- * response.</p>
859
- * <p>If you have more agents than are returned in a response (that is, the response returns
860
- * only a truncated list of your agents), the response contains a marker that you can specify in
861
- * your next request to fetch the next page of agents.</p>
862
- */
863
- public listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
864
- public listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
865
- public listAgents(
866
- args: ListAgentsCommandInput,
867
- options: __HttpHandlerOptions,
868
- cb: (err: any, data?: ListAgentsCommandOutput) => void
869
- ): void;
870
- public listAgents(
871
- args: ListAgentsCommandInput,
872
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAgentsCommandOutput) => void),
873
- cb?: (err: any, data?: ListAgentsCommandOutput) => void
874
- ): Promise<ListAgentsCommandOutput> | void {
875
- const command = new ListAgentsCommand(args);
876
- if (typeof optionsOrCb === "function") {
877
- this.send(command, optionsOrCb);
878
- } else if (typeof cb === "function") {
879
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
880
- this.send(command, optionsOrCb || {}, cb);
881
- } else {
882
- return this.send(command, optionsOrCb);
883
- }
884
- }
885
-
886
- /**
887
- * <p>Returns a list of source and destination locations.</p>
888
- * <p>If you have more locations than are returned in a response (that is, the response
889
- * returns only a truncated list of your agents), the response contains a token that you can
890
- * specify in your next request to fetch the next page of locations.</p>
891
- */
892
- public listLocations(
893
- args: ListLocationsCommandInput,
894
- options?: __HttpHandlerOptions
895
- ): Promise<ListLocationsCommandOutput>;
896
- public listLocations(
897
- args: ListLocationsCommandInput,
898
- cb: (err: any, data?: ListLocationsCommandOutput) => void
899
- ): void;
900
- public listLocations(
901
- args: ListLocationsCommandInput,
902
- options: __HttpHandlerOptions,
903
- cb: (err: any, data?: ListLocationsCommandOutput) => void
904
- ): void;
905
- public listLocations(
906
- args: ListLocationsCommandInput,
907
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListLocationsCommandOutput) => void),
908
- cb?: (err: any, data?: ListLocationsCommandOutput) => void
909
- ): Promise<ListLocationsCommandOutput> | void {
910
- const command = new ListLocationsCommand(args);
911
- if (typeof optionsOrCb === "function") {
912
- this.send(command, optionsOrCb);
913
- } else if (typeof cb === "function") {
914
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
915
- this.send(command, optionsOrCb || {}, cb);
916
- } else {
917
- return this.send(command, optionsOrCb);
918
- }
919
- }
920
-
921
- /**
922
- * <p>Returns all the tags associated with a specified resource. </p>
923
- */
924
- public listTagsForResource(
925
- args: ListTagsForResourceCommandInput,
926
- options?: __HttpHandlerOptions
927
- ): Promise<ListTagsForResourceCommandOutput>;
928
- public listTagsForResource(
929
- args: ListTagsForResourceCommandInput,
930
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
931
- ): void;
932
- public listTagsForResource(
933
- args: ListTagsForResourceCommandInput,
934
- options: __HttpHandlerOptions,
935
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
936
- ): void;
937
- public listTagsForResource(
938
- args: ListTagsForResourceCommandInput,
939
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
940
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
941
- ): Promise<ListTagsForResourceCommandOutput> | void {
942
- const command = new ListTagsForResourceCommand(args);
943
- if (typeof optionsOrCb === "function") {
944
- this.send(command, optionsOrCb);
945
- } else if (typeof cb === "function") {
946
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
947
- this.send(command, optionsOrCb || {}, cb);
948
- } else {
949
- return this.send(command, optionsOrCb);
950
- }
951
- }
952
-
953
- /**
954
- * <p>Returns a list of executed tasks.</p>
955
- */
956
- public listTaskExecutions(
957
- args: ListTaskExecutionsCommandInput,
958
- options?: __HttpHandlerOptions
959
- ): Promise<ListTaskExecutionsCommandOutput>;
960
- public listTaskExecutions(
961
- args: ListTaskExecutionsCommandInput,
962
- cb: (err: any, data?: ListTaskExecutionsCommandOutput) => void
963
- ): void;
964
- public listTaskExecutions(
965
- args: ListTaskExecutionsCommandInput,
966
- options: __HttpHandlerOptions,
967
- cb: (err: any, data?: ListTaskExecutionsCommandOutput) => void
968
- ): void;
969
- public listTaskExecutions(
970
- args: ListTaskExecutionsCommandInput,
971
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTaskExecutionsCommandOutput) => void),
972
- cb?: (err: any, data?: ListTaskExecutionsCommandOutput) => void
973
- ): Promise<ListTaskExecutionsCommandOutput> | void {
974
- const command = new ListTaskExecutionsCommand(args);
975
- if (typeof optionsOrCb === "function") {
976
- this.send(command, optionsOrCb);
977
- } else if (typeof cb === "function") {
978
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
979
- this.send(command, optionsOrCb || {}, cb);
980
- } else {
981
- return this.send(command, optionsOrCb);
982
- }
983
- }
984
-
985
- /**
986
- * <p>Returns a list of all the tasks.</p>
987
- */
988
- public listTasks(args: ListTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListTasksCommandOutput>;
989
- public listTasks(args: ListTasksCommandInput, cb: (err: any, data?: ListTasksCommandOutput) => void): void;
990
- public listTasks(
991
- args: ListTasksCommandInput,
992
- options: __HttpHandlerOptions,
993
- cb: (err: any, data?: ListTasksCommandOutput) => void
994
- ): void;
995
- public listTasks(
996
- args: ListTasksCommandInput,
997
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTasksCommandOutput) => void),
998
- cb?: (err: any, data?: ListTasksCommandOutput) => void
999
- ): Promise<ListTasksCommandOutput> | void {
1000
- const command = new ListTasksCommand(args);
1001
- if (typeof optionsOrCb === "function") {
1002
- this.send(command, optionsOrCb);
1003
- } else if (typeof cb === "function") {
1004
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1005
- this.send(command, optionsOrCb || {}, cb);
1006
- } else {
1007
- return this.send(command, optionsOrCb);
1008
- }
1009
- }
1010
-
1011
- /**
1012
- * <p>Starts a specific invocation of a task. A <code>TaskExecution</code> value represents
1013
- * an individual run of a task. Each task can have at most one <code>TaskExecution</code> at a
1014
- * time.</p>
1015
- * <p>
1016
- * <code>TaskExecution</code> has the following transition phases: INITIALIZING |
1017
- * PREPARING | TRANSFERRING | VERIFYING | SUCCESS/FAILURE. </p>
1018
- *
1019
- * <p>For detailed information, see the Task Execution section in the Components and
1020
- * Terminology topic in the <i>DataSync User Guide</i>.</p>
1021
- */
1022
- public startTaskExecution(
1023
- args: StartTaskExecutionCommandInput,
1024
- options?: __HttpHandlerOptions
1025
- ): Promise<StartTaskExecutionCommandOutput>;
1026
- public startTaskExecution(
1027
- args: StartTaskExecutionCommandInput,
1028
- cb: (err: any, data?: StartTaskExecutionCommandOutput) => void
1029
- ): void;
1030
- public startTaskExecution(
1031
- args: StartTaskExecutionCommandInput,
1032
- options: __HttpHandlerOptions,
1033
- cb: (err: any, data?: StartTaskExecutionCommandOutput) => void
1034
- ): void;
1035
- public startTaskExecution(
1036
- args: StartTaskExecutionCommandInput,
1037
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartTaskExecutionCommandOutput) => void),
1038
- cb?: (err: any, data?: StartTaskExecutionCommandOutput) => void
1039
- ): Promise<StartTaskExecutionCommandOutput> | void {
1040
- const command = new StartTaskExecutionCommand(args);
1041
- if (typeof optionsOrCb === "function") {
1042
- this.send(command, optionsOrCb);
1043
- } else if (typeof cb === "function") {
1044
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1045
- this.send(command, optionsOrCb || {}, cb);
1046
- } else {
1047
- return this.send(command, optionsOrCb);
1048
- }
1049
- }
1050
-
1051
- /**
1052
- * <p>Applies a key-value pair to an Amazon Web Services resource.</p>
1053
- */
1054
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
1055
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
1056
- public tagResource(
1057
- args: TagResourceCommandInput,
1058
- options: __HttpHandlerOptions,
1059
- cb: (err: any, data?: TagResourceCommandOutput) => void
1060
- ): void;
1061
- public tagResource(
1062
- args: TagResourceCommandInput,
1063
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
1064
- cb?: (err: any, data?: TagResourceCommandOutput) => void
1065
- ): Promise<TagResourceCommandOutput> | void {
1066
- const command = new TagResourceCommand(args);
1067
- if (typeof optionsOrCb === "function") {
1068
- this.send(command, optionsOrCb);
1069
- } else if (typeof cb === "function") {
1070
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1071
- this.send(command, optionsOrCb || {}, cb);
1072
- } else {
1073
- return this.send(command, optionsOrCb);
1074
- }
1075
- }
1076
-
1077
- /**
1078
- * <p>Removes a tag from an Amazon Web Services resource.</p>
1079
- */
1080
- public untagResource(
1081
- args: UntagResourceCommandInput,
1082
- options?: __HttpHandlerOptions
1083
- ): Promise<UntagResourceCommandOutput>;
1084
- public untagResource(
1085
- args: UntagResourceCommandInput,
1086
- cb: (err: any, data?: UntagResourceCommandOutput) => void
1087
- ): void;
1088
- public untagResource(
1089
- args: UntagResourceCommandInput,
1090
- options: __HttpHandlerOptions,
1091
- cb: (err: any, data?: UntagResourceCommandOutput) => void
1092
- ): void;
1093
- public untagResource(
1094
- args: UntagResourceCommandInput,
1095
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
1096
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
1097
- ): Promise<UntagResourceCommandOutput> | void {
1098
- const command = new UntagResourceCommand(args);
1099
- if (typeof optionsOrCb === "function") {
1100
- this.send(command, optionsOrCb);
1101
- } else if (typeof cb === "function") {
1102
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1103
- this.send(command, optionsOrCb || {}, cb);
1104
- } else {
1105
- return this.send(command, optionsOrCb);
1106
- }
1107
- }
1108
-
1109
- /**
1110
- * <p>Updates the name of an agent.</p>
1111
- */
1112
- public updateAgent(args: UpdateAgentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentCommandOutput>;
1113
- public updateAgent(args: UpdateAgentCommandInput, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
1114
- public updateAgent(
1115
- args: UpdateAgentCommandInput,
1116
- options: __HttpHandlerOptions,
1117
- cb: (err: any, data?: UpdateAgentCommandOutput) => void
1118
- ): void;
1119
- public updateAgent(
1120
- args: UpdateAgentCommandInput,
1121
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAgentCommandOutput) => void),
1122
- cb?: (err: any, data?: UpdateAgentCommandOutput) => void
1123
- ): Promise<UpdateAgentCommandOutput> | void {
1124
- const command = new UpdateAgentCommand(args);
1125
- if (typeof optionsOrCb === "function") {
1126
- this.send(command, optionsOrCb);
1127
- } else if (typeof cb === "function") {
1128
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1129
- this.send(command, optionsOrCb || {}, cb);
1130
- } else {
1131
- return this.send(command, optionsOrCb);
1132
- }
1133
- }
1134
-
1135
- /**
1136
- * <p>Updates some of the parameters of a previously created location for Network File System (NFS) access.
1137
- * For information about creating an NFS location, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html">Creating a location for NFS</a>.</p>
1138
- */
1139
- public updateLocationNfs(
1140
- args: UpdateLocationNfsCommandInput,
1141
- options?: __HttpHandlerOptions
1142
- ): Promise<UpdateLocationNfsCommandOutput>;
1143
- public updateLocationNfs(
1144
- args: UpdateLocationNfsCommandInput,
1145
- cb: (err: any, data?: UpdateLocationNfsCommandOutput) => void
1146
- ): void;
1147
- public updateLocationNfs(
1148
- args: UpdateLocationNfsCommandInput,
1149
- options: __HttpHandlerOptions,
1150
- cb: (err: any, data?: UpdateLocationNfsCommandOutput) => void
1151
- ): void;
1152
- public updateLocationNfs(
1153
- args: UpdateLocationNfsCommandInput,
1154
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateLocationNfsCommandOutput) => void),
1155
- cb?: (err: any, data?: UpdateLocationNfsCommandOutput) => void
1156
- ): Promise<UpdateLocationNfsCommandOutput> | void {
1157
- const command = new UpdateLocationNfsCommand(args);
1158
- if (typeof optionsOrCb === "function") {
1159
- this.send(command, optionsOrCb);
1160
- } else if (typeof cb === "function") {
1161
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1162
- this.send(command, optionsOrCb || {}, cb);
1163
- } else {
1164
- return this.send(command, optionsOrCb);
1165
- }
1166
- }
1167
-
1168
- /**
1169
- * <p>Updates some of the parameters of a previously created location for self-managed object
1170
- * storage server access. For information about creating a self-managed object storage location,
1171
- * see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-object-location.html">Creating a location for object storage</a>.</p>
1172
- */
1173
- public updateLocationObjectStorage(
1174
- args: UpdateLocationObjectStorageCommandInput,
1175
- options?: __HttpHandlerOptions
1176
- ): Promise<UpdateLocationObjectStorageCommandOutput>;
1177
- public updateLocationObjectStorage(
1178
- args: UpdateLocationObjectStorageCommandInput,
1179
- cb: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void
1180
- ): void;
1181
- public updateLocationObjectStorage(
1182
- args: UpdateLocationObjectStorageCommandInput,
1183
- options: __HttpHandlerOptions,
1184
- cb: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void
1185
- ): void;
1186
- public updateLocationObjectStorage(
1187
- args: UpdateLocationObjectStorageCommandInput,
1188
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateLocationObjectStorageCommandOutput) => void),
1189
- cb?: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void
1190
- ): Promise<UpdateLocationObjectStorageCommandOutput> | void {
1191
- const command = new UpdateLocationObjectStorageCommand(args);
1192
- if (typeof optionsOrCb === "function") {
1193
- this.send(command, optionsOrCb);
1194
- } else if (typeof cb === "function") {
1195
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1196
- this.send(command, optionsOrCb || {}, cb);
1197
- } else {
1198
- return this.send(command, optionsOrCb);
1199
- }
1200
- }
1201
-
1202
- /**
1203
- * <p>Updates some of the parameters of a previously created location for Server Message Block
1204
- * (SMB) file system access. For information about creating an SMB location, see
1205
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html">Creating a location for SMB</a>.</p>
1206
- */
1207
- public updateLocationSmb(
1208
- args: UpdateLocationSmbCommandInput,
1209
- options?: __HttpHandlerOptions
1210
- ): Promise<UpdateLocationSmbCommandOutput>;
1211
- public updateLocationSmb(
1212
- args: UpdateLocationSmbCommandInput,
1213
- cb: (err: any, data?: UpdateLocationSmbCommandOutput) => void
1214
- ): void;
1215
- public updateLocationSmb(
1216
- args: UpdateLocationSmbCommandInput,
1217
- options: __HttpHandlerOptions,
1218
- cb: (err: any, data?: UpdateLocationSmbCommandOutput) => void
1219
- ): void;
1220
- public updateLocationSmb(
1221
- args: UpdateLocationSmbCommandInput,
1222
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateLocationSmbCommandOutput) => void),
1223
- cb?: (err: any, data?: UpdateLocationSmbCommandOutput) => void
1224
- ): Promise<UpdateLocationSmbCommandOutput> | void {
1225
- const command = new UpdateLocationSmbCommand(args);
1226
- if (typeof optionsOrCb === "function") {
1227
- this.send(command, optionsOrCb);
1228
- } else if (typeof cb === "function") {
1229
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1230
- this.send(command, optionsOrCb || {}, cb);
1231
- } else {
1232
- return this.send(command, optionsOrCb);
1233
- }
1234
- }
1235
-
1236
- /**
1237
- * <p>Updates the metadata associated with a task.</p>
1238
- */
1239
- public updateTask(args: UpdateTaskCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTaskCommandOutput>;
1240
- public updateTask(args: UpdateTaskCommandInput, cb: (err: any, data?: UpdateTaskCommandOutput) => void): void;
1241
- public updateTask(
1242
- args: UpdateTaskCommandInput,
1243
- options: __HttpHandlerOptions,
1244
- cb: (err: any, data?: UpdateTaskCommandOutput) => void
1245
- ): void;
1246
- public updateTask(
1247
- args: UpdateTaskCommandInput,
1248
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateTaskCommandOutput) => void),
1249
- cb?: (err: any, data?: UpdateTaskCommandOutput) => void
1250
- ): Promise<UpdateTaskCommandOutput> | void {
1251
- const command = new UpdateTaskCommand(args);
1252
- if (typeof optionsOrCb === "function") {
1253
- this.send(command, optionsOrCb);
1254
- } else if (typeof cb === "function") {
1255
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1256
- this.send(command, optionsOrCb || {}, cb);
1257
- } else {
1258
- return this.send(command, optionsOrCb);
1259
- }
1260
- }
1261
-
1262
- /**
1263
- * <p>Updates execution of a task.</p>
1264
- * <p>You can modify bandwidth throttling for a task execution that is running or queued.
1265
- * For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/working-with-task-executions.html#adjust-bandwidth-throttling">Adjusting Bandwidth Throttling for a Task Execution</a>.</p>
1266
- *
1267
- * <note>
1268
- * <p>The only <code>Option</code> that can be modified by <code>UpdateTaskExecution</code>
1269
- * is <code>
1270
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-BytesPerSecond">BytesPerSecond</a>
1271
- * </code>.</p>
1272
- * </note>
1273
- */
1274
- public updateTaskExecution(
1275
- args: UpdateTaskExecutionCommandInput,
1276
- options?: __HttpHandlerOptions
1277
- ): Promise<UpdateTaskExecutionCommandOutput>;
1278
- public updateTaskExecution(
1279
- args: UpdateTaskExecutionCommandInput,
1280
- cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void
1281
- ): void;
1282
- public updateTaskExecution(
1283
- args: UpdateTaskExecutionCommandInput,
1284
- options: __HttpHandlerOptions,
1285
- cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void
1286
- ): void;
1287
- public updateTaskExecution(
1288
- args: UpdateTaskExecutionCommandInput,
1289
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateTaskExecutionCommandOutput) => void),
1290
- cb?: (err: any, data?: UpdateTaskExecutionCommandOutput) => void
1291
- ): Promise<UpdateTaskExecutionCommandOutput> | void {
1292
- const command = new UpdateTaskExecutionCommand(args);
1293
- if (typeof optionsOrCb === "function") {
1294
- this.send(command, optionsOrCb);
1295
- } else if (typeof cb === "function") {
1296
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1297
- this.send(command, optionsOrCb || {}, cb);
1298
- } else {
1299
- return this.send(command, optionsOrCb);
1300
- }
1301
- }
1302
- }