@aws-sdk/client-datasync 3.31.0 → 3.35.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 (475) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/DataSync.js +1 -1
  3. package/dist-cjs/DataSync.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/DataSyncClient.js +14 -14
  5. package/dist-cjs/DataSyncClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/CancelTaskExecutionCommand.js +5 -5
  7. package/dist-cjs/commands/CancelTaskExecutionCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/CreateAgentCommand.js +5 -5
  9. package/dist-cjs/commands/CreateAgentCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/CreateLocationEfsCommand.js +5 -5
  11. package/dist-cjs/commands/CreateLocationEfsCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/CreateLocationFsxWindowsCommand.js +5 -5
  13. package/dist-cjs/commands/CreateLocationFsxWindowsCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/CreateLocationNfsCommand.js +5 -5
  15. package/dist-cjs/commands/CreateLocationNfsCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/CreateLocationObjectStorageCommand.js +5 -5
  17. package/dist-cjs/commands/CreateLocationObjectStorageCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/CreateLocationS3Command.js +5 -5
  19. package/dist-cjs/commands/CreateLocationS3Command.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/CreateLocationSmbCommand.js +5 -5
  21. package/dist-cjs/commands/CreateLocationSmbCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/CreateTaskCommand.js +5 -5
  23. package/dist-cjs/commands/CreateTaskCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/DeleteAgentCommand.js +5 -5
  25. package/dist-cjs/commands/DeleteAgentCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/DeleteLocationCommand.js +5 -5
  27. package/dist-cjs/commands/DeleteLocationCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/DeleteTaskCommand.js +5 -5
  29. package/dist-cjs/commands/DeleteTaskCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/DescribeAgentCommand.js +5 -5
  31. package/dist-cjs/commands/DescribeAgentCommand.js.map +1 -0
  32. package/{dist/cjs → dist-cjs}/commands/DescribeLocationEfsCommand.js +5 -5
  33. package/dist-cjs/commands/DescribeLocationEfsCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/DescribeLocationFsxWindowsCommand.js +5 -5
  35. package/dist-cjs/commands/DescribeLocationFsxWindowsCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/DescribeLocationNfsCommand.js +5 -5
  37. package/dist-cjs/commands/DescribeLocationNfsCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/commands/DescribeLocationObjectStorageCommand.js +5 -5
  39. package/dist-cjs/commands/DescribeLocationObjectStorageCommand.js.map +1 -0
  40. package/{dist/cjs → dist-cjs}/commands/DescribeLocationS3Command.js +5 -5
  41. package/dist-cjs/commands/DescribeLocationS3Command.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/commands/DescribeLocationSmbCommand.js +5 -5
  43. package/dist-cjs/commands/DescribeLocationSmbCommand.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/commands/DescribeTaskCommand.js +5 -5
  45. package/dist-cjs/commands/DescribeTaskCommand.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/commands/DescribeTaskExecutionCommand.js +5 -5
  47. package/dist-cjs/commands/DescribeTaskExecutionCommand.js.map +1 -0
  48. package/{dist/cjs → dist-cjs}/commands/ListAgentsCommand.js +5 -5
  49. package/dist-cjs/commands/ListAgentsCommand.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/commands/ListLocationsCommand.js +5 -5
  51. package/dist-cjs/commands/ListLocationsCommand.js.map +1 -0
  52. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
  53. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/commands/ListTaskExecutionsCommand.js +5 -5
  55. package/dist-cjs/commands/ListTaskExecutionsCommand.js.map +1 -0
  56. package/{dist/cjs → dist-cjs}/commands/ListTasksCommand.js +5 -5
  57. package/dist-cjs/commands/ListTasksCommand.js.map +1 -0
  58. package/{dist/cjs → dist-cjs}/commands/StartTaskExecutionCommand.js +5 -5
  59. package/dist-cjs/commands/StartTaskExecutionCommand.js.map +1 -0
  60. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
  61. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  62. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
  63. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  64. package/{dist/cjs → dist-cjs}/commands/UpdateAgentCommand.js +5 -5
  65. package/dist-cjs/commands/UpdateAgentCommand.js.map +1 -0
  66. package/{dist/cjs → dist-cjs}/commands/UpdateLocationNfsCommand.js +5 -5
  67. package/dist-cjs/commands/UpdateLocationNfsCommand.js.map +1 -0
  68. package/{dist/cjs → dist-cjs}/commands/UpdateLocationObjectStorageCommand.js +5 -5
  69. package/dist-cjs/commands/UpdateLocationObjectStorageCommand.js.map +1 -0
  70. package/{dist/cjs → dist-cjs}/commands/UpdateLocationSmbCommand.js +5 -5
  71. package/dist-cjs/commands/UpdateLocationSmbCommand.js.map +1 -0
  72. package/{dist/cjs → dist-cjs}/commands/UpdateTaskCommand.js +5 -5
  73. package/dist-cjs/commands/UpdateTaskCommand.js.map +1 -0
  74. package/{dist/cjs → dist-cjs}/commands/UpdateTaskExecutionCommand.js +5 -5
  75. package/dist-cjs/commands/UpdateTaskExecutionCommand.js.map +1 -0
  76. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  77. package/dist-cjs/endpoints.js.map +1 -0
  78. package/dist-cjs/index.js +48 -0
  79. package/dist-cjs/index.js.map +1 -0
  80. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  81. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  82. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  83. package/dist-cjs/models/models_0.js.map +1 -0
  84. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  85. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  86. package/{dist/cjs → dist-cjs}/pagination/ListAgentsPaginator.js +1 -1
  87. package/dist-cjs/pagination/ListAgentsPaginator.js.map +1 -0
  88. package/{dist/cjs → dist-cjs}/pagination/ListLocationsPaginator.js +1 -1
  89. package/dist-cjs/pagination/ListLocationsPaginator.js.map +1 -0
  90. package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -1
  91. package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +1 -0
  92. package/{dist/cjs → dist-cjs}/pagination/ListTaskExecutionsPaginator.js +1 -1
  93. package/dist-cjs/pagination/ListTaskExecutionsPaginator.js.map +1 -0
  94. package/{dist/cjs → dist-cjs}/pagination/ListTasksPaginator.js +1 -1
  95. package/dist-cjs/pagination/ListTasksPaginator.js.map +1 -0
  96. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +118 -118
  97. package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
  98. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  99. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  100. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  101. package/dist-cjs/runtimeConfig.js.map +1 -0
  102. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  103. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  104. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  105. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  106. package/{dist/es → dist-es}/DataSync.js +2 -11
  107. package/dist-es/DataSync.js.map +1 -0
  108. package/{dist/es → dist-es}/DataSyncClient.js +2 -16
  109. package/dist-es/DataSyncClient.js.map +1 -0
  110. package/{dist/es → dist-es}/commands/CancelTaskExecutionCommand.js +4 -36
  111. package/dist-es/commands/CancelTaskExecutionCommand.js.map +1 -0
  112. package/dist-es/commands/CreateAgentCommand.js +40 -0
  113. package/dist-es/commands/CreateAgentCommand.js.map +1 -0
  114. package/{dist/es → dist-es}/commands/CreateLocationEfsCommand.js +4 -29
  115. package/dist-es/commands/CreateLocationEfsCommand.js.map +1 -0
  116. package/{dist/es → dist-es}/commands/CreateLocationFsxWindowsCommand.js +4 -29
  117. package/dist-es/commands/CreateLocationFsxWindowsCommand.js.map +1 -0
  118. package/{dist/es → dist-es}/commands/CreateLocationNfsCommand.js +4 -30
  119. package/dist-es/commands/CreateLocationNfsCommand.js.map +1 -0
  120. package/{dist/es → dist-es}/commands/CreateLocationObjectStorageCommand.js +4 -30
  121. package/dist-es/commands/CreateLocationObjectStorageCommand.js.map +1 -0
  122. package/{dist/es → dist-es}/commands/CreateLocationS3Command.js +4 -35
  123. package/dist-es/commands/CreateLocationS3Command.js.map +1 -0
  124. package/{dist/es → dist-es}/commands/CreateLocationSmbCommand.js +4 -30
  125. package/dist-es/commands/CreateLocationSmbCommand.js.map +1 -0
  126. package/dist-es/commands/CreateTaskCommand.js +40 -0
  127. package/dist-es/commands/CreateTaskCommand.js.map +1 -0
  128. package/{dist/es → dist-es}/commands/DeleteAgentCommand.js +4 -32
  129. package/dist-es/commands/DeleteAgentCommand.js.map +1 -0
  130. package/{dist/es → dist-es}/commands/DeleteLocationCommand.js +4 -29
  131. package/dist-es/commands/DeleteLocationCommand.js.map +1 -0
  132. package/{dist/es → dist-es}/commands/DeleteTaskCommand.js +4 -29
  133. package/dist-es/commands/DeleteTaskCommand.js.map +1 -0
  134. package/{dist/es → dist-es}/commands/DescribeAgentCommand.js +4 -31
  135. package/dist-es/commands/DescribeAgentCommand.js.map +1 -0
  136. package/{dist/es → dist-es}/commands/DescribeLocationEfsCommand.js +4 -29
  137. package/dist-es/commands/DescribeLocationEfsCommand.js.map +1 -0
  138. package/{dist/es → dist-es}/commands/DescribeLocationFsxWindowsCommand.js +4 -30
  139. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js.map +1 -0
  140. package/{dist/es → dist-es}/commands/DescribeLocationNfsCommand.js +4 -29
  141. package/dist-es/commands/DescribeLocationNfsCommand.js.map +1 -0
  142. package/{dist/es → dist-es}/commands/DescribeLocationObjectStorageCommand.js +4 -30
  143. package/dist-es/commands/DescribeLocationObjectStorageCommand.js.map +1 -0
  144. package/{dist/es → dist-es}/commands/DescribeLocationS3Command.js +4 -29
  145. package/dist-es/commands/DescribeLocationS3Command.js.map +1 -0
  146. package/{dist/es → dist-es}/commands/DescribeLocationSmbCommand.js +4 -29
  147. package/dist-es/commands/DescribeLocationSmbCommand.js.map +1 -0
  148. package/{dist/es → dist-es}/commands/DescribeTaskCommand.js +4 -29
  149. package/dist-es/commands/DescribeTaskCommand.js.map +1 -0
  150. package/{dist/es → dist-es}/commands/DescribeTaskExecutionCommand.js +4 -29
  151. package/dist-es/commands/DescribeTaskExecutionCommand.js.map +1 -0
  152. package/{dist/es → dist-es}/commands/ListAgentsCommand.js +4 -36
  153. package/dist-es/commands/ListAgentsCommand.js.map +1 -0
  154. package/{dist/es → dist-es}/commands/ListLocationsCommand.js +4 -32
  155. package/dist-es/commands/ListLocationsCommand.js.map +1 -0
  156. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
  157. package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
  158. package/{dist/es → dist-es}/commands/ListTaskExecutionsCommand.js +4 -29
  159. package/dist-es/commands/ListTaskExecutionsCommand.js.map +1 -0
  160. package/{dist/es → dist-es}/commands/ListTasksCommand.js +4 -29
  161. package/dist-es/commands/ListTasksCommand.js.map +1 -0
  162. package/{dist/es → dist-es}/commands/StartTaskExecutionCommand.js +4 -37
  163. package/dist-es/commands/StartTaskExecutionCommand.js.map +1 -0
  164. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
  165. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  166. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
  167. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  168. package/{dist/es → dist-es}/commands/UpdateAgentCommand.js +4 -29
  169. package/dist-es/commands/UpdateAgentCommand.js.map +1 -0
  170. package/{dist/es → dist-es}/commands/UpdateLocationNfsCommand.js +4 -30
  171. package/dist-es/commands/UpdateLocationNfsCommand.js.map +1 -0
  172. package/{dist/es → dist-es}/commands/UpdateLocationObjectStorageCommand.js +4 -31
  173. package/dist-es/commands/UpdateLocationObjectStorageCommand.js.map +1 -0
  174. package/{dist/es → dist-es}/commands/UpdateLocationSmbCommand.js +4 -31
  175. package/dist-es/commands/UpdateLocationSmbCommand.js.map +1 -0
  176. package/{dist/es → dist-es}/commands/UpdateTaskCommand.js +4 -29
  177. package/dist-es/commands/UpdateTaskCommand.js.map +1 -0
  178. package/{dist/es → dist-es}/commands/UpdateTaskExecutionCommand.js +4 -38
  179. package/dist-es/commands/UpdateTaskExecutionCommand.js.map +1 -0
  180. package/{dist/es → dist-es}/endpoints.js +1 -1
  181. package/dist-es/endpoints.js.map +1 -0
  182. package/{dist/es → dist-es}/index.js +0 -0
  183. package/dist-es/index.js.map +1 -0
  184. package/{dist/es → dist-es}/models/index.js +0 -0
  185. package/dist-es/models/index.js.map +1 -0
  186. package/{dist/es → dist-es}/models/models_0.js +0 -267
  187. package/dist-es/models/models_0.js.map +1 -0
  188. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  189. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  190. package/{dist/es → dist-es}/pagination/ListAgentsPaginator.js +17 -29
  191. package/dist-es/pagination/ListAgentsPaginator.js.map +1 -0
  192. package/{dist/es → dist-es}/pagination/ListLocationsPaginator.js +17 -29
  193. package/dist-es/pagination/ListLocationsPaginator.js.map +1 -0
  194. package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +17 -29
  195. package/dist-es/pagination/ListTagsForResourcePaginator.js.map +1 -0
  196. package/{dist/es → dist-es}/pagination/ListTaskExecutionsPaginator.js +17 -29
  197. package/dist-es/pagination/ListTaskExecutionsPaginator.js.map +1 -0
  198. package/{dist/es → dist-es}/pagination/ListTasksPaginator.js +17 -29
  199. package/dist-es/pagination/ListTasksPaginator.js.map +1 -0
  200. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +529 -534
  201. package/dist-es/protocols/Aws_json1_1.js.map +1 -0
  202. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  203. package/dist-es/runtimeConfig.browser.js.map +1 -0
  204. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  205. package/dist-es/runtimeConfig.js.map +1 -0
  206. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  207. package/dist-es/runtimeConfig.native.js.map +1 -0
  208. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  209. package/dist-es/runtimeConfig.shared.js.map +1 -0
  210. package/{dist/types → dist-types}/DataSync.d.ts +2 -2
  211. package/{dist/types → dist-types}/DataSyncClient.d.ts +8 -8
  212. package/{dist/types → dist-types}/commands/CancelTaskExecutionCommand.d.ts +2 -2
  213. package/{dist/types → dist-types}/commands/CreateAgentCommand.d.ts +2 -2
  214. package/{dist/types → dist-types}/commands/CreateLocationEfsCommand.d.ts +2 -2
  215. package/{dist/types → dist-types}/commands/CreateLocationFsxWindowsCommand.d.ts +2 -2
  216. package/{dist/types → dist-types}/commands/CreateLocationNfsCommand.d.ts +2 -2
  217. package/{dist/types → dist-types}/commands/CreateLocationObjectStorageCommand.d.ts +2 -2
  218. package/{dist/types → dist-types}/commands/CreateLocationS3Command.d.ts +2 -2
  219. package/{dist/types → dist-types}/commands/CreateLocationSmbCommand.d.ts +2 -2
  220. package/{dist/types → dist-types}/commands/CreateTaskCommand.d.ts +2 -2
  221. package/{dist/types → dist-types}/commands/DeleteAgentCommand.d.ts +2 -2
  222. package/{dist/types → dist-types}/commands/DeleteLocationCommand.d.ts +2 -2
  223. package/{dist/types → dist-types}/commands/DeleteTaskCommand.d.ts +2 -2
  224. package/{dist/types → dist-types}/commands/DescribeAgentCommand.d.ts +2 -2
  225. package/{dist/types → dist-types}/commands/DescribeLocationEfsCommand.d.ts +2 -2
  226. package/{dist/types → dist-types}/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -2
  227. package/{dist/types → dist-types}/commands/DescribeLocationNfsCommand.d.ts +2 -2
  228. package/{dist/types → dist-types}/commands/DescribeLocationObjectStorageCommand.d.ts +2 -2
  229. package/{dist/types → dist-types}/commands/DescribeLocationS3Command.d.ts +2 -2
  230. package/{dist/types → dist-types}/commands/DescribeLocationSmbCommand.d.ts +2 -2
  231. package/{dist/types → dist-types}/commands/DescribeTaskCommand.d.ts +2 -2
  232. package/{dist/types → dist-types}/commands/DescribeTaskExecutionCommand.d.ts +2 -2
  233. package/{dist/types → dist-types}/commands/ListAgentsCommand.d.ts +2 -2
  234. package/{dist/types → dist-types}/commands/ListLocationsCommand.d.ts +2 -2
  235. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  236. package/{dist/types → dist-types}/commands/ListTaskExecutionsCommand.d.ts +2 -2
  237. package/{dist/types → dist-types}/commands/ListTasksCommand.d.ts +2 -2
  238. package/{dist/types → dist-types}/commands/StartTaskExecutionCommand.d.ts +2 -2
  239. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  240. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  241. package/{dist/types → dist-types}/commands/UpdateAgentCommand.d.ts +2 -2
  242. package/{dist/types → dist-types}/commands/UpdateLocationNfsCommand.d.ts +2 -2
  243. package/{dist/types → dist-types}/commands/UpdateLocationObjectStorageCommand.d.ts +2 -2
  244. package/{dist/types → dist-types}/commands/UpdateLocationSmbCommand.d.ts +2 -2
  245. package/{dist/types → dist-types}/commands/UpdateTaskCommand.d.ts +2 -2
  246. package/{dist/types → dist-types}/commands/UpdateTaskExecutionCommand.d.ts +2 -2
  247. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  248. package/{dist/types → dist-types}/index.d.ts +0 -0
  249. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  250. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  251. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  252. package/{dist/types → dist-types}/pagination/ListAgentsPaginator.d.ts +1 -1
  253. package/{dist/types → dist-types}/pagination/ListLocationsPaginator.d.ts +1 -1
  254. package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  255. package/{dist/types → dist-types}/pagination/ListTaskExecutionsPaginator.d.ts +1 -1
  256. package/{dist/types → dist-types}/pagination/ListTasksPaginator.d.ts +1 -1
  257. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  258. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  259. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  260. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  261. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  262. package/{dist/types → dist-types}/ts3.4/DataSync.d.ts +2 -2
  263. package/{dist/types → dist-types}/ts3.4/DataSyncClient.d.ts +8 -8
  264. package/{dist/types → dist-types}/ts3.4/commands/CancelTaskExecutionCommand.d.ts +2 -2
  265. package/{dist/types → dist-types}/ts3.4/commands/CreateAgentCommand.d.ts +2 -2
  266. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationEfsCommand.d.ts +2 -2
  267. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationFsxWindowsCommand.d.ts +2 -2
  268. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationNfsCommand.d.ts +2 -2
  269. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationObjectStorageCommand.d.ts +2 -2
  270. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationS3Command.d.ts +2 -2
  271. package/{dist/types → dist-types}/ts3.4/commands/CreateLocationSmbCommand.d.ts +2 -2
  272. package/{dist/types → dist-types}/ts3.4/commands/CreateTaskCommand.d.ts +2 -2
  273. package/{dist/types → dist-types}/ts3.4/commands/DeleteAgentCommand.d.ts +2 -2
  274. package/{dist/types → dist-types}/ts3.4/commands/DeleteLocationCommand.d.ts +2 -2
  275. package/{dist/types → dist-types}/ts3.4/commands/DeleteTaskCommand.d.ts +2 -2
  276. package/{dist/types → dist-types}/ts3.4/commands/DescribeAgentCommand.d.ts +2 -2
  277. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationEfsCommand.d.ts +2 -2
  278. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -2
  279. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationNfsCommand.d.ts +2 -2
  280. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationObjectStorageCommand.d.ts +2 -2
  281. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationS3Command.d.ts +2 -2
  282. package/{dist/types → dist-types}/ts3.4/commands/DescribeLocationSmbCommand.d.ts +2 -2
  283. package/{dist/types → dist-types}/ts3.4/commands/DescribeTaskCommand.d.ts +2 -2
  284. package/{dist/types → dist-types}/ts3.4/commands/DescribeTaskExecutionCommand.d.ts +2 -2
  285. package/{dist/types → dist-types}/ts3.4/commands/ListAgentsCommand.d.ts +2 -2
  286. package/{dist/types → dist-types}/ts3.4/commands/ListLocationsCommand.d.ts +2 -2
  287. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  288. package/{dist/types → dist-types}/ts3.4/commands/ListTaskExecutionsCommand.d.ts +2 -2
  289. package/{dist/types → dist-types}/ts3.4/commands/ListTasksCommand.d.ts +2 -2
  290. package/{dist/types → dist-types}/ts3.4/commands/StartTaskExecutionCommand.d.ts +2 -2
  291. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  292. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  293. package/{dist/types → dist-types}/ts3.4/commands/UpdateAgentCommand.d.ts +2 -2
  294. package/{dist/types → dist-types}/ts3.4/commands/UpdateLocationNfsCommand.d.ts +2 -2
  295. package/{dist/types → dist-types}/ts3.4/commands/UpdateLocationObjectStorageCommand.d.ts +2 -2
  296. package/{dist/types → dist-types}/ts3.4/commands/UpdateLocationSmbCommand.d.ts +2 -2
  297. package/{dist/types → dist-types}/ts3.4/commands/UpdateTaskCommand.d.ts +2 -2
  298. package/{dist/types → dist-types}/ts3.4/commands/UpdateTaskExecutionCommand.d.ts +2 -2
  299. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  300. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  301. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  302. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  303. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  304. package/{dist/types → dist-types}/ts3.4/pagination/ListAgentsPaginator.d.ts +1 -1
  305. package/{dist/types → dist-types}/ts3.4/pagination/ListLocationsPaginator.d.ts +1 -1
  306. package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  307. package/{dist/types → dist-types}/ts3.4/pagination/ListTaskExecutionsPaginator.d.ts +1 -1
  308. package/{dist/types → dist-types}/ts3.4/pagination/ListTasksPaginator.d.ts +1 -1
  309. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  310. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  311. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  312. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  313. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  314. package/package.json +50 -50
  315. package/{DataSync.ts → src/DataSync.ts} +3 -2
  316. package/{DataSyncClient.ts → src/DataSyncClient.ts} +58 -57
  317. package/{commands → src/commands}/CancelTaskExecutionCommand.ts +8 -7
  318. package/{commands → src/commands}/CreateAgentCommand.ts +8 -7
  319. package/{commands → src/commands}/CreateLocationEfsCommand.ts +8 -7
  320. package/{commands → src/commands}/CreateLocationFsxWindowsCommand.ts +8 -7
  321. package/{commands → src/commands}/CreateLocationNfsCommand.ts +8 -7
  322. package/{commands → src/commands}/CreateLocationObjectStorageCommand.ts +8 -7
  323. package/{commands → src/commands}/CreateLocationS3Command.ts +8 -7
  324. package/{commands → src/commands}/CreateLocationSmbCommand.ts +8 -7
  325. package/{commands → src/commands}/CreateTaskCommand.ts +8 -7
  326. package/{commands → src/commands}/DeleteAgentCommand.ts +8 -7
  327. package/{commands → src/commands}/DeleteLocationCommand.ts +8 -7
  328. package/{commands → src/commands}/DeleteTaskCommand.ts +8 -7
  329. package/{commands → src/commands}/DescribeAgentCommand.ts +8 -7
  330. package/{commands → src/commands}/DescribeLocationEfsCommand.ts +8 -7
  331. package/{commands → src/commands}/DescribeLocationFsxWindowsCommand.ts +8 -7
  332. package/{commands → src/commands}/DescribeLocationNfsCommand.ts +8 -7
  333. package/{commands → src/commands}/DescribeLocationObjectStorageCommand.ts +8 -7
  334. package/{commands → src/commands}/DescribeLocationS3Command.ts +8 -7
  335. package/{commands → src/commands}/DescribeLocationSmbCommand.ts +8 -7
  336. package/{commands → src/commands}/DescribeTaskCommand.ts +8 -7
  337. package/{commands → src/commands}/DescribeTaskExecutionCommand.ts +8 -7
  338. package/{commands → src/commands}/ListAgentsCommand.ts +8 -7
  339. package/{commands → src/commands}/ListLocationsCommand.ts +8 -7
  340. package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
  341. package/{commands → src/commands}/ListTaskExecutionsCommand.ts +8 -7
  342. package/{commands → src/commands}/ListTasksCommand.ts +5 -4
  343. package/{commands → src/commands}/StartTaskExecutionCommand.ts +8 -7
  344. package/{commands → src/commands}/TagResourceCommand.ts +8 -7
  345. package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
  346. package/{commands → src/commands}/UpdateAgentCommand.ts +8 -7
  347. package/{commands → src/commands}/UpdateLocationNfsCommand.ts +8 -7
  348. package/{commands → src/commands}/UpdateLocationObjectStorageCommand.ts +8 -7
  349. package/{commands → src/commands}/UpdateLocationSmbCommand.ts +8 -7
  350. package/{commands → src/commands}/UpdateTaskCommand.ts +8 -7
  351. package/{commands → src/commands}/UpdateTaskExecutionCommand.ts +8 -7
  352. package/{endpoints.ts → src/endpoints.ts} +1 -1
  353. package/{index.ts → src/index.ts} +0 -0
  354. package/{models → src/models}/index.ts +0 -0
  355. package/{models → src/models}/models_0.ts +0 -0
  356. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  357. package/{pagination → src/pagination}/ListAgentsPaginator.ts +3 -2
  358. package/{pagination → src/pagination}/ListLocationsPaginator.ts +4 -3
  359. package/{pagination → src/pagination}/ListTagsForResourcePaginator.ts +4 -3
  360. package/{pagination → src/pagination}/ListTaskExecutionsPaginator.ts +4 -3
  361. package/{pagination → src/pagination}/ListTasksPaginator.ts +3 -2
  362. package/{protocols → src/protocols}/Aws_json1_1.ts +53 -52
  363. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
  364. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
  365. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  366. package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
  367. package/tsconfig.es.json +1 -3
  368. package/tsconfig.json +7 -7
  369. package/tsconfig.types.json +9 -0
  370. package/dist/cjs/DataSync.js.map +0 -1
  371. package/dist/cjs/DataSyncClient.js.map +0 -1
  372. package/dist/cjs/commands/CancelTaskExecutionCommand.js.map +0 -1
  373. package/dist/cjs/commands/CreateAgentCommand.js.map +0 -1
  374. package/dist/cjs/commands/CreateLocationEfsCommand.js.map +0 -1
  375. package/dist/cjs/commands/CreateLocationFsxWindowsCommand.js.map +0 -1
  376. package/dist/cjs/commands/CreateLocationNfsCommand.js.map +0 -1
  377. package/dist/cjs/commands/CreateLocationObjectStorageCommand.js.map +0 -1
  378. package/dist/cjs/commands/CreateLocationS3Command.js.map +0 -1
  379. package/dist/cjs/commands/CreateLocationSmbCommand.js.map +0 -1
  380. package/dist/cjs/commands/CreateTaskCommand.js.map +0 -1
  381. package/dist/cjs/commands/DeleteAgentCommand.js.map +0 -1
  382. package/dist/cjs/commands/DeleteLocationCommand.js.map +0 -1
  383. package/dist/cjs/commands/DeleteTaskCommand.js.map +0 -1
  384. package/dist/cjs/commands/DescribeAgentCommand.js.map +0 -1
  385. package/dist/cjs/commands/DescribeLocationEfsCommand.js.map +0 -1
  386. package/dist/cjs/commands/DescribeLocationFsxWindowsCommand.js.map +0 -1
  387. package/dist/cjs/commands/DescribeLocationNfsCommand.js.map +0 -1
  388. package/dist/cjs/commands/DescribeLocationObjectStorageCommand.js.map +0 -1
  389. package/dist/cjs/commands/DescribeLocationS3Command.js.map +0 -1
  390. package/dist/cjs/commands/DescribeLocationSmbCommand.js.map +0 -1
  391. package/dist/cjs/commands/DescribeTaskCommand.js.map +0 -1
  392. package/dist/cjs/commands/DescribeTaskExecutionCommand.js.map +0 -1
  393. package/dist/cjs/commands/ListAgentsCommand.js.map +0 -1
  394. package/dist/cjs/commands/ListLocationsCommand.js.map +0 -1
  395. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  396. package/dist/cjs/commands/ListTaskExecutionsCommand.js.map +0 -1
  397. package/dist/cjs/commands/ListTasksCommand.js.map +0 -1
  398. package/dist/cjs/commands/StartTaskExecutionCommand.js.map +0 -1
  399. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  400. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  401. package/dist/cjs/commands/UpdateAgentCommand.js.map +0 -1
  402. package/dist/cjs/commands/UpdateLocationNfsCommand.js.map +0 -1
  403. package/dist/cjs/commands/UpdateLocationObjectStorageCommand.js.map +0 -1
  404. package/dist/cjs/commands/UpdateLocationSmbCommand.js.map +0 -1
  405. package/dist/cjs/commands/UpdateTaskCommand.js.map +0 -1
  406. package/dist/cjs/commands/UpdateTaskExecutionCommand.js.map +0 -1
  407. package/dist/cjs/endpoints.js.map +0 -1
  408. package/dist/cjs/index.js +0 -48
  409. package/dist/cjs/index.js.map +0 -1
  410. package/dist/cjs/models/models_0.js.map +0 -1
  411. package/dist/cjs/package.json +0 -91
  412. package/dist/cjs/pagination/ListAgentsPaginator.js.map +0 -1
  413. package/dist/cjs/pagination/ListLocationsPaginator.js.map +0 -1
  414. package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  415. package/dist/cjs/pagination/ListTaskExecutionsPaginator.js.map +0 -1
  416. package/dist/cjs/pagination/ListTasksPaginator.js.map +0 -1
  417. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  418. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  419. package/dist/cjs/runtimeConfig.js.map +0 -1
  420. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  421. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  422. package/dist/es/DataSync.js.map +0 -1
  423. package/dist/es/DataSyncClient.js.map +0 -1
  424. package/dist/es/commands/CancelTaskExecutionCommand.js.map +0 -1
  425. package/dist/es/commands/CreateAgentCommand.js +0 -79
  426. package/dist/es/commands/CreateAgentCommand.js.map +0 -1
  427. package/dist/es/commands/CreateLocationEfsCommand.js.map +0 -1
  428. package/dist/es/commands/CreateLocationFsxWindowsCommand.js.map +0 -1
  429. package/dist/es/commands/CreateLocationNfsCommand.js.map +0 -1
  430. package/dist/es/commands/CreateLocationObjectStorageCommand.js.map +0 -1
  431. package/dist/es/commands/CreateLocationS3Command.js.map +0 -1
  432. package/dist/es/commands/CreateLocationSmbCommand.js.map +0 -1
  433. package/dist/es/commands/CreateTaskCommand.js +0 -83
  434. package/dist/es/commands/CreateTaskCommand.js.map +0 -1
  435. package/dist/es/commands/DeleteAgentCommand.js.map +0 -1
  436. package/dist/es/commands/DeleteLocationCommand.js.map +0 -1
  437. package/dist/es/commands/DeleteTaskCommand.js.map +0 -1
  438. package/dist/es/commands/DescribeAgentCommand.js.map +0 -1
  439. package/dist/es/commands/DescribeLocationEfsCommand.js.map +0 -1
  440. package/dist/es/commands/DescribeLocationFsxWindowsCommand.js.map +0 -1
  441. package/dist/es/commands/DescribeLocationNfsCommand.js.map +0 -1
  442. package/dist/es/commands/DescribeLocationObjectStorageCommand.js.map +0 -1
  443. package/dist/es/commands/DescribeLocationS3Command.js.map +0 -1
  444. package/dist/es/commands/DescribeLocationSmbCommand.js.map +0 -1
  445. package/dist/es/commands/DescribeTaskCommand.js.map +0 -1
  446. package/dist/es/commands/DescribeTaskExecutionCommand.js.map +0 -1
  447. package/dist/es/commands/ListAgentsCommand.js.map +0 -1
  448. package/dist/es/commands/ListLocationsCommand.js.map +0 -1
  449. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  450. package/dist/es/commands/ListTaskExecutionsCommand.js.map +0 -1
  451. package/dist/es/commands/ListTasksCommand.js.map +0 -1
  452. package/dist/es/commands/StartTaskExecutionCommand.js.map +0 -1
  453. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  454. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  455. package/dist/es/commands/UpdateAgentCommand.js.map +0 -1
  456. package/dist/es/commands/UpdateLocationNfsCommand.js.map +0 -1
  457. package/dist/es/commands/UpdateLocationObjectStorageCommand.js.map +0 -1
  458. package/dist/es/commands/UpdateLocationSmbCommand.js.map +0 -1
  459. package/dist/es/commands/UpdateTaskCommand.js.map +0 -1
  460. package/dist/es/commands/UpdateTaskExecutionCommand.js.map +0 -1
  461. package/dist/es/endpoints.js.map +0 -1
  462. package/dist/es/index.js.map +0 -1
  463. package/dist/es/models/index.js.map +0 -1
  464. package/dist/es/models/models_0.js.map +0 -1
  465. package/dist/es/package.json +0 -91
  466. package/dist/es/pagination/ListAgentsPaginator.js.map +0 -1
  467. package/dist/es/pagination/ListLocationsPaginator.js.map +0 -1
  468. package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  469. package/dist/es/pagination/ListTaskExecutionsPaginator.js.map +0 -1
  470. package/dist/es/pagination/ListTasksPaginator.js.map +0 -1
  471. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  472. package/dist/es/runtimeConfig.browser.js.map +0 -1
  473. package/dist/es/runtimeConfig.js.map +0 -1
  474. package/dist/es/runtimeConfig.native.js.map +0 -1
  475. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -1,9 +1,3 @@
1
- import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient";
2
- import { UpdateTaskRequest, UpdateTaskResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1UpdateTaskCommand,
5
- serializeAws_json1_1UpdateTaskCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient";
15
+ import { UpdateTaskRequest, UpdateTaskResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1UpdateTaskCommand,
18
+ serializeAws_json1_1UpdateTaskCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface UpdateTaskCommandInput extends UpdateTaskRequest {}
21
22
  export interface UpdateTaskCommandOutput extends UpdateTaskResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient";
2
- import { UpdateTaskExecutionRequest, UpdateTaskExecutionResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1UpdateTaskExecutionCommand,
5
- serializeAws_json1_1UpdateTaskExecutionCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient";
15
+ import { UpdateTaskExecutionRequest, UpdateTaskExecutionResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1UpdateTaskExecutionCommand,
18
+ serializeAws_json1_1UpdateTaskExecutionCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface UpdateTaskExecutionCommandInput extends UpdateTaskExecutionRequest {}
21
22
  export interface UpdateTaskExecutionCommandOutput extends UpdateTaskExecutionResponse, __MetadataBearer {}
22
23
 
@@ -1,4 +1,4 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
1
+ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
2
  import { RegionInfoProvider } from "@aws-sdk/types";
3
3
 
4
4
  const regionHash: RegionHash = {
File without changes
File without changes
File without changes
@@ -1,6 +1,7 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+
1
3
  import { DataSync } from "../DataSync";
2
4
  import { DataSyncClient } from "../DataSyncClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
5
 
5
6
  export interface DataSyncPaginationConfiguration extends PaginationConfiguration {
6
7
  client: DataSync | DataSyncClient;
@@ -1,8 +1,9 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
+ import { ListAgentsCommand, ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
1
4
  import { DataSync } from "../DataSync";
2
5
  import { DataSyncClient } from "../DataSyncClient";
3
- import { ListAgentsCommand, ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
4
6
  import { DataSyncPaginationConfiguration } from "./Interfaces";
5
- import { Paginator } from "@aws-sdk/types";
6
7
 
7
8
  /**
8
9
  * @private
@@ -1,12 +1,13 @@
1
- import { DataSync } from "../DataSync";
2
- import { DataSyncClient } from "../DataSyncClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  ListLocationsCommand,
5
5
  ListLocationsCommandInput,
6
6
  ListLocationsCommandOutput,
7
7
  } from "../commands/ListLocationsCommand";
8
+ import { DataSync } from "../DataSync";
9
+ import { DataSyncClient } from "../DataSyncClient";
8
10
  import { DataSyncPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,12 +1,13 @@
1
- import { DataSync } from "../DataSync";
2
- import { DataSyncClient } from "../DataSyncClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  ListTagsForResourceCommand,
5
5
  ListTagsForResourceCommandInput,
6
6
  ListTagsForResourceCommandOutput,
7
7
  } from "../commands/ListTagsForResourceCommand";
8
+ import { DataSync } from "../DataSync";
9
+ import { DataSyncClient } from "../DataSyncClient";
8
10
  import { DataSyncPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,12 +1,13 @@
1
- import { DataSync } from "../DataSync";
2
- import { DataSyncClient } from "../DataSyncClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  ListTaskExecutionsCommand,
5
5
  ListTaskExecutionsCommandInput,
6
6
  ListTaskExecutionsCommandOutput,
7
7
  } from "../commands/ListTaskExecutionsCommand";
8
+ import { DataSync } from "../DataSync";
9
+ import { DataSyncClient } from "../DataSyncClient";
8
10
  import { DataSyncPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,8 +1,9 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
+ import { ListTasksCommand, ListTasksCommandInput, ListTasksCommandOutput } from "../commands/ListTasksCommand";
1
4
  import { DataSync } from "../DataSync";
2
5
  import { DataSyncClient } from "../DataSyncClient";
3
- import { ListTasksCommand, ListTasksCommandInput, ListTasksCommandOutput } from "../commands/ListTasksCommand";
4
6
  import { DataSyncPaginationConfiguration } from "./Interfaces";
5
- import { Paginator } from "@aws-sdk/types";
6
7
 
7
8
  /**
8
9
  * @private
@@ -1,3 +1,21 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import {
3
+ expectInt32 as __expectInt32,
4
+ expectLong as __expectLong,
5
+ expectNonNull as __expectNonNull,
6
+ expectNumber as __expectNumber,
7
+ expectString as __expectString,
8
+ parseEpochTimestamp as __parseEpochTimestamp,
9
+ } from "@aws-sdk/smithy-client";
10
+ import {
11
+ Endpoint as __Endpoint,
12
+ HeaderBag as __HeaderBag,
13
+ MetadataBearer as __MetadataBearer,
14
+ ResponseMetadata as __ResponseMetadata,
15
+ SerdeContext as __SerdeContext,
16
+ SmithyException as __SmithyException,
17
+ } from "@aws-sdk/types";
18
+
1
19
  import {
2
20
  CancelTaskExecutionCommandInput,
3
21
  CancelTaskExecutionCommandOutput,
@@ -160,23 +178,6 @@ import {
160
178
  UpdateTaskRequest,
161
179
  UpdateTaskResponse,
162
180
  } from "../models/models_0";
163
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
164
- import {
165
- expectInt32 as __expectInt32,
166
- expectLong as __expectLong,
167
- expectNonNull as __expectNonNull,
168
- expectNumber as __expectNumber,
169
- expectString as __expectString,
170
- parseEpochTimestamp as __parseEpochTimestamp,
171
- } from "@aws-sdk/smithy-client";
172
- import {
173
- Endpoint as __Endpoint,
174
- HeaderBag as __HeaderBag,
175
- MetadataBearer as __MetadataBearer,
176
- ResponseMetadata as __ResponseMetadata,
177
- SerdeContext as __SerdeContext,
178
- SmithyException as __SmithyException,
179
- } from "@aws-sdk/types";
180
181
 
181
182
  export const serializeAws_json1_1CancelTaskExecutionCommand = async (
182
183
  input: CancelTaskExecutionCommandInput,
@@ -659,7 +660,7 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (
659
660
  body: await parseBody(output.body, context),
660
661
  };
661
662
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
662
- let errorCode: string = "UnknownError";
663
+ let errorCode = "UnknownError";
663
664
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
664
665
  switch (errorCode) {
665
666
  case "InternalException":
@@ -721,7 +722,7 @@ const deserializeAws_json1_1CreateAgentCommandError = async (
721
722
  body: await parseBody(output.body, context),
722
723
  };
723
724
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
724
- let errorCode: string = "UnknownError";
725
+ let errorCode = "UnknownError";
725
726
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
726
727
  switch (errorCode) {
727
728
  case "InternalException":
@@ -783,7 +784,7 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (
783
784
  body: await parseBody(output.body, context),
784
785
  };
785
786
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
786
- let errorCode: string = "UnknownError";
787
+ let errorCode = "UnknownError";
787
788
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
789
  switch (errorCode) {
789
790
  case "InternalException":
@@ -845,7 +846,7 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (
845
846
  body: await parseBody(output.body, context),
846
847
  };
847
848
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
848
- let errorCode: string = "UnknownError";
849
+ let errorCode = "UnknownError";
849
850
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
850
851
  switch (errorCode) {
851
852
  case "InternalException":
@@ -907,7 +908,7 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (
907
908
  body: await parseBody(output.body, context),
908
909
  };
909
910
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
910
- let errorCode: string = "UnknownError";
911
+ let errorCode = "UnknownError";
911
912
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
912
913
  switch (errorCode) {
913
914
  case "InternalException":
@@ -969,7 +970,7 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (
969
970
  body: await parseBody(output.body, context),
970
971
  };
971
972
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
972
- let errorCode: string = "UnknownError";
973
+ let errorCode = "UnknownError";
973
974
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
974
975
  switch (errorCode) {
975
976
  case "InternalException":
@@ -1031,7 +1032,7 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (
1031
1032
  body: await parseBody(output.body, context),
1032
1033
  };
1033
1034
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1034
- let errorCode: string = "UnknownError";
1035
+ let errorCode = "UnknownError";
1035
1036
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1036
1037
  switch (errorCode) {
1037
1038
  case "InternalException":
@@ -1093,7 +1094,7 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (
1093
1094
  body: await parseBody(output.body, context),
1094
1095
  };
1095
1096
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1096
- let errorCode: string = "UnknownError";
1097
+ let errorCode = "UnknownError";
1097
1098
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1098
1099
  switch (errorCode) {
1099
1100
  case "InternalException":
@@ -1155,7 +1156,7 @@ const deserializeAws_json1_1CreateTaskCommandError = async (
1155
1156
  body: await parseBody(output.body, context),
1156
1157
  };
1157
1158
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1158
- let errorCode: string = "UnknownError";
1159
+ let errorCode = "UnknownError";
1159
1160
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1160
1161
  switch (errorCode) {
1161
1162
  case "InternalException":
@@ -1217,7 +1218,7 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (
1217
1218
  body: await parseBody(output.body, context),
1218
1219
  };
1219
1220
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1220
- let errorCode: string = "UnknownError";
1221
+ let errorCode = "UnknownError";
1221
1222
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1222
1223
  switch (errorCode) {
1223
1224
  case "InternalException":
@@ -1279,7 +1280,7 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (
1279
1280
  body: await parseBody(output.body, context),
1280
1281
  };
1281
1282
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1282
- let errorCode: string = "UnknownError";
1283
+ let errorCode = "UnknownError";
1283
1284
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1284
1285
  switch (errorCode) {
1285
1286
  case "InternalException":
@@ -1341,7 +1342,7 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (
1341
1342
  body: await parseBody(output.body, context),
1342
1343
  };
1343
1344
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1344
- let errorCode: string = "UnknownError";
1345
+ let errorCode = "UnknownError";
1345
1346
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1346
1347
  switch (errorCode) {
1347
1348
  case "InternalException":
@@ -1403,7 +1404,7 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (
1403
1404
  body: await parseBody(output.body, context),
1404
1405
  };
1405
1406
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1406
- let errorCode: string = "UnknownError";
1407
+ let errorCode = "UnknownError";
1407
1408
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1408
1409
  switch (errorCode) {
1409
1410
  case "InternalException":
@@ -1465,7 +1466,7 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (
1465
1466
  body: await parseBody(output.body, context),
1466
1467
  };
1467
1468
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1468
- let errorCode: string = "UnknownError";
1469
+ let errorCode = "UnknownError";
1469
1470
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1470
1471
  switch (errorCode) {
1471
1472
  case "InternalException":
@@ -1527,7 +1528,7 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (
1527
1528
  body: await parseBody(output.body, context),
1528
1529
  };
1529
1530
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1530
- let errorCode: string = "UnknownError";
1531
+ let errorCode = "UnknownError";
1531
1532
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1532
1533
  switch (errorCode) {
1533
1534
  case "InternalException":
@@ -1589,7 +1590,7 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (
1589
1590
  body: await parseBody(output.body, context),
1590
1591
  };
1591
1592
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1592
- let errorCode: string = "UnknownError";
1593
+ let errorCode = "UnknownError";
1593
1594
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1594
1595
  switch (errorCode) {
1595
1596
  case "InternalException":
@@ -1651,7 +1652,7 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (
1651
1652
  body: await parseBody(output.body, context),
1652
1653
  };
1653
1654
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1654
- let errorCode: string = "UnknownError";
1655
+ let errorCode = "UnknownError";
1655
1656
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1656
1657
  switch (errorCode) {
1657
1658
  case "InternalException":
@@ -1713,7 +1714,7 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (
1713
1714
  body: await parseBody(output.body, context),
1714
1715
  };
1715
1716
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1716
- let errorCode: string = "UnknownError";
1717
+ let errorCode = "UnknownError";
1717
1718
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1718
1719
  switch (errorCode) {
1719
1720
  case "InternalException":
@@ -1775,7 +1776,7 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (
1775
1776
  body: await parseBody(output.body, context),
1776
1777
  };
1777
1778
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1778
- let errorCode: string = "UnknownError";
1779
+ let errorCode = "UnknownError";
1779
1780
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1780
1781
  switch (errorCode) {
1781
1782
  case "InternalException":
@@ -1837,7 +1838,7 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (
1837
1838
  body: await parseBody(output.body, context),
1838
1839
  };
1839
1840
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1840
- let errorCode: string = "UnknownError";
1841
+ let errorCode = "UnknownError";
1841
1842
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1842
1843
  switch (errorCode) {
1843
1844
  case "InternalException":
@@ -1899,7 +1900,7 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (
1899
1900
  body: await parseBody(output.body, context),
1900
1901
  };
1901
1902
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1902
- let errorCode: string = "UnknownError";
1903
+ let errorCode = "UnknownError";
1903
1904
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1904
1905
  switch (errorCode) {
1905
1906
  case "InternalException":
@@ -1961,7 +1962,7 @@ const deserializeAws_json1_1ListAgentsCommandError = async (
1961
1962
  body: await parseBody(output.body, context),
1962
1963
  };
1963
1964
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1964
- let errorCode: string = "UnknownError";
1965
+ let errorCode = "UnknownError";
1965
1966
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1966
1967
  switch (errorCode) {
1967
1968
  case "InternalException":
@@ -2023,7 +2024,7 @@ const deserializeAws_json1_1ListLocationsCommandError = async (
2023
2024
  body: await parseBody(output.body, context),
2024
2025
  };
2025
2026
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2026
- let errorCode: string = "UnknownError";
2027
+ let errorCode = "UnknownError";
2027
2028
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2028
2029
  switch (errorCode) {
2029
2030
  case "InternalException":
@@ -2085,7 +2086,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (
2085
2086
  body: await parseBody(output.body, context),
2086
2087
  };
2087
2088
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2088
- let errorCode: string = "UnknownError";
2089
+ let errorCode = "UnknownError";
2089
2090
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2090
2091
  switch (errorCode) {
2091
2092
  case "InternalException":
@@ -2147,7 +2148,7 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (
2147
2148
  body: await parseBody(output.body, context),
2148
2149
  };
2149
2150
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2150
- let errorCode: string = "UnknownError";
2151
+ let errorCode = "UnknownError";
2151
2152
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2152
2153
  switch (errorCode) {
2153
2154
  case "InternalException":
@@ -2209,7 +2210,7 @@ const deserializeAws_json1_1ListTasksCommandError = async (
2209
2210
  body: await parseBody(output.body, context),
2210
2211
  };
2211
2212
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2212
- let errorCode: string = "UnknownError";
2213
+ let errorCode = "UnknownError";
2213
2214
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2214
2215
  switch (errorCode) {
2215
2216
  case "InternalException":
@@ -2271,7 +2272,7 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (
2271
2272
  body: await parseBody(output.body, context),
2272
2273
  };
2273
2274
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2274
- let errorCode: string = "UnknownError";
2275
+ let errorCode = "UnknownError";
2275
2276
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2276
2277
  switch (errorCode) {
2277
2278
  case "InternalException":
@@ -2333,7 +2334,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (
2333
2334
  body: await parseBody(output.body, context),
2334
2335
  };
2335
2336
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2336
- let errorCode: string = "UnknownError";
2337
+ let errorCode = "UnknownError";
2337
2338
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2338
2339
  switch (errorCode) {
2339
2340
  case "InternalException":
@@ -2395,7 +2396,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (
2395
2396
  body: await parseBody(output.body, context),
2396
2397
  };
2397
2398
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2398
- let errorCode: string = "UnknownError";
2399
+ let errorCode = "UnknownError";
2399
2400
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2400
2401
  switch (errorCode) {
2401
2402
  case "InternalException":
@@ -2457,7 +2458,7 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (
2457
2458
  body: await parseBody(output.body, context),
2458
2459
  };
2459
2460
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2460
- let errorCode: string = "UnknownError";
2461
+ let errorCode = "UnknownError";
2461
2462
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2462
2463
  switch (errorCode) {
2463
2464
  case "InternalException":
@@ -2519,7 +2520,7 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (
2519
2520
  body: await parseBody(output.body, context),
2520
2521
  };
2521
2522
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2522
- let errorCode: string = "UnknownError";
2523
+ let errorCode = "UnknownError";
2523
2524
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2524
2525
  switch (errorCode) {
2525
2526
  case "InternalException":
@@ -2581,7 +2582,7 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (
2581
2582
  body: await parseBody(output.body, context),
2582
2583
  };
2583
2584
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2584
- let errorCode: string = "UnknownError";
2585
+ let errorCode = "UnknownError";
2585
2586
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2586
2587
  switch (errorCode) {
2587
2588
  case "InternalException":
@@ -2643,7 +2644,7 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (
2643
2644
  body: await parseBody(output.body, context),
2644
2645
  };
2645
2646
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2646
- let errorCode: string = "UnknownError";
2647
+ let errorCode = "UnknownError";
2647
2648
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2648
2649
  switch (errorCode) {
2649
2650
  case "InternalException":
@@ -2705,7 +2706,7 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (
2705
2706
  body: await parseBody(output.body, context),
2706
2707
  };
2707
2708
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2708
- let errorCode: string = "UnknownError";
2709
+ let errorCode = "UnknownError";
2709
2710
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2710
2711
  switch (errorCode) {
2711
2712
  case "InternalException":
@@ -2767,7 +2768,7 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (
2767
2768
  body: await parseBody(output.body, context),
2768
2769
  };
2769
2770
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2770
- let errorCode: string = "UnknownError";
2771
+ let errorCode = "UnknownError";
2771
2772
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2772
2773
  switch (errorCode) {
2773
2774
  case "InternalException":
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
2
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
3
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -8,6 +6,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
7
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
8
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
9
+
10
+ // @ts-ignore: package.json will be imported from dist folders
11
+ import packageInfo from "../package.json";
11
12
  import { DataSyncClientConfig } from "./DataSyncClient";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
14
 
@@ -1,4 +1,5 @@
1
1
  import { Sha256 } from "@aws-crypto/sha256-js";
2
+
2
3
  import { DataSyncClientConfig } from "./DataSyncClient";
3
4
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
5
 
@@ -1,7 +1,8 @@
1
- import { defaultRegionInfoProvider } from "./endpoints";
2
1
  import { Logger as __Logger } from "@aws-sdk/types";
3
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
+
4
4
  import { DataSyncClientConfig } from "./DataSyncClient";
5
+ import { defaultRegionInfoProvider } from "./endpoints";
5
6
 
6
7
  /**
7
8
  * @internal
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
2
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -7,13 +5,16 @@ import { Hash } from "@aws-sdk/hash-node";
7
5
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
8
6
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
7
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
9
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
10
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
+
14
+ // @ts-ignore: package.json will be imported from dist folders
15
+ import packageInfo from "../package.json";
14
16
  import { DataSyncClientConfig } from "./DataSyncClient";
15
17
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
 
18
19
  /**
19
20
  * @internal
package/tsconfig.es.json CHANGED
@@ -4,9 +4,7 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
- "outDir": "dist/es"
8
+ "outDir": "dist-es"
11
9
  }
12
10
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,9 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
14
+ "rootDir": "src",
15
+ "outDir": "dist-cjs",
16
+ "removeComments": true
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,10 +23,11 @@
24
23
  "ignoreCompilerErrors": true,
25
24
  "includeDeclarations": true,
26
25
  "stripInternal": true,
27
- "readme": "./README.md",
26
+ "readme": "README.md",
28
27
  "mode": "file",
29
- "out": "./docs",
28
+ "out": "docs",
30
29
  "theme": "minimal",
31
30
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
- }
31
+ },
32
+ "exclude": ["test/**/*"]
33
33
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist-types"
7
+ },
8
+ "exclude": ["test/**/*", "dist-types/**/*"]
9
+ }