@aws-sdk/client-transfer 3.35.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Transfer.js +0 -12
  3. package/dist-cjs/TransferClient.js +0 -17
  4. package/dist-cjs/commands/CreateAccessCommand.js +0 -30
  5. package/dist-cjs/commands/CreateServerCommand.js +0 -28
  6. package/dist-cjs/commands/CreateUserCommand.js +0 -31
  7. package/dist-cjs/commands/CreateWorkflowCommand.js +0 -28
  8. package/dist-cjs/commands/DeleteAccessCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteServerCommand.js +0 -27
  10. package/dist-cjs/commands/DeleteSshPublicKeyCommand.js +0 -25
  11. package/dist-cjs/commands/DeleteUserCommand.js +0 -31
  12. package/dist-cjs/commands/DeleteWorkflowCommand.js +0 -25
  13. package/dist-cjs/commands/DescribeAccessCommand.js +0 -30
  14. package/dist-cjs/commands/DescribeExecutionCommand.js +0 -25
  15. package/dist-cjs/commands/DescribeSecurityPolicyCommand.js +0 -28
  16. package/dist-cjs/commands/DescribeServerCommand.js +0 -30
  17. package/dist-cjs/commands/DescribeUserCommand.js +0 -29
  18. package/dist-cjs/commands/DescribeWorkflowCommand.js +0 -25
  19. package/dist-cjs/commands/ImportSshPublicKeyCommand.js +0 -30
  20. package/dist-cjs/commands/ListAccessesCommand.js +0 -25
  21. package/dist-cjs/commands/ListExecutionsCommand.js +0 -25
  22. package/dist-cjs/commands/ListSecurityPoliciesCommand.js +0 -26
  23. package/dist-cjs/commands/ListServersCommand.js +0 -26
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  25. package/dist-cjs/commands/ListUsersCommand.js +0 -26
  26. package/dist-cjs/commands/ListWorkflowsCommand.js +0 -25
  27. package/dist-cjs/commands/SendWorkflowStepStateCommand.js +0 -29
  28. package/dist-cjs/commands/StartServerCommand.js +0 -33
  29. package/dist-cjs/commands/StopServerCommand.js +0 -39
  30. package/dist-cjs/commands/TagResourceCommand.js +0 -28
  31. package/dist-cjs/commands/TestIdentityProviderCommand.js +0 -63
  32. package/dist-cjs/commands/UntagResourceCommand.js +0 -28
  33. package/dist-cjs/commands/UpdateAccessCommand.js +0 -26
  34. package/dist-cjs/commands/UpdateServerCommand.js +0 -29
  35. package/dist-cjs/commands/UpdateUserCommand.js +0 -30
  36. package/dist-cjs/commands/index.js +35 -0
  37. package/dist-cjs/endpoints.js +1 -2
  38. package/dist-cjs/index.js +4 -43
  39. package/dist-cjs/models/index.js +0 -1
  40. package/dist-cjs/models/models_0.js +0 -304
  41. package/dist-cjs/pagination/Interfaces.js +0 -1
  42. package/dist-cjs/pagination/ListAccessesPaginator.js +0 -11
  43. package/dist-cjs/pagination/ListExecutionsPaginator.js +0 -11
  44. package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +0 -11
  45. package/dist-cjs/pagination/ListServersPaginator.js +0 -11
  46. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -11
  47. package/dist-cjs/pagination/ListUsersPaginator.js +0 -11
  48. package/dist-cjs/pagination/ListWorkflowsPaginator.js +0 -11
  49. package/dist-cjs/pagination/index.js +11 -0
  50. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  51. package/dist-cjs/runtimeConfig.browser.js +1 -6
  52. package/dist-cjs/runtimeConfig.js +2 -7
  53. package/dist-cjs/runtimeConfig.native.js +0 -4
  54. package/dist-cjs/runtimeConfig.shared.js +0 -4
  55. package/dist-es/Transfer.js +0 -1
  56. package/dist-es/TransferClient.js +0 -1
  57. package/dist-es/commands/CreateAccessCommand.js +0 -1
  58. package/dist-es/commands/CreateServerCommand.js +0 -1
  59. package/dist-es/commands/CreateUserCommand.js +0 -1
  60. package/dist-es/commands/CreateWorkflowCommand.js +0 -1
  61. package/dist-es/commands/DeleteAccessCommand.js +0 -1
  62. package/dist-es/commands/DeleteServerCommand.js +0 -1
  63. package/dist-es/commands/DeleteSshPublicKeyCommand.js +0 -1
  64. package/dist-es/commands/DeleteUserCommand.js +0 -1
  65. package/dist-es/commands/DeleteWorkflowCommand.js +0 -1
  66. package/dist-es/commands/DescribeAccessCommand.js +0 -1
  67. package/dist-es/commands/DescribeExecutionCommand.js +0 -1
  68. package/dist-es/commands/DescribeSecurityPolicyCommand.js +0 -1
  69. package/dist-es/commands/DescribeServerCommand.js +0 -1
  70. package/dist-es/commands/DescribeUserCommand.js +0 -1
  71. package/dist-es/commands/DescribeWorkflowCommand.js +0 -1
  72. package/dist-es/commands/ImportSshPublicKeyCommand.js +0 -1
  73. package/dist-es/commands/ListAccessesCommand.js +0 -1
  74. package/dist-es/commands/ListExecutionsCommand.js +0 -1
  75. package/dist-es/commands/ListSecurityPoliciesCommand.js +0 -1
  76. package/dist-es/commands/ListServersCommand.js +0 -1
  77. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  78. package/dist-es/commands/ListUsersCommand.js +0 -1
  79. package/dist-es/commands/ListWorkflowsCommand.js +0 -1
  80. package/dist-es/commands/SendWorkflowStepStateCommand.js +0 -1
  81. package/dist-es/commands/StartServerCommand.js +0 -1
  82. package/dist-es/commands/StopServerCommand.js +0 -1
  83. package/dist-es/commands/TagResourceCommand.js +0 -1
  84. package/dist-es/commands/TestIdentityProviderCommand.js +0 -1
  85. package/dist-es/commands/UntagResourceCommand.js +0 -1
  86. package/dist-es/commands/UpdateAccessCommand.js +0 -1
  87. package/dist-es/commands/UpdateServerCommand.js +0 -1
  88. package/dist-es/commands/UpdateUserCommand.js +0 -1
  89. package/dist-es/commands/index.js +32 -0
  90. package/dist-es/endpoints.js +1 -2
  91. package/dist-es/index.js +4 -43
  92. package/dist-es/models/index.js +0 -1
  93. package/dist-es/models/models_0.js +0 -1
  94. package/dist-es/pagination/Interfaces.js +0 -1
  95. package/dist-es/pagination/ListAccessesPaginator.js +0 -1
  96. package/dist-es/pagination/ListExecutionsPaginator.js +0 -1
  97. package/dist-es/pagination/ListSecurityPoliciesPaginator.js +0 -1
  98. package/dist-es/pagination/ListServersPaginator.js +0 -1
  99. package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
  100. package/dist-es/pagination/ListUsersPaginator.js +0 -1
  101. package/dist-es/pagination/ListWorkflowsPaginator.js +0 -1
  102. package/dist-es/pagination/index.js +8 -0
  103. package/dist-es/protocols/Aws_json1_1.js +0 -1
  104. package/dist-es/runtimeConfig.browser.js +1 -2
  105. package/dist-es/runtimeConfig.js +2 -3
  106. package/dist-es/runtimeConfig.native.js +0 -1
  107. package/dist-es/runtimeConfig.shared.js +0 -1
  108. package/dist-types/commands/index.d.ts +32 -0
  109. package/dist-types/index.d.ts +4 -42
  110. package/dist-types/pagination/index.d.ts +8 -0
  111. package/dist-types/ts3.4/Transfer.d.ts +33 -239
  112. package/dist-types/ts3.4/TransferClient.d.ts +24 -97
  113. package/dist-types/ts3.4/commands/CreateAccessCommand.d.ts +2 -25
  114. package/dist-types/ts3.4/commands/CreateServerCommand.d.ts +2 -23
  115. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +2 -26
  116. package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +2 -23
  117. package/dist-types/ts3.4/commands/DeleteAccessCommand.d.ts +2 -21
  118. package/dist-types/ts3.4/commands/DeleteServerCommand.d.ts +2 -22
  119. package/dist-types/ts3.4/commands/DeleteSshPublicKeyCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -26
  121. package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/DescribeAccessCommand.d.ts +2 -25
  123. package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/DescribeSecurityPolicyCommand.d.ts +2 -23
  125. package/dist-types/ts3.4/commands/DescribeServerCommand.d.ts +2 -25
  126. package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +2 -24
  127. package/dist-types/ts3.4/commands/DescribeWorkflowCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/ImportSshPublicKeyCommand.d.ts +2 -25
  129. package/dist-types/ts3.4/commands/ListAccessesCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +2 -21
  132. package/dist-types/ts3.4/commands/ListServersCommand.d.ts +2 -21
  133. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
  134. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -21
  135. package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/SendWorkflowStepStateCommand.d.ts +2 -24
  137. package/dist-types/ts3.4/commands/StartServerCommand.d.ts +2 -28
  138. package/dist-types/ts3.4/commands/StopServerCommand.d.ts +2 -34
  139. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  140. package/dist-types/ts3.4/commands/TestIdentityProviderCommand.d.ts +2 -58
  141. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -23
  142. package/dist-types/ts3.4/commands/UpdateAccessCommand.d.ts +2 -21
  143. package/dist-types/ts3.4/commands/UpdateServerCommand.d.ts +2 -24
  144. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +2 -25
  145. package/dist-types/ts3.4/commands/index.d.ts +32 -0
  146. package/dist-types/ts3.4/index.d.ts +4 -42
  147. package/dist-types/ts3.4/models/models_0.d.ts +451 -2421
  148. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  149. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  150. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  151. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  152. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  153. package/package.json +33 -30
  154. package/dist-cjs/Transfer.js.map +0 -1
  155. package/dist-cjs/TransferClient.js.map +0 -1
  156. package/dist-cjs/commands/CreateAccessCommand.js.map +0 -1
  157. package/dist-cjs/commands/CreateServerCommand.js.map +0 -1
  158. package/dist-cjs/commands/CreateUserCommand.js.map +0 -1
  159. package/dist-cjs/commands/CreateWorkflowCommand.js.map +0 -1
  160. package/dist-cjs/commands/DeleteAccessCommand.js.map +0 -1
  161. package/dist-cjs/commands/DeleteServerCommand.js.map +0 -1
  162. package/dist-cjs/commands/DeleteSshPublicKeyCommand.js.map +0 -1
  163. package/dist-cjs/commands/DeleteUserCommand.js.map +0 -1
  164. package/dist-cjs/commands/DeleteWorkflowCommand.js.map +0 -1
  165. package/dist-cjs/commands/DescribeAccessCommand.js.map +0 -1
  166. package/dist-cjs/commands/DescribeExecutionCommand.js.map +0 -1
  167. package/dist-cjs/commands/DescribeSecurityPolicyCommand.js.map +0 -1
  168. package/dist-cjs/commands/DescribeServerCommand.js.map +0 -1
  169. package/dist-cjs/commands/DescribeUserCommand.js.map +0 -1
  170. package/dist-cjs/commands/DescribeWorkflowCommand.js.map +0 -1
  171. package/dist-cjs/commands/ImportSshPublicKeyCommand.js.map +0 -1
  172. package/dist-cjs/commands/ListAccessesCommand.js.map +0 -1
  173. package/dist-cjs/commands/ListExecutionsCommand.js.map +0 -1
  174. package/dist-cjs/commands/ListSecurityPoliciesCommand.js.map +0 -1
  175. package/dist-cjs/commands/ListServersCommand.js.map +0 -1
  176. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  177. package/dist-cjs/commands/ListUsersCommand.js.map +0 -1
  178. package/dist-cjs/commands/ListWorkflowsCommand.js.map +0 -1
  179. package/dist-cjs/commands/SendWorkflowStepStateCommand.js.map +0 -1
  180. package/dist-cjs/commands/StartServerCommand.js.map +0 -1
  181. package/dist-cjs/commands/StopServerCommand.js.map +0 -1
  182. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  183. package/dist-cjs/commands/TestIdentityProviderCommand.js.map +0 -1
  184. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  185. package/dist-cjs/commands/UpdateAccessCommand.js.map +0 -1
  186. package/dist-cjs/commands/UpdateServerCommand.js.map +0 -1
  187. package/dist-cjs/commands/UpdateUserCommand.js.map +0 -1
  188. package/dist-cjs/endpoints.js.map +0 -1
  189. package/dist-cjs/index.js.map +0 -1
  190. package/dist-cjs/models/index.js.map +0 -1
  191. package/dist-cjs/models/models_0.js.map +0 -1
  192. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  193. package/dist-cjs/pagination/ListAccessesPaginator.js.map +0 -1
  194. package/dist-cjs/pagination/ListExecutionsPaginator.js.map +0 -1
  195. package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js.map +0 -1
  196. package/dist-cjs/pagination/ListServersPaginator.js.map +0 -1
  197. package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  198. package/dist-cjs/pagination/ListUsersPaginator.js.map +0 -1
  199. package/dist-cjs/pagination/ListWorkflowsPaginator.js.map +0 -1
  200. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  201. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  202. package/dist-cjs/runtimeConfig.js.map +0 -1
  203. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  204. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  205. package/dist-es/Transfer.js.map +0 -1
  206. package/dist-es/TransferClient.js.map +0 -1
  207. package/dist-es/commands/CreateAccessCommand.js.map +0 -1
  208. package/dist-es/commands/CreateServerCommand.js.map +0 -1
  209. package/dist-es/commands/CreateUserCommand.js.map +0 -1
  210. package/dist-es/commands/CreateWorkflowCommand.js.map +0 -1
  211. package/dist-es/commands/DeleteAccessCommand.js.map +0 -1
  212. package/dist-es/commands/DeleteServerCommand.js.map +0 -1
  213. package/dist-es/commands/DeleteSshPublicKeyCommand.js.map +0 -1
  214. package/dist-es/commands/DeleteUserCommand.js.map +0 -1
  215. package/dist-es/commands/DeleteWorkflowCommand.js.map +0 -1
  216. package/dist-es/commands/DescribeAccessCommand.js.map +0 -1
  217. package/dist-es/commands/DescribeExecutionCommand.js.map +0 -1
  218. package/dist-es/commands/DescribeSecurityPolicyCommand.js.map +0 -1
  219. package/dist-es/commands/DescribeServerCommand.js.map +0 -1
  220. package/dist-es/commands/DescribeUserCommand.js.map +0 -1
  221. package/dist-es/commands/DescribeWorkflowCommand.js.map +0 -1
  222. package/dist-es/commands/ImportSshPublicKeyCommand.js.map +0 -1
  223. package/dist-es/commands/ListAccessesCommand.js.map +0 -1
  224. package/dist-es/commands/ListExecutionsCommand.js.map +0 -1
  225. package/dist-es/commands/ListSecurityPoliciesCommand.js.map +0 -1
  226. package/dist-es/commands/ListServersCommand.js.map +0 -1
  227. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  228. package/dist-es/commands/ListUsersCommand.js.map +0 -1
  229. package/dist-es/commands/ListWorkflowsCommand.js.map +0 -1
  230. package/dist-es/commands/SendWorkflowStepStateCommand.js.map +0 -1
  231. package/dist-es/commands/StartServerCommand.js.map +0 -1
  232. package/dist-es/commands/StopServerCommand.js.map +0 -1
  233. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  234. package/dist-es/commands/TestIdentityProviderCommand.js.map +0 -1
  235. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  236. package/dist-es/commands/UpdateAccessCommand.js.map +0 -1
  237. package/dist-es/commands/UpdateServerCommand.js.map +0 -1
  238. package/dist-es/commands/UpdateUserCommand.js.map +0 -1
  239. package/dist-es/endpoints.js.map +0 -1
  240. package/dist-es/index.js.map +0 -1
  241. package/dist-es/models/index.js.map +0 -1
  242. package/dist-es/models/models_0.js.map +0 -1
  243. package/dist-es/pagination/Interfaces.js.map +0 -1
  244. package/dist-es/pagination/ListAccessesPaginator.js.map +0 -1
  245. package/dist-es/pagination/ListExecutionsPaginator.js.map +0 -1
  246. package/dist-es/pagination/ListSecurityPoliciesPaginator.js.map +0 -1
  247. package/dist-es/pagination/ListServersPaginator.js.map +0 -1
  248. package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  249. package/dist-es/pagination/ListUsersPaginator.js.map +0 -1
  250. package/dist-es/pagination/ListWorkflowsPaginator.js.map +0 -1
  251. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  252. package/dist-es/runtimeConfig.browser.js.map +0 -1
  253. package/dist-es/runtimeConfig.js.map +0 -1
  254. package/dist-es/runtimeConfig.native.js.map +0 -1
  255. package/dist-es/runtimeConfig.shared.js.map +0 -1
  256. package/jest.config.js +0 -4
  257. package/src/Transfer.ts +0 -1228
  258. package/src/TransferClient.ts +0 -355
  259. package/src/commands/CreateAccessCommand.ts +0 -100
  260. package/src/commands/CreateServerCommand.ts +0 -98
  261. package/src/commands/CreateUserCommand.ts +0 -101
  262. package/src/commands/CreateWorkflowCommand.ts +0 -98
  263. package/src/commands/DeleteAccessCommand.ts +0 -96
  264. package/src/commands/DeleteServerCommand.ts +0 -97
  265. package/src/commands/DeleteSshPublicKeyCommand.ts +0 -95
  266. package/src/commands/DeleteUserCommand.ts +0 -101
  267. package/src/commands/DeleteWorkflowCommand.ts +0 -95
  268. package/src/commands/DescribeAccessCommand.ts +0 -100
  269. package/src/commands/DescribeExecutionCommand.ts +0 -95
  270. package/src/commands/DescribeSecurityPolicyCommand.ts +0 -98
  271. package/src/commands/DescribeServerCommand.ts +0 -100
  272. package/src/commands/DescribeUserCommand.ts +0 -99
  273. package/src/commands/DescribeWorkflowCommand.ts +0 -95
  274. package/src/commands/ImportSshPublicKeyCommand.ts +0 -100
  275. package/src/commands/ListAccessesCommand.ts +0 -95
  276. package/src/commands/ListExecutionsCommand.ts +0 -95
  277. package/src/commands/ListSecurityPoliciesCommand.ts +0 -96
  278. package/src/commands/ListServersCommand.ts +0 -96
  279. package/src/commands/ListTagsForResourceCommand.ts +0 -96
  280. package/src/commands/ListUsersCommand.ts +0 -93
  281. package/src/commands/ListWorkflowsCommand.ts +0 -95
  282. package/src/commands/SendWorkflowStepStateCommand.ts +0 -99
  283. package/src/commands/StartServerCommand.ts +0 -103
  284. package/src/commands/StopServerCommand.ts +0 -109
  285. package/src/commands/TagResourceCommand.ts +0 -98
  286. package/src/commands/TestIdentityProviderCommand.ts +0 -133
  287. package/src/commands/UntagResourceCommand.ts +0 -98
  288. package/src/commands/UpdateAccessCommand.ts +0 -96
  289. package/src/commands/UpdateServerCommand.ts +0 -99
  290. package/src/commands/UpdateUserCommand.ts +0 -100
  291. package/src/endpoints.ts +0 -91
  292. package/src/index.ts +0 -43
  293. package/src/models/index.ts +0 -1
  294. package/src/models/models_0.ts +0 -3943
  295. package/src/pagination/Interfaces.ts +0 -8
  296. package/src/pagination/ListAccessesPaginator.ts +0 -59
  297. package/src/pagination/ListExecutionsPaginator.ts +0 -59
  298. package/src/pagination/ListSecurityPoliciesPaginator.ts +0 -59
  299. package/src/pagination/ListServersPaginator.ts +0 -55
  300. package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
  301. package/src/pagination/ListUsersPaginator.ts +0 -55
  302. package/src/pagination/ListWorkflowsPaginator.ts +0 -59
  303. package/src/protocols/Aws_json1_1.ts +0 -5079
  304. package/src/runtimeConfig.browser.ts +0 -41
  305. package/src/runtimeConfig.native.ts +0 -17
  306. package/src/runtimeConfig.shared.ts +0 -17
  307. package/src/runtimeConfig.ts +0 -46
  308. package/tsconfig.es.json +0 -10
  309. package/tsconfig.json +0 -33
  310. package/tsconfig.types.json +0 -9
package/src/Transfer.ts DELETED
@@ -1,1228 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- CreateAccessCommand,
5
- CreateAccessCommandInput,
6
- CreateAccessCommandOutput,
7
- } from "./commands/CreateAccessCommand";
8
- import {
9
- CreateServerCommand,
10
- CreateServerCommandInput,
11
- CreateServerCommandOutput,
12
- } from "./commands/CreateServerCommand";
13
- import { CreateUserCommand, CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
14
- import {
15
- CreateWorkflowCommand,
16
- CreateWorkflowCommandInput,
17
- CreateWorkflowCommandOutput,
18
- } from "./commands/CreateWorkflowCommand";
19
- import {
20
- DeleteAccessCommand,
21
- DeleteAccessCommandInput,
22
- DeleteAccessCommandOutput,
23
- } from "./commands/DeleteAccessCommand";
24
- import {
25
- DeleteServerCommand,
26
- DeleteServerCommandInput,
27
- DeleteServerCommandOutput,
28
- } from "./commands/DeleteServerCommand";
29
- import {
30
- DeleteSshPublicKeyCommand,
31
- DeleteSshPublicKeyCommandInput,
32
- DeleteSshPublicKeyCommandOutput,
33
- } from "./commands/DeleteSshPublicKeyCommand";
34
- import { DeleteUserCommand, DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
35
- import {
36
- DeleteWorkflowCommand,
37
- DeleteWorkflowCommandInput,
38
- DeleteWorkflowCommandOutput,
39
- } from "./commands/DeleteWorkflowCommand";
40
- import {
41
- DescribeAccessCommand,
42
- DescribeAccessCommandInput,
43
- DescribeAccessCommandOutput,
44
- } from "./commands/DescribeAccessCommand";
45
- import {
46
- DescribeExecutionCommand,
47
- DescribeExecutionCommandInput,
48
- DescribeExecutionCommandOutput,
49
- } from "./commands/DescribeExecutionCommand";
50
- import {
51
- DescribeSecurityPolicyCommand,
52
- DescribeSecurityPolicyCommandInput,
53
- DescribeSecurityPolicyCommandOutput,
54
- } from "./commands/DescribeSecurityPolicyCommand";
55
- import {
56
- DescribeServerCommand,
57
- DescribeServerCommandInput,
58
- DescribeServerCommandOutput,
59
- } from "./commands/DescribeServerCommand";
60
- import {
61
- DescribeUserCommand,
62
- DescribeUserCommandInput,
63
- DescribeUserCommandOutput,
64
- } from "./commands/DescribeUserCommand";
65
- import {
66
- DescribeWorkflowCommand,
67
- DescribeWorkflowCommandInput,
68
- DescribeWorkflowCommandOutput,
69
- } from "./commands/DescribeWorkflowCommand";
70
- import {
71
- ImportSshPublicKeyCommand,
72
- ImportSshPublicKeyCommandInput,
73
- ImportSshPublicKeyCommandOutput,
74
- } from "./commands/ImportSshPublicKeyCommand";
75
- import {
76
- ListAccessesCommand,
77
- ListAccessesCommandInput,
78
- ListAccessesCommandOutput,
79
- } from "./commands/ListAccessesCommand";
80
- import {
81
- ListExecutionsCommand,
82
- ListExecutionsCommandInput,
83
- ListExecutionsCommandOutput,
84
- } from "./commands/ListExecutionsCommand";
85
- import {
86
- ListSecurityPoliciesCommand,
87
- ListSecurityPoliciesCommandInput,
88
- ListSecurityPoliciesCommandOutput,
89
- } from "./commands/ListSecurityPoliciesCommand";
90
- import { ListServersCommand, ListServersCommandInput, ListServersCommandOutput } from "./commands/ListServersCommand";
91
- import {
92
- ListTagsForResourceCommand,
93
- ListTagsForResourceCommandInput,
94
- ListTagsForResourceCommandOutput,
95
- } from "./commands/ListTagsForResourceCommand";
96
- import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
97
- import {
98
- ListWorkflowsCommand,
99
- ListWorkflowsCommandInput,
100
- ListWorkflowsCommandOutput,
101
- } from "./commands/ListWorkflowsCommand";
102
- import {
103
- SendWorkflowStepStateCommand,
104
- SendWorkflowStepStateCommandInput,
105
- SendWorkflowStepStateCommandOutput,
106
- } from "./commands/SendWorkflowStepStateCommand";
107
- import { StartServerCommand, StartServerCommandInput, StartServerCommandOutput } from "./commands/StartServerCommand";
108
- import { StopServerCommand, StopServerCommandInput, StopServerCommandOutput } from "./commands/StopServerCommand";
109
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
110
- import {
111
- TestIdentityProviderCommand,
112
- TestIdentityProviderCommandInput,
113
- TestIdentityProviderCommandOutput,
114
- } from "./commands/TestIdentityProviderCommand";
115
- import {
116
- UntagResourceCommand,
117
- UntagResourceCommandInput,
118
- UntagResourceCommandOutput,
119
- } from "./commands/UntagResourceCommand";
120
- import {
121
- UpdateAccessCommand,
122
- UpdateAccessCommandInput,
123
- UpdateAccessCommandOutput,
124
- } from "./commands/UpdateAccessCommand";
125
- import {
126
- UpdateServerCommand,
127
- UpdateServerCommandInput,
128
- UpdateServerCommandOutput,
129
- } from "./commands/UpdateServerCommand";
130
- import { UpdateUserCommand, UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
131
- import { TransferClient } from "./TransferClient";
132
-
133
- /**
134
- * <p>Amazon Web Services Transfer Family is a fully managed service that enables the transfer of files over the
135
- * File Transfer Protocol (FTP), File Transfer Protocol over SSL (FTPS), or Secure Shell (SSH)
136
- * File Transfer Protocol (SFTP) directly into and out of Amazon Simple Storage Service (Amazon
137
- * S3). Amazon Web Services helps you seamlessly migrate your file transfer workflows to Amazon Web Services Transfer Family by
138
- * integrating with existing authentication systems, and providing DNS routing with Amazon Route
139
- * 53 so nothing changes for your customers and partners, or their applications. With your data
140
- * in Amazon S3, you can use it with Amazon Web Services services for processing, analytics, machine learning,
141
- * and archiving. Getting started with Amazon Web Services Transfer Family is easy since there is no
142
- * infrastructure to buy and set up.</p>
143
- */
144
- export class Transfer extends TransferClient {
145
- /**
146
- * <p>Used by administrators to choose which groups in the directory should have access to
147
- * upload and download files over the enabled protocols using Amazon Web Services Transfer Family. For example, a
148
- * Microsoft Active Directory might contain 50,000 users, but only a small fraction might need
149
- * the ability to transfer files to the server. An administrator can use
150
- * <code>CreateAccess</code> to limit the access to the correct set of users who need this
151
- * ability.</p>
152
- */
153
- public createAccess(
154
- args: CreateAccessCommandInput,
155
- options?: __HttpHandlerOptions
156
- ): Promise<CreateAccessCommandOutput>;
157
- public createAccess(args: CreateAccessCommandInput, cb: (err: any, data?: CreateAccessCommandOutput) => void): void;
158
- public createAccess(
159
- args: CreateAccessCommandInput,
160
- options: __HttpHandlerOptions,
161
- cb: (err: any, data?: CreateAccessCommandOutput) => void
162
- ): void;
163
- public createAccess(
164
- args: CreateAccessCommandInput,
165
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAccessCommandOutput) => void),
166
- cb?: (err: any, data?: CreateAccessCommandOutput) => void
167
- ): Promise<CreateAccessCommandOutput> | void {
168
- const command = new CreateAccessCommand(args);
169
- if (typeof optionsOrCb === "function") {
170
- this.send(command, optionsOrCb);
171
- } else if (typeof cb === "function") {
172
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
- this.send(command, optionsOrCb || {}, cb);
174
- } else {
175
- return this.send(command, optionsOrCb);
176
- }
177
- }
178
-
179
- /**
180
- * <p>Instantiates an auto-scaling virtual server based on the selected file transfer protocol
181
- * in Amazon Web Services. When you make updates to your file transfer protocol-enabled server or when you work
182
- * with users, use the service-generated <code>ServerId</code> property that is assigned to the
183
- * newly created server.</p>
184
- */
185
- public createServer(
186
- args: CreateServerCommandInput,
187
- options?: __HttpHandlerOptions
188
- ): Promise<CreateServerCommandOutput>;
189
- public createServer(args: CreateServerCommandInput, cb: (err: any, data?: CreateServerCommandOutput) => void): void;
190
- public createServer(
191
- args: CreateServerCommandInput,
192
- options: __HttpHandlerOptions,
193
- cb: (err: any, data?: CreateServerCommandOutput) => void
194
- ): void;
195
- public createServer(
196
- args: CreateServerCommandInput,
197
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateServerCommandOutput) => void),
198
- cb?: (err: any, data?: CreateServerCommandOutput) => void
199
- ): Promise<CreateServerCommandOutput> | void {
200
- const command = new CreateServerCommand(args);
201
- if (typeof optionsOrCb === "function") {
202
- this.send(command, optionsOrCb);
203
- } else if (typeof cb === "function") {
204
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- } else {
207
- return this.send(command, optionsOrCb);
208
- }
209
- }
210
-
211
- /**
212
- * <p>Creates a user and associates them with an existing file transfer protocol-enabled server.
213
- * You can only create and associate users with servers that have the
214
- * <code>IdentityProviderType</code> set to <code>SERVICE_MANAGED</code>. Using parameters for
215
- * <code>CreateUser</code>, you can specify the user name, set the home directory, store the
216
- * user's public key, and assign the user's Amazon Web Services Identity and Access Management (IAM)
217
- * role. You can also optionally add a session policy, and assign metadata with tags that can
218
- * be used to group and search for users.</p>
219
- */
220
- public createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
221
- public createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
222
- public createUser(
223
- args: CreateUserCommandInput,
224
- options: __HttpHandlerOptions,
225
- cb: (err: any, data?: CreateUserCommandOutput) => void
226
- ): void;
227
- public createUser(
228
- args: CreateUserCommandInput,
229
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUserCommandOutput) => void),
230
- cb?: (err: any, data?: CreateUserCommandOutput) => void
231
- ): Promise<CreateUserCommandOutput> | void {
232
- const command = new CreateUserCommand(args);
233
- if (typeof optionsOrCb === "function") {
234
- this.send(command, optionsOrCb);
235
- } else if (typeof cb === "function") {
236
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
- this.send(command, optionsOrCb || {}, cb);
238
- } else {
239
- return this.send(command, optionsOrCb);
240
- }
241
- }
242
-
243
- /**
244
- * <p>
245
- * Allows you to create a workflow with specified steps and step details the workflow invokes after file transfer completes.
246
- * After creating a workflow, you can associate the workflow created with any transfer servers by specifying the <code>workflow-details</code> field in <code>CreateServer</code> and <code>UpdateServer</code> operations.
247
- * </p>
248
- */
249
- public createWorkflow(
250
- args: CreateWorkflowCommandInput,
251
- options?: __HttpHandlerOptions
252
- ): Promise<CreateWorkflowCommandOutput>;
253
- public createWorkflow(
254
- args: CreateWorkflowCommandInput,
255
- cb: (err: any, data?: CreateWorkflowCommandOutput) => void
256
- ): void;
257
- public createWorkflow(
258
- args: CreateWorkflowCommandInput,
259
- options: __HttpHandlerOptions,
260
- cb: (err: any, data?: CreateWorkflowCommandOutput) => void
261
- ): void;
262
- public createWorkflow(
263
- args: CreateWorkflowCommandInput,
264
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateWorkflowCommandOutput) => void),
265
- cb?: (err: any, data?: CreateWorkflowCommandOutput) => void
266
- ): Promise<CreateWorkflowCommandOutput> | void {
267
- const command = new CreateWorkflowCommand(args);
268
- if (typeof optionsOrCb === "function") {
269
- this.send(command, optionsOrCb);
270
- } else if (typeof cb === "function") {
271
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- } else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
-
278
- /**
279
- * <p>Allows you to delete the access specified in the <code>ServerID</code> and
280
- * <code>ExternalID</code> parameters.</p>
281
- */
282
- public deleteAccess(
283
- args: DeleteAccessCommandInput,
284
- options?: __HttpHandlerOptions
285
- ): Promise<DeleteAccessCommandOutput>;
286
- public deleteAccess(args: DeleteAccessCommandInput, cb: (err: any, data?: DeleteAccessCommandOutput) => void): void;
287
- public deleteAccess(
288
- args: DeleteAccessCommandInput,
289
- options: __HttpHandlerOptions,
290
- cb: (err: any, data?: DeleteAccessCommandOutput) => void
291
- ): void;
292
- public deleteAccess(
293
- args: DeleteAccessCommandInput,
294
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAccessCommandOutput) => void),
295
- cb?: (err: any, data?: DeleteAccessCommandOutput) => void
296
- ): Promise<DeleteAccessCommandOutput> | void {
297
- const command = new DeleteAccessCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- } else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
- this.send(command, optionsOrCb || {}, cb);
303
- } else {
304
- return this.send(command, optionsOrCb);
305
- }
306
- }
307
-
308
- /**
309
- * <p>Deletes the file transfer protocol-enabled server that you specify.</p>
310
- *
311
- * <p>No response returns from this operation.</p>
312
- */
313
- public deleteServer(
314
- args: DeleteServerCommandInput,
315
- options?: __HttpHandlerOptions
316
- ): Promise<DeleteServerCommandOutput>;
317
- public deleteServer(args: DeleteServerCommandInput, cb: (err: any, data?: DeleteServerCommandOutput) => void): void;
318
- public deleteServer(
319
- args: DeleteServerCommandInput,
320
- options: __HttpHandlerOptions,
321
- cb: (err: any, data?: DeleteServerCommandOutput) => void
322
- ): void;
323
- public deleteServer(
324
- args: DeleteServerCommandInput,
325
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteServerCommandOutput) => void),
326
- cb?: (err: any, data?: DeleteServerCommandOutput) => void
327
- ): Promise<DeleteServerCommandOutput> | void {
328
- const command = new DeleteServerCommand(args);
329
- if (typeof optionsOrCb === "function") {
330
- this.send(command, optionsOrCb);
331
- } else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
- this.send(command, optionsOrCb || {}, cb);
334
- } else {
335
- return this.send(command, optionsOrCb);
336
- }
337
- }
338
-
339
- /**
340
- * <p>Deletes a user's Secure Shell (SSH) public key.</p>
341
- */
342
- public deleteSshPublicKey(
343
- args: DeleteSshPublicKeyCommandInput,
344
- options?: __HttpHandlerOptions
345
- ): Promise<DeleteSshPublicKeyCommandOutput>;
346
- public deleteSshPublicKey(
347
- args: DeleteSshPublicKeyCommandInput,
348
- cb: (err: any, data?: DeleteSshPublicKeyCommandOutput) => void
349
- ): void;
350
- public deleteSshPublicKey(
351
- args: DeleteSshPublicKeyCommandInput,
352
- options: __HttpHandlerOptions,
353
- cb: (err: any, data?: DeleteSshPublicKeyCommandOutput) => void
354
- ): void;
355
- public deleteSshPublicKey(
356
- args: DeleteSshPublicKeyCommandInput,
357
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteSshPublicKeyCommandOutput) => void),
358
- cb?: (err: any, data?: DeleteSshPublicKeyCommandOutput) => void
359
- ): Promise<DeleteSshPublicKeyCommandOutput> | void {
360
- const command = new DeleteSshPublicKeyCommand(args);
361
- if (typeof optionsOrCb === "function") {
362
- this.send(command, optionsOrCb);
363
- } else if (typeof cb === "function") {
364
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
- this.send(command, optionsOrCb || {}, cb);
366
- } else {
367
- return this.send(command, optionsOrCb);
368
- }
369
- }
370
-
371
- /**
372
- * <p>Deletes the user belonging to a file transfer protocol-enabled server you specify.</p>
373
- *
374
- * <p>No response returns from this operation.</p>
375
- *
376
- * <note>
377
- * <p>When you delete a user from a server, the user's information is lost.</p>
378
- * </note>
379
- */
380
- public deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
381
- public deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
382
- public deleteUser(
383
- args: DeleteUserCommandInput,
384
- options: __HttpHandlerOptions,
385
- cb: (err: any, data?: DeleteUserCommandOutput) => void
386
- ): void;
387
- public deleteUser(
388
- args: DeleteUserCommandInput,
389
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserCommandOutput) => void),
390
- cb?: (err: any, data?: DeleteUserCommandOutput) => void
391
- ): Promise<DeleteUserCommandOutput> | void {
392
- const command = new DeleteUserCommand(args);
393
- if (typeof optionsOrCb === "function") {
394
- this.send(command, optionsOrCb);
395
- } else if (typeof cb === "function") {
396
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
- this.send(command, optionsOrCb || {}, cb);
398
- } else {
399
- return this.send(command, optionsOrCb);
400
- }
401
- }
402
-
403
- /**
404
- * <p>Deletes the specified workflow.</p>
405
- */
406
- public deleteWorkflow(
407
- args: DeleteWorkflowCommandInput,
408
- options?: __HttpHandlerOptions
409
- ): Promise<DeleteWorkflowCommandOutput>;
410
- public deleteWorkflow(
411
- args: DeleteWorkflowCommandInput,
412
- cb: (err: any, data?: DeleteWorkflowCommandOutput) => void
413
- ): void;
414
- public deleteWorkflow(
415
- args: DeleteWorkflowCommandInput,
416
- options: __HttpHandlerOptions,
417
- cb: (err: any, data?: DeleteWorkflowCommandOutput) => void
418
- ): void;
419
- public deleteWorkflow(
420
- args: DeleteWorkflowCommandInput,
421
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteWorkflowCommandOutput) => void),
422
- cb?: (err: any, data?: DeleteWorkflowCommandOutput) => void
423
- ): Promise<DeleteWorkflowCommandOutput> | void {
424
- const command = new DeleteWorkflowCommand(args);
425
- if (typeof optionsOrCb === "function") {
426
- this.send(command, optionsOrCb);
427
- } else if (typeof cb === "function") {
428
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
429
- this.send(command, optionsOrCb || {}, cb);
430
- } else {
431
- return this.send(command, optionsOrCb);
432
- }
433
- }
434
-
435
- /**
436
- * <p>Describes the access that is assigned to the specific file transfer protocol-enabled
437
- * server, as identified by its <code>ServerId</code> property and its
438
- * <code>ExternalID</code>.</p>
439
- *
440
- * <p>The response from this call returns the properties of the access that is associated with
441
- * the <code>ServerId</code> value that was specified.</p>
442
- */
443
- public describeAccess(
444
- args: DescribeAccessCommandInput,
445
- options?: __HttpHandlerOptions
446
- ): Promise<DescribeAccessCommandOutput>;
447
- public describeAccess(
448
- args: DescribeAccessCommandInput,
449
- cb: (err: any, data?: DescribeAccessCommandOutput) => void
450
- ): void;
451
- public describeAccess(
452
- args: DescribeAccessCommandInput,
453
- options: __HttpHandlerOptions,
454
- cb: (err: any, data?: DescribeAccessCommandOutput) => void
455
- ): void;
456
- public describeAccess(
457
- args: DescribeAccessCommandInput,
458
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAccessCommandOutput) => void),
459
- cb?: (err: any, data?: DescribeAccessCommandOutput) => void
460
- ): Promise<DescribeAccessCommandOutput> | void {
461
- const command = new DescribeAccessCommand(args);
462
- if (typeof optionsOrCb === "function") {
463
- this.send(command, optionsOrCb);
464
- } else if (typeof cb === "function") {
465
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
466
- this.send(command, optionsOrCb || {}, cb);
467
- } else {
468
- return this.send(command, optionsOrCb);
469
- }
470
- }
471
-
472
- /**
473
- * <p>You can use <code>DescribeExecution</code> to check the details of the execution of the specified workflow.</p>
474
- */
475
- public describeExecution(
476
- args: DescribeExecutionCommandInput,
477
- options?: __HttpHandlerOptions
478
- ): Promise<DescribeExecutionCommandOutput>;
479
- public describeExecution(
480
- args: DescribeExecutionCommandInput,
481
- cb: (err: any, data?: DescribeExecutionCommandOutput) => void
482
- ): void;
483
- public describeExecution(
484
- args: DescribeExecutionCommandInput,
485
- options: __HttpHandlerOptions,
486
- cb: (err: any, data?: DescribeExecutionCommandOutput) => void
487
- ): void;
488
- public describeExecution(
489
- args: DescribeExecutionCommandInput,
490
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeExecutionCommandOutput) => void),
491
- cb?: (err: any, data?: DescribeExecutionCommandOutput) => void
492
- ): Promise<DescribeExecutionCommandOutput> | void {
493
- const command = new DescribeExecutionCommand(args);
494
- if (typeof optionsOrCb === "function") {
495
- this.send(command, optionsOrCb);
496
- } else if (typeof cb === "function") {
497
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
- this.send(command, optionsOrCb || {}, cb);
499
- } else {
500
- return this.send(command, optionsOrCb);
501
- }
502
- }
503
-
504
- /**
505
- * <p>Describes the security policy that is attached to your file transfer protocol-enabled
506
- * server. The response contains a description of the security policy's properties. For more
507
- * information about security policies, see <a href="https://docs.aws.amazon.com/transfer/latest/userguide/security-policies.html">Working with security
508
- * policies</a>.</p>
509
- */
510
- public describeSecurityPolicy(
511
- args: DescribeSecurityPolicyCommandInput,
512
- options?: __HttpHandlerOptions
513
- ): Promise<DescribeSecurityPolicyCommandOutput>;
514
- public describeSecurityPolicy(
515
- args: DescribeSecurityPolicyCommandInput,
516
- cb: (err: any, data?: DescribeSecurityPolicyCommandOutput) => void
517
- ): void;
518
- public describeSecurityPolicy(
519
- args: DescribeSecurityPolicyCommandInput,
520
- options: __HttpHandlerOptions,
521
- cb: (err: any, data?: DescribeSecurityPolicyCommandOutput) => void
522
- ): void;
523
- public describeSecurityPolicy(
524
- args: DescribeSecurityPolicyCommandInput,
525
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeSecurityPolicyCommandOutput) => void),
526
- cb?: (err: any, data?: DescribeSecurityPolicyCommandOutput) => void
527
- ): Promise<DescribeSecurityPolicyCommandOutput> | void {
528
- const command = new DescribeSecurityPolicyCommand(args);
529
- if (typeof optionsOrCb === "function") {
530
- this.send(command, optionsOrCb);
531
- } else if (typeof cb === "function") {
532
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
533
- this.send(command, optionsOrCb || {}, cb);
534
- } else {
535
- return this.send(command, optionsOrCb);
536
- }
537
- }
538
-
539
- /**
540
- * <p>Describes a file transfer protocol-enabled server that you specify by passing the
541
- * <code>ServerId</code> parameter.</p>
542
- *
543
- * <p>The response contains a description of a server's properties. When you set
544
- * <code>EndpointType</code> to VPC, the response will contain the
545
- * <code>EndpointDetails</code>.</p>
546
- */
547
- public describeServer(
548
- args: DescribeServerCommandInput,
549
- options?: __HttpHandlerOptions
550
- ): Promise<DescribeServerCommandOutput>;
551
- public describeServer(
552
- args: DescribeServerCommandInput,
553
- cb: (err: any, data?: DescribeServerCommandOutput) => void
554
- ): void;
555
- public describeServer(
556
- args: DescribeServerCommandInput,
557
- options: __HttpHandlerOptions,
558
- cb: (err: any, data?: DescribeServerCommandOutput) => void
559
- ): void;
560
- public describeServer(
561
- args: DescribeServerCommandInput,
562
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeServerCommandOutput) => void),
563
- cb?: (err: any, data?: DescribeServerCommandOutput) => void
564
- ): Promise<DescribeServerCommandOutput> | void {
565
- const command = new DescribeServerCommand(args);
566
- if (typeof optionsOrCb === "function") {
567
- this.send(command, optionsOrCb);
568
- } else if (typeof cb === "function") {
569
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
570
- this.send(command, optionsOrCb || {}, cb);
571
- } else {
572
- return this.send(command, optionsOrCb);
573
- }
574
- }
575
-
576
- /**
577
- * <p>Describes the user assigned to the specific file transfer protocol-enabled server, as
578
- * identified by its <code>ServerId</code> property.</p>
579
- *
580
- * <p>The response from this call returns the properties of the user associated with the
581
- * <code>ServerId</code> value that was specified.</p>
582
- */
583
- public describeUser(
584
- args: DescribeUserCommandInput,
585
- options?: __HttpHandlerOptions
586
- ): Promise<DescribeUserCommandOutput>;
587
- public describeUser(args: DescribeUserCommandInput, cb: (err: any, data?: DescribeUserCommandOutput) => void): void;
588
- public describeUser(
589
- args: DescribeUserCommandInput,
590
- options: __HttpHandlerOptions,
591
- cb: (err: any, data?: DescribeUserCommandOutput) => void
592
- ): void;
593
- public describeUser(
594
- args: DescribeUserCommandInput,
595
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeUserCommandOutput) => void),
596
- cb?: (err: any, data?: DescribeUserCommandOutput) => void
597
- ): Promise<DescribeUserCommandOutput> | void {
598
- const command = new DescribeUserCommand(args);
599
- if (typeof optionsOrCb === "function") {
600
- this.send(command, optionsOrCb);
601
- } else if (typeof cb === "function") {
602
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
603
- this.send(command, optionsOrCb || {}, cb);
604
- } else {
605
- return this.send(command, optionsOrCb);
606
- }
607
- }
608
-
609
- /**
610
- * <p>Describes the specified workflow.</p>
611
- */
612
- public describeWorkflow(
613
- args: DescribeWorkflowCommandInput,
614
- options?: __HttpHandlerOptions
615
- ): Promise<DescribeWorkflowCommandOutput>;
616
- public describeWorkflow(
617
- args: DescribeWorkflowCommandInput,
618
- cb: (err: any, data?: DescribeWorkflowCommandOutput) => void
619
- ): void;
620
- public describeWorkflow(
621
- args: DescribeWorkflowCommandInput,
622
- options: __HttpHandlerOptions,
623
- cb: (err: any, data?: DescribeWorkflowCommandOutput) => void
624
- ): void;
625
- public describeWorkflow(
626
- args: DescribeWorkflowCommandInput,
627
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeWorkflowCommandOutput) => void),
628
- cb?: (err: any, data?: DescribeWorkflowCommandOutput) => void
629
- ): Promise<DescribeWorkflowCommandOutput> | void {
630
- const command = new DescribeWorkflowCommand(args);
631
- if (typeof optionsOrCb === "function") {
632
- this.send(command, optionsOrCb);
633
- } else if (typeof cb === "function") {
634
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
635
- this.send(command, optionsOrCb || {}, cb);
636
- } else {
637
- return this.send(command, optionsOrCb);
638
- }
639
- }
640
-
641
- /**
642
- * <p>Adds a Secure Shell (SSH) public key to a user account identified by a
643
- * <code>UserName</code> value assigned to the specific file transfer protocol-enabled server,
644
- * identified by <code>ServerId</code>.</p>
645
- *
646
- * <p>The response returns the <code>UserName</code> value, the <code>ServerId</code> value, and
647
- * the name of the <code>SshPublicKeyId</code>.</p>
648
- */
649
- public importSshPublicKey(
650
- args: ImportSshPublicKeyCommandInput,
651
- options?: __HttpHandlerOptions
652
- ): Promise<ImportSshPublicKeyCommandOutput>;
653
- public importSshPublicKey(
654
- args: ImportSshPublicKeyCommandInput,
655
- cb: (err: any, data?: ImportSshPublicKeyCommandOutput) => void
656
- ): void;
657
- public importSshPublicKey(
658
- args: ImportSshPublicKeyCommandInput,
659
- options: __HttpHandlerOptions,
660
- cb: (err: any, data?: ImportSshPublicKeyCommandOutput) => void
661
- ): void;
662
- public importSshPublicKey(
663
- args: ImportSshPublicKeyCommandInput,
664
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportSshPublicKeyCommandOutput) => void),
665
- cb?: (err: any, data?: ImportSshPublicKeyCommandOutput) => void
666
- ): Promise<ImportSshPublicKeyCommandOutput> | void {
667
- const command = new ImportSshPublicKeyCommand(args);
668
- if (typeof optionsOrCb === "function") {
669
- this.send(command, optionsOrCb);
670
- } else if (typeof cb === "function") {
671
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
672
- this.send(command, optionsOrCb || {}, cb);
673
- } else {
674
- return this.send(command, optionsOrCb);
675
- }
676
- }
677
-
678
- /**
679
- * <p>Lists the details for all the accesses you have on your server.</p>
680
- */
681
- public listAccesses(
682
- args: ListAccessesCommandInput,
683
- options?: __HttpHandlerOptions
684
- ): Promise<ListAccessesCommandOutput>;
685
- public listAccesses(args: ListAccessesCommandInput, cb: (err: any, data?: ListAccessesCommandOutput) => void): void;
686
- public listAccesses(
687
- args: ListAccessesCommandInput,
688
- options: __HttpHandlerOptions,
689
- cb: (err: any, data?: ListAccessesCommandOutput) => void
690
- ): void;
691
- public listAccesses(
692
- args: ListAccessesCommandInput,
693
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAccessesCommandOutput) => void),
694
- cb?: (err: any, data?: ListAccessesCommandOutput) => void
695
- ): Promise<ListAccessesCommandOutput> | void {
696
- const command = new ListAccessesCommand(args);
697
- if (typeof optionsOrCb === "function") {
698
- this.send(command, optionsOrCb);
699
- } else if (typeof cb === "function") {
700
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
701
- this.send(command, optionsOrCb || {}, cb);
702
- } else {
703
- return this.send(command, optionsOrCb);
704
- }
705
- }
706
-
707
- /**
708
- * <p>Lists all executions for the specified workflow.</p>
709
- */
710
- public listExecutions(
711
- args: ListExecutionsCommandInput,
712
- options?: __HttpHandlerOptions
713
- ): Promise<ListExecutionsCommandOutput>;
714
- public listExecutions(
715
- args: ListExecutionsCommandInput,
716
- cb: (err: any, data?: ListExecutionsCommandOutput) => void
717
- ): void;
718
- public listExecutions(
719
- args: ListExecutionsCommandInput,
720
- options: __HttpHandlerOptions,
721
- cb: (err: any, data?: ListExecutionsCommandOutput) => void
722
- ): void;
723
- public listExecutions(
724
- args: ListExecutionsCommandInput,
725
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListExecutionsCommandOutput) => void),
726
- cb?: (err: any, data?: ListExecutionsCommandOutput) => void
727
- ): Promise<ListExecutionsCommandOutput> | void {
728
- const command = new ListExecutionsCommand(args);
729
- if (typeof optionsOrCb === "function") {
730
- this.send(command, optionsOrCb);
731
- } else if (typeof cb === "function") {
732
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
733
- this.send(command, optionsOrCb || {}, cb);
734
- } else {
735
- return this.send(command, optionsOrCb);
736
- }
737
- }
738
-
739
- /**
740
- * <p>Lists the security policies that are attached to your file transfer protocol-enabled
741
- * servers.</p>
742
- */
743
- public listSecurityPolicies(
744
- args: ListSecurityPoliciesCommandInput,
745
- options?: __HttpHandlerOptions
746
- ): Promise<ListSecurityPoliciesCommandOutput>;
747
- public listSecurityPolicies(
748
- args: ListSecurityPoliciesCommandInput,
749
- cb: (err: any, data?: ListSecurityPoliciesCommandOutput) => void
750
- ): void;
751
- public listSecurityPolicies(
752
- args: ListSecurityPoliciesCommandInput,
753
- options: __HttpHandlerOptions,
754
- cb: (err: any, data?: ListSecurityPoliciesCommandOutput) => void
755
- ): void;
756
- public listSecurityPolicies(
757
- args: ListSecurityPoliciesCommandInput,
758
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListSecurityPoliciesCommandOutput) => void),
759
- cb?: (err: any, data?: ListSecurityPoliciesCommandOutput) => void
760
- ): Promise<ListSecurityPoliciesCommandOutput> | void {
761
- const command = new ListSecurityPoliciesCommand(args);
762
- if (typeof optionsOrCb === "function") {
763
- this.send(command, optionsOrCb);
764
- } else if (typeof cb === "function") {
765
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
766
- this.send(command, optionsOrCb || {}, cb);
767
- } else {
768
- return this.send(command, optionsOrCb);
769
- }
770
- }
771
-
772
- /**
773
- * <p>Lists the file transfer protocol-enabled servers that are associated with your Amazon Web Services
774
- * account.</p>
775
- */
776
- public listServers(args: ListServersCommandInput, options?: __HttpHandlerOptions): Promise<ListServersCommandOutput>;
777
- public listServers(args: ListServersCommandInput, cb: (err: any, data?: ListServersCommandOutput) => void): void;
778
- public listServers(
779
- args: ListServersCommandInput,
780
- options: __HttpHandlerOptions,
781
- cb: (err: any, data?: ListServersCommandOutput) => void
782
- ): void;
783
- public listServers(
784
- args: ListServersCommandInput,
785
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListServersCommandOutput) => void),
786
- cb?: (err: any, data?: ListServersCommandOutput) => void
787
- ): Promise<ListServersCommandOutput> | void {
788
- const command = new ListServersCommand(args);
789
- if (typeof optionsOrCb === "function") {
790
- this.send(command, optionsOrCb);
791
- } else if (typeof cb === "function") {
792
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
793
- this.send(command, optionsOrCb || {}, cb);
794
- } else {
795
- return this.send(command, optionsOrCb);
796
- }
797
- }
798
-
799
- /**
800
- * <p>Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The
801
- * resource can be a user, server, or role.</p>
802
- */
803
- public listTagsForResource(
804
- args: ListTagsForResourceCommandInput,
805
- options?: __HttpHandlerOptions
806
- ): Promise<ListTagsForResourceCommandOutput>;
807
- public listTagsForResource(
808
- args: ListTagsForResourceCommandInput,
809
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
810
- ): void;
811
- public listTagsForResource(
812
- args: ListTagsForResourceCommandInput,
813
- options: __HttpHandlerOptions,
814
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
815
- ): void;
816
- public listTagsForResource(
817
- args: ListTagsForResourceCommandInput,
818
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
819
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
820
- ): Promise<ListTagsForResourceCommandOutput> | void {
821
- const command = new ListTagsForResourceCommand(args);
822
- if (typeof optionsOrCb === "function") {
823
- this.send(command, optionsOrCb);
824
- } else if (typeof cb === "function") {
825
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
826
- this.send(command, optionsOrCb || {}, cb);
827
- } else {
828
- return this.send(command, optionsOrCb);
829
- }
830
- }
831
-
832
- /**
833
- * <p>Lists the users for a file transfer protocol-enabled server that you specify by passing
834
- * the <code>ServerId</code> parameter.</p>
835
- */
836
- public listUsers(args: ListUsersCommandInput, options?: __HttpHandlerOptions): Promise<ListUsersCommandOutput>;
837
- public listUsers(args: ListUsersCommandInput, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
838
- public listUsers(
839
- args: ListUsersCommandInput,
840
- options: __HttpHandlerOptions,
841
- cb: (err: any, data?: ListUsersCommandOutput) => void
842
- ): void;
843
- public listUsers(
844
- args: ListUsersCommandInput,
845
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUsersCommandOutput) => void),
846
- cb?: (err: any, data?: ListUsersCommandOutput) => void
847
- ): Promise<ListUsersCommandOutput> | void {
848
- const command = new ListUsersCommand(args);
849
- if (typeof optionsOrCb === "function") {
850
- this.send(command, optionsOrCb);
851
- } else if (typeof cb === "function") {
852
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
853
- this.send(command, optionsOrCb || {}, cb);
854
- } else {
855
- return this.send(command, optionsOrCb);
856
- }
857
- }
858
-
859
- /**
860
- * <p>Lists all of your workflows.</p>
861
- */
862
- public listWorkflows(
863
- args: ListWorkflowsCommandInput,
864
- options?: __HttpHandlerOptions
865
- ): Promise<ListWorkflowsCommandOutput>;
866
- public listWorkflows(
867
- args: ListWorkflowsCommandInput,
868
- cb: (err: any, data?: ListWorkflowsCommandOutput) => void
869
- ): void;
870
- public listWorkflows(
871
- args: ListWorkflowsCommandInput,
872
- options: __HttpHandlerOptions,
873
- cb: (err: any, data?: ListWorkflowsCommandOutput) => void
874
- ): void;
875
- public listWorkflows(
876
- args: ListWorkflowsCommandInput,
877
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListWorkflowsCommandOutput) => void),
878
- cb?: (err: any, data?: ListWorkflowsCommandOutput) => void
879
- ): Promise<ListWorkflowsCommandOutput> | void {
880
- const command = new ListWorkflowsCommand(args);
881
- if (typeof optionsOrCb === "function") {
882
- this.send(command, optionsOrCb);
883
- } else if (typeof cb === "function") {
884
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
885
- this.send(command, optionsOrCb || {}, cb);
886
- } else {
887
- return this.send(command, optionsOrCb);
888
- }
889
- }
890
-
891
- /**
892
- * <p>Sends a callback for asynchronous custom steps.</p>
893
- * <p>
894
- * The <code>ExecutionId</code>, <code>WorkflowId</code>, and <code>Token</code> are passed to the target resource during execution of a custom step of a workflow.
895
- * You must include those with their callback as well as providing a status.
896
- * </p>
897
- */
898
- public sendWorkflowStepState(
899
- args: SendWorkflowStepStateCommandInput,
900
- options?: __HttpHandlerOptions
901
- ): Promise<SendWorkflowStepStateCommandOutput>;
902
- public sendWorkflowStepState(
903
- args: SendWorkflowStepStateCommandInput,
904
- cb: (err: any, data?: SendWorkflowStepStateCommandOutput) => void
905
- ): void;
906
- public sendWorkflowStepState(
907
- args: SendWorkflowStepStateCommandInput,
908
- options: __HttpHandlerOptions,
909
- cb: (err: any, data?: SendWorkflowStepStateCommandOutput) => void
910
- ): void;
911
- public sendWorkflowStepState(
912
- args: SendWorkflowStepStateCommandInput,
913
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendWorkflowStepStateCommandOutput) => void),
914
- cb?: (err: any, data?: SendWorkflowStepStateCommandOutput) => void
915
- ): Promise<SendWorkflowStepStateCommandOutput> | void {
916
- const command = new SendWorkflowStepStateCommand(args);
917
- if (typeof optionsOrCb === "function") {
918
- this.send(command, optionsOrCb);
919
- } else if (typeof cb === "function") {
920
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
921
- this.send(command, optionsOrCb || {}, cb);
922
- } else {
923
- return this.send(command, optionsOrCb);
924
- }
925
- }
926
-
927
- /**
928
- * <p>Changes the state of a file transfer protocol-enabled server from <code>OFFLINE</code> to
929
- * <code>ONLINE</code>. It has no impact on a server that is already <code>ONLINE</code>. An
930
- * <code>ONLINE</code> server can accept and process file transfer jobs.</p>
931
- *
932
- * <p>The state of <code>STARTING</code> indicates that the server is in an intermediate state,
933
- * either not fully able to respond, or not fully online. The values of <code>START_FAILED</code>
934
- * can indicate an error condition.</p>
935
- *
936
- * <p>No response is returned from this call.</p>
937
- */
938
- public startServer(args: StartServerCommandInput, options?: __HttpHandlerOptions): Promise<StartServerCommandOutput>;
939
- public startServer(args: StartServerCommandInput, cb: (err: any, data?: StartServerCommandOutput) => void): void;
940
- public startServer(
941
- args: StartServerCommandInput,
942
- options: __HttpHandlerOptions,
943
- cb: (err: any, data?: StartServerCommandOutput) => void
944
- ): void;
945
- public startServer(
946
- args: StartServerCommandInput,
947
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartServerCommandOutput) => void),
948
- cb?: (err: any, data?: StartServerCommandOutput) => void
949
- ): Promise<StartServerCommandOutput> | void {
950
- const command = new StartServerCommand(args);
951
- if (typeof optionsOrCb === "function") {
952
- this.send(command, optionsOrCb);
953
- } else if (typeof cb === "function") {
954
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
955
- this.send(command, optionsOrCb || {}, cb);
956
- } else {
957
- return this.send(command, optionsOrCb);
958
- }
959
- }
960
-
961
- /**
962
- * <p>Changes the state of a file transfer protocol-enabled server from <code>ONLINE</code> to
963
- * <code>OFFLINE</code>. An <code>OFFLINE</code> server cannot accept and process file transfer
964
- * jobs. Information tied to your server, such as server and user properties, are not affected by
965
- * stopping your server.</p>
966
- *
967
- * <note>
968
- * <p>Stopping the server will not reduce or impact your file transfer protocol endpoint
969
- * billing; you must delete the server to stop being billed.</p>
970
- * </note>
971
- *
972
- * <p>The state of <code>STOPPING</code> indicates that the server is in an intermediate state,
973
- * either not fully able to respond, or not fully offline. The values of <code>STOP_FAILED</code>
974
- * can indicate an error condition.</p>
975
- *
976
- * <p>No response is returned from this call.</p>
977
- */
978
- public stopServer(args: StopServerCommandInput, options?: __HttpHandlerOptions): Promise<StopServerCommandOutput>;
979
- public stopServer(args: StopServerCommandInput, cb: (err: any, data?: StopServerCommandOutput) => void): void;
980
- public stopServer(
981
- args: StopServerCommandInput,
982
- options: __HttpHandlerOptions,
983
- cb: (err: any, data?: StopServerCommandOutput) => void
984
- ): void;
985
- public stopServer(
986
- args: StopServerCommandInput,
987
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopServerCommandOutput) => void),
988
- cb?: (err: any, data?: StopServerCommandOutput) => void
989
- ): Promise<StopServerCommandOutput> | void {
990
- const command = new StopServerCommand(args);
991
- if (typeof optionsOrCb === "function") {
992
- this.send(command, optionsOrCb);
993
- } else if (typeof cb === "function") {
994
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
995
- this.send(command, optionsOrCb || {}, cb);
996
- } else {
997
- return this.send(command, optionsOrCb);
998
- }
999
- }
1000
-
1001
- /**
1002
- * <p>Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
1003
- * Resources are users, servers, roles, and other entities.</p>
1004
- *
1005
- * <p>There is no response returned from this call.</p>
1006
- */
1007
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
1008
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
1009
- public tagResource(
1010
- args: TagResourceCommandInput,
1011
- options: __HttpHandlerOptions,
1012
- cb: (err: any, data?: TagResourceCommandOutput) => void
1013
- ): void;
1014
- public tagResource(
1015
- args: TagResourceCommandInput,
1016
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
1017
- cb?: (err: any, data?: TagResourceCommandOutput) => void
1018
- ): Promise<TagResourceCommandOutput> | void {
1019
- const command = new TagResourceCommand(args);
1020
- if (typeof optionsOrCb === "function") {
1021
- this.send(command, optionsOrCb);
1022
- } else if (typeof cb === "function") {
1023
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1024
- this.send(command, optionsOrCb || {}, cb);
1025
- } else {
1026
- return this.send(command, optionsOrCb);
1027
- }
1028
- }
1029
-
1030
- /**
1031
- * <p>If the <code>IdentityProviderType</code> of a file transfer protocol-enabled server is
1032
- * <code>AWS_DIRECTORY_SERVICE</code> or <code>API_Gateway</code>, tests whether your identity
1033
- * provider is set up successfully. We highly recommend that you call this operation to test your
1034
- * authentication method as soon as you create your server. By doing so, you can troubleshoot
1035
- * issues with the identity provider integration to ensure that your users can successfully use
1036
- * the service.</p>
1037
- * <p>
1038
- * The <code>ServerId</code> and <code>UserName</code> parameters are required. The <code>ServerProtocol</code>, <code>SourceIp</code>, and <code>UserPassword</code> are all optional.
1039
- * </p>
1040
- * <note>
1041
- * <p>
1042
- * You cannot use <code>TestIdentityProvider</code> if the <code>IdentityProviderType</code> of your server is <code>SERVICE_MANAGED</code>.
1043
- * </p>
1044
- * </note>
1045
- * <ul>
1046
- * <li>
1047
- * <p>
1048
- * If you provide any incorrect values for any parameters, the <code>Response</code> field is empty.
1049
- * </p>
1050
- * </li>
1051
- * <li>
1052
- * <p>
1053
- * If you provide a server ID for a server that uses service-managed users, you get an error:
1054
- * </p>
1055
- * <p>
1056
- * <code>
1057
- * An error occurred (InvalidRequestException) when calling the TestIdentityProvider operation: s-<i>server-ID</i> not configured for external auth
1058
- * </code>
1059
- * </p>
1060
- * </li>
1061
- * <li>
1062
- * <p>
1063
- * If you enter a Server ID for the <code>--server-id</code> parameter that does not identify an actual Transfer server, you receive the following error:
1064
- * </p>
1065
- * <p>
1066
- * <code>An error occurred (ResourceNotFoundException) when calling the TestIdentityProvider operation: Unknown server</code>
1067
- * </p>
1068
- * </li>
1069
- * </ul>
1070
- */
1071
- public testIdentityProvider(
1072
- args: TestIdentityProviderCommandInput,
1073
- options?: __HttpHandlerOptions
1074
- ): Promise<TestIdentityProviderCommandOutput>;
1075
- public testIdentityProvider(
1076
- args: TestIdentityProviderCommandInput,
1077
- cb: (err: any, data?: TestIdentityProviderCommandOutput) => void
1078
- ): void;
1079
- public testIdentityProvider(
1080
- args: TestIdentityProviderCommandInput,
1081
- options: __HttpHandlerOptions,
1082
- cb: (err: any, data?: TestIdentityProviderCommandOutput) => void
1083
- ): void;
1084
- public testIdentityProvider(
1085
- args: TestIdentityProviderCommandInput,
1086
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TestIdentityProviderCommandOutput) => void),
1087
- cb?: (err: any, data?: TestIdentityProviderCommandOutput) => void
1088
- ): Promise<TestIdentityProviderCommandOutput> | void {
1089
- const command = new TestIdentityProviderCommand(args);
1090
- if (typeof optionsOrCb === "function") {
1091
- this.send(command, optionsOrCb);
1092
- } else if (typeof cb === "function") {
1093
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1094
- this.send(command, optionsOrCb || {}, cb);
1095
- } else {
1096
- return this.send(command, optionsOrCb);
1097
- }
1098
- }
1099
-
1100
- /**
1101
- * <p>Detaches a key-value pair from a resource, as identified by its Amazon Resource Name
1102
- * (ARN). Resources are users, servers, roles, and other entities.</p>
1103
- *
1104
- * <p>No response is returned from this call.</p>
1105
- */
1106
- public untagResource(
1107
- args: UntagResourceCommandInput,
1108
- options?: __HttpHandlerOptions
1109
- ): Promise<UntagResourceCommandOutput>;
1110
- public untagResource(
1111
- args: UntagResourceCommandInput,
1112
- cb: (err: any, data?: UntagResourceCommandOutput) => void
1113
- ): void;
1114
- public untagResource(
1115
- args: UntagResourceCommandInput,
1116
- options: __HttpHandlerOptions,
1117
- cb: (err: any, data?: UntagResourceCommandOutput) => void
1118
- ): void;
1119
- public untagResource(
1120
- args: UntagResourceCommandInput,
1121
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
1122
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
1123
- ): Promise<UntagResourceCommandOutput> | void {
1124
- const command = new UntagResourceCommand(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>Allows you to update parameters for the access specified in the <code>ServerID</code> and
1137
- * <code>ExternalID</code> parameters.</p>
1138
- */
1139
- public updateAccess(
1140
- args: UpdateAccessCommandInput,
1141
- options?: __HttpHandlerOptions
1142
- ): Promise<UpdateAccessCommandOutput>;
1143
- public updateAccess(args: UpdateAccessCommandInput, cb: (err: any, data?: UpdateAccessCommandOutput) => void): void;
1144
- public updateAccess(
1145
- args: UpdateAccessCommandInput,
1146
- options: __HttpHandlerOptions,
1147
- cb: (err: any, data?: UpdateAccessCommandOutput) => void
1148
- ): void;
1149
- public updateAccess(
1150
- args: UpdateAccessCommandInput,
1151
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAccessCommandOutput) => void),
1152
- cb?: (err: any, data?: UpdateAccessCommandOutput) => void
1153
- ): Promise<UpdateAccessCommandOutput> | void {
1154
- const command = new UpdateAccessCommand(args);
1155
- if (typeof optionsOrCb === "function") {
1156
- this.send(command, optionsOrCb);
1157
- } else if (typeof cb === "function") {
1158
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1159
- this.send(command, optionsOrCb || {}, cb);
1160
- } else {
1161
- return this.send(command, optionsOrCb);
1162
- }
1163
- }
1164
-
1165
- /**
1166
- * <p>Updates the file transfer protocol-enabled server's properties after that server has
1167
- * been created.</p>
1168
- *
1169
- * <p>The <code>UpdateServer</code> call returns the <code>ServerId</code> of the server you
1170
- * updated.</p>
1171
- */
1172
- public updateServer(
1173
- args: UpdateServerCommandInput,
1174
- options?: __HttpHandlerOptions
1175
- ): Promise<UpdateServerCommandOutput>;
1176
- public updateServer(args: UpdateServerCommandInput, cb: (err: any, data?: UpdateServerCommandOutput) => void): void;
1177
- public updateServer(
1178
- args: UpdateServerCommandInput,
1179
- options: __HttpHandlerOptions,
1180
- cb: (err: any, data?: UpdateServerCommandOutput) => void
1181
- ): void;
1182
- public updateServer(
1183
- args: UpdateServerCommandInput,
1184
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateServerCommandOutput) => void),
1185
- cb?: (err: any, data?: UpdateServerCommandOutput) => void
1186
- ): Promise<UpdateServerCommandOutput> | void {
1187
- const command = new UpdateServerCommand(args);
1188
- if (typeof optionsOrCb === "function") {
1189
- this.send(command, optionsOrCb);
1190
- } else if (typeof cb === "function") {
1191
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1192
- this.send(command, optionsOrCb || {}, cb);
1193
- } else {
1194
- return this.send(command, optionsOrCb);
1195
- }
1196
- }
1197
-
1198
- /**
1199
- * <p>Assigns new properties to a user. Parameters you pass modify any or all of the following:
1200
- * the home directory, role, and policy for the <code>UserName</code> and <code>ServerId</code>
1201
- * you specify.</p>
1202
- *
1203
- * <p>The response returns the <code>ServerId</code> and the <code>UserName</code> for the
1204
- * updated user.</p>
1205
- */
1206
- public updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
1207
- public updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
1208
- public updateUser(
1209
- args: UpdateUserCommandInput,
1210
- options: __HttpHandlerOptions,
1211
- cb: (err: any, data?: UpdateUserCommandOutput) => void
1212
- ): void;
1213
- public updateUser(
1214
- args: UpdateUserCommandInput,
1215
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUserCommandOutput) => void),
1216
- cb?: (err: any, data?: UpdateUserCommandOutput) => void
1217
- ): Promise<UpdateUserCommandOutput> | void {
1218
- const command = new UpdateUserCommand(args);
1219
- if (typeof optionsOrCb === "function") {
1220
- this.send(command, optionsOrCb);
1221
- } else if (typeof cb === "function") {
1222
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1223
- this.send(command, optionsOrCb || {}, cb);
1224
- } else {
1225
- return this.send(command, optionsOrCb);
1226
- }
1227
- }
1228
- }