@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
@@ -1,103 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { StartServerRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1StartServerCommand,
17
- serializeAws_json1_1StartServerCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
20
-
21
- export interface StartServerCommandInput extends StartServerRequest {}
22
- export interface StartServerCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Changes the state of a file transfer protocol-enabled server from <code>OFFLINE</code> to
26
- * <code>ONLINE</code>. It has no impact on a server that is already <code>ONLINE</code>. An
27
- * <code>ONLINE</code> server can accept and process file transfer jobs.</p>
28
- *
29
- * <p>The state of <code>STARTING</code> indicates that the server is in an intermediate state,
30
- * either not fully able to respond, or not fully online. The values of <code>START_FAILED</code>
31
- * can indicate an error condition.</p>
32
- *
33
- * <p>No response is returned from this call.</p>
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { TransferClient, StartServerCommand } from "@aws-sdk/client-transfer"; // ES Modules import
38
- * // const { TransferClient, StartServerCommand } = require("@aws-sdk/client-transfer"); // CommonJS import
39
- * const client = new TransferClient(config);
40
- * const command = new StartServerCommand(input);
41
- * const response = await client.send(command);
42
- * ```
43
- *
44
- * @see {@link StartServerCommandInput} for command's `input` shape.
45
- * @see {@link StartServerCommandOutput} for command's `response` shape.
46
- * @see {@link TransferClientResolvedConfig | config} for command's `input` shape.
47
- *
48
- */
49
- export class StartServerCommand extends $Command<
50
- StartServerCommandInput,
51
- StartServerCommandOutput,
52
- TransferClientResolvedConfig
53
- > {
54
- // Start section: command_properties
55
- // End section: command_properties
56
-
57
- constructor(readonly input: StartServerCommandInput) {
58
- // Start section: command_constructor
59
- super();
60
- // End section: command_constructor
61
- }
62
-
63
- /**
64
- * @internal
65
- */
66
- resolveMiddleware(
67
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
- configuration: TransferClientResolvedConfig,
69
- options?: __HttpHandlerOptions
70
- ): Handler<StartServerCommandInput, StartServerCommandOutput> {
71
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "TransferClient";
77
- const commandName = "StartServerCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: StartServerRequest.filterSensitiveLog,
83
- outputFilterSensitiveLog: (output: any) => output,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(input: StartServerCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
94
- return serializeAws_json1_1StartServerCommand(input, context);
95
- }
96
-
97
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartServerCommandOutput> {
98
- return deserializeAws_json1_1StartServerCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,109 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { StopServerRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1StopServerCommand,
17
- serializeAws_json1_1StopServerCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
20
-
21
- export interface StopServerCommandInput extends StopServerRequest {}
22
- export interface StopServerCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Changes the state of a file transfer protocol-enabled server from <code>ONLINE</code> to
26
- * <code>OFFLINE</code>. An <code>OFFLINE</code> server cannot accept and process file transfer
27
- * jobs. Information tied to your server, such as server and user properties, are not affected by
28
- * stopping your server.</p>
29
- *
30
- * <note>
31
- * <p>Stopping the server will not reduce or impact your file transfer protocol endpoint
32
- * billing; you must delete the server to stop being billed.</p>
33
- * </note>
34
- *
35
- * <p>The state of <code>STOPPING</code> indicates that the server is in an intermediate state,
36
- * either not fully able to respond, or not fully offline. The values of <code>STOP_FAILED</code>
37
- * can indicate an error condition.</p>
38
- *
39
- * <p>No response is returned from this call.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { TransferClient, StopServerCommand } from "@aws-sdk/client-transfer"; // ES Modules import
44
- * // const { TransferClient, StopServerCommand } = require("@aws-sdk/client-transfer"); // CommonJS import
45
- * const client = new TransferClient(config);
46
- * const command = new StopServerCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link StopServerCommandInput} for command's `input` shape.
51
- * @see {@link StopServerCommandOutput} for command's `response` shape.
52
- * @see {@link TransferClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class StopServerCommand extends $Command<
56
- StopServerCommandInput,
57
- StopServerCommandOutput,
58
- TransferClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: StopServerCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: TransferClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<StopServerCommandInput, StopServerCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
-
79
- const stack = clientStack.concat(this.middlewareStack);
80
-
81
- const { logger } = configuration;
82
- const clientName = "TransferClient";
83
- const commandName = "StopServerCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: StopServerRequest.filterSensitiveLog,
89
- outputFilterSensitiveLog: (output: any) => output,
90
- };
91
- const { requestHandler } = configuration;
92
- return stack.resolve(
93
- (request: FinalizeHandlerArguments<any>) =>
94
- requestHandler.handle(request.request as __HttpRequest, options || {}),
95
- handlerExecutionContext
96
- );
97
- }
98
-
99
- private serialize(input: StopServerCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_json1_1StopServerCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopServerCommandOutput> {
104
- return deserializeAws_json1_1StopServerCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { TagResourceRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1TagResourceCommand,
17
- serializeAws_json1_1TagResourceCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
20
-
21
- export interface TagResourceCommandInput extends TagResourceRequest {}
22
- export interface TagResourceCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
26
- * Resources are users, servers, roles, and other entities.</p>
27
- *
28
- * <p>There is no response returned from this call.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { TransferClient, TagResourceCommand } from "@aws-sdk/client-transfer"; // ES Modules import
33
- * // const { TransferClient, TagResourceCommand } = require("@aws-sdk/client-transfer"); // CommonJS import
34
- * const client = new TransferClient(config);
35
- * const command = new TagResourceCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link TagResourceCommandInput} for command's `input` shape.
40
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
41
- * @see {@link TransferClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class TagResourceCommand extends $Command<
45
- TagResourceCommandInput,
46
- TagResourceCommandOutput,
47
- TransferClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: TagResourceCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: TransferClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "TransferClient";
72
- const commandName = "TagResourceCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: (output: any) => output,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_1TagResourceCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
93
- return deserializeAws_json1_1TagResourceCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,133 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { TestIdentityProviderRequest, TestIdentityProviderResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1TestIdentityProviderCommand,
17
- serializeAws_json1_1TestIdentityProviderCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
20
-
21
- export interface TestIdentityProviderCommandInput extends TestIdentityProviderRequest {}
22
- export interface TestIdentityProviderCommandOutput extends TestIdentityProviderResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>If the <code>IdentityProviderType</code> of a file transfer protocol-enabled server is
26
- * <code>AWS_DIRECTORY_SERVICE</code> or <code>API_Gateway</code>, tests whether your identity
27
- * provider is set up successfully. We highly recommend that you call this operation to test your
28
- * authentication method as soon as you create your server. By doing so, you can troubleshoot
29
- * issues with the identity provider integration to ensure that your users can successfully use
30
- * the service.</p>
31
- * <p>
32
- * 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.
33
- * </p>
34
- * <note>
35
- * <p>
36
- * You cannot use <code>TestIdentityProvider</code> if the <code>IdentityProviderType</code> of your server is <code>SERVICE_MANAGED</code>.
37
- * </p>
38
- * </note>
39
- * <ul>
40
- * <li>
41
- * <p>
42
- * If you provide any incorrect values for any parameters, the <code>Response</code> field is empty.
43
- * </p>
44
- * </li>
45
- * <li>
46
- * <p>
47
- * If you provide a server ID for a server that uses service-managed users, you get an error:
48
- * </p>
49
- * <p>
50
- * <code>
51
- * An error occurred (InvalidRequestException) when calling the TestIdentityProvider operation: s-<i>server-ID</i> not configured for external auth
52
- * </code>
53
- * </p>
54
- * </li>
55
- * <li>
56
- * <p>
57
- * 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:
58
- * </p>
59
- * <p>
60
- * <code>An error occurred (ResourceNotFoundException) when calling the TestIdentityProvider operation: Unknown server</code>
61
- * </p>
62
- * </li>
63
- * </ul>
64
- * @example
65
- * Use a bare-bones client and the command you need to make an API call.
66
- * ```javascript
67
- * import { TransferClient, TestIdentityProviderCommand } from "@aws-sdk/client-transfer"; // ES Modules import
68
- * // const { TransferClient, TestIdentityProviderCommand } = require("@aws-sdk/client-transfer"); // CommonJS import
69
- * const client = new TransferClient(config);
70
- * const command = new TestIdentityProviderCommand(input);
71
- * const response = await client.send(command);
72
- * ```
73
- *
74
- * @see {@link TestIdentityProviderCommandInput} for command's `input` shape.
75
- * @see {@link TestIdentityProviderCommandOutput} for command's `response` shape.
76
- * @see {@link TransferClientResolvedConfig | config} for command's `input` shape.
77
- *
78
- */
79
- export class TestIdentityProviderCommand extends $Command<
80
- TestIdentityProviderCommandInput,
81
- TestIdentityProviderCommandOutput,
82
- TransferClientResolvedConfig
83
- > {
84
- // Start section: command_properties
85
- // End section: command_properties
86
-
87
- constructor(readonly input: TestIdentityProviderCommandInput) {
88
- // Start section: command_constructor
89
- super();
90
- // End section: command_constructor
91
- }
92
-
93
- /**
94
- * @internal
95
- */
96
- resolveMiddleware(
97
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
98
- configuration: TransferClientResolvedConfig,
99
- options?: __HttpHandlerOptions
100
- ): Handler<TestIdentityProviderCommandInput, TestIdentityProviderCommandOutput> {
101
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
102
-
103
- const stack = clientStack.concat(this.middlewareStack);
104
-
105
- const { logger } = configuration;
106
- const clientName = "TransferClient";
107
- const commandName = "TestIdentityProviderCommand";
108
- const handlerExecutionContext: HandlerExecutionContext = {
109
- logger,
110
- clientName,
111
- commandName,
112
- inputFilterSensitiveLog: TestIdentityProviderRequest.filterSensitiveLog,
113
- outputFilterSensitiveLog: TestIdentityProviderResponse.filterSensitiveLog,
114
- };
115
- const { requestHandler } = configuration;
116
- return stack.resolve(
117
- (request: FinalizeHandlerArguments<any>) =>
118
- requestHandler.handle(request.request as __HttpRequest, options || {}),
119
- handlerExecutionContext
120
- );
121
- }
122
-
123
- private serialize(input: TestIdentityProviderCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
124
- return serializeAws_json1_1TestIdentityProviderCommand(input, context);
125
- }
126
-
127
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TestIdentityProviderCommandOutput> {
128
- return deserializeAws_json1_1TestIdentityProviderCommand(output, context);
129
- }
130
-
131
- // Start section: command_body_extra
132
- // End section: command_body_extra
133
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UntagResourceRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1UntagResourceCommand,
17
- serializeAws_json1_1UntagResourceCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
20
-
21
- export interface UntagResourceCommandInput extends UntagResourceRequest {}
22
- export interface UntagResourceCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Detaches a key-value pair from a resource, as identified by its Amazon Resource Name
26
- * (ARN). Resources are users, servers, roles, and other entities.</p>
27
- *
28
- * <p>No response is returned from this call.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { TransferClient, UntagResourceCommand } from "@aws-sdk/client-transfer"; // ES Modules import
33
- * // const { TransferClient, UntagResourceCommand } = require("@aws-sdk/client-transfer"); // CommonJS import
34
- * const client = new TransferClient(config);
35
- * const command = new UntagResourceCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
40
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
41
- * @see {@link TransferClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class UntagResourceCommand extends $Command<
45
- UntagResourceCommandInput,
46
- UntagResourceCommandOutput,
47
- TransferClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: UntagResourceCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: TransferClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "TransferClient";
72
- const commandName = "UntagResourceCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: (output: any) => output,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_1UntagResourceCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
93
- return deserializeAws_json1_1UntagResourceCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UpdateAccessRequest, UpdateAccessResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1UpdateAccessCommand,
17
- serializeAws_json1_1UpdateAccessCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
20
-
21
- export interface UpdateAccessCommandInput extends UpdateAccessRequest {}
22
- export interface UpdateAccessCommandOutput extends UpdateAccessResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Allows you to update parameters for the access specified in the <code>ServerID</code> and
26
- * <code>ExternalID</code> parameters.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { TransferClient, UpdateAccessCommand } from "@aws-sdk/client-transfer"; // ES Modules import
31
- * // const { TransferClient, UpdateAccessCommand } = require("@aws-sdk/client-transfer"); // CommonJS import
32
- * const client = new TransferClient(config);
33
- * const command = new UpdateAccessCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link UpdateAccessCommandInput} for command's `input` shape.
38
- * @see {@link UpdateAccessCommandOutput} for command's `response` shape.
39
- * @see {@link TransferClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class UpdateAccessCommand extends $Command<
43
- UpdateAccessCommandInput,
44
- UpdateAccessCommandOutput,
45
- TransferClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: UpdateAccessCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: TransferClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<UpdateAccessCommandInput, UpdateAccessCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "TransferClient";
70
- const commandName = "UpdateAccessCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: UpdateAccessRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: UpdateAccessResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: UpdateAccessCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1UpdateAccessCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateAccessCommandOutput> {
91
- return deserializeAws_json1_1UpdateAccessCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }